Skip to main content

Posts

Showing posts with the label Development

Shut it Down

We all must have had to download bulky files at night, while we are sleeping that is. So we just start the downloads, or schedule them and go off to sleep. Often we defrag our hard disks or take bulky automated backups. Now what if the work is done in say 3 hours? The computer still stays switched on for 4 or may be more hours doing pretty much …well, nothing. What if you would like to shutdown the machine or at least put it to hibernate to save power. Or just to save your machine? Schedule a shutdown. That’s what you will require. I made this kid stuff to make it a simple thing for you. You will not require any special knowledge or experience for using it. It is simple, easy and small. Enjoy Download the Setup file. Unzip the file and run the Setup. After installation start the program. The options are very self explanatory, and you can also Cancel a scheduled Shutdown task by clicking the ‘Abort Shutdown’ Button. The source code is also available to you @ here. Released under

Round your corners

  Many people face a problem when it comes to drawing the controls with rounded corners. So I got down and dirty with some simple drawing and came up with this. All you have to do is to call this Sub Procedure with the parameters passed to it and you are done. Enjoy!   1: Public Sub DrawRoundedRectangle( ByVal objGraphics As Graphics, _ 2: ByVal m_intxAxis As Integer , _ 3: ByVal m_intyAxis As Integer , _ 4: ByVal m_intWidth As Integer , _ 5: ByVal m_intHeight As Integer , _ 6: ByVal m_diameter As Integer , _ 7: ByVal g As Graphics) 8:   9:   10: Dim path As New GraphicsPath() 11: 'Dim g As Graphics 12: Dim BaseRect As New RectangleF(m_intxAxis, m_intyAxis, m_intWidth, 13:

compile Online

  For compiling a C , java or a VB project you need not download and install huge and bulky IDEs or Integrated Development Environments. The Web has everything for you now- nice and easy. All you need to do now is to go to the following site, register and you can create, compile, run and store your projects right on the web. http://compilr.com Languages supported :- PHP C\C++ Ruby Java C# VB The only thing you have to do is to sign up and you will get a 250MB storage space for free. Happy Coding folks!

Another Timer Demo

What this done is simple. When I click on a Button the progress bar will show for 5 seconds and then some other work can be done. Well, here it is. 'Simple Timer demo by Sarthak Ganguly 'Released under GPLv3 Share Alike License.   Public Class MainFrm 'Say 2 seconds is the default timeout 'You can change it from here or make it a 'property with Get and Set statements 'you can increase it to 3,4,5... seconds Dim timeLimit As Integer = 50 * 100 '(milliseconds) Dim temp As Integer = 0 Private Sub clickBUT_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) _ Handles clickBUT.Click 'Start the timer aTmr.Enabled = True End Sub Private Sub aTmr_Tick( ByVal sender As System. Object , ByVal e As System.EventArgs) _ Handles aTmr.Tick 'The timer ticks :) with Step 100ms progBar.Value += OneStep() 'Stop the Timer temp

Enable God Mode in Windows

You can enable “God-Mode,” a term devised by the Microsoft development team, which provides a single place to access all Windows settings without needing to browse options and folders in the Control Panel. To use it: Create a New Folder Rename the folder to God-Mode.{ED7BA470-8E54-465E-825C-99712043E01C} Note that you can change the “God-Mode” text, but the following period and code number are essential. The folder icon will change — double click it to show the God-Mode window: The window shows nearly 50 sections with quick links to configuration options. Strictly speaking, it’s not a God Mode since all the options are available elsewhere. It’s more akin to an “all tasks” list — but you may find it easier than stumbling through Windows numerous screens and panels.   Warning The trick appears to work on both the 32 and 64-bit versions of Windows 7. Vista 32-bit and Windows Server 2008 32-bit should also work. However, it is known to crash 64-bit versions of Vista — and yo

Block those Ads

