Custom AddThis share button

I wanted to have an AddThis share but­ton that would fit bet­ter with the site’s design, and if you’re read­ing this post on its own page you can scroll down and see what I mean. While AddThis pro­vides plenty of ways to cus­tomize their but­tons, there is no way to assign your own image to the icon, which means doing it the hard way… well, rel­a­tively speak­ing of course.

There are three main steps to cre­at­ing a cus­tomized share but­ton. There’s some javascript to include in the footer.php, few lines of html to add at the end of your posts, and of course some styles and the icon itself.
Keep Reading

Leave a comment

Blog redesign is done

So the new look for the IliaDraznin.com is up. There were some teething pains (cat­e­gories dis­ap­peared there for half a day or so), but it all seems to be work­ing out now. Biggest addi­tion, other than the new design, is the Syntax Highlighter script, to make all those code chunks look nice.

There are still a few fea­tures miss­ing but I’ll be adding those in the upcom­ing weeks. Anyway, it’s back to our reg­u­lar sched­uled pro­gram­ming now.

Leave a comment

Blog changes

Well, it’s been a while since my last post but I’m back and I’ll make sure to start post­ing more often.

Right now I’m final­iz­ing an all new (and orig­i­nal) design for the blog; it’s gonna be min­i­mal­is­tic and dark. In the mean­time I’m also redo­ing cat­e­gories, clean­ing up the tags and mod­i­fy­ing small things here and there, as part of the prepa­ra­tions for the new design.

Leave a comment

Simple jQuery placeholder script for input fields

Placeholder is a very use­ful attribute of the <input> tag that is spec­i­fied in the HTML5 spec. It pro­vides a text that goes into the field, by default, and is used as a kind of a quick tip for the user about what they should type into the field, such as “type to search”, or “type in user­name”. The nice thing about “place­holder”, as oppose to, for exam­ple, sim­ply set­ting some value for the field, is that it auto­mat­i­cally dis­ap­pears when the user starts typ­ing some­thing in, but it reap­pears if the user ends up leav­ing the field empty. Unfortunately this attribute, and its func­tion­al­ity, is actu­ally not sup­ported by most browsers, includ­ing Firefox 3.6 and IE8, it is how­ever sup­ported by Chrome 4, and pos­si­bly Safari 4 though I can’t vouch for the latter.

I recently had a few projects that needed this func­tion­al­ity, and while some of them had email, pass­word and other fields that required val­i­da­tion, one needed just very sim­ple text fields with place­holder text. So I wrote this very sim­ple javascript func­tion, using jQuery, to do just that (I’m using jQuery 1.4.2 here). Keep Reading

Comments 3

Apple removing “sexy” apps from app store, what’s next?

If you’ve been fol­low­ing apple related news you’ve heard that they recently started com­ing really hard after any appli­ca­tions that could be con­sid­ered “sexy” or “sug­ges­tive” — whether its by virtue of hav­ing girls in biki­nis in their screen­shots, or sug­ges­tive text in the descrip­tion — and remov­ing them from the app store. You can read about it in more detail on this techcrunch and ars tech­nica posts.

I’m not going to argue about fair­ness to devel­op­ers who have invested time and money into, in many cases, per­fectly legit­i­mate apps, only to see them pulled down with­out any warn­ing despite being approved in the first place. I’m not going to dis­cuss the fact that there seems to be no clear guide­lines or rules as to what con­sti­tutes an “offend­ing” app, mean­ing that these can change at any moment to accom­mo­date apple’s every whim. I’m not even going to men­tion that not a few months ago apple intro­duced the 17+ rat­ing which is used to pre­vent the pur­chase of “adult” apps by kids, and which could be eas­ily used to also fil­ter out those apps from even show­ing up on the store pages unless age was ver­i­fied. (Why Apple would not do that in the first place is beyond me, you’d think they have ama­teurs work­ing there.) Keep Reading

Leave a comment

Safari gets WebGL in WebKit Nightlies

Well, those folks on webkit dev team sure are mov­ing fast. WebGL (OpenGL for web, i.e. fancy 3d graph­ics in your browser) spec hasn’t even been fin­ished yet, as far as I know, and they already have the stuff work­ing in the lat­est webkit builds. The good news about this is of course that as WebGL becomes more widely adopted, we’re going to see some inter­est­ing uses of 3D graph­ics for inter­faces on the web. Of course the flip­side of that is there’s a good chance that sud­denly dozens of sites will spring up with cheesy cubes or spheres rotat­ing with blink­ing colours or something.

Hopefully most uses of WebGL will be more sophisticated than that

Hopefully most uses of WebGL will be more sophis­ti­cated than that

WebGL itself is actu­ally pretty hard­core in com­par­i­son to stuff like HTML and JavaScript. It’s a true, honest-to-god pro­gram­ming lan­guage. Which means that even sim­ple things take a sub­stan­tial amount of code. Heck, even ini­tial­iz­ing the damn thing takes a whole func­tion. On the other hand, it’s also a very well estab­lished API (more specif­i­cally the OpenGL ES 2.0 API on which WebGL is based on) with plenty of resources, tuto­ri­als and web­sites that cover it from A to Z. So if you’re will­ing to roll up your sleeves and dig into it you’ll be mak­ing spin­ning cubes with blink­ing colours in no time.

For all the details and some exam­ple check out the WebKit blog.

Leave a comment

Dell Adamo XPS details on October 22

Dell is about to reveal the skinny on its newest lap­top, Adamo XPS, next Thursday, Oct. 22. Adamo is Dell’s top of the line, try­ing to com­pete with Apple, sexy line of lap­tops. Well actu­ally, so far it’s been only one lap­top, but now it’s gonna be a line. Apparently the XPS ver­sion is going to be thin­ner than Apple’s Air. 0.39 inch to be pre­cise, which is about 9.9 mil­lime­ters, that’s less than a cen­time­ter — just think about it. It totally blows my mind.

Adamo XPS

So far the exact specs are unknown but it seems that the price is going to be $2,000, at least accord­ing to Business Week, via Engadget.

That’s not to say I have any illu­sions about rush­ing out and buy­ing it the day it’s up on the shelves. But it’s inter­est­ing to see what kinda specs this baby will have (for that price they bet­ter be really good), and hope­fully they’ll show Apple that you don’t have to gimp your lap­top to make it thin and sleek.

Leave a comment