Unosi za: Arhiva za 2006/11

Imam zadovoljstvo da najavim jedan vrhunski IT događaj, i to u mom gradu - Kragujevcu. Naime, kompanija Boox Computers organizuje izložbu računarske opreme sa pratećim predavanjima pod nazivom “Boox Expo 06″. Izložba će biti održana 24. novembra 2006. god. od 12:00 do 15:00, u Domu Vojske, ul. Kneza Miloša 7 u Kragujevcu.

Obezbeđeno je prisustvo predstavnika praktično svih brendova koji nešto vrede u IT svetu, a udarne teme biće promocija Windows Vista operativnog sistema, kao i promocija Intel Core 2 Duo procesora. Na osnovu informacija od “insajdera” svim posetiocima obezbeđen je 2Mbps link ka Internetu.

Više informacija o ovoj IT manifestaciji možete pronaći ovde.

The Desired Effect

The layouts in discussion here all try to solve one problem: three columns – two fixed-width sidebars and a fluid center column, all while keeping our markup clean and semantic, and most importantly well structured. Let’s see now where two of these presented layouts fail and how we can fix it.

The Glish’s grail

Rob Chandanais’ version of the Holy Grail layout is probably the most elegant solution there is for this effect. It utilizes absolute positioning with some brain-numbingly simple usage of margins and/or padding for the effect. The basic idea is that you have your main column to which you add horizontal margins or padding with the values of widths of your sidebars to “make room” for the sidebars. Optionally you could increase the values of margins/padding of the main column for gutters – it’s up to you and your design. Now we position the sidebars absolutely, and fill up the space provided by margins/padding of the main column and there you go – a perfect solution.

Oh, wait, but what happens if my design needs a full width footer? If my main column isn’t the longest – wouldn’t sidebars overflow (or “underflow”) over the footer? Well yes actually, if your footer takes up more space than the width of the main column – most probably you will experience these ugly problems. There is no solution to this (no pure css solution, I’m sure a little JavaScript could fix the problem by controlling the height of the main column dynamically), so if you want to use this technique – you better keep your footer in the main column.

The A list Apart’s grail

This technique Mathew used is messy to say the least. It uses negative margins, relative positioning – and all that in a really confusing way. I have used this technique on one of my sites – herbiv.org (pronounced as “herbivore”) and I am sad to say that it actually doesn’t work in IE. The left sidebar keeps getting “clipped” to it’s left side, meaning that it’s positioning isn’t handled correctly by ie6. I myself to avoid this bug have been forced to make Herbiv.org’s layout completely different when viewed from ie6. As you can see, by a first glance at this technique – and in theory – everything is perfectly logical, but in a world with an Internet Explorer – it is sadly not so.

My take on the holy grail layout

Recently I have been in a situation that required the described layout – full width footer included. The project got in a really rough stage, there wasn’t enough time for building everything from scratch, testing and all the regular and necessary stuff, so I figured I’ll just hop on to one of the layout galleries, grab me one of the pre-made layouts and integrate my design into it – I wonder why I weren’t doing this before. So I went to one of such sites I had bookmarked in my del.icio.us – Layout Gala and I was presented with a plethora of layouts – I was certain I will find something for me here. There it was – the number 14.
I looked at the code, and I was amazed how simple the solution was. How didn’t I think of this first, or at least known of this technique before?! It works in Internet explorer 6 as well – sweet! So I start with integration into my design and when I was done I went to check it out in ie6, since I have made some minor tweaks along the way. Then – I froze. I got the very same glitch the A List Apart’s technique was producing – the left column was being positioned too far to the left.

Express debugging

Now I had a problem I was terrified of, and to add to it – I had practically no time to fix it. But it’s funny how your brain works when you are in a tight spot. So I started debugging, fiddling with the code and doing all the things that don’t make sense because those are the thing that usually help Internet explorer to act normally.

To make the long story short (in fact I just want to skip the part where I burst in to tears and wept), I started to make sense of things. Let’s analyze the code from my example – it is the same layout from Layout Gala, I will be working on it just so you know that I am not using my own code here, I am just providing the fixes.

Compare the two examples: the original and the same layout with my small addition.

As you can see – all I have added is some padding to the body to provide some white-space between edges of the screen and the edges of the content, and that was all it took to ruin the layout in ie6. Now I have the left sidebar screwed up – and that is of course unacceptable. Let’s see what is going on there exactly:

