Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

Mar 3, 2007

Jobs: se cauta web designer, AJAX developer, PHP developer, Python developer, Flash developer in Bucuresti

We seek long-term (>2 years) cooperation with single-minded, top-competent developers within any of the respective fields of AJAX, PHP, Python, Actionscript and XHTML, thus:

- Web designer/architect (XHTML, CSS; talented fronend designer, information architect. Knowledge of cross-browser support a plus)
- AJAX developer/architect (dynamic forms, creation of universal methods for data presentation on external pages, cross-browser support knowledgeability)
- PHP developer/architect (object oriented design, clustering, MySQL databases. Knowledgability of systems with high throughput a plus.)
- Python developer/architect (clustering, MySQL databases. Knowledgability of systems with high throughput a plus.)
- Flash developer/architect (Actionscript development, dynamic data management)

We will also quite soon need very talented Linux administators. We will provide a stimulating environment, with complex tasks and team with similar passion.

Our current recruitment need is developers, of age 22-33, with noticeable capacity related to our competence needs, as well as passion for the subject.

Personal interviews will be held.

We will start during may - april. Initially the team will be of three to four developers, and then extend to 15-20 within a year. Our fields of competence will also be extended.

Apply through sending your resume via e-mail, to mikael.more@gmail.com. Questions are warmly welcome, via e-mail or GTalk.

Regards
Mikael More

Mar 2, 2007

Javascript - securitate si "frame busting"

Avand in vedere ca js a fost conceput pentru a aduce un plus de functionalitate documentelor, si nu de a pune in pericol securitatea utilizatorului, codul javascript respecta cateva reguli stricte in privinta securitatii.

Teoretic codul javascript este ca un mic program ce se downloadeaza si se executa pe calculatorul utilizatorului, care daca nu ar fi marginit de reguli stricte de securitate ar putea fi periculos ca orice virus.

Principalele limitari de securitate ar fi:
  • Javascript nu poate executa/citi date intre diferite domenii, chiar daca poate face acest lucru intre ferestre diferite ale browserului.
    Singura exceptie este top.location.href care poate fi setat nu citit. Aceasta metoda nu functioneaza pe IE<=5.5. Putem folosi aceasta proprietate pentru a scapa de "frame busting" adica atunci cand frame-ul nostru esta arat in alt site(si nu dorim asta). Pe siteul quirksmode.org este dat ca exemplu un script simplu pentru frame busting:

    var quirksMode = (top == self);
    if (!quirksMode) top.location.href = '/index.html';

  • Javascript nu poate scrie pe hard-diskul utilizatorului date cu exceptia cookie-urilor.
  • Javascript nu poate seta valoarea unui camp input type="file" astfel ca nu poate uploada de exemplu fisere ce contin parole de pe calculatorul utilizatorului.
  • Nu se poate inchide folosind javascript o fereastra deshisa de utilizator (nu exista limitari de acest gen pentru ferestrele deschise cu javascript)
Tip: pentru ferestre din subdomenii diferite ce trebuie sa comunice prin javascript se poate seta document.domain sa fie la fel (de ex www.google.com si mail.google.com).

Feb 27, 2007

Photoshop, Subversion, Prototype cheatsheets

Photoshop CS2 Shortcuts Cheatsheet - un cheat sheet cu scurtaturi pentru a te misca mai repede in photoshop, aranjate si dupa functii dar si in ordine alfabetica.(via webdesignbox)

Subversion Cheat Sheet - pentru utilizatorii de subversion

Prototype 1.5.0 Cheat Sheet - pe scurt metodele si proprietatile librariei Prototype

Feb 20, 2007

Unobtrusive Javascript si detectia de browser

O regula importanta cand scrii cod Javascript este ca acesta sa fie unobtrusive; prin asta intelege ca in absenta lui experienta utilizatorului nu va fi afectata. Pentru asta trebuie sa te asiguri ca siteul functioneaza si fara codul Js.
Pentru a folosi insa optim facilitatile DOM si Js pe care le ofera browserul in care este navigat siteul trebuie sa stim mai intai daca acestea sunt suportate.
Pentru ca nu exista un browser care sa respecte specificatiile W3C in legatura cu DOM, in care sa fie implementate toate facilitatile si fara buguri trebuie sa facem niste verificari.

Putem face acest lucru prin 2 metode: browser sniffing(detectia browserului) si feature sniffing (detectia facilitatilor).
Inainte de epoca js-ului modern producatorii de browsere nu respectau standarde in ceea ce priveste DOM si trebuia sa detectam tipul de browser.
Acest lucru se facea folosind obiectul window.navigator care contine detalii despre bowser. Iata un exemplu simplu de detectie de browser:

var browserName = navigator.userAgent;
var isIE = browserName.match(/MSIE/);


Aceasta metoda este invachita si nu ar mai trebui practicata. Iata cateva motive pentru care ar putea da gres: unele browsere nu-si dezvaluie identitatea corect, unele tind sa si-o ascunda iar altele pot fi configurate pentru a servi o alta identitate.

In timpurile moderne metoda folosita (si care ar trebui folosita) este feature sniffing. Asta inseamna ca vei verifica metoda inaint sa o folosesti pentru a vedea daca aceasta este suportata de browser. De exemplu daca vrem sa folosim getElementById intrebam browserul daca suporta aceasta metoda:

if (document.getElementById){
var myTest = getElementById('test');
}


Atentie insa nu folositi paranteze dupa numele functiei. Daca scriem document.getElementById(); apelam metoda. Fara paranteze insa putem testa daca exista functia cautata.

Spor la codat.

Dec 12, 2006

Dreamweaver + Ruby

Lucrez la o aplicatie in Ruby si vreau sa folosesc mediul de lucru preferat, Dreamweaver. Problema.

Din fericire Rob Cameron doreste sa imparta cu noi o extensie foarte folositoare zic eu, rubyweaver. Dupa instalarea extensiei Dreamweaver recunoaste fisierele .rhtml iar codul apare highlighted. Siteul lui este offline dar am pus-o pentru download aici.

When creating a new file via File > New..., you will see that Ruby is available as a file type in the "Text" grouping and Rails under the "Basic Page" grouping. YML and SQL are also available in the "Other" group. To view and make changes to color coding, go to Edit > Preferences > Code Coloring and select Ruby or Rails from the list, then click the "Edit Scheme" button.
This new version has basic code hinting, thanks to BDC Software Inc. for the hinting file (available at: http://www.bdcsoftware.com/dev_rubyonrails_dreamweaver_codehints.php) These code hints depend on typing the full function name and an opening parenthesis before they'll kick in and show options. Ideally, as soon as you begin typing Dreamweaver would show a list of everything matching what you've typed so far. Still working on this.
To get the proper HTML coloring to show up in Rails files you need to go to Edit > Preferences > Code Format. Click on the Tag Library Editor link, then click on the HTML Folder at the top of the tree. Below turn on the checkbox for Rails.

Daca sunteti sceptici privind instalarea acestei extensii sau nu va place cum functioneaza mai exista si varianta aceasta.
Eu fiind mai comod si poate si din lipsa de timp am ales extensia.