20101126

a

In your <o>s
I saw the rising >O<.

Still I sold my .
For a 84d63 and a 6u9.

20101030

_clrscr() (prg05)

#language :: c/c++ (mingw)
#purpose :: winapi clrscr implement
#date :: 30102010
#author :: gerganov

void _clrscr(void)
{
         COORD coordScreen = {0,0}; // upper left corner
         DWORD cCharsWritten;
         DWORD dwConSize;
         HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
         CONSOLE_SCREEN_BUFFER_INFO csbi;
         GetConsoleScreenBufferInfo(hCon, &csbi);
         dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
         // fill with spaces
         FillConsoleOutputCharacter(hCon, TEXT(' '), dwConSize, coordScreen, &cCharsWritten);
         GetConsoleScreenBufferInfo(hCon, &csbi);
         FillConsoleOutputAttribute(hCon, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten);
         // cursor to upper left corner
         SetConsoleCursorPosition(hCon, coordScreen);
}

#searchterms :: winapi clrscr implement, FillConsoleOutputCharacter clrscr, _clrscr(), clrscr(), clear screen, cls implement, clear screen winapi, winapi clrscr, conio.h clrscr, winapi conio.h

20101025

20100927

x

20100914

fbofw

some DATA can NOT be ERASED

20100808

main(0x14)

reinit();

20100807

true

20100723

virtualization

Cat holds computer components shop.
Child yells "20 years" and falls from kindergarten roof to his death.

20100719

xor(swap)

[tt] xor
0 xor 0 = 0
0 xor 1 = 1
1 xor 0 = 1
1 xor 1 = 0

[ex] 000,010
0 xor 0 = 0
0 xor 1 = 1
0 xor 0 = 0
000 xor 010 = 010

[mt] swap
(x0 = x0)
(x1 = x1)
x0 = x0 xor x1
x1 = x0 xor x1
x0 = x0 xor x1
(x0 = x1)
(x1 = x0)

20100716

0xac (prg05)

#language :: c/c++ (mingw)
#purpose :: alarm clock
#date :: 16072010
#author :: gerganov

Information...
*uncommented code
*winapi bloats the exe
*open source (no license)
*prevents os standby/sleep
*with command line argument
*with countdown

http://roboet.hit.bg/blog_storage/0xac.zip

#searchterms :: prevent laptop from going to sleep, prevent windows from going to sleep, stop standby, prevent standby, prevent computer from going to sleep

_getch() (prg04)

#language :: c/c++ (mingw)
#purpose :: winapi getch implement
#date :: 16072010
#author :: gerganov


TCHAR _getch()
{
         DWORD mode;
         TCHAR chr = 0;
         DWORD cnt;
         //get a handle to stdin
         HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE);
         //save the current input mode...
         GetConsoleMode(hStdIn,&mode);
         // Clear the mode
         // turn off ENABLE_ECHO_INPUT
         // and ENABLE_LINE_INPUT
         // so that the output will not be echoed
         // and will not pause until the end of
         // a line for input.
         SetConsoleMode(hStdIn,0);
         // Read in 1 char from the input buffer.
         ReadConsole(hStdIn,&chr,sizeof(TCHAR),&cnt,NULL);
         //restore the current input mode.
         SetConsoleMode(hStdIn, mode);
         return chr;
}

#searchterms :: winapi getch implement, readconsole getch, _getch(), getch(), press a key to continue, pause program, no echo get, get char, winapi getch, conio.h getch, winapi conio.h

20100714

dir(skype2mail.elements) (prg03)

#language :: python (2.6.4)
#date :: 14072010
#author :: gerganov

#============================================
#List processes and check if process is running...
import win32com.client

WMI = GetObject('winmgmts:')
processes = WMI.InstancesOf('Win32_Process')
procnames = [process.Properties_('Name').Value for process in processes]

for name in procnames:
         #check for name here
#============================================


#============================================
#Send e-mail with attachment(s) from Outlook Client...
import win32com.client

def sendmail(txt, sbj, rec, prf="Outlook"):
         s = win32com.client.Dispatch("Mapi.Session")
         o = win32com.client.Dispatch("Outlook.Application")

         s.Logon(prf)
         emsg = o.CreateItem(0)
         emsg.To = rec #can be added as argument, if multiple

         emsg.Subject = sbj
         emsg.Body = txt

         attachment1 = "..." #can be added as argument, if mulptiple
         emsg.Attachments.Add(attachment1)

         emsg.Send()

         s.Logoff()
         return
#============================================


#============================================
#Use Skype4Py and Python for Skype manipulation (SkypeAPI)...
import Skype4Py #http://sourceforge.net/projects/skype4py/

skype = Skype4Py.Skype()
skype.Attach() #Skype spawns a dialog - press Allow

#dir(skype) for available Functions and Variables
#documentation - http://skype4py.sourceforge.net/doc/html/
#============================================


