tag:blogger.com,1999:blog-107941322024-03-13T07:34:29.362+05:00Adnan SiddiqiLet's get technicalUnknownnoreply@blogger.comBlogger32125tag:blogger.com,1999:blog-10794132.post-69449118973627832742012-11-16T18:13:00.002+05:002012-11-16T18:13:54.968+05:00mysql.sock SYMLink and sudo on MacOSX<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<br /></div>
<div>
Today I was trying to configure MySQL driver with Python on my Mac Machine. Everything went smooth but on connecting MySQL I was getting socket error as driver was pointing out to <b>/tmp/mysql.sock</b></div>
<div>
<b><br /></b></div>
<div>
I made symlink of .pid file and it worked but when I used similar <b>ln-s</b> command for making symlink. It did not give any error. On doing ls-la it showed as well but on doing again it got removed. It was weird. On further investigation I learnt that .sock symlinks can't work without root access.</div>
<div>
<br /></div>
<div>
Moral of the story. Use Sudo where ever you can! :)</div>
</div>
Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-88236791551503076422012-08-05T16:14:00.000+05:002012-08-05T16:14:05.553+05:00How to show Retina Display Images on UIWebView in iOS<div dir="ltr" style="text-align: left;" trbidi="on">
If you are making a mobile web app or embedding a UIWebView in your native app, showing @2x.png images is not as straight as it is to use in UIImageView. If you use an Image in UIIMageView then it automatically picks @2x image for iPhone 4 and greater but it does not work if you are calling images from CSS that loads in UIImageView, for that purpose you have to use <b>webkit-background-size</b><br />
<b><br /></b><br />
<b>For example visit here:</b><br />
<b><br /></b><br />
<b><a href="http://stackoverflow.com/questions/3652930/high-resolution-images-in-a-uiwebview">http://stackoverflow.com/questions/3652930/high-resolution-images-in-a-uiwebview</a></b><br />
<span class="Apple-style-span" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; white-space: pre;"><code style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pln" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;"><br /></span></code></span><br />
<span class="Apple-style-span" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; white-space: pre;"><code style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pln" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;"><br /></span></code></span></div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-14078282282453933872012-04-29T05:39:00.000+05:002012-04-29T05:39:22.688+05:00Making my Home Page Open Source<div dir="ltr" style="text-align: left;" trbidi="on">
Home Page is not like a product which one visits and consume every day. Specially when it's not a blog or belongs to a techie *Yikes*<br />
<br />
For the past few years, yes years, I had been thinking of making my personal site. Most of the stunning sites I liked were actually made by designers or the people who do have aesthetic sense. Sadly I don't have one. Recently when I bought Kadavy's <a href="http://designforhackers.com/">Design for Hackers</a> then it gave a bit of hope that designing is something which is actually Hackable. It's a wonderful book I must say and worth spending $24. If you're like me who drools on lovely designs and wish to make one then this book is for you. I got a good excuse to try my learnings on my own home page and here we go!<br />
<br />
<div style="text-align: center;">
<a href="http://adnansiddiqi.com/">http://adnansiddiqi.com</a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
While I was planning for the changes I had three things in mind:</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<ol style="text-align: left;">
<li>Easy to access</li>
<li>Easy to maintain</li>
<li>Easy to port</li>
</ol>
<div>
<br /></div>
<div>
<b>Easy to access:</b></div>
<div>
<b><br /></b></div>
<div>
For making it user friendly and simple I tried to transfer my recent learning about UX and typography on my site. The attempt is definitely not perfect but I think it's better than <a href="http://adnansiddiqi.com/v1.html">version 1</a> and <a href="http://adnansiddiqi.com/v2.html">version 2</a>. The entire site is based on jQuery and CSS2/3. jQuery and tried to use what Kadavy teaches about ratios like 3:4 etc and used it in font size selection. I also used pretty much whitespace, something I never realized before. AJAX is heavily used in it. Infact I should say AJAY has been used, Y->YAML. In order to make it SEO friendly I implemented <a href="http://googlewebmastercentral.blogspot.com/2007/11/spiders-view-of-web-20.html">Hijax</a> which was even recommended by Google to make your AJAX based site crawl-able.</div>
<div>
<br /></div>
<div>
<b>Easy to maintain:</b></div>
<div>
<b><br /></b></div>
<div>
I am quite a lazy ass and enhancement on my own site after 4 years is the classic example of it. Since one of the main motive was to make it easy to maintain. In past I made an attempt to make this site DB-driven but failed as I found it quite a cumbersome to main. I then decided to keep it text file driven as this is the most handy way to keep things in shape; no hassle of tables,user/passwords. Thus I decided to go for INI files. <b>INI files</b> in my opinion were best choice for such site thus I started writing code and completed it but when I tried to run the code on main server, BoOOM! It got exploded. The reason was incompatibility of PHP versions which had broken <b>parse_ini()</b> implementation in older versions of PHP. It was quite disappointing for me as I'm not always a great finisher and I start getting irritated when projects duration starts exceeding. I started looking for alternative. I found <a href="http://www.yaml.org/start.html">YAML</a>. YAML's clean and natural syntax made me to fall in love with it. It was also a bit like INI files having assignment operator for values. I made a quick search to find out some PHP parser for it. Luckily I not only found a parser but it also had feature to convert entire YAML file into an <b>Associative Array</b>. <a href="http://code.google.com/p/spyc/">SPYC</a> is an awesome YAML parser in PHP and quite fast too. Since I was already getting an output in <i>Array</i> form. All I needed to build same array. It took me a while to figure out the syntax of YAML and SPYC code to form the array. In next 10 mins the entire site was based on YAML. Since I wanted to make entire changing process simple, I also tried to keep site formatting off the HTML files. Markdown was the answer. The clean and cute syntax of Gruber's <a href="http://daringfireball.net/projects/markdown/syntax">Markdown</a> made the entire formatting process quite easier. Michel F's <a href="http://michelf.com/projects/php-markdown/">PHP Markdown</a> made life easier. So the Markdown is used in YAML file an PHP Markdown then translates it into legitimate HTML syntax. So easy, No?</div>
<div>
<br /></div>
<div>
<b>Easy to port:</b></div>
<div>
<br /></div>
<div>
The heavy usage of Markdown and YAML based file made it quite easier for me to transfer entire site here and there. In future if I have to make changes in my <a href="http://adnansiddiqi.com/cv.html">CV</a>, all I will do is to edit YAML file, no change in markup files, no hassle about DB conenctions. Infact I can easily port it on any other domain I want. It's all about transferring of files.</div>
<div>
<br /></div>
<div>
<b><span class="Apple-style-span" style="font-size: large;">Why Open Source?</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-size: large;"><br /></span></b></div>
<div>
I remember the days when I wanted to make a simple website to show off my portfolio. I could not afford templates from online resources neither I could ask buddy to make a site for you. <b>On top of that I wanted to learn something new, now this is something which matters</b>. I spent a week on it, I could invest it somewhere else but heck! it gave me opportunity to find out and try some things new, it does not give me an excuse to keep my learning to myself. So instead of writing endless blog posts about what I did or not, I prefered to release code for outrworld, at one side developers can learn about new things but they can also make changes and use it for their own sake. The code released under MIT License which gives enough freedom for everyone. The other beauty of open source is that you can use some good brains to finish the things where you have left. The code I released do have issues like non-IE compliant. Yeah I simply directed to <a href="http://adnansiddiqi.com/noie.html">http://adnansiddiqi.com/noie.html</a> rather than adding checks in my CSS. I did not hesitate this on the basis of my current Analytics and <a href="http://gs.statcounter.com/#browser_version-ww-monthly-201201-201203-bar">last 3 months </a>Browser stats gave me enough courage to dump IE for other browsers. So no IE for a while though some guys told me that IE10 is quite descent and covers many modern things. Anyways, lets leave for the next or let someone else pick it up.</div>
<div>
<br /></div>
<div>
Last but not least, giving credit where it's due. <a href="http://stackoverflow.com/questions/10342152/firefox-click-event-not-calling-on-span-tag/10342477#10342477">Musa</a> for sorting out <a href="http://stackoverflow.com/questions/10342152/firefox-click-event-not-calling-on-span-tag">missing click event on FireFox due to overlapping of elements </a>and <a href="http://sampsonblog.com/">Jonathan's</a> 11th hour help to figure out why <a href="http://stackoverflow.com/questions/10364763/my-site-not-opening-in-ie">site was throwing 404 </a>on IE. Thanks guys!</div>
<div>
<br /></div>
<div>
I can just hope this long rant will be helpful for others. Oh Yeah! One thing, I forgot to give the Github link so here it is!</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="https://github.com/kadnan/HomeSite/">https://github.com/kadnan/HomeSite/</a></div>
<div>
<br /></div>
<div>
Happy Coding! :-)</div>
</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-15246959352079433232012-04-21T16:56:00.003+05:002012-04-21T16:58:35.050+05:00Awesome CSS Generators<div dir="ltr" style="text-align: left;" trbidi="on">
While working on my home page, I found an interesting site where the guy generously listed down some cool CSS generators. The one I liked a lot was CSS gradient generator by colorZilla.<br />
<br />
<a href="http://www.aoclarkejr.com/10-really-awesome-css-generators.html">http://www.aoclarkejr.com/10-really-awesome-css-generators.html</a></div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-10003163456692590742012-04-17T10:47:00.000+05:002012-04-17T10:47:07.736+05:00jQuery theme roller<div dir="ltr" style="text-align: left;" trbidi="on">
jQuery UI provides a default .css file with the package but what if you want to change color scheme etc? One way to do is to override classes manually. There's a neat option for the purpose; use <a href="http://jqueryui.com/themeroller/">jQuery theme roller</a>. Theme Roller provides a simple to use interface for customization of default jQuery themes. You can also select pre-defined themes and customize them. A really awesome tool I must say.</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-71330688800250040702012-04-08T04:28:00.000+05:002012-04-08T04:32:02.739+05:00Simplest way to display Array Key and Values in PHP<div dir="ltr" style="text-align: left;" trbidi="on">
Displaying the values of an associative array is something which you do every other day. At times you need to display both key and value of the associative array. One of the methods is to loop thru the array var and format the string by concatenating key and value. PHP provides another easy way to achieve this, infact it's a one liner solution and the solution is, use <a href="http://www.php.net/http_build_query">http_build_query</a>. It takes an associative array and then convert it into query parameter. Based on default settings it uses <i>&</i> as a separator. What if you want to show data in the following format?<br />
<br />
<blockquote class="tr_bq">
<i>Name=Adnan</i><br />
<i>Nationality=Pakistani</i></blockquote>
<br />
By using the following code you can achieve the desire result.<br />
<br />
<br />
<pre class="brush: php">$user = array('Name'=>'Adnan',
'Nationality'=>'Pakistani'
);
echo http_build_query($user, '', '\n');
</pre>
The third parameter is used as a separator. Make sure you don't omit the second parameter
</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-90705472569042128362012-03-17T15:50:00.001+05:002012-03-17T15:50:38.534+05:00Facebook: An error occurred please try again<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Working on Facebook APIs is quite an interesting experience but at times it could become pain in neck when you find no proper error message from the platform.<br />
<br />
Recently I started working on an Fb app. I had made a testing account where I put the code so that client keeps seeing the progress. Last night I pushed the changes from local to remote site and made all necessary changes; Client Key, Secret Key, putting remote <b>redirect_uri</b> but I kept getting error:<br />
<br />
<blockquote class="tr_bq">
<i>An error occurred please try again</i></blockquote>
I was really not being able to figure out what's going wrong despite of putting all things correct in my PHP script, the issue was that the Redirect URI or Site. See the image Below:<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4hcJOes6-0qGRMVEfYjwjtknrTLlQ3IoLMyZQKDFryqgjphIk145JxdxJo6SiEIPqc3OigKEZrKgXBtAGC-0IWWLu5L0-JNDfMZGn9HVxR82-AiYrh1YZh_bBZKdfYQXm-3_cOw/s1600/Screen+shot+2012-03-17+at+3.54.11+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="57" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4hcJOes6-0qGRMVEfYjwjtknrTLlQ3IoLMyZQKDFryqgjphIk145JxdxJo6SiEIPqc3OigKEZrKgXBtAGC-0IWWLu5L0-JNDfMZGn9HVxR82-AiYrh1YZh_bBZKdfYQXm-3_cOw/s320/Screen+shot+2012-03-17+at+3.54.11+PM.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
No matter what url you use for redirection in your code, it MUST be the URL mentioned here.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
It took me a while to figure out but finally I made it. Hope it would be helpful for some :D</div>
</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-8966530003489062752012-03-10T13:06:00.001+05:002012-04-08T04:27:53.118+05:00Optional Parameter in Javascript<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Javascript does not <i>officially</i> allows you to declare optional parameter but there is still a way you can handle them. Here we go!<br />
<br />
<br />
<pre class="brush: jscript">function generateForm(id)
{
var editable = false;
if (arguments.length == 1 && typeof id!= "undefined")
{
editable = true;
}
if(!editable)
{
alert("add form");
}
else
{
alert("edit form");
}
}
</pre>
</div>
</div>
As you can see, what all I did that I checked the length of given arguments and then also checked whether there is undefined type, there would be an undefined type if you provide no parameter. By simply checking this you can implement optional parameters</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-38838106162747048732012-02-20T02:22:00.000+05:002012-02-20T02:29:45.240+05:00Ruby on Rails: Implementing should_not_have_content in CapyBara<div dir="ltr" style="text-align: left;" trbidi="on">
CapyBara is an awesome tool for testing purpose. It provides you way to apply BDD while writing Rails code.<br />
<br />
In Manning's Rails3 in Action. In Chapter 4 one of the rules is:<br />
<br />
<blockquote class="tr_bq">
And I should not see "Standards compliance"</blockquote>
The whole view_tickets.feature file is given below:<br />
<br />
<br />
<blockquote>
Feature: Viewing tickets<br />
In order to view the tickets for a project<br />
As a user<br />
I want to see them on that project's page<br />
Background:<br />
Given there is a project called "TextMate 2"<br />
And that project has a ticket:<br />
| title | description |<br />
| Make it shiny! | Gradients! Starbursts! Oh my! |<br />
And there is a project called "Internet Explorer"<br />
And that project has a ticket:<br />
| title | description |<br />
| Standards compliance | Isn’t a joke. |<br />
And I am on the homepage<br />
Scenario: Viewing tickets for a given project<br />
When I follow "TextMate 2"<br />
Then I should see "Make it shiny!"<br />
And I should not see "Standards compliance"<br />
When I follow "Make it shiny!"<br />
Then I should see "Make it shiny" within "#ticket h2"<br />
And I should see "Gradients! Starbursts! Oh my!"<br />
When I follow "Ticketee"<br />
And I follow "Internet Explorer"<br />
Then I should see "Standards compliance"<br />
And I should not see "Make it shiny!"<br />
When I follow "Standards compliance"<br />
Then I should see "Standards compliance" within "#ticket h2"<br />
And I should see "Isn't a joke."</blockquote>
<br />
<br />
In order to implement Should not have , you just apply following simple step in steps file:<br />
<br />
<blockquote class="tr_bq">
Then /^I should not see "([^"]*)"$/ do |arg1|<br />
page.should_not( have_content(arg1))<br />
end </blockquote>
<br />
Upon running cucumber:ok command it should execute <b>And I should not see "Standards compliance"</b> or any other string matches the criteria properly</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-23257821475469778452011-12-16T23:53:00.002+05:002011-12-16T23:53:24.639+05:00Removing MacPorts completely<div dir="ltr" style="text-align: left;" trbidi="on">
Macports is a utility to install tools on your MacOS machine. Incase if you want to remove macports completely then this <a href="http://guide.macports.org/chunked/installing.macports.uninstalling.html">post</a> would definitely be your savior</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-64959020192018084282011-11-17T21:39:00.001+05:002011-11-17T21:40:58.788+05:00Unpacking the PACKER scripts<div dir="ltr" style="text-align: left;" trbidi="on">
PACKER by Dead Edwards is an awesome tool to pack your JS files to make it difficult to read. It is good when you are giving away your code to someone else but at times you want to unpack it in absence of backup. Something which happened with me. Thankfully I got an awesome tool which unpack PACKER file quite well. SO here it is. Enjoy.<br />
<br />
http://www.strictly-software.com/unpacker</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-40282273010718467002011-10-02T23:13:00.000+05:002011-10-03T00:34:34.045+05:00MySQL to JSON on Github<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
This morning I tried to <a href="https://plus.google.com/118197810020432218051/posts/CvUmajf6cR9">fiddle</a> with <i><b>Git</b></i>, a version control system by Linus Trovals. <b>Github</b> is a social coding website which has definitely beaten sourceforge.<br />
<br />
For long time I had been thinking to test it out and transfer my only open source contribution, <a href="http://www.phpclasses.org/package/3195-PHP-Convert-data-from-MySQL-query-results-into-JSON.html">MySQL2Json</a>, a PHP class to convert mysql resultset into JSON. The class actually released in 2006. At that time there was no built-in support of JSON encoding in PHP.<br />
<br />
Lots of people who used it asked me to move it to Github but I was not getting time to focus on it. This morning I finally did it. The URL of the code is given below:<br />
<br />
<br />
<a href="https://github.com/kadnan/MySQL2JSON">https://github.com/kadnan/MySQL2JSON</a><br />
<br />
<br />
I am not so good at Licensing thing. The prior code released under PHP License. If it allows you to contribute then do it otherwise let me know. So make a fork and improve it, fix it if necessary.<br />
<br />
Happy coding.<br />
<br /></div>
Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-15804514872146990102011-09-22T01:35:00.001+05:002011-09-22T01:35:30.903+05:00G-: A Chrome and Firefox extension for Google Plus notification removal<div dir="ltr" style="text-align: left;" trbidi="on">
Google Plus is getting popular. One of the killing feature of G+ is the notification bar that works on all Google sites. Since the bar keeps you notified about latest updates on your account, it could also become the reason of distraction while you are at workplace. In order to cater that I made a simple script, called G- which would remove the red notification button and help you to concentrate on your work. YOu can download it from <a href="http://userscripts.org/scripts/show/112365">here</a>. It would work on both Chrome and Firefox.</div>
Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-35174990258896847962011-09-21T11:36:00.000+05:002011-09-21T11:36:19.580+05:00PHP: Get first key in Associative Array<div dir="ltr" style="text-align: left;" trbidi="on">
If you want to get the very first key in associative array then use <b>Reset </b>and key method to get the key. <b>Reset</b> brings the pointer on first index and key returns the key name. Code snippet given below:<br />
<br />
<br />
<code>
$shapes = array("Box" =>"Square","Moon" => "Circle");
<br />
//Set the internal pointer of an array to its first element
<br />
reset($shapes);
<br />
//get the first key that is "Box"
<br />
$keyname = key($shapes);
<br />
</code>
</div>
Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-74777349313497064002011-08-31T12:23:00.003+05:002011-08-31T12:32:45.260+05:00How to find Query Source in MySQL general LogMost of the time similar queries are used in different modules of the code-base. At times it gets difficult to find out the page where buggy or slow query is being executed. MySQL provides the option of logging slow and general queries in files. In order to record the source of the executed query it is best that you append a string in query which is then being executed via mysql_query() function of PHP.
<br />
<br /><pre class="lang-sql prettyprint"><code><span class="pun"></span></code><blockquote><span class="pun">$</span><span class="pln">sql </span><span class="pun">=</span><span class="pln"> </span><span class="str">"-- Executed via yourfilename.php:
<br /> SELECT * from table;"</span><span class="pun">;</span><span class="pln">
<br /></span><span class="pun">$</span><span class="pln">resulr </span><span class="pun">=</span><span class="pln"> mysql_query</span><span class="pun">($</span><span class="pln">sql,$connection</span><span class="pun">);</span></blockquote><span class="pun"></span>
<br /></pre>
<br />
<br />By doing this you can now find out where your query got executed. Easy and handy, No? :-)
<br />Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-87707373455072409162011-08-28T16:07:00.002+05:002011-08-28T16:15:18.048+05:00RevivalI remember how I started out this blog as a technical blog but later moved my technical rants to <b>http://weblogs.com.pk/kadnan</b> (<i><span class="Apple-style-span" style="color:#FF0000;">which is dead now)</span></i><div><i><span class="Apple-style-span" style="color:#FF0000;">
<br /></span></i></div><div>For past few weeks I had been thinking to start sharing my technical experience I encounter every day at workplace or at home while working on my personal projects or client based projects. For last two years I am not so active in blogging stuff. Specially after getting married and having a son, it got quite difficult to cope up with many things. Change of priorities made me to abandon many things which were kind of <i>part of my life</i> in past.</div><div>
<br /></div><div>I have not quit habit of sharing, thus I use micro blogging tools now for this purpose like Twitter,G+ etc but I think there are still such things which needs to say more. This blog, I am re-opening with the intention that I would share all or most of my technical encounters I face every day.</div><div>
<br /></div><div>Stay tuned</div>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1110226458718223812005-03-09T02:28:00.000+05:002005-03-08T01:15:11.070+05:00MSN trojantoday i accidently clicked the link which my friend send on MSN,the file was omg.pif..Thanks God i had closed the IE immediately othwise....<br /><br />any way to getrid of this?Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1110225865878265912005-03-08T14:10:00.000+05:002005-03-08T01:04:25.880+05:00Reasons why Reiser4 is great for you:due to <a href="http://www.namesys.com/v4/v4.html">following </a>reasonsUnknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1110223693693716922005-03-08T13:34:00.000+05:002005-03-08T00:28:13.696+05:00GoogleDesktop Final Release<a href="http://google.com">Google</a> has finally released the final version of its <a href="http://desktop.google.com">Desktop</a> version. Google comes more closed to developers/programmings by provding <a href="http://desktop.google.com/downloadsdksubmit">API</a> to use GDS(Google Desktop Search) in your application ,you can check documentation <a href="http://desktop.google.com/developerguide.html">here</a>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1110131607998025592005-03-07T12:06:00.000+05:002005-03-06T22:53:28.000+05:00I can`g getinto CP websiteI have been trying to getinto <a href="http://codeproject.com">Codeproject</a> website but its giving me Unknown host error,i am thinking to call Helpline of my frigging <a href="http://paknet.com.pk">ISP </a><br />its makig me frustrated,i cant live without CP :(Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1110129042344198562005-03-07T11:14:00.000+05:002005-03-06T22:10:42.346+05:00Creating an administrative install point for the .NET Framework, a service pack and a hotfixread <a href="http://weblogs.asp.net/astebner/archive/2005/03/05/385971.aspx">here</a>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1109845684056354172005-03-04T04:25:00.000+05:002005-03-03T15:28:04.056+05:00MSIL IDEHi<br /><br />i am writing here after a week or so,been busy in solving different things,which i will describe later<br /><br />anyway here i am to let you guys know about a good MSIL editor,link is given below:<br /><br /><a href="http://ilide.aspfreeserver.com/default-en.aspx">http://ilide.aspfreeserver.com/default-en.aspx</a><br /><br />-adnanUnknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1108898234105761742005-02-21T05:15:00.000+05:002005-02-20T16:17:14.106+05:00Two Kinds of DevelopersMark is trying to tell readers about different kinds of developers,read yourself what`s he trying to <a href="http://diveintomark.org/archives/2004/08/16/specs">say</a>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1108896869996509422005-02-21T05:06:00.000+05:002005-02-20T15:54:29.996+05:00nice C# tipsCheck <a href="http://www.personalmicrocosms.com/html/dotnettips.html">this</a> outUnknownnoreply@blogger.comtag:blogger.com,1999:blog-10794132.post-1108808724423554462005-02-20T04:33:00.000+05:002005-02-19T15:44:41.746+05:00Compressed FileSystem(CFS)I have been thinking /willing of a Compressed File system which can work similar to MP3 mechanism(i am not 100% aware of Mp3 mechanism but heard that it decompresses the file during playing and then it compresses again) ..<br /><br />what I mean to say that,that Applications are deployed in compressed format(say have extension .cmp) on User machines,i am not talkig about Zipping the EXEs or MSI stuff in Zipped format..what i mean that instead of making simple MSIs or Setup Exes who get extracted on client machine during installation, the Compressed program gets installed on client machine with a shortcut link on Desktop or in start menu,the link will point to .cmp file which will initially opene the Header section or Base system section for the user (it could be a GUI or a Command line application..whatever)the base system system will have all necessary options which are part of that system.Whenever user selects some particular option of the system the files(dlls or whatever) of that particular section will get loaded only,and when the user closes that particular section,e.g Form Dialog)the files will get decompressed again)<br /><br />Well will be wondering how come a single Compressed file could do all this?well i think that associated DLLs or exes could be loaded in memory to perform required tasks,it involves temporary Assembly registration in GAC and Registry,we could add references of all files who are packaged in .cmp format in Registry,so that they can be refer during uncompression of required files..<br /><br />once the dialog form is unloaded,the files will also get removed from hardisks and from registry as well as memory..<br /><br />these are just crazy thoughs..not sure how it could be done..what i know its not impossible,maybe we cant achieve 100% results but i think 70% could be achieved and 100% if filesystem itseld supports the mechanism,custom mechanism might not get so much successUnknownnoreply@blogger.com