DOS batch to zip archive and delete folder using 7zip

Save following commands to a text file and save it as archive.bat :

@echo offf
echo 7za a -r -tzip -mx9 %~f1\*.* 
7za a -r -tzip -mx9 %~f1\*.* 
rmdir /s/q %~f1

!!Caution, if you don’t have 7za installed it will only delete that folder!!


Drop any directory to the batch file, it will create a zip archive and delete that folder.

Similarly you can use following batch to just store (uncompressed) your folder:

@echo offf
echo 7za a -r -tzip -mx0 %~f1\*.* 
7za a -r -tzip -mx0 %~f1\*.* 
rmdir /s/q %~f1

If you don’t want to delete your folder just remove rmdir line.

Rapid Environment Editor for Windows – RapidEE

Environment variables are specially named aliases for basic system properties. Here is the Microsoft definition:

Environment variables are strings that contain information such as drive, path, or file name. They control the behavior of various programs. For example, the TEMP environment variable specifies the location in which programs place temporary files.

RapidEE could be useful to edit variables such as PATH, CLASSPATH (Java developers, it’s for you), INCLUDE or LIB (respect to C++ developers) with comfort. Moreover you will never make a mistake, because RapidEE checks your input and highlights incorrect paths or filenames.


İki insanın gerçekten birbirini anlaması bilimsel olarak imkansızdır. Çünkü her birey algılarını geçmişinin filtresinden geçirerek kavrama dönüştürür.

Karşılıklı bir konuşma sırasında; sizin düşündüğünüz, anlatmak istediğiniz, söylediğiniz, karşınızdakinin duyduğu, duyduğunu sandığı, anlamak istediği, anladığı arasında dağlar kadar fark vardır. PrintDocument custom paper size

While using PrintDocument class for printing on, It won’t allow you to change PaperSize Width and Height values. In order to set those values manually, you need to define a custom paper size first. Use the code below to create a new custom paper size and then set it to PrintDocument’s PaperSize property:

Dim pkCustomSize1 As New System.Drawing.Printing.PaperSize("Custom Paper Size", 800, 600)
PrintDocument1.PrinterSettings.DefaultPageSettings.PaperSize = pkCustomSize1

I hope this helps, cheers!

jQuery to get anchor link URLs and texts on a page

On google chrome developer console (F12), simply run command below to get link texts printout:

jQuery("a.classname").each( function(){ console.log( $(this).text() ); } );

If you need to get link URLs, try the code below:

jQuery("a.classname").each( function(){ console.log( $(this).attr('href') ); } );

Remember to change classname to appropriate class name.

If the page you are trying to parse doesn’t have jQuery, you can load jQuery from console also.

Portable python for windows

Python is an awesome language for science and automating your work. It is a little hard to run it fully functional on Windows though. Here, WinPython solves this problem. It is portable and it comes with various scientific packages those are ready to run!

You can download WinPython here. Check out their documentation here.

If you are interested in python programming, I recommend going through slides here.

You might also like anaconda, another python development environment.

the path

I see through the darkness my way back home
The journey seems endless but i’ll carry on
The shadows will rise and they will fall
And our night drowns in dawn
Amidst all tears there’s a smile
That all angels greet with an envious song
One look into stranger’s eyes and i know where i belong
And the path goes on

lyrics by HIM

Twentyfifteen theme customization CSS for a business site

Just customized twentyfifteen for a business site. Here is the customization CSS:

And the result is:


I used Background Manager to add background slideshow.

Other useful plugins: