Oh, Google OS

Oh boy what excitement Google announcement created. They will create a browser OS?! And this is somehow special and unique (InstantOn anyone?). Mike Arrington is up in flames posting on tech crunch. He can already see his CrunchPad running with beautiful new OS.

As always I am skeptical. For start the most important reason is:

* They DIDN’T SHOW ANYTHING !

It is not typical of Google not to show a thing. I suspect that what they have is not that big deal and if they shown it people would be disappointed. With Wave they had unfinished product yet it didn’t prevent anyone to admire it even when it crashes, because it is unique and beautiful.

Secondly they will run browser on top of reduced Linux. So Debian with few Google tweaks, how is that special in any way? I am surprised we didn’t see more solutions like that already. There are few InstantOn OS’es that  are like that but most of them cost money, and this will be free? Ubuntu Remix is free.

My only concern is whether you can run Skype on this thing. Maybe I am not as excited over it as Mike Arrington, but I can see myself using CrunchPad in the future with browser on top, Google or not.

Update:

I’ve been following TechCrunch as they seem perfect recepient of the googleness of GOS, seems that after initial hype they are coming to see the reality, which is still very good, just not as paradigm shifting as thought initially. Josh Bigs explains.

“ChromeOS will beat Windows or even OS X is like expecting Coby to come up behind Sony and Samsung next year…”

Upgrading to Win7

Today I took a plunge and went ahead to get Win7 early. Thing is that however nice Win7 is, it doesn’t really bring that much in terms of innovation, frankly I was considering not spending the money if it is $200, especially because we don’t have one, but 4 win machines. So being early I got it at barely acceptable price of $100 per upgrade (professional). Now just to wait till October. I do have evaluation copy installed, in fact I am writing this from win7. It is very nice and pleasant operating system. I wish few more things were present that can be found standard in Linux for example, like more visual themes, virtual desktops (a must) to name the few. I did get all that already but with third party additions, I will write about that in seperate blog post.

I wish MS would sell and upgrade OS like Apple does, I don’t know who doesn’t have multiple computers and providing family packs is good way to go about it. Plus it is cheap, even though they take more money from each person then MS because they release every year. That would be fine with me. I heard some rumors that MS will offer family pack but it was not available at the moment and I am pretty certain I wouldn’t pay $200 for upgrade, so I took what was available instead of waiting for something uncertain.

Can’t wait to get my hands on it because I plan to do a lot of customizations and knowing I will upgrade to Win7 kind of stops me from doing major things.

Wolfram Alpha launches today

I have one thing to say to that unfortunate google inspired startup called cuil: ‘watch and learn’ .

Today we got one more search engine,  very unique in it’s design, very interesting and with fresh approach. I don’t think it will replace google, but it added new quality to how we can get information off the net.

Wolfram Alpha officially started today. live coverage provided by justin.tv, their inaugural blog post, and finally some examples how to use it.

Customizing Visual Studio looks

I’ve been tinkering with colors and font sizes in VS for a while. This is mostly because I have copy on desktop and laptop, so when I move from one to another, I discover things look different then what I was used to. Anyhow, the way I like things is Consolas font, with size 12-ish or so.

Today it crossed my mind to google and see if there are already premade dark settings for Visual Studio. It turns out there is and there are few quite good ones.

First I came across recommendation to try to use Insolsolata font, which I tried enthusiastically. Unfortunately, it gets rendered crappy, so I had to abandon it. It squishes text quite a bit, which I can understand why some people might like. So I am back to Consolas and this is very solid choice, I was happy to change to it in all my code editors.

As for themes, I did originally wanted dark background but I found Tanzim Saqib’s choice really pleasant and to my taste.

VS_blue

There are also good links on Scott Hanselman post and I like Brad’s Dark Theme as well, so when I feel like change I can always switch to that.

Oh, yes, it is worth mentioning that you update these settings by using import/export settings option from tools menu (kind of lame not to have theme option in VS)

Enterpreneur visa

Paul Graham came up with really brilliant idea that is simple, costs nothing and can only do good. Only risk is whether it will do more or less good. Full article is here.

In short his idea is to create a new visa, which would allow anyone who can assemble small founding team and can find investor willing to invest in their idea, get visa to come to US and start a company. Nature of visa would be such that they can’t work for other people. So, worst thing that can happen is that number of created jobs is not as big as expected. He does put a limit on 10000 people, in my view, provided there is no abuse of the program, I would let even more people come here. It is simple, powerful and effective way to let best people come here, as opposed to programs that are now run which I don’t think bring as good people as they could.

It would also let people from other countries who desire coming here and maybe have some idealistic visions, get a taste of life in US and whether this is really what they thought it is, and decide if they really want to live here.

I am a little worried because however simple and clear his idea, politicians have a way to muddle the most clear idea and make it weird and awkward. I can only hope someone in power gets interest in this idea.

T-Shirt strategy and netbooks

So the T-Shirt strategy goes like this:

* should I buy one really expensive t-shirt, which looks really good at the price of approximately $100-150 like my friend Milan does, then wear it most of the time, or

* should I buy several t-shirts in multiple colors and variations, also good looking, spending similar amount (sometime less, sometime a little more), allowing myself to change them frequently and also not be upset if one gets stained, dirty or whatever else might happen.

As far as t-shirts go, I tend to opt for second alternative as I think it is better to have variety as opposed to really expensive brand. In most cases quality difference is not that great (it at all).

