Blog

  • How to remove new folder exe or regsvr exe or autorun inf virus

    I want to tell you a story, two days back i got affected by this virus very badly as it eat up all my empty hard disk space of around 700 MB 🙁 .

    I was surprised that my most reliable friend Avast, for the first time failed me in this war against viruses but then again avg and bitdiffender also failed against it. This virus is know popularly as regsvr.exe virus, or as new folder.exe virus and most people identify this one by seeing autorun.inf file on their pen drives, But trend micro identified it as WORM_DELF.FKZ. It is spreading mostly using pen drives as the medium.

    New folder.exe virus

    Well, so here is the story of how i was able to kill the monster and reclaim my hard disk space.

    Manual Process of removal

    (more…)

  • akeditable: Jquery inplace editor

    Those of you in hurry to download the plugin or source can download it from plugins page of akeditable at jquery .

    akeditable: Jquery inplace editor

    This is the plugin based on jEditable plugin created by Tuupola and Dylan Verheul. The purpose of create this plugin was to specifically solve the problem that i was facing, ie to give my users option button to save and or cancel, instead of using enter to save the content.

    I will not say that akeditable is any improvement over jEditable, which is far better then what i have done. akeditable was meant to be used with situations similar to the way i have used it in celsias project or people section.

    It works in exactly same fashion as jEditable, ie you click on the text to edit or a link and it converts the area into a from. Check out the live demo.

    How To Use It

    1. It is very simple, just call the akedit on click function of the element you want to convert in to editable area with the ID of the element.
      <div id="editme" onclick="akedit('ajax.php?mode=eg1','editme',{
      type : 'textarea',
      name : 'usercomment',
      width: '232px',
      height: '80px',
      submit:'save'
      });"> THIS IS EDITABLE ON CLICK
      </div>
    2. Parameter to akedit function is the url: where you want to post the form data, the id of the element you want to convert into editable area and settings as hash like the value for submit button and other stuff.
      akedit('ajax.php?mode=eg1','editme',{
           type : 'textarea',
           name : 'usercomment',
           width: '232px',
           height: '80px',
           submit:'save'
      });
    3. That’s it you are done.

    Processing On Server

    1. you get the post data as
      1. id, the id of the div you were editing and,
        id	editme
    2. <name that you specified in the setting> , which contains the value that user typed in the textarea or textbox.
      usercomment	THIS IS EDITABLE ON CLICK i added this

      Update(25 August 2009):Released the new version 1.1 of the plugin, and also made it compatible with jQuery 1.3.x

    3. TubeSpy by Ajaxonomy

      Tubespy is a jQuery application that can be used to see what people are watching on youtube now. This application is created by cool guys at Ajaxonomy Labs they are also the creator of del.icio.us Spy, which is open source and you can download the source code here.

      It is built using jquery framework, UI library and youtube API. It shows how easy it is to build cool application with jquery.

      Check out the Tubespy here . Read more about Tubespy here.

    4. akslideshow

      This is a simple jquery implementation of JonDesign’s Smooth SlideShow Library . It aims only to replicate the timed mode feature of jon’s plugin.

      This is an early alpha release and it works only on firefox now in Beta and it works with both firefox and IE. check out the demo here. You can download the plugin from http://code.google.com/p/akslideshow/downloads/list .

      It has been tested with jquery 1.2.3.

      How To Use It

      1. first include the stylesheet
        <link href="akslide.css" rel="stylesheet" type="text/css" />
      2. now include the jQuery and akslideshow.js file
        <script src="jquery-1.2.3.min.js" type="text/javascript">
        </script>
        <script src="jquery.akslideshow.js" type="text/javascript">
        </script>
      3. We will initialize the gallery now, for that we need to pass three parameters
        1. an array with list of image paths to be used for slideshow
          var imglist=new Array('1.jpg','2.jpg','3.jpg','4.jpg','5.jpg');
        2. two more arrays with description and title in same order in which they need to be displayed.
          var caption=new Array('A Dove Amongst the Host?','Natura','the same blooming tree again','Refreshed','P1000018');
          var titles=new Array('seeks2dream','fabrizio.pincelli','aatual666','seeks2dream','munness');
        3. and a code to initialize the slideshow
          $(function(){
          $('#gallery').initSlideShow({img:imglist,cap:caption,title:titles});
          
          });
      4. finally we need to have a div with id specified above for holding the slideshow.
        <div id="gallery" >HERE GALLERY WILL COME</div>

      Still To Do

      1. make it work in IE 6 and above
      2. sliding needs to be smooth
      3. center the image properly, instead of left or right alignment
    5. New Zealand Daylight Savings Time (DST) has changed

      just wanted to post a quick note about this, originally it was supposed to finish on 16th march but it has being extended  to 3rd April.

      if your php script is giving you one hour late time then here is the solution

      just update your timezone database from  http://pecl.php.net/package/timezonedb

      you might need to compile it for your system, alternatively you can also update the php to it’s latest release.

      here is the link if you need more  info http://pecl.php.net/bugs/bug.php?id=12151 .

      Enjoy!!!

    6. Jquery : An Introduction

      Jquery according to me is javascript++ , a library that enhances the javascript without adding lot of burden to learn some new syntax and or way of coding, other then what you already know of javascript.

      In other words, if you are beginning with javascript and looking for a javascript library that can help you jumpstart your value as javascript developer then look no further then jquery.

      it makes advance javascript programming an easy task for beginners also.

      This is the presentation that i gave at Gnunify’08.


      here are some of the references to kick start your jquery journey.

      1. jQuery Documentation
      2. jquery tutorials for designers
      3. jquery crash course
      4. 50+ amazing jquery example   (could not help but add it)
    7. Joomla 1.0.x : How it works

      I gave this presentation in skills camp pune last year. I am sharing the slides here, in hope some one still find it useful even though joomla 1.5 is released last month.

      In this presentation I talked about how Request flow in a joomla application. I also explained the entity relationship diagram (ERD) of joomla, that i created by reverse engineering the joomla database,  reading the code and off course searching the internet.

      The most difficult part to understand was user rights management part of the database. It is based on phpGACL library, reading their help files helped get clear idea about right management in joomla. Access Control chapter in joomla website also helped.


      and here is the recorded session of same.

      Joomla as a framework

      [utube]3k4ioE9QGG8[/utube]

      (more…)

    8. Enterprise PHP


       

       

       

       

       

       

       

       

      I will not say anything but let Ivo Jansch speak for us in this slide show.

    9. Configuring wireless routers

      Note: if you are looking for the guide to configure it is at the bottom

      Last week we needed to configure linksys wireless router in my office. we thought it would be very straight forward and simple task.

      So got this linksys wrt150 n wireless router and did everything as written in the book(i mean installation manual), and VOILA !!! we had a wireless network. But when we looked closely we realized that neither our internet was shared nor the lan network was accessible.

      Well this put us in a very thought full mode, we immediately asked uncle google what might be wrong, and as expected we found some answers. We tried some of them but to our dismay nothing worked. We tried and tried in doing this simple thing and wasted whole day. I left for the day thinking how we can solve this problem, and hoping my sys admin’s (Rohit, Shane and Kiran) will able to solve it. They never leave anything incomplete.

      We talked to airtel support to see if they can help us, fix the adsl router and our isp connection back, which i had managed to burn before leaving. The guy from airtel got us the connection fast, so we again had our internet back but we were still stuck with our wireless router. Then a bright idea hit in kiran’s head and they talked to Linksys support team and they helped my team configure the router so that we Finally had wireless internet in our office. One problem solved the team called the day off and went home.

      New day new problem, event though internet was working our netwok was not sharing, following the advice we had two different lan network. So again we started working on the problem, this time we went straight to linksys support team, but this time they were not able to solve the problem, so what to do?. This time gopi came to rescue and were able to merge the networks, but we were still not able to share the network. Rohit finally hit home, and he suggested that we connect wireless router to the switch directly.

      Voilla we had the lan connection as well. Now my office is wi-fi enabled and also another good thing that happened is that we have two net connections splitted between wired users, with wireless if one connection goes down or the server it automatically switches to other server, while our wired counterparts have to wait.

      Ok now the real reason for writing this blog was not to tell stories but to show you how to configure the router so that others can configure it easily, exactly the way we wanted to it intially…

      (more…)

    10. Hello world!

      I was thinking about starting a blog, but always “what will i write? who will read?” questions always put me off from starting one.

      Off course i started one http://cancerusism.blogspot.com/ in 2004 itself when blogging was new and i wanted to check what it is. But as is the case with me, i was never too sure what to write their or why to write their. I again started another blog( http://blog.puneitlab.com ) when i had to customize a wordpress for celsias.com blog, that was about company and teamphp, not me.

      I always thought i will start when i have something better to contribute, but i think if i will wait for “something better” i will never start.

      So finally after many years of thinking, i have started writing this blog.

      So wondering what’s it’s going to be about 🙂 wait for another post to come and WE might be able to figure out what i will write.