Archive for March, 2011
Importing something of a bit of a value for personal use in Turkey
0I have ordered some nerd stuff worth of a bit more than €500 to be shipped from UK. From package tracking, I can tell that it arrived to Istanbul the very next day after the purchase but guess what. It needed clearance for customs. I’ve been told that if the package worths more than €150, it is highly likely to be stuck at the customs.
So what can I do ?
- Get the package myself
- Pay a commission to UPS to get it for me (aprox. €83)
- Go to the place called cargo terminal (next to the airport, a government facility) to get a paper signed by the manager that tells you want to get your package as a personal package.
- Take that paper to UPS antrepot so the government inspector can inspect your package and writes a paragraph of text that it is OK for you to pay the tax for it and get it.
- You go back to cargo terminal again to pay the tax (%18).
- You go back to UPS antrepot again and get your package.
- I’ve drove to the cargo terminal (47km from my office). I got on the road at around 14:00 and I was there in 30 minutes.
- Got the paper and paid €3 for parking in the terminal. I’d guess it took something around 30 minutes too.
- I’ve went to the antrepot (20 km), I went to wrong address first so it was 15:40 when I was at the antrepot.
- I got the government inspector to inspect my package and like 10 minutes but it took her 30 minutes to write one paragraph of text for me.
- So, I was back at the cargo terminal (10km) at 17:00, their office hours ends in 17:30.
- Long story short, with the delicate design of bureaucracy at the cargo terminal, I couldn’t make it on time. Now I need to go there again.
- I drove back to home (65km).
- Wasted time: 4.5h
- Distance: 150km of driving = 20lt of gas = €38 (yes, you’ve read it right, gas is €1.91/lt in Turkey)
- Parking: €6 :)
Running an HTTP server in default port 80 on Windows
0|
1 |
<strong>Summary</strong>: <strong>SQL Server Reporting Services</strong> is listening on port 80 from within System (PID 4) process. |
I tried to run a HTTP server on my Vista box. It couldn’t bind to that port. So I looked around a bit.
|
1 2 3 4 5 6 7 8 9 10 11 |
Engin@Engin-PC ~ $ netstat -n -a -p tcp -b -o Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:22 0.0.0.0:0 LISTENING 3816 [sshd.exe] TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 Can not obtain ownership information |
From Process Explorer I can tell that it is System process. So why does such a core part of my OS listening on port 80. A rather easy way to find out is to simply netcat to that port.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ nc localhost 80 help HTTP/1.1 400 Bad Request Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Thu, 31 Mar 2011 08:44:26 GMT Connection: close Content-Length: 326 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Verb</h2> <hr><p>HTTP Error 400. The request verb is invalid.</p> </BODY></HTML> |
Server: Microsoft-HTTPAPI/2.0 hmm. A little bit googling told me that this is due to SQL Server Reporting Services. When you stop this service, port 80 will be available again.
Restoring MySQL Databases from an HDD Image
1UPDATE: There’s an update to this MySQL Workbench fetching… problem solved
I don’t know what is the proper way of handling this but this is rather a cumbersome process apparently.
You can see your datadir by issuing:
|
1 |
select @@datadir; |
Replace this directory with your backed up datadir. Datadir can also be found in my.ini (or my.cnf in GNU/Linux I guess).
When I did, I got the following error while trying to start the MySQL server:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
110331 9:56:57 [Note] Plugin 'FEDERATED' is disabled. 110331 9:56:57 InnoDB: The InnoDB memory heap is disabled 110331 9:56:57 InnoDB: Mutexes and rw_locks use Windows interlocked functions 110331 9:56:57 InnoDB: Compressed tables use zlib 1.2.3 110331 9:56:57 InnoDB: Initializing buffer pool, size = 128.0M 110331 9:56:57 InnoDB: Completed initialization of buffer pool InnoDB: Error: log file .\ib_logfile0 is of different size 0 55574528 bytes InnoDB: than specified in the .cnf file 0 5242880 bytes! 110331 9:56:58 [ERROR] Plugin 'InnoDB' init function returned error. 110331 9:56:58 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 110331 9:56:58 [ERROR] Unknown/unsupported storage engine: InnoDB 110331 9:56:58 [ERROR] Aborting 110331 9:56:58 [Note] C:\PROGRA~2\EASYPH~1.0\MySql\bin\mysqld.exe: Shutdown complete |
I’ve added “innodb_log_file_size = 53M” parameter to my my.cnf and the server started just fine. You see the 55574528 in the above error log ? That is precisely 53M (55574528/(1024*1024)=53). Though MySQL Workbench still can’t browse the databases in the UI, it tells me
|
1 2 |
Error: Time: 10:56:43 Message: Error Code: 1548 Cannot load from mysql.proc. The table is probably corrupted Details: Get schema contents |
Though I can use the databases as below:
|
1 2 |
use myolddb; select * from atable; |
Even though Workbench is not happy with this, it works. I’ll update if I find anything useful.
Update to SharkIt
0My brother told me SharkIt stopped working, I’ve updated it to work again.
Changes include:
- Again compatible with Grooveshark
- Faster session retriving, hence you can log in faster!
- Handles bad file names
- More cross platform file handling.
Wireless module of Sony VAIO VGN-Z790 broken
0Me and my partner got two Sony VAIO VGN-Z790DIB notebooks 1.5 years ago. Admittedly, I still think it is the best PC notebook out there (P9700 CPU, 4G RAM, 1.47kg, ~6h battery). Though, wireless module of my partner’s notebook stopped working in the first month. The wireless module got physically broken, completely disappeared from system as it is not connected at all.
Today, it turned out that these notebooks have some kind of design fault, as mine also got broken. It literally disappeared all of a sudden. It is not a software problem as it is not seen by GNU/Linux or anything.
I tried to order another Wireless Module for VGN-Z790 but all my searches failed. Then, I decided to disassemble it, in hope that I could find a part number etc. After all, I have changed broken parts of my previous notebooks anyway.
It is a very painful task to disassemble this notebook. It took almost 1h to disassemble and assemble the notebook back. Here’s the service manual for VGN-Z series, it is almost impossible to work on this notebook without this. I’d expect a much better service manual from a company such as Sony, but it was quite low quality if you ask me. Dell’s service manuals were way better.
Anyway, I got it! The wireless module of VGN-Z790 is 512AN_HMW. You can see the pictures below.


Luckily, if you search with this model number you can find this part from ebay. I’ll order one soon and see if it is the module that is getting broken or it is something else that is affecting it — only if I don’t get a new notebook! This is a pretty damn good excuse to get one, amarite ?
TIM: Time Is Money! Standalone meeting calculator in HTML/Javascript
0This is my take on TIM calculator, you can download, modify and run it in any browser (I’ve tested with IE8, Chrome, FF). View, download or use it online.
Modify the currency to your liking. Oh, and of course, best viewed with Chrome.