Tumgik
dipankarname · 11 years
Text
Geeksphone Keon unboxing
I have the using the Geeksphone Keon over the last couple of weeks and its been an interesting experience till now. Just to start things of here is the unboxing of the packed unit. The box is really beautiful and really reminds you of a great mozilla experience!
The top side of the box! The bottom of the box! Neatly arranged battery, and handsfree! Cool firefoxOS sticker And, finally the phone The phone has fantastic battery life, for at least 3 days normal usage. The internet seems to be a little flaky, and the OS has crashed a couple of time though. Hope to put up more about firefox OS.
0 notes
dipankarname · 11 years
Text
RFC 6455 - The WebSocket Protocol
The WebSocket Protocol enables two-way communication between a client running untrusted code in a controlled environment to a remote host that has opted-in to communications from that code. The security model used for this is the origin-based security model commonly used by web browsers. The protocol consists of an opening handshake followed by basic message framing, layered over TCP. The goal of this technology is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections (e.g., using XMLHttpRequest or <iframe>s and long polling).
RFC 6455 - The WebSocket Protocol.
Very interesting RFC, say in comparison to BOSH. Should be a fun read for most engineers.
0 notes
dipankarname · 11 years
Text
Firefox operating system released!
One of the first things that i wanted to implement in my university [~2006] was a operating system with only the Firefox browser as the core application. Turns out that is a popular reality now with the Chromebook and well to some extent the Firefox OS which is being released. I at that point had no idea that mobile would become that big, with the exposure that I had. Its all coming together! The new Firefox OS is something that I was waiting for, and I believe a true iOS challenger. We should definitely keep in mind that Steve Jobs had seen the future and pushed for all iOS applications to be web applications in a mobile webkit browser [before the whole app store came about]. So we finally have Steve Job's dream working out in style. All the core applications[Dialers, Contact book, Messaging]  need to be web applications, unlike say in iOS which is such a partial approach. One must appreciate the ideas that iOS has introduced, and well android has copied religiously. However, it seems some others may take a lead soon. I look forward to making this work on the desktop as well. Three cheers to the mozilla team for this achievement!!    
0 notes
dipankarname · 11 years
Text
bye bye kaspersky, welcome avast
Well not a marketing post, I recently bought KAV or Kaspersky anti-virus for all the windows machines that I run. Lately it has become extremely bloated and well it brought all my machines down to their knees. The goal of running lean and mean, while giving me optimal online *protection* seems to be lost on them. Being the engineer that I am, my response was to find out the leanest one around [for free]. Turns out Avast does a pretty decent job of staying out of my way and finding out about most of the common bugs around. One must admit, the cottage industry of Anti-virus makers must get a cut from Intel/Microsoft for building these beasts which run in the background consuming most of your memory. So Avast it is for the rest of the house as well! That too the free version, until of course KAV fixes its bloat. Get it here - http://www.avast.com/en-in/index
0 notes
dipankarname · 11 years
Text
Rooting your Samsung galaxy ace
So have been playing around with ROMing and modding phone for most of the weekend. Here are the important posts to read to mod your Galaxy Ace. http://theunlockr.com/2012/11/22/how-to-root-the-samsung-galaxy-ace-s5830/ You will need to download the root file from the following link http://www.droidforums.net/forum/android-forum/210957-universal-gingerbread-root-unroot-2-3-3-2-3-7-a.html#post2130907 Successfull done on my wife's phone!
0 notes
dipankarname · 11 years
Text
Best Samsung i9103 ROM android
I have been using the Samsung i9103 for quite a while and have tried out most of the available experimental ROM out there. Most of today was spent trying to find out the right combination to make the phone usable again. Here are the steps to having a really good setup on this phone 1. First follow the guide below and install the XXKPE ROM following the guide below. You will need to use Odin to flash this ROM onto your device. I used the ROM link below the guide Guide : http://androidadvices.com/making-galaxy-sl-i9003-xxkpe-update/4/#.UA0w8aCeaSx ROM : http://hotfile.com/dl/145780524/f7d1f45/I9003XXKPE.zip.html 2. Now you need to root the device and can use the following guide and image to do the same. It worked out pretty well for me. Guide : http://forum.xda-developers.com/showthread.php?t=1191623 ROM : http://coveringandroid.com/wp-content/uploads/2012/01/I9003XXKPE_RootingPackage.zip  3. Open the Tweaks application and apply the various optimizations. In addition to that install AWD launcher! Its an absolutely phenomenal launcher imho, Other tuneups you can do are Shift to Ext4, read the post below on XDA developers. http://forum.xda-developers.com/showthread.php?t=1331253
0 notes
dipankarname · 11 years
Text
Loyal to airtel, not the other way around
Mine is a dual connection household, I use one Airtel connection as the primary and the secondary MTNL one for backup. However, it seems I will need to change the order of those soon. Lately, airtel seems to have very odd bandwidth counters which always seem to never match up with my router connection monthly counters. The difference is more than 20-30% month on month [adding both up and down counters!], which means that this is deliberate. So a consumer like me pays for 75, gets 50 and well is forced to buy these Smartbytes packs to fill up the deficit for nearly one third of the month! So Airtel in my opinion is stealing my bandwidth which after many many complaints has been not taken care of! I can only view this as a systematic accounting corruption on their end. In any case, I have come to the conclusion that MTNL is far better in these matters for the NCR region and see no use of using Airtel as the primary in my case. Have you experienced the same? Do let me know?
0 notes
dipankarname · 11 years
Text
Gotcha with exporting MySQL tables for windows
I encountered some interesting issues when pulling out CSV from my MySQL databases. The core issue was the csv generated was not seemingly compatible with the various spreadsheet readers in Windows. After having a closer look at the file, it turns out to be an encoding issue clearly. As the database was Latin1 encoded, the carriage return was handled as r [shows up as ^M on VI] in some text blobs. That basically resulted in an additional carriage return in the reader and it would break the csv. Here was the way I solved this issue. perl -pie 's/r//g' *.csv This will basically remove all the r  and thus ensure that your reader is able to accept and read the file. You should be able to see the difference when you export the file into the reader.
0 notes
dipankarname · 11 years
Text
Exporting MySQL tables and databases
Here are the ways you can export tables and databases, each of them have their advantages and disadvantages depending on the task at hand. We will list out each with examples and discuss them. We will assume that the database name is D and table name is T.
1.  Going native with SQL and generating an csv from the MySQL console Assuming that you are already logged into your mysql console using say mysql -u <user> -p <database>
replace <user> with your username replace <database> with your database
You can use the following command to generate an csv of pretty much any SQL. select * from T into outfile '' fields enclosed by '"' fields terminated by ',' lines terminated by 'n' where id=1;
One of the limitation is that you cannot get the column names in the csv using this.
2. You can use the mysqldump utility provided, to actually take an output of complete databases/tables or partial tables.
mysqldump -u <user> -p -t -T<location directory> --databases D --tables T --where="id=1" --fields-enclosed-by=" --fields-terminated-by=,
The above query will take the output of the Table T from Database D and generate a clean CSV in the location provided with the filename T.csv The clear limitation as compared to 1 is that you cannot get output of joins and you do not get the column names in the csv.
3. You can now use the mysql commandline to output csv as well
mysql -u root -p D -e "select * from T where id=1" > T.csv The above query will output the query results with the column names in row 0. The limitation is that you cannot control the fields enclosed, fields terminated like 1 and 2.
No approach is better than others! For me 3 worked really well as I needed the column names and did not need a lot of control over the column attributes. You may find the other approaches work as well for you.
0 notes
dipankarname · 12 years
Text
Aliexpress : Experiences and improvements
I have been using Aliexpress to buy parts that I am not able to locate at Nehru place [New Delhi, India] especially laptop batteries for older laptops. It has been a pretty smooth experience in terms of ordering, however it is a fairly weak experience when it comes to the shipping. I had ordered 3 items from 3 different sellers and here is the experience [I have removed all the order specific information] 1. The first seller was very responsive, but sends it across as a gift. Sends me a link to http://www.17track.net/Index.html, which well is clearly not going to be readable for me. Not very clear what was the courier the seller sent it by. He has listed one tracking code, but in the comments says that the actual tracking code is something else. That does not make sense!       2. The second seller manages to get the tracking code right, but does not get the tracking URL correct [http://www.singpost.com.sg/ra/ra_article_status.aspx] ! That is very difficult for people who may not know enough about the internet. The actual url is just going to the domain homepage [http://www.singpost.com.sg/].         3. The best is clearly the Fedex one! Smooth easy to work out. I do not expect any issues with using the same on aliexpress the next time around. It is clearly the more expensive option, even though it says free shipping Its clear that the majority of the shipments will not be using Fedex, they really need to support more courier types, and enable the end seller to have a better experience while giving the end consumer the shipping information. Its also clear that given people all over the world use aliexpress due to its really big catalog, they need to enable translation tools by default for all tracking sites/portals that they link to!
0 notes
dipankarname · 12 years
Text
Multiple views using bottle.py
I have been using the micro-framework called bottle.py, and starting to write fairly complicated applications on top of it. So I have been able to put together a relatively clean structure based that serves my maintainability issues This setup uses redis, memcached, and mako as the templating language. Lets assume the application name is project. project/ project/main.py - This is the core application file that loads up bottle and the plugins project/INSTALL - This is the readme and simple installation instructions project/middlewares.py - This is the middlewares that you maybe using in your bottle.py application project/views.py - This contains all the views that you will create, you can also split it further based on your application object types project/utils.py - This is the utility library project/static_views.py - This is a temporary view for serving the static assets of your application in the development. This should never be used in the production setup and be replaced with either a CDN or Nginx or varnish or apache to serve them directly. project/templates/ - This is the mako templates directory project/static/ - This is the static file directory This is a very manageable structure that has evolved over time and works pretty well for me to start off new project pretty easily. In the next article, I will publish an actual mini application with the additional features like HTML5 boilerplate integration in addition to a core bootstrap for the templating structure as well.
0 notes
dipankarname · 12 years
Text
Node.js on FreeBSD
The above works like a charm when it comes to installing nodejs on FreeBSD !
0 notes
dipankarname · 12 years
Text
haiku as your desktop
For all the people who have been following the haiku project, it is truly playing out as a viable alternative to the desktop wars with Linux. In my opinion there were only a few that could have beaten the windows dominance, one was the photonGUI and then the BeOS. Turns out the Mac has won a huge chunk of the market, while BBM is killing the photonGUI slowly but steadily. Back to the Haiku story, i recently installed it on my own machine and can vouch for the fact that it is pretty decent. To make it something that i want to use consistently, I would want a couple of things [hopefully, I will get sometime to work on them myself]
Better browser - can live with FF or chrome or Opera
An email client like claws
Nicer terminal application
Eclipse [This should be possible with JVM working on Haiky finally]
VLC / SMPlayer
That completes more or less what I actively use on my windows machines.  Lets hope out of this emerges the true windows OSS competitor that everyone is looking forward to.  
0 notes
dipankarname · 12 years
Text
Distributed transactions
Sat in on a fascinating discussion on distributed transactions, its very clear how most people seem to underestimate at what loads contention starts to happen. Have been hanging out with redis over the last couple of weeks and its obvious that you can do quite a few things with it! Good stuff antirez... Read up a couple of things http://nosqlsummer.org/paper/life-beyond-distributed-transactions http://redis.io/topics/transactions
0 notes
dipankarname · 12 years
Text
Compiling B2G on ubuntu 64bit
Been working on compiling B2G aka Firefox OS on ubuntu 64bit ! There have been some hiccups along the way, but a full post coming up on that soon
0 notes
dipankarname · 13 years
Text
Using Motorola E6 or A1200 with kannel
So for all the people who do not want to learn AT commands to get their old MotoRockr [aka motorola e6] and A1200 working with your kannel setup to send/receive MMS and SMS here is the kannel.conf and modems.conf. The important part is the modems.conf which has the correct AT commands to receive SMSes. kannel.conf modems.conf
0 notes
dipankarname · 14 years
Text
Support and PHP
So got to setting up OTRS, neat email based support system and it works pretty well it seems. There are some issues setting it up initially, but it integrates very well into your support email ! Should have thought of using it for kwippy once i think about it he he. Just managed to get PHP compiled from source with php-fpm patch on it, the configure string was as follows ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-pgsql --with-curl --disable-debug --with-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-libxml-dir --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-mysql --with-gd --with-mysqli --with-jpeg-dir --with-freetype-dir --with-png-dir --with-pdflib Though on debian getting GD with JPEG requires the open jpeg library [not the other jpeg lib]. Thats after going through the compilation a couple of time ! Also planning to move my server to a better setup, running out of memory right now.
0 notes