Bipin's Web

[ Log On ]

Blogs

Jquery DataTables 10/20/2011
A very useful jquery plugin to display data. http://www.datatables.net
Православни икониикониAfter getting started with ASP.net MVC , watching the tutorials I ended up creating quite few “Hello world” MVC applications. Then added few database into it. It seemed cool and easy. But going a bit beyond hello world, there is a different wild world of techniques and technologies.Trying to find some best practices I [...]
Scenario: QR images has been use for ease of opening URL’s in phone. There are terribly long ugly URLs which you have no way to copy except u really copy paste or firefox sync or XYZ sync it. Or you could copy the URL and generate a goo.gl link and then QR image from there. [...]
Started with a hopeful new HTML5 FileReader API and ended with a frustrating results, finally ended up with accepting this open source script. https://github.com/valums/file-uploader It Works.
Facebook C# SDK is on nuget with package names Facebook, FacebookWeb, FacebookWebMvc But still have some bugs
Found here http://stackoverflow.com/questions/3357553/how-to-store-an-array-in-localstorage HTML5’s window.localStorage can store anything. But for storing an array it’s a bit tricky. To store an array suppose: var names = [“A”,”B”]; Storing : localStorage.setItem("names", names.join(‘|||’));  Retriving : var names = localStorage.getItem("names").split(‘|||’);
  suppose “data” contains an array of object : {"data": [ { "id": "1", "name": "B" }, { "id": "2", "name": "A" }] } Then the sort() method of that array can take a custom function just like IComparer in C# and sort the array in-memory.   var data = doc.data.sort(function(me,him){ return me.name.localeCompare(him.name); }); This [...]
Was about to write code for RSS thingy but then I found this : In Namespace : System.ServiceModel.Web   XmlReader reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml"); SyndicationFeed feed = SyndicationFeed.Load(reader);   MSDN source : http://msdn.microsoft.com/en-us/library/bb515814%28v=VS.90%29.aspx
Google’s URL shortening service http://goo.gl is the most fastest service available. It had been released before operable only from google toolbar and no API, but some people did some hack and extracted the JavaScript that it used. Now, it does provide a neat API. With goo.gl we can not only create short url but also [...]
My blog was down for almost 10 days now. My web hosting moved my websites to new system to support a new control panel so that I can ….. do few things better way like switching between .net versions for ASP.Net. Support tickets went back and forth but sadly they did not take care of [...]
  If you landed to this blog then you must have got above exception. if not :       When you create a facebook app, and try the first example given in facebook php sdk, this error occurs. It’s weird and annoying coz this is where you start the development of the application. The solution: found [...]
  First, to create a like button for a static URL: 1. goto http://developers.facebook.com/docs/reference/plugins/like 2. Enter URL and other details 3. Get code 4. Put it in your web page That takes care of how to put a like button for 1 page. Now for dynamic pages, where page’s content is changing and you would [...]
матрациSounds fun? Well it was fun to me at least. Before I forget that I even did this, I thought I’d write about it. 1. Create a bitmap image 2. Create a graphics object from Bipmap image 3. Draw text using graphics object onto that bitmap image 4. Save bitmap image into desired format using [...]
/* Write a function that given a string of digits and a target value, prints where to put +'s and *'s between the digits so they combine exactly to the target value. Note there may be more than one answer, it doesn't matter which one you print. Examples: "1231231234",11353 -> "12*3+1+23*123*4" "3456237490",1185 -> "3*4*56+2+3*7+490" "3456237490",9191 [...]
Day 3: Previously, I tried web.py. It’s cool. But my hosting does not provide python CGI support. Now what?  I had heard that google’s cloud thing –> google app engine , that supports python. So I gave it a try, - created google app engine account - downloaded sdk - ran thru the “getting started” [...]
cl1p.net is a well known internet notepad. It has great features and use. Comes very handy and useful.   But I felt I can make that thing too . So I made it. http://notes.bipins.net (beta) Integrated with TinyMCE. One can: 1. Save and Retrive Its on beta and I’ve used SQLite for quick POC ( [...]
Python guru used to tell me python is nice, python is easy. I should have listened to him then. But anyway now i felt I had time and I can or I shoud? ( should I ?). I should have actually. At least I should have tried to understand the “user creation script” made by [...]
There is no excerpt because this is a protected post.
Q). Given a password : Write an algorithm to print all possible combinations of that password. /* A non recursive approach to the problem and similar problems which has to generate permutation of certain set of characters. The idea here is to first find the number of possible combinations of output. Say, n is the [...]
How would i implement my own printf() ? well, using stdarg.h we could create a function that can take any number of parameters. Then just parsing through each argument and writing it into standard output. http://www.careercup.com/question?id=139667&form=comments   #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include<string.h> #define STDOUT 1 #define MAX_INT_LEN 10 //function foo taken from manpages [...]