Tuesday, October 22, 2013

Windows 8.1 Blue Screen of Death

Got my first Windows 8.1 blue-screen of death. With an error : CRITICAL_STRUCTURE_CORRUPTION.
Some how this BSOD is repeated after some interval.

It reboots automatically. After boot, suddenly I need to type MS LIVE account password to log-in to my own desktop (arrrgghh) which is I forgot.
You need to go to account.live.com/password/reset to reset the password. Just follow the instructions.

Still amazed that you need to login to MS LIVE account to enter to your own desktop.

UPDATE :
http://answers.microsoft.com/en-us/windows/forum/windows8_1_pr-system/criticalstructurecorruption-windows-81/42b145c2-20f2-4a50-b4d2-dea455b390f8

Some clues here are, the Intel Hardware Accelerated Execution Manager (HAXM) which is I use for Android emulator, causing the issue.
Other software using same technology might be raising this trouble also, i.e. VMware.

Sunday, December 07, 2008

Installing Apache on Windows Vista

The easiest way that makes the installation doesn't bring up a trouble after it.
Note : Don't install Apache Web Server on C:\Program Files\, place it on other folder.
In my case, I place Apache on C:\Apache22\ .

Thursday, April 24, 2008

Django di Win32 vista

Baru coba-coba Django di lingkungan Win32 Vista.
Ternyata banyak sekali 3rd party add-on untuk Django di Google.code

http://www.google.com/search?hl=en&domains=code.google.com&q=django-+-%3Ainurl%3A%2Fsource+-inurl%3A%2Fwiki+-inurl%3A%2Fsoc&btnG=Search&sitesearch=code.google.com


Silahkan

Wednesday, September 26, 2007

Contoh Multi Threading di Python

Studi kasus : mengupdated 1 row database secara bersamaan untuk melihat apakah Transaction di MySQL berfungsi dengan baik.


import MySQLdb
import threading


class MultiThread(threading.Thread):
def __init__(self, cx):
super(MultiThread,self).__init__()
self.counter = cx

def run(self):
myconn = MySQLdb.Connect(host='localhost',user='root',passwd='a',db='DTSClient')
myconn.autocommit(1)
mysql = "Call testproc(1,1);"
mycursor = myconn.cursor()
result = mycursor.execute(mysql)
print result
myconn.close()

blist = []
for cx in range(50):
bg = MultiThread(cx)
blist.append(bg)

for bx in blist:
bx.start()


Untuk stored procedure dengan menggunakan Transaction lihat blog sebelum ini.

Stored Procedure di MySQL

Contoh stored procedure di MySQL:


DROP PROCEDURE testproc;
DELIMITER //
CREATE PROCEDURE testproc (IN pid INT, IN pamount INT)
BEGIN

DECLARE bal INT;

START TRANSACTION;
SELECT balance INTO bal FROM test1 where id = pid;
UPDATE test1 SET balance = (bal + pamount) WHERE id = pid;
COMMIT;

END;
//
DELIMITER ;


Statement DELIMITER sangat penting, kalau tidak MySQL akan memberikan pesan ERROR.

Thursday, February 22, 2007

How to Install Windows 2003 Server + Intel SATA Raid Controller without Floppy disk

The point is you have to make a new installation disk with the drivers files included.

The easiest way is to use nlite http://www.nliteos.com/ .

Just copy your W2k3 Server installation disk to your hard-disk.

Get the the Intel SATA RAID Controller driver for F6 Floppy disk method.
Extract it with ZipGenius. Twice, also extract the exe file until you'll get the *.ima file.
The *.ima file is the image file for the floppy disk.
Extract all drivers files from *.ima with tool from http://www.winimage.com/extract.htm.

Run the nlite and follow the instruction.
And have fun with the new installation CD.

Wednesday, January 31, 2007

Metadata untuk gambar dan foto

Pada dasarnya adalah untuk mempermudah pencarian gambar atau foto. Keterangan
tentang foto dapat saja dituliskan sebagai nama file. Namun hal itu memiliki
beberapa kekurangan :
- panjang nama file terbatas
- jika terlalu panjang menjadi sulit di baca
- sulit untuk memberikan keterangan yg sama / serupa untuk beberapa gambar/foto
- tidak terorganisasi dengan baik, baik fields, catagories etc
- tidak ada format standard

Alternatif lain menggunakan IPTC metadata format yg berkembang menjadi XMP
[http://en.wikipedia.org/wiki/Extensible_Metadata_Platform] .

Setelah mencoba beberapa tools untuk IPTC, sekarang saya menggunakan :
Abender's Photoscontrol untuk menuliskan IPTC metadata
http://www.softartstudio.com/photoscontrol/

PixVue untuk searching gambar/foto berdasarkan IPTC metada
http://www.pixvue.com
Sayang sekali terakhir buka websitenya sdh discontinue :-(

Picasa2 untuk organisasi / manajemen album foto
http://picasa.google.com

Satu tools lagi yg cukup membantu untuk browsing koleksi foto/gambar yg banyak.
PhotoMesa 3 http://www.cs.umd.edu/hcil/photomesa/


Keuntungan lain dari metadata dari IPTC adalah mempermudah pertukaran gambar / foto.
Inilah tujuan awal dibuatnya IPTC metadata, mempermudah pertukaran gambar / foto
antar kantor berita di seluruh dunia.

Wednesday, September 20, 2006

Setting up a MySQL Data Source for Sun Java Studio Creator

From : http://www.developer.com/db/article.php/10920_3514256_2

After installing MySQL, unpacking and copying the jar file, and creating a user and loading in some test data, it is time to actually use that data from Java Studio Creator.



  • First, start Java Creator Studio.

  • When it has loaded, from the top-left pane, right-click on Data Sources and choose Add Data Source.

  • A dialog will appear. For Server Type, select Add Server Type. Another dialog will appear.

  • Hit the New... button and navigate to the jar file you downloaded and copied earlier (called mysql-connector-java-3.1.8-bin.jar).

  • Next, set the display name to MySQL.

  • For the Driver Class Name, enter com.mysql.jdbc.Driver.

  • Finally, for the URL template, enter jdbc:mysql://#HOSTNAME:3306/#DATABASE.


Note: These same steps should be applied for any new JDBC-compliant database you want to use in Creator. There are already several defined (such as Oracle and DB2), so check those first, but if yours is not there, you can add it. You will obviously need different jar file settings, and will need to look up the Driver Class Name and the JDBC URL used in the documentation for the JDBC driver for that DB. Also, choose a name that describes the database.

Once you have finished entering the details here, click Close.