Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Friday, June 18, 2010

New job, new things to learn.. gotta get in line..

It's been 3 weeks since I've started my new job at a big corporation. Transition into this new job was not easy and even now there is still a lot of pain of adapting. The biggest source of the pain? WINDOWS!!! T.T

Being a big corp, it's almost a requirement that your reliance on all things microsoft has to be solid and deep rooted. Of course we have open source equivalent for most of the stuff but the pressure is on for me to perform and to present some tangible results as soon as possible thus I barely had time to put some basic best practices in place. But finally after 2 days of googling and tweaking, I've got a small pc running ubuntu server serving trac for ticketing and serving out our main mercurial repo. We don't even have the basic infra yet and still management says "these are things are nice to have, but you need to deliver those reports soon. Our deadline was last month".

Then when starting to do development, I start to see how deep the rabbit hole goes. Never mind about the ton of spaghetti code we have to tangle with, database management (this is just our internal development database mind you) consist of importing excel file into access and using odbc to push those tables to ms sql server. Ha. Seamless I tell you.. >.<

So of course there is nothing in the open source world that can match that kind of right click send seamlessness. So for now I concede I have to use windows. At least until most of our database stuff is fully in the ms sql server and I can connect to that directly. But the pain of working in windows.. oh my.. Even looking for text in all the source code is not as easy as 'grep -ir something'. I think I miss grep the most. But of course I miss all the rest of our little treasure trove of command line tools to make dev so much easier. How I wish I had a 'tail -f' in one window of terminator while I restart the server and redo the query in another.

But I'm already here now and I should square my shoulders and get in line.

Some interesting thing I've learned already is how to set the default gateway for windows for example. You just do a:

route change 0.0.0.0 mask 0.0.0.0

That is to change the default gateway if it already exists. Want to know whether it already exists? Print it out:

route print


And also for setting up tomcat6 cgi, edit the conf/web.xml file in the tomcat root directory. Inside there you would see already commented out parts for cgi config. Just remove tags from 2 parts:

<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>WEB-INF/cgi</param-value>
</init-param>
<init-param>
<param-name>passShellEnvironment</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>


*note - you should add the passShellEnvironment part to allow the cgi to use perl and stuff.
And from:

<servlet-mapping>
<servlet-name>cgi</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping&gt


And then you have to change the conf/context.xml file to enabled privileged like this:

<Context privileged="true">


Once that is done you've got it made baby.. you can now download strawberry perl and awstats and have awstats even for a tomcat6 server. Follow the instructions here for more details: http://www.wrenbeck.com/flowbuilder/$$download.xsp/blog/3eab0461f928f/awstats_tomcat.html

Just one more note on changes to tomcat to enable awstats. You need to enable the combined log for it to work. For that edit the file conf/server.xml and at the end of the file you might find something like this:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="combined" resolveHosts="false"/>


Release it from it's remarked prison and change the pattern from "common" to "combined".

Learned quite a lot these past few weeks so I guess that's very good. Still have to use windows so that's pretty bad. But plus minus it all, it's still pretty good.

Saturday, December 19, 2009

Happy new year...

Yesterday was Ma'al Hijrah marking the beginning of the year 1431 in the Islamic calendar. So with a new year comes new hope and a fresh new start. Even for my computer. I bought my acer aspire 4810tg a few month ago before the release of windows 7. Even then they already promised there will be a free upgrade once it is released. When I finally applied for my upgrade, found out that the software itself is free, but you still have to pay for the shipping (USD 18 to ship to Malaysia). I applied for it anyway. It arrived in the mail a couple of weeks ago but I was too busy then to actually do anything about it. But Alhamdullillah there's a bit of change in the pace of our work in Inigo and finally I've decided I've got enough time to risk it. And risk it I did. After making a full backup of my /etc, /var and /home directory of course.. :P

It took a very long time to upgrade to Windows 7. It was searching for incompatible software, gathering settings and things like that I guess. And after a whole night (well, I started after 10.30, and by 2 I felt I needed to sleep already, so it might have completed sooner but I wouldn't know.. :P) I finally have a fresh install of Windows 7 on my trusty Delorian (it's a timeline model ok.. that's the best name I can think of in regards to time.. >.< ). But after a reboot I realised something which I should have known but completely forgot "Windows overwrote the MBR, now no more grub..". Ugh, and I didn't have any arch linux cd handy. Had to download the iso. I did have a copy of Fedora 12 iso already though so I thought I'd try to install that. It stoped booting with an error and mentioned something about the hardware. I didn't write it down, neither did I bother to google it, so not sure whether it's just my machine of for aspire 4810tg in general. Anyhow, I tried to boot with the latest arch linux iso, also said there was a problem. It was starting to not look good. I downloaded an earlier version of arch and that one finally booted. So I was able to access my old linux partitions and all but I didn't know how to just configure grub. After around 3 hours of googling and trying various things (going into the grub console and all) I just gave up and said "What the heck, I've got a backup anyhow". So I did a fresh install of arch linux on my laptop... Completely clean install. :)

As you might have known already from my previous post, I've been on a minimalist streak for quite a while already. Using xmonad as my windows manager and even going so far as installing vimperator to control my browser completely by keyboard. So since I'm already pretty comfortable with that setup, I thought that "hey, why not dump gnome and try to have an installation without the WHOLE gnome thing". I mean I even use wicd (it has a pretty cool curses interface when you really need it) as my network manager of choice so I don't even need the networkmanager. But seriously, I don't intend to use xmonad completely. I only use it for work when I need to really be efficent. When I'm just slowly browsing and enjoying my computer, I like to slow down a little and doesn't really need all the efficency a full fledge keyboard bounded setup could give me. So after some deliberation, I choose xfce. So now I've got a super light desktop for play and a super efficent setup for work. Hohohoho.. and oh yeah, I've got Windows 7 (/me do a little chicken dance to the dismay of my fellow open sourcians.. :P).

Why on earth would I want Windows 7 you may ask when I've already got the best setup a man could ask for? Well... sometimes a man like to play games.. :P Yes, I only use Windows to play games.. :P Since I'm trying my best to be clean and since although I respect RMS very much I still think there is still such a thing as software PIRACY, I only play free games (at least till I can afford original ones.. :P). My favourite game currently, SOLDIER FRONT.. :D It's a pretty cool game, and if you decide to join in, look out for me.. jebat.. :D But sometimes I play extremely badly, when you see that please know that most probably that's my son playing using my account.. >.< (yes I know, I'm a bad father..)

Ok. That's pretty much what's new with me in this new year. So to all my muslim friends "Happy new year.. ". I'm looking forward to a great one insyaAllah, hope you are too.. :)

Thursday, January 8, 2009

How open source changed my world view

I have been using open source software almost exclusively for more than 3 years now. And quite frankly I am very comfortable using it. And not only that but I like seeing how open source software have improved so much in those 3 years. Leaps and bounds ahead. I nearly laughed myself silly when I first saw Windows Vista at Low Yatt and people were looking at it and going "oooh.. aah.. so 3d.." We had compiz even long before that.. :P

Last year I went into one of those now very rare pirate software shops. And looking at the abundant choices of games available I find that I have changed my world view. It used to be that whenever I looked at all those lovely games I'd think "Oh man.. my computer could never run that. I need more RAM, I need a better display card, I need to upgrade my CPU!!!". But this time I didn't even think about that. In fact I was absolutely not interested in the games at all. All that crossed my mind was that "My OS can't even run these". :P

I know we have wine and cedega and all, but there are so many more interesting things to learn and discover in the open source world that I can't even bother to spend time getting games to run, much less play them till finish. And actually if I HAD time I would have spent it making my own games anyway. But I don't have that much time for now.

And then once in a blue moon someone would ask me to install a pirated Windows on their computer. I hate it when this happens. Because especially since Microsoft started with the marking of "Your version of Windows might be pirated" when they update, people tend not to update. But then that would cause more problems because they would be exposed to all kinds of exploits and problems. I just wish these people would just move on to Linux and forget all these problems. No more trying to download drives because they lost the CD's a long time ago problem, no more have to reformat because computer starting to slow down problem, no more lost data because of virus problems. Just no problems. Either that or learn about computers yourself enough till you don't need me to install the *&$!@*#&! pirated Windows for you. Or buy an original one if you really need your Windows fix.

All said and done, I no longer beleive that Windows is easier than Linux. My world view has changed permanently and I think it has changed for the better.

First post for 2009. Wohooo!! \o/

Is Blogging No Longer a Thing?

As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...