If you browse the internet often you know what I am talking about. Ads are everywhere. And necessary for paying for hosting bills and like but sometimes they are just plain annoying and useless distraction. Besides heavy and bad ads even take up a lot of bandwidth. In the end you might just say, Enough, now I will call the shots. I will decide what I see and not. So here I will brief you about the Do’s and Don’t in blocking unnecessary advertisements. Chrome AdBlock Simplicity is the key. A must have. Get it here : http://chromeadblock.com/   Firefox   AdBlock Plus Very useful, works great and ultra light. You can find it here. https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/ IE 9   Simple AdBlock Go here : http://simple-adblock.com/ Download the Installer, install and you are done! One thing though, it is important to know that some ads are good and even useful, remember the nice ad that caught your attention (in a positive way).

AeroBlueSG Cursors

It was time I changed the cursors. So I fired up GFIcon Edit and started drawing new icons. When I was done, I was quite satisfied. I am providing the screenshot of the cursors. I have uploaded it to deviantart . Installation Extract the archive to a temporary folder. Right click the "Install.inf" file and click on "Install" Choose the cursorset in the control panel mouse applet It appears as "AeroBlue Cursors (Alphablended)" No extra software required! Created and released under Creative Commons License. Share freely and enjoy!   Download

Xtreme Mod Nokia 5233

Crawling the web for some real action I stumbled upon this jewel of a site. http://www.n5233.tk/ I must admit, I have never seen such a hardcore modding site for Nokia users. Disclaimer: Flashing your Phone, modding and carrying out the ‘experiments’ as mentioned in the site may and probably will VOID YOUR WARRANTY so proceed with caution and at your own risk. I am posting this only for educational purposes and any damage caused whatsoever is not my fault or responsibility. The bottomline is proceed at your own risk. There is even another danger, that is incorrect flashing will ‘brick’ your phone, meaning which your phone will be useless and its memory will be corrupted, probably beyond repair. So if you have no problems with a really costly paperweight, you can easily go ahead. In any case, consider yourself warned. Alright enough of scaring you, but honestly many have done it (read others have failed). Check it out!

The Big Bang

Mozilla 4 launched on 22nd March, 2011 Need I say more? Now let’s take a look at Mozilla’s flagship site : http://glow.mozilla.org Let’s look at some screenshots : - http://glow.mozilla.org The counter shows the number of downloads. Reaching 10 million now!!! The guys at Firefox even managed to keep tabs(literally) of vertical bars to denote number of downloads per minute! They are visible in the bottom of the page, yes those piano button like controls. Insane! Click on the Semi Circle in the bottom left of the first screen and here you come /\ Click on the links on your right bar and see the magic, I could not believe it!!! Stats, just stats!!! They ran so deep, really this hierarchical pie chart control is excellent. I was really impressed! What did I do? Just clicked the ‘Download Firefox’ link. :)

All is Fuzzy

This is an excellent starter for all fuzzy logic programmers. By Seshi from New Zealand, read the original text here: http://www.codeproject.com/KB/recipes/Seshi_FuzzyLogic.aspx Introduction Download source - 395 Kb Yay, my second article for code project. Like my first article this one was also one of my assignments for AI at university and I thought I'd try this one out in WPF using C# as well. Fuzzy logic - a dictionary like description: "Fuzzy logic is a mathematical approach to problem solving. It excels in producing exact results from imprecise data, and is especially useful in computers and electronic applications. Fuzzy logic differs from classical logic in that statements are no longer black or white, true or false, on or off. In traditional logic an object takes on a value of either zero or one; in fuzzy logic, a statement can assume any real value between 0 and 1, representing the degree to which an element belongs to a given set. The human brain can reason

