Sunday, April 3, 2011

One wrong click and all my files gone!

   Currently I am working on an application for syncing folders(yeah I know its a common app,but it's a useful one!).I as usual started could not compile the code in the first time coz of some syntax errors but what followed next was more horrific(for me) and enjoyable(for some).
   In my code I instead of copying the file, wrote the command for moving the file.Now, for the command we need to give a name for the output file. As this is a sync app, I need to give the same name to the output file.Hence, there came a villain named extractname(). It extracted the name Ok but it gave the name in the reverse order! Hence beads.c became c.sdaeb! Also, I forgot to add another '\' at the end of the folder name.
  But, this was a logical error and not a syntax error so it passed without any trouble till I ran it. While running it, I thought that there would not be a major problem and hence selected a not so important folder as the source and a new folder as destination.
  But, fate had something else in mind! Not only did all my files move out of the folder but as I had forgotten to put the extra '\' in place, they all went to the wrong folder and it's not over yet. The files were named like testc.sdaebs and testc.xiptas .I was stunned, confuse and angry over myself. Thankfully, after some debugging I came to know about the horrific mistake I made. Now I have renamed the files and they are at the right places. Also the code is corrected and the basic version of my app is ready.Now some more functionality and the app will be completely ready!

Monday, March 28, 2011

New animation I tried out today

    Right now I am busy working on a website with my friend where we are going to put up all the projects that we have made so far(Exciting !). Well, while making the sidebar for the creators page, I already added the animation of enlarging images(it's still clunky though :(  ) but anyways, there's some animation atleast.
   I thought of modifying my links aswell. I just had the color change effect and nothing else, so I came up with a new effect! I just changed the position of the image as it was hovered on!
  I added 'text-align:center' in the portion a:hover and it worked. You can try it out on my page in the site . The site is still under development so there is no meaning clicking on the links :( but keep in touch it will soon be available

Monday, March 21, 2011

Unique way of Checking Internet Availability

     I constantly try to improve my browser homepage. The most recent addition that I made was adding animation to the links. I had been using the icons of the webpages to show the links.Just using the icons bettered the appearance of the page but I wasn't satisfied (I never am! ). Anyways, so I added animation to the icons. I did not do something special but I just made the icon's size larger when the mouse hovered over it. This task can be done by simply adding this CSS:
.img hover
{
  height:50px;
  width:50px;
}
The initial height and width were 40 px each.

      Anyways, the main tweak that I made was to check the internet availability.Initially I put an i-frame of my blog and hence if the connection would not be available, it would be seen in the frame.But in this trick, if there was no internet connection, the page looked ugly. So, I thought of a new tweak. I put an image at the top of the page and the location of this image was not on my hard-drive but on the internet.In the alt part of the tag, I wrote down "You are not currently connected to the internet". 

<img src="example.com/asdf.jpg" alt="You aren't connected to the internet" />

This tweak, showed my connection status at the top of the page and also, if there wasn't an internet connection, it didnot take away the look of the page.
     But, there is one problem with this technique, chrome doesnot show the alternate text(Why??) .I will find some unique solution for chrome as well but I won't promise anything. Anyways, I am loving this tweak in my firefox and IE browsers. Hope you will like it too.
   Happy coding!

Saturday, March 12, 2011

Chrome A more developer friendly browser

                   I support Mozilla firefox a lot because it is an open-source web-browser. Not saying that it is not good but Chrome is also good. There are many factors where Chrome beats firefox as a better browser. One of those aspects is how easy it is for developers to create new add-ons. Lets face it, The features in built in a browser are never enough for us. Most of us are using some or the other add-on. Thus, making it easy for developers to make new applications makes your browser tick more because you don't know how imaginative/innovative the developers are.
                  Chrome beats Mozilla hands down in this aspect. Mozilla has several add-ons but Chrome has better(thanks to Google) and more in number. The second point is because of the number of developers.
This year, as a part of my ACM project I thought of making some cool Mozilla add-on as I had never used Chrome before.But, while going through the tutorial , I was unable to complete even the sample add-on. After trying for 2-3 times more I gave up on it and eventually moved on and made a windows mobile application.
In December 2010, Google launched the chrome web-store and had a big event. So, I thought of trying out the browser and Wow! how great the feeling was when I went to the link for the webstore. It was full of amazing extensions and so many of them! After using it for a month or so, I got curious and wanted to make one extension for myself. So i went to the google code page for tutorials and found it ridiculously easy compared to the Firefox tutorial(Again thanks to Google).
                I went through different examples and within a week I had my first application ready!Now I have made another simple extension for searching the same term in different search engines and believe me it was very easy to make.No fuss of making several folders for manifest , chrome and xul. Just one folder and you are set.
              I would request the Mozilla people to make the add-on making process a little easier for developers.


Tuesday, March 1, 2011

Firefox 4 by default disables all tab preview Option



On the release of the firefox 4 beta 6, I had blogged about my reviews.But, recently many people were asking me about tab-candy feature of firefox 4. So just while exploring this feature I found out that Firefox had simply disabled one of it's features.
The tab preview option comes disabled by default in firefox 4.The reason maybe that there is already a tab-candy option, where you can do much more than just preview the tabs. The tab-candy feature being more important and dear to the firefox 4 team, they want to give more importance to it and hence have disabled the preview.
I am not against any such step, I just wanted to let everyone know that the tabs preview option still exists and can be enabled by going into about:config and double clicking on browser.allTabs.previews option.
I hope the post will be useful to atleast one or two people.Anyways, there will be more posts from me so stay tuned to this page!


Spread Firefox Affiliate Button

Monday, February 21, 2011

2 changes I want in firefox 4



Last time i wrote about2 lesser known firefox add-ons. This time i will talk about 2 changes i want to see in the version 4.
I know that Firefox beta 12 is about to be released but these are very minor changes and can be done easily.

 The first and foremost is:"Making the Donot Track feature enabled by default"
Everyone is talking about firefox 4 having a donot track option for the sites but we don't know that the feature is by default disabled!
I would like to ask the firefox team that why have you kept the feature of this stature disabled by default. We all know how much we care about the default settings.Mozilla shouldn't think everyone will try and play with such technical aspects of browser.

  The second one is:"Keep Google as default search engine"

After using chrome for a month or so, i was used to writing everything in the omnibox(address bar) and when i typed in a search query, BOOM! bing search result! I was shocked and at first thought that it was because of some add-on but eventually came to know that Mozilla had changed the default search engine to Bing! Why Mozilla why?? Google is so reliable and loved!

I request Mozilla people to make these changes. Google is much better than Bing and unless don't track pages isn't made default, it will be unused and will fail to get the required acknowledgement.
Hope this page reaches to atleast one person who can do something


Saturday, February 19, 2011

2 lessser known firefox features



I assume that you all know what firefox is(u have to be highly ignorant for contrary!).
We all know that firefox and browsers in general are feature rich.Most of the useful ones are by default activated but I don't know why some aren't! I am writing about 2 of them in this post.

The first one is 'Search  as you type'
 For finding some text in browsers, we need to first press Ctrl+F and then type the text.
  Firefox has an inbuilt but by default deactivated feature to search without having to type Ctrl+F. Useful isn't it?
  You can activate it from:
 Tools → Options → Advanced → General → Search for text when I start typing
Here is the link for the Mozilla page on it


The other one is 'smooth Scrolling'
This feature might not produce a quite significant difference to the usefulness of firefox but gives an aesthetic feeling while using it.
As it's name suggests it will smooth the scrolling process to make it feel better. Though not productive it is worth a try and hence should be made a default setting
To turn it on try these steps:
Tools → Options → Advanced → General → 'Use Smooth Scrolling'
Hope you will like using the features.Will join you with more features soon.