Friday, August 30, 2013

Replace image background color with transparent

Go to https://pixlr.com/editor/ and select "Open image from computer". Select image from computer

Select Want tool and click on the solid background color

Go to Edit and select "Invert selection"

Copy the image to clipboard

Create new image and select you want to create layout from clipboard resolution. Make sure to check "Transparent"

and finally paste the content from clipboard

Save the project

Make sure to choose "PNG (Transparent, full quality)"

P.S. If you have multiple background areas while select background using "wand tool" then hold ctrl key and click one by one on them all.

Hard clear Java cache on Windows 7 x64

If you have x86 and x64 JRE installed then by default under control panel there will open 64-bit JRE settings that can be kind of useless cause by default web application usally opens with 32-bit Internet Explorer this means the 32-bit java is used.

To open 32-bit Java control panel go
C:\Program Files (x86)\Java\jre7\bin\javacpl.exe

Go to settings

Click delete:

Make sure to check "Installed applications and applets"

Also if the new version of JRE has installed and the old version is removed the hightly recommended is to remove Java sertificates under security tab.

Select by each line and click "Remove":

By removing Java sertificate there is posibility need to grand temporary administration perspissions to end user to accept new sertificate which will be used by java application.

Thursday, August 29, 2013

Online video tutorial, internet browser minimal visible area

I think pretty much computer tutorial video in youtube is filmed like in 1280x720 or 1920x1080 resolution. The video 1280x720 on 1280x1024 screen seems nice, but if the video is taked in native 1920x1080 resolution then on 1024x768 screen it is so disapointed.
Why people limit their audience?

I think there are hundrend and thousand people still have 1024x768. Like a minimal recommend equipment.

I have noticed and practically seen computer desktop video tutorials in 800x600 resolution and i think it is the best choise to choose exatctly this kind of resolution.

How much space actually do we have on default XP equipment?
On Internet Explorer 8 if we turn off favourites bar and remove menu bar then we got 1003x621 space of screen.

Thats it! 800x600 video on the left side and on the right side some google 160x600 Wide Skyscaper :D
And on the top and bottom we place 970x90 Large Leaderbroad for those who have huge resolution monitors. Our page looks just like facebook farm :D

Then we record a video using ActivePresenter, add some watermark retated to page public address on the web. Use HandBrake to minimize size of captured video.

Then we host one video per one dropbox accound because of bandwidth blocking.

After a year if the videos ar deleted one by one we actually are wery happy that now we have a quite audience :)

Screenshot from Dropbox free account bandwidth algorithm:

https://www.dropbox.com/help/4204/en

Registry based application audit

Few months back i was writing startup for this project at
List installed programs in cmd window

Now i create a little beautifuller review keep auditing booth x86 and x64 arhitectures.

Save grep and extract sed into the project directory and crate batch file containing:
@echo off
setlocal EnableDelayedExpansion
set path=%path%;%~dp0
set u=Microsoft\Windows\CurrentVersion\Uninstall

if "%ProgramFiles(x86)%"=="" (
set sw=HKLM\SOFTWARE
set tokens=7
goto x86 )

:x64
echo 64-BIT APPS:
set sw=HKLM\SOFTWARE
set tokens=7

for /f "tokens=%tokens% delims=\" %%a in ('^
reg query "%sw%\%u%" ^|
grep "CurrentVersion.*Uninstall"') do (
reg query "%sw%\%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 (
reg query "%sw%\%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 for /f "tokens=*" %%b in ('^
reg query "%sw%\%u%\%%a" /v DisplayName ^|
grep "DisplayName" ^|
sed "s/REG_SZ\|DisplayName//g" ^|
sed "s/^[ \t]*//g"') do if not %%b=="" set name=%%b
reg query "%sw%\%u%\%%a" /v DisplayVersion > nul 2>&1
if !errorlevel!==0 for /f "tokens=*" %%c in ('^
reg query "%sw%\%u%\%%a" /v DisplayVersion ^|
grep "DisplayVersion" ^|
sed "s/REG_SZ\|DisplayVersion//g" ^|
sed "s/^[ \t]*//g"') do if not %%c=="" set version=%%c
echo !name! !version!
))

set sw=HKLM\SOFTWARE\Wow6432Node
set tokens=8
echo.
:x86
echo 32-BIT APPS:
for /f "tokens=%tokens% delims=\" %%a in ('^
reg query "%sw%\%u%" ^|
grep "CurrentVersion.*Uninstall"') do (
reg query "%sw%\%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 (
reg query "%sw%\%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 for /f "tokens=*" %%b in ('^
reg query "%sw%\%u%\%%a" /v DisplayName ^|
grep "DisplayName" ^|
sed "s/REG_SZ\|DisplayName//g" ^|
sed "s/^[ \t]*//g"') do if not %%b=="" set name=%%b
reg query "%sw%\%u%\%%a" /v DisplayVersion > nul 2>&1
if !errorlevel!==0 for /f "tokens=*" %%c in ('^
reg query "%sw%\%u%\%%a" /v DisplayVersion ^|
grep "DisplayVersion" ^|
sed "s/REG_SZ\|DisplayVersion//g" ^|
sed "s/^[ \t]*//g"') do if not %%c=="" set version=%%c
echo !name! !version!
))

endlocal
pause

Screenshot:

Blog Archive