Here is a Visual Foxpro example that create an OO calc spreadsheet.

VfpOOoCalcExample()

PROCEDURE VfpOOoCalcExample()
* Create a spreadsheet.
LOCAL oDoc
oDoc = OOoOpenURL( “private:factory/scalc” )

* Get first sheet
LOCAL oSheet
oSheet = oDoc.getSheets().getByIndex( 0 )

Keep reading »

Comments 1 Comment »

Declaration :

DECLARE INTEGER GetUserName IN advapi32;
STRING  @ lpBuffer,;
INTEGER @ nSize

Usage :

nSize = 250
cBuffer = REPLICATE(Chr(0), nSize)
= GetUserName(@cBuffer, @nSize)
cBuffer = STRTRAN(cBuffer, CHR(0), “”)
? cBuffer
? GETENV(”USERNAME”)

Comments No Comments »

According to Anders Kaseorg, Linux Developer, has found a crack in kludge that used by windows driver with NDISWrapper. NDISWrapper not properly handle long ESSIDs (Extended Service Set ID) that cause rejection service. If it is in use a physically near-by attacker could generate specially crafted wireless network traffic and crash the system.
Keep reading »

Comments 1 Comment »

A study released by the University of California at Los Angelse indicated that the online search activity can be beneficial to the brain.
24 volunteers placed by the UCLA team in the MRI machine to measure brain activity during a search online. and the result is that the Web search with a search engine such as Google or Yahoo can stimulate the brain centers that control the decision-making and complex thinking and can also help overcome the slow performance of the brain.

Reading - Searching Online

Also mentioned that this activity can search the Web more useful for the brain to read, especially from a experienced Web users. This is because many options on the Internet that require people to make quick decisions that will clicks on to get more information. The UCLA researchers said that this is more stimulating the brain.
Please note that the results of this study is less relevant to the younger generation that grew with the Internet and search engines because the study was conducted on people aged 55 to 78 years.

This arcticle can be read at pcworld.com. for further news about this study can be found on in next month’s issue of the American Journal of Geriatric Psychiatry.

Comments No Comments »

There are many way to clear CMOS, by reset a jumper or release batteray for 20-30 minutes. Here is another way to clear CMOS by debug program from computerhope.
Boot from startup disk. Then type debug [Enter] and if you get “-”, type code below :
A <ENTER>
MOV AX,0 <ENTER>
MOV AX,CX <ENTER>
OUT 70,AL <ENTER>
MOV AX,0 <ENTER>
OUT 71,AL <ENTER>
INC CX <ENTER>
CMP CX,100 <ENTER>
JB 103 <ENTER>
INT 20 <ENTER>
<ENTER>
G <ENTER>
Q <ENTER>

Reboot the PC’s and you will get Setup to correct all incorrect values again.

Comments No Comments »

Linux on the sky…fly without wings….
According by pcworld, Panasonic eX2 Inflight Entertainment System (IFE) is flight entertainment system. All of Panasonic’s X Series of IFE systems powered by operating system that run on Linux.
The first Qantas aircraft, A380 will utilize the Panasonic eX2 Inflight Entertainment System (IFE) and will feature in Qantas next batch of B737-800 aircraft.
John Borghetti, executive general manager at Qantas said “Our system is state of the art and offers over 1000 entertainment options including everything from the latest release movies to our Lonely Planet destinational information as well as our tail mounted panoramic camera”.
The A380 is the industry’s first one-gigabit backbone system, and will deliver something in the order of 5Mbps of data to the seat said an article in Avionics Today.
Neil James, director of corporate sales and marketing for Panasonic Avionics said “That amount of bandwidth will provide not only high-quality video but concurrent capabilities like picture-in-picture, live text news and text messaging,”
Both, Business and Economy customers due in March 2009 and also B787 or Dreamliner aircraft due next year.
Linux…..fly so high..

Comments 1 Comment »

My girl would like to play guitar too….

Fayha on Guitar-01

Fayha on Guitar-01

do you want to play guitar with me?

Keep reading »

Comments 2 Comments »

Setelah kurang lebih 7 tahun saya vakum nge-band, saya dapat info dari temen kalo tanggal 05 Okt ada undangan reuni plus maen band di kampung halaman saya. Ups….gimana nih? saya masih bisa nge-band ga ya ? Abis lama sekali saya ga maen gitar listrik (nge-band). sempat juga ga pe-de dikit soale setahuku selama ini yang ga eksis di band cuma saya aja….hee..heee. Tapi akhirnya dengan semangat 45, saling kontak temen2 sana-sini yang notabene pada rencana mudik semua dan alhamdulillah bisa ngumpul semua (akhirnya)…. Show must go on….

- Sabtu malam (04 Okt) nyangkruk bareng sambil ngebahas materi lagu yang mo dibawain & rencana mo latihan Minggu (05 Okt).

- Minggu (05 Okt) siang ngumpul lagi di studio Aza buat latihan. Oya…hasil nyangkruk semalam, diputuskan bawain 2 lagu aja  yaitu We Got The Right - Helloween dan Livin on a prayer - Bonjovi

Lagi latihan di studio

Keep reading »

Comments 3 Comments »

Don’t turn your head
Back to the wall
Don’t close your eyes
And wait for your fall

Keep reading »

Comments 3 Comments »

In an application program (visual foxpro) is common if the first time the program is run for a user login form will appear. One method is to run the login form first and then the main form. There is also the method still run form the main form at the same time raise login first before the user can access other programs. Here are some tips for both methods:

  • Set properties Form login

windowstype = Modal

ShowWindow = 1 - InTopLevelForm

  • Declare variables to accommodate the public the results of the login form on the main form

FormUtama.Load:

Public n_login

n_login = 0

  • Run the login form on the main form activate

FormUtama.Activate :

IF n_Login = 0

DO FORM formlogin.scx

ENDIF

in the form log added:

cmdOK.click:

n_Login = 1

Have a nice try…

Comments 3 Comments »







Trek Pay - Terbukti sudah membayar 5 Dollar

Usaha modal kecil!

Modern Bedroom Furniture

Click Here to Advertise on My Blog

Add to Technorati Favorites

blogarama - the blog directory