Sunday, January 25, 2009

Cure to the idle hands situation

So I started working with flex as my company has decided to move to flex and a few people have been bugging me for ages to start doing flex [yeah.... its not you... :)]

So the project started out to be an alarm clock but as it stands now, its nothing close to even looking to go into that direction. Testing various stuff, I thought I'll make something like the mac dash (button thingy) or at least a cheap look-alike.

I'm probably gonna drop this but it might be a good start point for someone wanting a fast button bar.

-Only mxml/as code (no fla)
-It uses Tweener to create movement/resize effects.
-Mouse Scroll and buttons on the sides move the buttonBox left and right.
-Mouse over a button will make it grow.

link for the zip archive

Monday, March 10, 2008

Otis Redding - Sitting on the dock of the bay

Sittin in the morning sun,
I`ll be sittin' when the evening come,
Watching the ships roll in,
And I'll watch 'em roll away again, yeah,
I'm sittin' on the dock of the bay,
Watching the tide roll away, ooh,
I'm just sittin' on the dock of the bay,
Wasting time.

I left my home in Georgia,
Headed for the Frisco bay
I have nothing to live for,
Look like nothings gonna come my way,

So I'm just a sitin on the dock of the bay
Watching the tide roll away,
I'm sittin' on the dock of the bay,
Wasting time

Look like nothings gonna change,
Everything still remains the same,
I can't do what ten people tell me to do,
So I guess I'll remain the same, yes,

Sittin' here resting my bones,
And this loneliness won't leave me alone, yes,
Two thousand miles I roam
Just to make this dock my home

Now I'm just go sit at the dock of the bay
Watching the tide roll away, ooh
Sittin' on the dock of the bay
Wasting time

just heard his version of "try a little tenderness" in a movie the other day..n just had to listen to it again. So my friend Youtube and I spent some time exploring Otis Redding. The guy was so good, I don't have words to describe him. And to think he died at just 26. I just want so much to be in that time

Friday, February 29, 2008

Project Geoserver

i have setup a geoserver on tomcat on a local server (Debian). Its pretty easy, probably even easier than installing a notepad replacement.
Data configuring took some time to make sense. I had been working with UMS mapserver for a couple of weeks and all that R&D on .MAP files was pretty useful in writing styles for geoserver layers. Although my job was only limited to finding the possibilities and limitations of geoserver WMS.
Setting up tilecache was probably the "hardest" part of this project since all the data was in espg:4326 (ie longitude,latitude) but the request is in a custom format which is not directly related to anything used by any other application like say openlayers. So a few days of a lot of long double/float values, variables with even longer names, writing down outputs and staring at them for some pattern.. later i ended up with a php script with took our input and gave out a tilecache request. Also out tiles started at some displacement and had a different degree/pixel ratio than standard, so even that was a tricky bit since the output had to fit exactly on our tiles

Outstanding problems:
1. i am wondering whether geoserver lacks on-the-fly line join cuz my highways (which are multiple line segments) are displayed with rough edges. This doesnt happen in UMS mapserver by the way. I did manage to join simple roads with line end property but this doesnt work too well with roads that have more than one style(roads with boundries etc.)
i probably will have to run scripts to join all my roads in the database itself but then i wonder whether my queries will be affected since even to display a pixel of road, the query will return the whole road instead of a smaller segment as it does now. (maybe postgis handles this case, maybe it doesnt)
2. Geoserver buffer support doesnt seem to work as well as i would have hoped. even with a few labels i see tiles cutting text. I am using metatiles too. Maybe im not using the right buffer settings. There are a lot of style examples for geoserver but most of them address the same kind of prolems and use the same old simple style options.
I might write one myself when I get some time.

Wednesday, June 06, 2007

My Windows Box (screenshots)

Two screenshots of my windows desktop (running on blackbox -> bblean)

Setting the desktop background from image menu
1> disable bgsetroot in the style file(add ! in the beginning)
2> in folder options go to file types -> jpeg -> advanced -> add c:\blackbox\bgsetroot -full '%1' as a new option along with open and edit
{change the path according to your configuration}

My Box continued.....

well apart from the few times that i thought about formatting my freebsd partition completely, Its been a fun ride setting up freebsd.

BSD never lets u forget that it is after all a unix and not one of our friendly neighborhood desktop oses(Windows, Top linux Dist's).

* You get a lot of graphical utilities but most of them would not do what they're supposed to(no matter how much u plead/pray)

* Networking although a strong point of freebsd, gave me a lot of problems (mainly with db/web/im servers)

* No driver for my beetel ADSL2+ modem(through USB).It does work with the Ethernet option which unfortunately is not free(used by another comp) most of the time.(and thats why I am in windos right now :( )

* Fast!! it is awesome when it comes to loading and shutdown speeds. Compared to my windows os (where while shutting down, the screensaver comes up!! ), ah ...... well it basically kicks a$$.

* Its got Ports!! ports in freebsd have their advantages and disadvantages

adv : you get everything u will possibly need in ports
easy install / manage (gui with bpm,kpackage or command)
auto download and compile of dependencies recursively

disadv : you dont have much configuration options in most ports
many ports install number of packages which are not needed (example : i wanted to install jdk, it took 6-7 hours of downloading and compiling ports only to tell me that their is an error in the install script. it installed countless packages in that time including jre-linux and mozilla. why????????)
version conflicts for libraries, binaries(windows users can never understand this, i do only because i have worked on every major linux there is)
really long chain of dependencies for ports.(example : anything related to graphics/gui)
if i want to upgrade a desktop env(like gnome or kde), i need 2-4 days and 24 hour net(my own approximation with possible exaggeration)

I am using currently blackbox(on both freebsd and windows) as my desktop after trying out all the different options in the ports.
i liked bb the most since it is fast(as if freebsd was fast enough) and it has a lot of plugins available. also i like the mouse-scroll actions it has (workspace change, window switch, window minimize to its titlebar)

this is not a review or nothing but ill still give my opinion

*for someone who loves to have a hackable/configurable environment or is looking for an os for local/internet servers, freebsd is one of the better oses.(another is gentoo)
Obvious Warning :: Not for the faint of heart :), atleast not yet anyway. Although it has improved a lot from 5.4 which was the first Version i had installed (currently 6.2)

*and if you need a replacement for windows but have "some" knowledge about the internals of linux, dont go for freebsd. go for something like OpenSUSE, Fedora, Ubuntu, Mandriva or other such big distributions.

*Further if u are a linux-nonothing use knoppix LiveCD for getting some handle on it or better yet try Xandr OS (the Damn thing is easier than windows)