#============================================
#Sleep with countdown...
def vsleep(act,sec):
         while(sec!=0):
                 print act + "(" + str(sec) + ") \r",
                 time.sleep(1.0)
                 sec -= 1
         print " "
         return
#============================================


#============================================
#Send e-mail from GMail with Python using Google as SMTP...
import os
import smtplib
import mimetypes
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.MIMEAudio import MIMEAudio
from email.MIMEImage import MIMEImage
from email.Encoders import encode_base64

def googlesend(sbj, txt, *atts):
         gmuser = 'x@gmail.com'
         gmpass = 'xpass'
         gmrecp = 'x@xdomain.xxx'

         msg = MIMEMultipart()
         msg['From'] = gmuser
         msg['To'] = recp
         msg['Subject'] = sbj
         msg.attach(MIMEText(txt))

         for att in atts:
                 msg.attach(getattachment(att))

         mailsvr = smtplib.SMTP('smtp.gmail.com', 587)
         mailsvr.ehlo()
         mailsvr.starttls()
         mailsvr.ehlo()
         mailsvr.login(gmuser, gmpass)
         mailsvr.sendmail(gmuser, recp, msg.as_string())
         mailsvr.close()
         return

def getatts(att):
         contentType, encoding = mimetypes.guess_type(att)

         if contentType is None or encoding is not None:
                 contentType = 'application/octet-stream'

         mainType, subType = contentType.split('/', 1)
         file = open(att, 'rb')

         if mainType == 'text':
                 attachment = MIMEText(file.read())
         elif mainType == 'message':
         attachment = email.message_from_file(file)
         elif mainType == 'image':
         attachment = MIMEImage(file.read(),_subType=subType)
         elif mainType == 'audio':
                 attachment = MIMEAudio(file.read(),_subType=subType)
         else:
                 attrdy = MIMEBase(mainType, subType)
         attrdy.set_payload(file.read())
         encode_base64(attrdy)

         file.close()

         attrdy.add_header('Content-Disposition', 'attachment', filename=os.path.basename(att))
         return attrdy
#============================================

#searchterms :: python and win32com, send outlook e-mail with python, send mail with python, google send mail with python, python skype, skype4py, python and skype4py, documentation skype4py, python list processes, find process python

20100601

digits (gpu03)

9(10) = 10(9) = 11(8) = 12(7) = 13(6) = 14(5)
9(10) = 21(4) = 30(3) = 1001(2) = 111111111(1)

8(10) = 10(8) = 11(7) = 12(6) = 13(5) = 20(4)
8(10) = 22(3) = 1000(2) = 11111111(1)

7(10) = 10(7) = 11(6) = 12(5) = 13(4) = 21(3)
7(10) = 111(2) = 1111111(1)

6(10) = 10(6) = 11(5) = 12(4) = 20(3)
6(10) = 110(2) = 111111(1)

5(10) = 10(5) = 11(4) = 12(3)
5(10) = 101(2) = 11111(1)

4(10) = 10(4) = 11(3)
4(10) = 100(2) = 1111(1)

3(10) = 10(3)
3(10) = 11(2) = 111(1)

2(10) = 10(2) = 11(1)

1(10) = 1(1)
0(10) = 0(2)

01 1!

20100414

hw

We will... NOT be... BOUND!

20100304

**(*)*

rchy

20100226

city lights

under

e is init(universe)

e = 1% *

20100224

psychosocial

http://roboet.hit.bg
web negative zero

20100222

x.y

x = 0
y = 1

x + y = 2
x<3a


a ~ y

f(a)=a-y
f(a)>0

f(y)=y-a
f(y)>0


a^1 = a^(inf)

a^

20100216

god of wind

<rauhallisia<[vn]>hylistä>
--hylystä--
<hylystä<[sf]>hylystä>

[2004] - 04

F

20100214

bewildered

wpelb
zpv bsf uif sfbm nbo

re(►) 1A

20100213

SLoM

SSamHD
dark_Age

20100212

jalkineen

vain, että

20100208

gANgsgNAg

every day I come out, I think about my head getting shot open
I can't get out, man
this is my Life

20100206

hardly

20100205

elävältä

fight and dance 'till the morning

20100201

(*5)^2 (gpu02)

05^2 = 0025 = 00^2 + 025
15^2 = 0225 = 10^2 + 125
25^2 = 0625 = 20^2 + 225
35^2 = 1225 = 30^2 + 325
45^2 = 2025 = 40^2 + 425
55^2 = 3025 = 50^2 + 525
(...)

20100123

mega tiff men

bear food in the snow
p
o
w
e
r
s

20100119

18012010-19012010

push (dgrs)-4
push (km/h)32
call setsää

push Я
push T
call poistaa

push Я
push (km)4
call kävellä

push Я
push ":)"
call kylvettää

push Я
push (h)0112
call vuode

ret muistaa