body{font: 76% arial,sans-serif; margin:0; padding:0 30px; }
	

div#wrapper{float:left; width:100%; }
div#content{margin: 0 200px; }
div#navigation{float:left; width:200px; margin-left:-200px; }
div#extra{float:left; width:200px; margin-left:-100%; }
div#footer{clear:left; width:100%; }

We have five elements, a #wrapper which is floated to the left and has a width of 100%, a #content which has the margins that should provide space for our sidebars. Then we go to our first column named #navigation which is floated to the left, has the width of 200px (equal to the margin of #content) and a negative left margin which is pulling it in to place. We are now proceeding to #extra which we are also floating to the left, giving it a width of 200px, but we are giving it a negative left margin of -100% which is pulling it into place. Lastly we have a footer that is clearing all those floats.

Basically what is being done here is stacking of our elements with floats and using of negative margins that are pulling those elements to desired place. But ie6 won’t play nice. What I have discovered is that it takes the margin-left:-100% of the #extra and adds the padding of the body onto it, making it 60px bigger (30px + 30px = 60px). So ie6 is treating that margin as 100% + 60px. Bugger. Luckily for me – that was all I needed to know, once I knew the source of the problem, all I needed to do is apply the fix for it, and it came like this:

  • I know that the padding of the body is causing the 60px shift of the #extra, so I remove it. Things now go back to normal.
  • With some more experimenting I found out I can add another div as a wrapper of the whole layout – it’s called #container which will provide the gutters I need (white space from the browser’s edges), but this time with margins instead of padding, because for some reason ie6 is producing a horizontal scroll when padding is used.
  • Now that we have our gutters, we can apply the fix for #extra and get our column in it’s place, and I do that with relative positioning it by -60px from the right.
  • I have used conditional comments here to serve additional markup and css rules to ie6 only, and here is our working example in action here, and here is how the code looks like now:

      (...)
      div#wrapper{float:left;width:100%}
      div#content{margin: 0 200px}
      div#navigation{float:left;width:200px;margin-left:-200px}
      div#extra{float:left;width:200px;margin-left:100%}
      div#footer{clear:left;width:100%}
      
          -[if ie 6]>
            
            body{ padding:0; }
            #extra{ position:relative; right:60px; }
            #container{ margin:0 30px; }
            
          ->
      
      
      -[if ie 6]>->
      Header
      
      
      

    1) Content here. column long long column very long fill fill fill long text text column text silly very make long very fill silly make make long make text fill very long text column silly silly very column long very column filler fill long make filler long silly very long silly silly silly long filler make column filler make silly long long fill very.

    very make make fill silly long long filler column long make silly silly column filler fill fill very filler text fill filler column make fill make text very make make very fill fill long make very filler column very long very filler silly very make filler silly make make column column

    fill long make long text very make long fill column make text very silly column filler silly text fill text filler filler filler make make make make text filler fill column filler make silly make text text fill make very filler column very

    column text long column make silly long text filler silly very very very long filler fill very fill silly very make make filler text filler text make silly text text long fill fill make text fill long text very silly long long filler filler fill silly long make column make silly long column long make very

    2) Navigation here. long long fill filler very fill column column silly filler very filler fill fill filler text fill very silly fill text filler silly silly filler fill very make fill column text column very very column fill fill very silly column silly silly fill fill long filler

    3) More stuff here. very text make long column make filler fill make column column silly filler text silly column fill silly fill column text filler make text silly filler make filler very silly make text very very text make long filler very make column make silly column fill silly column long make silly filler column filler silly long long column fill silly column very

    Here it goes the footer

    -[if ie 6]>->
    The Conclusion

    You never really know what you are getting with “out of the box” stuff. This layout worked, but unfortunately only in a situation when you really want to use 100% of browser’s view port (referring to layout 14 from Layout Gala). Luckily I have managed to fix it in time and I have came up with a solution that will definitely work in ie6, ie7, Firefox and Opera (if anyone can test it in Safari and/or other browsers – please let me know), and it is actually usable in real life situations. Please feel free to use this layout and technique if you are in need of such a thing – no strings attached.

    Now go enjoy your two-column-fixed-centered-main-column-liquid layout goodness, cheers! :)

    ponovo sam u deep trance fazi. ovoga puta rezident dj mog plejera je nick warren sa posebnim akcentom na Global Underground 018: Amsterdam diskove. underworld je bio prošlonedeljni izbor. teški, mutni zvuci verovatno povezani sa mojim ne prihvatanjem činjenice da je već u pet sati mrak, zima je na pragu a ja se pravim kao [...]
    Visina 100m, dužina 235m. S vremena na vreme sažvaće poneki zalutali buldožer. Sve je na slikama.
    Prijatelji su me zamolili da prokomentarišem tekst "Zatočenice" koji se pojavio u našim dnevnim novinama, vezano za zadržavanje pasoša od strane poslodavca u Dubaiju. Sporne su dve stvari, da li se našim ljudima uzimaju pasoši i da li je stvarno tako loš smeštaj? Koliko ja znam, uzimanje pasoša je protivzakonito i sa tom praksom se slaže ministarstvo zapošljavanja. Isto tako, neki poslodavci i

    Popularnost MySpacea i dalje ne jenjava u svijetu. Ova društvena mreža (social network) je trenutno jedno od najpopularnijih Internet odredište na svijetu, sa posebnim fokusom na sjevernoamerički kontinent i američki način života. «Ideja nije nova, pa se može kazati da je MySpace “GeoCities na steriodima”, odnosno mnogo lakši i jednostavniji servis za kreiranje personalnih stranica sa bogatom multimedijom», kaže Goran Aničić. Trenutno u svijetu egzistira na hiljade društvenih mreža koje pokušavaju na različite načina da zadovolje različite ciljne grupe. Kako stvari stoje na Balkanu? Na temu domaćih društvenih mreža, ekskluzivno za čitaoce Biznisbloga, pričao sam sa mojim kolegama – Nikolom Mitićem, osnivačem društvene mreže Veliki Brat i Srđanom Košutićem, osnivačem mreže Bleya.

    Nazivom VelikiBrat.com asocira na poznati reality show «Big Brother», koji se od ove godine emituje u Srbiji i Bosni i Hercegovini, a prije tri godine na ovim prostorima debitovao je u programu hrvatskog RTL-a. Ovdje je vrlo zanimljivo predstaviti odlično sprovedenu marketinšku strategiju vezanja za već postojeći brend i već stvoreni buzz, koja je veoma vješto primjenjena pri pokretanju ovog sajta. Zahvaljujući dobroj poziciji na pretraživačima, samo tokom beta faze Veliki Brat je skupio 3 hiljade korisnika. «Pored pretraživača, tokom beta faze imali smo i dobru medijsku podršku sa par jakih sajtova, tipa Nostalgija.com. Trenutno brojimo blizu 9 hiljada korisnika, a za par dana kreće nagradna igra i još neke zanimljive akcije. U svakom slučaju biće pravi bum», ističe Nikola.

    Bleya je još uvijek u beta fazi, lansiranje finalne verzije se očekuje oko Nove godine. Zanimljivo je reći i da na finalnom interfejsu za Bleyu radi Dragan Babić. Srđan, između ostalog, kaže sledeće: «Za sada imamo preko 750 korisnika, ali kako smo još u beti i nismo zvanično krenuli, reklama ide samo preko jednog sajta, mislim da je ovo relativno dobra cifra. Na Bleyi se uglavnom okuplja mlađa populacija ljudi, dakle starosni prosjek iznosi oko 20 godina i to su ljudi koji nisu toliko vični kompjuterima, ali su dovoljno zainteresovani da se registruju. Treba napomenuti da je na sajtu prisutan i veliki broj naših ljudi iz dijaspore. Početkom nove godine kreće offline promotivna kampanja po Beogradu, koja će obuhvatiti bogat promo materijal i neka zanimljiva dešavanja.» Iako obije mreže originalno potiču iz Srbije, u oba slučaja cilj je jasan – širenje na čitav Balkan.

    U susret dvogodišnjici izlaženja jedinog domaćeg časopisa posvećenog slobodnom softveru, danas je izašao 23. broj. Pored vesti, pregleda popularnosti distribucija GNU/Linux/BSD sistema i datuma kada se nove verzije mogu očekivati, detaljno su prikazane distribucije Slackware 11, Fedora Core 6, Ubuntu 6.10 (Efty Edge), kao i programi Firefox 2 i Blender. Sadržaj čine i teme vezane [...]
    Da je Internet opasno mesto posvedočiće brojne kompanije koje kao zmija noge kriju iznose koje plaćaju ucenjivačima za nesmetan rad svojih servera kao i korisnici koji su ostali bez svog identiteta, opljačkani od strane nigerijskih "dobrotvora" ili su prodali robu za bezvredan novac sa lažnih kartica. Prevara je na Internetu mnogo kako onih kriminalnih tako i onih drugih, više ličnih, intimnih - ljubavnih - najviše u cyber chat prostoru. Iako se većina chat "ljubavi" svodi na "bezazleno" flertovanje neke od ovih ljubavi mogu da trajno utiču na naše živote - pozitivno ili negativno - kako se kome već zalomi.

    Kada su se Wang (26) i Lin (27) nedavno venčali obećali su jedno drugom večnu vernost i mislili da će ih sreća pratiti za ceo život. Jedini problem - Lin nije u potpunosti verovao u obećanje vernosti svoje supruge. Zato se odlučio na originalan test vernosti - započeo je chat sa svojom suprugom, lažno se predstavljajući kao zgodni i bogati "princ iz bajke" pokušao je da "mladicu" navede na neverstvo. Linovoj sreći nije bilo kraja kada je test konačno završen jer Wang ni pod kakvim uslovima nije pristala da prevari svog supruga i ode u krevet sa "nepoznatim muškarcem". Oduševljen, odlučio je da svoju sreću podeli i sa svojom životnom saputnicom. Međutim Wang nije delila Linovo oduševljenje, i prvo što je učinila nakon spoznaje pravog identiteta svog "tajnog obožavaoca" bilo je da podnese zahtev za razvod braka. Konačno, kada je nadležni sud saznao za detalje "chat testa" odlučio je u njenu korist ...
    Kao što se na našem sajtu moglo videti, kasnili smo sa izdavanjem ovog broja zbog stvari koje su nam se navalile na glave. Prva stvar koja će, verujem, da obraduje čitaoce je da nema više skripti za preuzimanje, pa će od sada i ubuduće, PDF da bude dostupan direktno. Vama ...
    Duž mokre ulice, isecao sam oštar vazduh na kriške širokog koraka. Iza prvog ugla, već omamljen od hladnog vetra, zurim u modro nebo. Zimsko je veče čudesno, pogotovo u kombinaciji mirisa domaće stoke i vlažne zemlje. Aromatična idila sela.

    Uokvirena slika zvezdanog beskraja kovitlacima dima iz odžaka okačena nad glavom izmolila je još jedan dug zamagljen pogled u plavo.

    Premeštajući se sa jedne na drugu nogu, usamljen na betonskom platou, nestrpljivo iščekujem poslednji autobus. Neprijatnost koju je donela prohladna noć. Naviru misli.

    „Zrak se prelama u vodi, kao ulaz u dvorac iz priče. Uz tihu vodu, pod niskim nebom, pesak skuplja sunce. Zaronjen u miris rascvetalih vrba, uporan kao trava, ležem na mulj. Slušam. Kroz ponavljanje trenutka, kao eho vekova uhvatim akorde nečeg što traje, postoji, kao voda.

    Nisam se mučio da to steknem.

    Još jedno leto. Ništa mi i ne treba. Samo da me puste svi redom. U vodu. U leto. Da zaronim sve do peska. Do mulja koji miriše na detinjstvo čak i kad se samo setim, do crnih školjki.

    Ta tišina dole je drugačija. Nije prazna. Bruji.
    A kad izronim, čujem ti smeh. I još mirišu vrbe.“


    Odlično, pomislih. Otišao sam dalje od početka a već sam stigao do kraja. Čemu više reči. Ovo je gotova slika.

    Zadrhtao sam trgnuvši se iznenađen. Zvuk kočnica i kompresora koji otvara jedna ogromna vrata, sa svom teatralnošću razotkriva duboki stepenik, pa još jedan koji usmerava pogled na gore, na ozbiljnog i rekao bih nestrpljivog vozača. Srećom pa je kondukter upadljivo veseo piskavo zakreštao: Horgoš-Kanjiža!

    Nekoliko đaka poput preplašenih pilića,iskočilo je iz autobusa a zatim je odpijukalo u nepoznatom pravcu u potrazi za svojim kokošinjcem.

    Udobno smešten na sedište, nazirem tamo, u daljini, svetlost grada.
    Oslikati knjigu ili čitati sliku.
    Pitam se...
    da nisam mornar u pustim snovima.

    blogodak blog

    Blogodak?

    Blogodak je vaš pogled na domaću blogosferu. Prijavite se i napravite sopstvenu listu blogova koje pratite.

    O projektu

    Podrška

    MyCity.co.yu

    DevProTalk