DISCLAIMER: I accept no liability for the content of this post, or for the consequences of any actions taken on the basis of the information provided. Use this solution at your own risk. This is a solution which worked on my system and may / may not work on others.
Hi all. Recently was bugged by the problem of my C: getting used up erratically. Everyday i'd remove some application and free space and lo! Next morning again <20MB space left on this drive.
I used the following tool to figure out the problem:
Free Disk Analyzer from http://www.extensoft.com/
Saw that the folder C:/Windows/Installer took up almost 80% of the space!
Initially thought of deleting several files at random but then read in forums that this approach is definitely not advisable. In many forums I was redirected to this page: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301 but as it says, they've removed the installer from here. This utility, however, can still be download from http://majorgeeks.com/Windows_Installer_CleanUp_Utility_d4459.html. INSTALL IT. Do not go and run this utility from its GUI since it doesn't give the option of removing only 'orphaned' installer packages - which is what we want to do. So, fire your command prompt, cd to C:\Program Files\Windows Installer Clean Up and run : msizap g!
PS: Cleaned up 16GB of space in 10 sec!
Wednesday, October 6, 2010
Tuesday, July 27, 2010
Merge Sort with Python
Here's a code for merge sort in Python. Drop in suggestions for a more optimized code. ..
def merge_sort(array):
if len(array)==1:
return array
elif len(array)==2:
if array[0]>array[1]:
return array
else:
return [array[1],array[0]]
else:
return merge(merge_sort(array[0:int(len(array)/2)]),merge_sort(array[int(len(array)/2):len(array)]))
def merge(array1,array2):
p1=0
p2=0
ans=[]
for i in range(len(array1)+len(array2)):
if p1!=len(array1) and p2!=len(array2):
if array1[p1]>array2[p2]:
ans.append(array1[p1])
p1=p1+1
else:
ans.append(array2[p2])
p2=p2+1
elif p1==len(array1):
ans.append(array2[p2])
p2=p2+1
elif p2==len(array2):
ans.append(array1[p1])
p1=p1+1
return ans
Friday, April 16, 2010
Using JavaFX objects in Java code
Using JavaFX objects in Java code
The link above points to an amazing article regarding conversion of JavaFx objects for use in Java codes: a problem often faced by newbies...
Sunday, April 11, 2010
Importing H2 database in RapidMiner 5
Hi! Here's the configuration to import your H2 database in Rapidminer:
3. Click on it and add attribute values as shown in the image:
(database url is the complete url of your embedded database file). The default username in H2 is 'sa' without password. But, this won't work for RapidMiner since its mandatory to give some password. So, Create a new user with some password using the 'CREATE USER' sql command. In my case, I created a new database user called 'user1'.
4. Once this is done, restart RapidMiner for changes to take place. Do not forget to save your process when RapidMiner prompts you to.
5. Now, Click on Build SQL Query. You'll see something like what is shown on left. Select the table you want to read (just click on the name of the table and the select * query will be generated) and click OK
- Add the H2 driver to RapidMiner: Go to 'Manage Database Drivres' and configure it is follows: (The Jar file lies in the /bin folder of your H2 installation; give its path). Save these settings
- Now go to your process window in RapidMiner and drag the 'ReadDatabase' operator:
(database url is the complete url of your embedded database file). The default username in H2 is 'sa' without password. But, this won't work for RapidMiner since its mandatory to give some password. So, Create a new user with some password using the 'CREATE USER' sql command. In my case, I created a new database user called 'user1'.
4. Once this is done, restart RapidMiner for changes to take place. Do not forget to save your process when RapidMiner prompts you to.
Subscribe to:
Posts (Atom)