Sağduyu

Hicbirşeye körü körüne bağlanmayın düşünün, yapabilirseniz kendinizi karşınızdaki insanın yerine koyun, sorgulayın, başkalarının demesiyle hareket etmeyin ve şunu unutmayın:

insan ne yaparsa kendine yapar. 

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 %~nx1.zip -mx9 %~f1\*.* 
7za a -r -tzip %~nx1.zip -mx9 %~f1\*.* 
rmdir /s/q %~f1
pause

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

Usage:

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 %~nx1.zip -mx0 %~f1\*.* 
7za a -r -tzip %~nx1.zip -mx0 %~f1\*.* 
rmdir /s/q %~f1
pause

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.

http://www.rapidee.com/en/download

com•mu•ni•ca•tion

İ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.

 

vb.net PrintDocument custom paper size

While using PrintDocument class for printing on vb.net, 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.