Biomimicry to the Rescue

  We have a tendency to name software entities after biological creatures whose behaviors they remind us of – think of viruses in general, or worms. Now a bunch of computer security geeks are coming from the other direction, taking inspiration from nature’s creatures for the next weapon in the never-ending war against malware and viruses… few species are more effective at responding to intrusions into their system than the ant, after all. Unlike traditional security devices, which are static, these “digital ants” wander through computer networks looking for threats, such as “computer worms” – self-replicating programs designed to steal information or facilitate unauthorized use of machines. When a digital ant detects a threat, it doesn’t take long for an army of ants to converge at that location, drawing the attention of human operators who step in to investigate. The concept, called “swarm intelligence,” promises to transform cyber security because it adapts readily to changing thr

To Hell and Back

  Yesterday I had a frightening experience settling disputes between Avast Antivirus Free 6.0.0.24 and Daemon Tools Lite 4.40. In the end I admit, it was horrible experience for me. The problem remained. I had Daemon Tools Lite installed on my machine. I was using Avast Antivirus Free 5.x. I had no problems. Avast released their latest upgrade as 6 series and I downloaded it and installed it. An additional bonus in this was the Sandbox and Auto Sandbox mode which isolates programs to prevent the spread of infection to the rest of the machine. Expecting rock solid integration of Avast I installed it, updated it and restarted it. The problems I faced were as follows: - Blue Screen of Death – Just before the logon screen is displayed, the BSOD popped. The error code was 00000x7f( in hexadecimal). On the BSOD it said some problem with the ahcix86.sys file. I was speptical. If that indeed was the case, safe mode would not work either So first I restarted it and logged into my secon

Simple (but short cut) to Borderless Forms

  Pros: Simple, easy to Program Easy to understand for the beginner Cons May flicker as controls are drawn and redrawn Windows seems not to like this method much :) Insert this code snippet in your form that you want to be movable :   #Region "Declarations" Dim m As Integer = 0 Dim n As Integer = 0 Dim isMouseDown As Boolean = False Dim isMouseDownAgain As Boolean = False #End Region #Region "Form Events" Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown If isMouseDownAgain = True Then     isMouseDown = False     isMouseDownAgain = False          End If          m = MousePosition.X - Me.Location.X          n = MousePosition.Y - Me.Location.Y          Me.Location = New Point(MousePosition.X - m, MousePosition.Y - n)          If isMouseDown = True Then     isMouseDownAgain = True         Else     isMouseDownAgain = False End If isMouseDown = True End Sub Pr

Kolibri – A 3 MB (GUI)Operating System

No I’m not drunk! Kolibri desktop is a small 3MB Operating System, that is written entirely in machine code (CPU Language) and is not based on Linux, Windows or any other variants. What is surprising is the number of applications packed into this tiny file size. There are a whole bunch of games, a basic tables editor, a compiler, a text editor, a bouquet of demos, a text based web browser and more. There is also DosBox, which let’s you run almost any DOS game on Kolibri. While not meant for serious use, the tiny OS shows how bloated Windows and Linux really are. Kolibri is a small x86 assembler hobby operating system. It forked off MenuetOS in 2004 and has mostly been developed by ex-USSR community since. API and ABI is being enreached with developer-friendly features. User interface is not that good yet but we are trying to improve it as well. Your feedback is very appreciated, although help would always be much more valuable. Current 0.7.7.0 release introduces several kernel, app

iNote

  Many times you will require a text editor that looks good, runs on XP, is reasonably fast and feature rich but most importantly light weight. Besides even if you like an editor there will be something not to your liking, say the looks, or the lack of a feature. Wish you could add a feature or two of your choice. Yet you would not like top pay hefty sum of money to the software developing companies. In that case your search should end here. Bringing to you my own open source text editor supporting multiple formats that will fulfill all your needs. In case it doesn’t, just add the feature you want or request me. The best part is that it is free and requires no Herculean configuration. A screenshot of my iNote in action : - Yes this is a screenshot taken in Windows XP Service Pack 2. All you have to do to get this running is to have a Windows OS(at least XP) and .NET Framework 3.0 Some Features : Ribbon UI like the Wordpad in Windows Seven Skinnable Interface Spell Checker Ea