Usually I could apply similar strategy in many situations, sometimes buying something more expensive is good option, I like a little more expensive notebooks (paper based) and pens.

I’ve been wondering what would be good choice when it comes to portable laptop. Here is how I see things there:

* should I buy one light and totally cool laptop like sony’s 13”, or apple or something similar, they are priced at $1300, or

* should I buy one good netbook, like Samsung NC110, or EEE 10”, HP or something similar, which is around $500. There are numerous benefits of this choice, better battery life (7+ hours), even lighter, I can buy one more by year end etc.

Mostly I am unsure because on one side you have not overly expensive 13” which have wow factor. And then you have those other machines that are really practical. Yet I think if you would like to write code, you can do this easily with first choice, while second one is more for twittering, blogging etc.

One thing is for sure, since things can only get better over time, I can take my time picking and choosing.

Updating database from cvs file in VB.Net

I got a simple request to let shippers upload information with shipped dates in csv files .

Now this is rather simple request and problem especially in versatile framework like .Net . I figured just googling around would find me simple solution, however it took a little bit of more search and tweaking to get this working which is why I want to share this piece of code.

So there is a page with upload field and this is on click event of submit button:

Dim filename As String
filename = Server.MapPath(shippingUpdateFile.FileName)

Dim sConnectionString As String = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” & Server.MapPath(”.”) & “;Extended Properties=Text;”
Dim cvs_db As New System.Data.OleDb.OleDbConnection(sConnectionString)
cvs_db.Open()

Dim cvs_select As New OleDbCommand(”SELECT * FROM ” & filename, cvs_db)
Dim cvs_adapter As New OleDbDataAdapter
cvs_adapter.SelectCommand = cvs_select
Dim csv_ds As New System.Data.DataSet
cvs_adapter.Fill(csv_ds, “test”)
Dim csv_table As New System.Data.DataTable
csv_table = csv_ds.Tables(0)
Dim r As Data.DataRow
Dim id, sql As String
Dim date_shipped As Date
For Each r In csv_table.Rows
id = r(”id”)
date_shipped = CDate(r(”shipped_date”))
sql = “Update users set “
sql += “DateFulfilled=’” + date_shipped.ToShortDateString + “‘”
sql += ” where id=” + id.ToString
If utilities_db.execute_sqlcommand(sql) <> 0 Then
Me.lblMessage.Text = “Error updating record:” + id.ToString
End If
Next

This could probably be written in a little more clean way, but this is how it is and you can pick it up from here.

One thing to note is that utilities_db is simple module with db functions. Hope you will find this useful.

NY Times dreams about broadband in US

I couldn’t stop laughing reading article in NY Times about how US is first in the world in broadband, contrary to what all of us who are trying to use it know. It isn’t last of course but first it surely isn’t. Forget South Korea, Japan, France, Netherlands and many others, what they have is nothing compared to what we have here. Right :) . And then you wake up.

There is surge of articles in printed media that are totally detached from reality, maybe they always did that (most likely) just that because we are now better informed we can spot them more easily. Like the one that proclaimed as most succesful startup that failed search engine that was founded by ex-Google guys (can’t remember the name), in Business Week.

I think printed media should die, short and quick death as far as I am concerned. I do enjoy reading Chicago Tribune in printed form, as well as numerous other publications, however those big news outlets are simply flawed beyond repair and I believe this is fundamental flaw that enables outrageous lies to be reported as news over  and over again. Now they can say that bloggers are not professional and can be manipulated, and this is true of course, but what they are doing is creating false reality and thank God for Internets as that their time is coming to an end.

What US is still leader is innovation and Internet is fantastic vehicle for innovation, however if intenet infrastructure is not among the best, it will slow innovation and business and other countries will overtake the lead. Not that that would be end of the world.

Rails on Windows, gems doesn’t install, can’t update

Let me first show you this:

C:\workspace>rails -v
Rails 2.3.0

(B*****s!)
(Me watching Diggnation one time too many)

So Rails or more precise gem installer sucks in Windows. Most of the time people have problem with sqlite gem but as it happens, others can make your life hard as well. Problem is that when specific Windows version of gem is not available, it tries to build one and this fails miserably. Now the real issue here is that it stops installing and updating other gems so you get stuck over some gem you barely use. Solution would be that those gems that can’t be installed get skipped and this small ruby script would do the trick (found it in ruby-forum.com after reading about it on Stack Overflow):

Create a file update-gems.rb and paste following (one line):

`gem.bat outdated`.split(/\n/).map{|z|z.scan(/^[^[:space:]]+/)}.flatten.each{|z| `gem.bat update #{z}`}

run it with

ruby update-gems.rb

and that is it, your problems solved.

rails sqlite problem in windows : no such file to load — sqlite3

Huh, what a time waster.

Rails used to work right out of the box. Not anymore.

I recently had hd crash and today I wanted to do some rails work.  No rails, no problem.

So I install it and try to use sqlite3, which I remember was trick to make it work, then I figure, maybe they fixed it by now. No luck.

So I try to google it, like last time, but this time there is no way out. I downloaded sqlite3, put it in ruby/bin folder, then in windows/system32 folder, everything works from command line, but not in rails. It took me quite a bit of search to find this post.

In the end here is what helped:

gem install sqlite3-ruby –version 1.2.3

Hopefully this will help someone else, or me, next time I search.