Wednesday, December 8, 2010

Thursday, August 19, 2010

GPS sku.37914

Yesterday I received my second GPS device sku.37914, got it for $106. Previous one sku.23569 I sold for half price after a year of usage.



Quick specs
6" TFT LCD, 800x480 pixels
Windows CE 6.0 English
CPU ARM11 500 MHz, dual core
RAM 128 MB
Built-in 4 GB internal flash memory with iGO 8.3.2.80621
1200 mAh rechargeable lithium polymer battery
SiRF Atlas-4 GPS chipset
MicroSD slot up to 16 GB cards (support for SDHC too)
FM transmitter
No BlueTooth this time
No SD card

SystemInfo
Rom version: PA06.1204.0608I7680CH
Software version: V3.6.E60.12.22
OEM info: YFAtlas4
Platform ID: 5955414E46454E47
DeviceID: 0000000000000000
Copyright (c) YF International Ltd

Windows says (via Active Sync)
Model name: AT8X0
Manufacturer: YFAtlas4
Firmware version: AT8X0 6.0

My iGO configuration files (sys.txt) for this device.

After week usage notes:
Full charge from AC adapter about 3 hours.
Battery holds almost 2 hours in low backlight (WOW!).
Screen is very bad on sunny day, even not direct lights in the car. You can use it like a mirror :-) Perfect at the evening/night of course.
Looks huge, not so heavy.
Haven't problems with taps at the corners.
Sound is good, strong enough.
Replaced stock windshield with stronger one (~$10 in local supermarket), stock's looks very weak.
So far no troubles with adapters, all cars fuses are fine :-)

Update (2010/08/22)
Saw similar device (looks exatcly like mine) in Shekem Electric for ~800 NIS as Apex 6062.

Tuesday, August 17, 2010

New Israel speed cameras update for iGO (August 2010)

The file

Note that all speed limit notifications are set to 90 km/h - may vary on some roads from 70 to 100 km/h.

Missing cameras with following coordinates:
Road 4
N32°06.307',E31°50.940'
N32°25.413',E32°25.348'
Road 2 (Ayalon HW)
N32°32.650',E35°54.997'

And those, which coords are unknown. I will try to check their locations by myself later.

Install instructions (should work on any 8.x version, tested on Primo):
0. Exit iGO (if need).
1. Open your iGo content folder \SDMMC\iGO\CONTENT\SPEEDCAM.
2. Copy file there (choose view raw to download file).
3. Remove any *.spdb and *.spud files, program will create them again on start-up.
4. Run iGO.
5. Check for new cameras between Caesarea and Zihron Yakov on road 2.

Sources
הכינו את ה-GPS: כאן תמצאו את מצלמות המהירות
המצלמות החדשות ומיקומן

Tools
GPS Coordinate Converter, Maps and Info

UPDATE (2010/08/22 1:20)
Drove on road 2 last night - no cameras on GPS positions. Fakes?

Wednesday, August 4, 2010

NetBeans and Xdebug

Finally, I was able to setup xdebug with NetBeans.

Client:
Operating System: Windows 7 Enterprise [version: 6.1.7600 ]
Administrator privileges: No
Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b16

Server:
nginx/0.7.67 - not relevant
Apache/2.2.13 (Unix) with mod_php - not relevant
PHP 5.2.13 (cli) (built: Jul 21 2010 14:56:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

Steps:
Install Xdebug via PEAR. I got version 2.1.0.

Enable Xdebug extension in php.ini:
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so ; <=- can be different
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = 2.1.1.11 ; <=- your client ip here
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.idekey = "netbeans-xdebug" ; <=- default netbeans id
xdebug.remote_log = /path/to/your/logs/xdebug.log 
xdebug.extended_info = 1

Check installation in CLI:
php -m | grep xdebug
php -i | grep xdebug 

Restart Apache.

Check firewall settings that "C:\Program Files\NetBeans 6.9\bin\netbeans.exe" is allowed in proper network locations.

Open NetBeans. Go to your project properties > Run Configuration.
Setup "Project URL" and other if need.

Open "Advanced..." settings, check everything there.

I was able to run into debug mode but without execution line highlight.
So I got back to advanced settings of the project, setup path mapping.
Example:
/usr/local/lib/php/Zend > C:\tmp\ZendFramework-1.10.7-minimal\library\Zend

After that, I saw that Zend files were mapped successfully, but part of project files on network storage not. You can see that in a "Call Stack" window.

It turns out, that NetBeans don't likes network in debug mode.
To fix that, open "My Computer" > "Map network drive" to some letter.
Now, use the new drive for path mapping instead of direct network path.

And voila - it works! ;-)

Notes:
By default NetBeans will break on the first line of the script (you can change this behavior in the PHP / General section of the NetBeans Preferences).

Sources:
NetBeans wiki - HowToConfigureXDebug
Path Mapping In PHP Debugger
PHP 5.3 + XDebug + NetBeans + Mac OSX Leopard

See also:
Xdebug - Debugging with multiple users
Be careful with "Ask Every Time" debug URL

Update:
Upgrade to NetBeans 6.9.1 that fixes double ask for debug URL and other improvements.

Tuesday, July 20, 2010

Ливанов

Сегодня юбилей у Василия Ливанова. Посмотрев сюжет на первом, я получил очередное подтверждение своему аргументу в пользу просмотра зарубежных фильмов с оригинальной звуковой дорожкой, но с субтитрами.

Голос - это неотъемлимая часть игры актёра. Я не могу представить чужой голос Шерлока Холмса, Доктора Хауса, Шелдона, Барни Стинсона, Дона Дрейпера, Майкла Вестена, Декстера Моргана и других персонажей.

Поэтому, отрывайте жопы, смотрите в оригинале, читайте субтитры. Вначале тяжело, зато потом вы будете блевать от переводов.
(Кстати, я не спорю, есть приятные исключения в виде профессионального дубляжа хорошими российскими актёрами, которые можно сосчитать по пальцам).

Wednesday, July 14, 2010

NetBeans 6.9 and Lenovo TrackPoint in Windows 7

Problem
Recently I installed new NetBeans 6.9 on my Lenovo X61s and found that TrackPoint is not working for scrolling with middle button.

Solution
You need to find TrackPoint file tp4table.dat where programs mappings listed.
Under my Windows 7 Enterprise 32-bit I found it in C:\Program Files\Lenovo\TrackPoint\.
Use file search, if you have a trouble finding it there.
Now open file with write permission (if you non-privileged user, use admin account) and add following to the programs section.
; NetBeans
*,*,netbeans.exe,*,*,*,WheelStd,0,9

Don't mess with [AutoScrollTable] section at the end of the file were syntax goes like this
*,*,iexplore.exe,*,smooth
NetBeans fix should be inserted before auto scroll table part. Believe me, I tried that for two days asking myself a lot of "why this not working" :-)

To apply settings, open Windows Task Manager, find process named tp4serv.exe (PS/2 TrackPoint Daemon) and end it. As it run as your user, you don't need administrator to rerun it again. Go to C:\Program Files\Lenovo\TrackPoint\ and run tp4serv.exe again.
If that doesn't help to apply settings, try to restart Windows or check other related precesses: SynTPEnh.exe and SynTPLpr.exe; restart SynTPEnh.exe.

Tested on
Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b16
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

More info
"Mouse wheel scroll" not working on Touchpads
Thinkpad Scrolling fixed for Safari and IntelliJ
Trackpoint Scrolling with Java
Google on tp4table.dat

Bonus
Firefox fix
; Mozilla Firefox
*,*,firefox.exe,*,*,MozillaWindowClass,WheelVkey,0,11

Other Java programs fix (if not works by defaults)
*,*,*,*,*,SunAwtFrame,WheelStd,0,9
*,*,*,*,*,SunAwtDialog,WheelStd,0,9
*,*,*,*,*,SunAwtCanvas,WheelStd,0,9
*,*,*,*,*,SunAwtFrame,WheelStd,0,9

Window names can be found with free AutoIt tool, kudos for tip to Andy.

Wednesday, June 30, 2010

HDD nightmare

Wednesday, June 23, 2010

A game

Что-то вспомнил тут свою старую игрушку — «За рулём».


source

У меня была жёлтая, карта похожа на ту, что сверху.
Ключик, передачи... Педали не было :-(


source


source

video

Thursday, May 20, 2010

012 with Linksys WRT54GL and Tomato firmware

Other issue I've ran into is losing DNS from ISP on router reconnects.

I got Linksys WRT54GL with Tomato custom firmware v1.28.1812 (Built on Mon, 03 May 2010 20:35:16 -0700). LT2P reconnect at 012 doesn't happen too often, but sometimes changes unexpectedly.

How you feel that? Browsers can not open sites, any other program you start after reconnection that require internet communication also will fail reporting that their servers are not accessible. But already connected applications like messengers (Skype, GTalk, etc) that were connected before redial still working because they usually no need extra DSN lookups once they online.

This is an example of log after reconnect.
May 19 20:05:22 linksys daemon.notice pppd[10267]: Modem hangup
May 19 20:05:22 linksys daemon.notice pppd[10267]: Connection terminated.
May 19 20:05:22 linksys daemon.info pppd[10267]: Connect time 2761.3 minutes.
May 19 20:05:22 linksys daemon.info pppd[10267]: Sent 2694942685 bytes, received 2221543095 bytes.
May 19 20:05:23 linksys daemon.info pppd[10267]: Exit.
May 19 20:05:44 linksys user.info redial[10265]: WAN down. Reconnecting...
May 19 20:05:47 linksys user.info kernel: vlan1: del 01:00:5e:11:11:22 mcast address from master interface
May 19 20:05:47 linksys user.info kernel: vlan1: del 01:00:5e:11:11:22 mcast address from vlan interface
May 19 20:05:47 linksys user.info kernel: vlan1: del 01:00:5e:14:41:22 mcast address from master interface
May 19 20:05:47 linksys user.info kernel: vlan1: del 01:00:5e:14:41:22 mcast address from vlan interface
May 19 20:05:47 linksys user.warn kernel: vlan1: Setting MAC address to 00 23 69 3b 47 29.
May 19 20:05:47 linksys user.info kernel: vlan1: add 01:00:5e:14:41:22 mcast address to master interface
May 19 20:05:47 linksys user.info kernel: vlan1: add 01:00:5e:11:11:22 mcast address to master interface
May 19 20:05:48 linksys user.info kernel: IPP2P v0.8.1_rc1 unloaded
May 19 20:05:50 linksys user.info redial[21003]: Started. Time: 30
May 19 20:05:51 linksys daemon.notice pppd[21005]: pppd 2.4.1 started by root, uid 0
May 19 20:05:51 linksys daemon.info pppd[21005]: Using interface ppp0
May 19 20:05:51 linksys daemon.notice pppd[21005]: Connect: ppp0 <--> /dev/pts/0
May 19 20:05:51 linksys daemon.notice pppd[21006]: pppd 2.4.1 started by root, uid 0
May 19 20:05:51 linksys daemon.info pppd[21006]: Using interface ppp1
May 19 20:05:51 linksys daemon.notice pppd[21006]: Connect: ppp1 <--> /dev/pts/1
May 19 20:05:53 linksys daemon.err pppd[21005]: not replacing existing default route to vlan1 [172.27.48.1]
May 19 20:05:53 linksys daemon.notice pppd[21005]: local IP address 80.178.17.224
May 19 20:05:53 linksys daemon.notice pppd[21005]: remote IP address 212.199.17.75
May 19 20:05:53 linksys daemon.notice pppd[21005]: primary DNS address 80.179.52.100
May 19 20:05:53 linksys daemon.notice pppd[21005]: secondary DNS address 212.116.161.40
May 19 20:05:53 linksys daemon.info dnsmasq[10272]: exiting on receipt of SIGTERM
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: started, version 2.52 cachesize 150
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
May 19 20:05:53 linksys daemon.info dnsmasq-dhcp[21012]: DHCP, IP range 12.13.14.31 -- 12.13.14.39, lease time 1d
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: reading /etc/resolv.dnsmasq
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: using nameserver 212.116.161.40#53
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: using nameserver 80.179.52.100#53
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: read /etc/hosts - 0 addresses
May 19 20:05:53 linksys daemon.info dnsmasq[21012]: read /etc/hosts.dnsmasq - 73 addresses
May 19 20:05:54 linksys user.info kernel: IPP2P v0.8.1_rc1 loading
May 19 20:05:56 linksys daemon.err pppd[21006]: not replacing existing default route to ppp0 [212.199.17.75]
May 19 20:05:56 linksys daemon.notice pppd[21006]: local IP address 80.178.21.137
May 19 20:05:56 linksys daemon.notice pppd[21006]: remote IP address 212.199.17.74
May 19 20:05:56 linksys daemon.notice pppd[21006]: primary DNS address 80.179.52.100
May 19 20:05:56 linksys daemon.notice pppd[21006]: secondary DNS address 80.179.55.100
May 19 20:05:56 linksys daemon.info dnsmasq[21012]: reading /etc/resolv.dnsmasq
May 19 20:05:56 linksys daemon.info dnsmasq[21012]: using nameserver 80.179.55.100#53
May 19 20:05:56 linksys daemon.info dnsmasq[21012]: using nameserver 80.179.52.100#53
May 19 20:05:56 linksys daemon.info dnsmasq[21012]: exiting on receipt of SIGTERM
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: started, version 2.52 cachesize 150
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
May 19 20:05:56 linksys daemon.info dnsmasq-dhcp[21059]: DHCP, IP range 12.13.14.31 -- 12.13.14.39, lease time 1d
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: reading /etc/resolv.dnsmasq
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: using nameserver 80.179.55.100#53
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: using nameserver 80.179.52.100#53
May 19 20:05:56 linksys user.info kernel: vlan1: del 01:00:5e:11:11:22 mcast address from master interface
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: read /etc/hosts - 0 addresses
May 19 20:05:56 linksys daemon.info dnsmasq[21059]: read /etc/hosts.dnsmasq - 73 addresses
May 19 20:05:58 linksys user.info kernel: vlan1: add 01:00:5e:11:11:22 mcast address to master interface
May 19 20:06:21 linksys user.info kernel: vlan1: del 01:00:5e:11:11:22 mcast address from master interface
May 19 20:06:23 linksys user.info kernel: vlan1: add 01:00:5e:11:11:22 mcast address to master interface
May 19 21:05:14 linksys daemon.info dnsmasq[21059]: reading /etc/resolv.dnsmasq
May 19 21:05:14 linksys daemon.info dnsmasq[21059]: using nameserver 192.168.101.102#53
May 19 21:05:14 linksys daemon.info dnsmasq[21059]: using nameserver 192.168.101.101#53
May 19 21:05:14 linksys daemon.info dnsmasq[21059]: exiting on receipt of SIGTERM
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: started, version 2.52 cachesize 150
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
May 19 21:05:14 linksys daemon.info dnsmasq-dhcp[21564]: DHCP, IP range 12.13.14.31 -- 12.13.14.39, lease time 1d
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: reading /etc/resolv.dnsmasq
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: using nameserver 192.168.101.102#53
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: using nameserver 192.168.101.101#53
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: read /etc/hosts - 0 addresses
May 19 21:05:14 linksys daemon.info dnsmasq[21564]: read /etc/hosts.dnsmasq - 73 addresses


Note the last 4 lines about nameserver, it takes 192.168.101.102#53 and 192.168.101.101#53.

The workaround is to set static DNS. I saw that 012 usually reports 3 addresses: 80.179.52.100, 80.179.55.100 and 212.116.161.40.
So I set first two from 012 and third from Google public DNS (just in case first two fails): 80.179.52.100, 80.179.55.100 and 8.8.8.8.

Monday, May 17, 2010

Leumi mail header fail

The head image...

Show typed password in browsers

I agree with Jakob Nielsen that user should simply check what password they type. But if they want to. That solves many login issues.


I took latest jQuery 1.4.2 and Prototype 1.6.1 with 4 modern browsers for tests: Google Chrome, Mozilla Firefox, Opera and Internet Explorer 8.

Good looking solution not works in IE because it doesn't let you to change DOM's element attribute 'type" once it cloned.
But if you still concerned that IE users are good people, just got it preinstalled with OS - I have an ugly tricks version that works in all these browsers.

One thing, I forgot to mention.
When adding Show feature, you braking tab key flow for those, who like to use primary a keyboard. So now, after Password field, pressing Tab move us to Show checkbox, but it should to Remember me as would without it. In this case, you have to set tabindex property manually, to keep user on track and not show a secret incidentally to people looking at monitor instead of checking Remember me. See example below.

Sunday, May 16, 2010

012 Smile internet

Looks like now, my internet connection is fine.

After I've spent a lot of time last week on my cell phone with them, their VoIP box passed away, and they replaced it by new one after 2 days. Another fail is when I ask for free call back from support because I on my cell, they saying "wait, it will not take more than a minute" and then again and again.

All was need is a right support guy, his name is Eugene.
He is not tell to Cisco employee "type ping on black screen, it's spelling P-I-N-G" or "you need a PC technician, you have problem with your PC" that's just so unprofessional for support host. I guess, the main issue on any support service its experience and quality of that young boys and girls, 012 is the worst company.

Also, if 012 representatives (not support) promise to call you back on next day to check is that fixed or when to take replacement, that will never happen.

But anyway, thumb down for 012, better choose Bezeqint or Netvision.

Wednesday, May 12, 2010

012

I want to clarify why I complain about 012 and why you should avoid buy their service.
I'm not saying that it happens with all their clients, but from what I know - you better find another provider.

I work at Cisco and till April 25th 2010 our company was paid for home broadband internet, usually 5 Mb / 512 kb. I was happy subscriber of HOT business as infrastructure and Bezeqint Business as ISP.

Now, as company reduces costs and employees need to switch to self paid internet. Cisco called all ISP to the office and the come with different deals - 012 Smile, Netvision, Bezeqint and Orange. Most of us chose 012 cause of lowest prices. They have bundles (ISP + infrastructure) or just ISP service.

Compare details on 012 deal to Cisco versus regular request as new client, prices in NIS.
Client type: Business vs. Private
ISP cost: 30 vs. 90
HOT cost: 72 vs. 80
Bundle cost: 102 vs. 130
In summary, if you are new client you will pay 130 NIS every month for 5/512, if you from Cisco - 102 NIS. Pretty good prices for us, because we have a big group of people looking for internet.

Now, when I switched to 012 from Bezeqint, here start my problems.
The major are
- torrent traffic is shaped (more details in next post)
- L2TP connection lost from 2-4 times per day
- support is also playing ping-pong with you sending you to HOT, HOT to 012 and so on.

Before Cisco (3 years ago) I was also using 012 and was very unhappy with them because of same things. I thought they changed - wrong! Now they won't let me leave and keep fucking my brain every day (details to follow).

By the way, you can try them for 14 days and disconnect without even say a reason as new remark to law says.

012 vs Bezeqint

This is a simple check I made yesterday evening - same torrent files were tested over 10 minutes.

Bad ISP - traffic shaping - 012 Gold lines

Good ISP - no shaping - Bezeqint

More details to follow...

Thursday, May 6, 2010

012 Smile - Voice box after router

How to connect 012 voice box after your router and control it.

This is my device

Make: AudioCodes
Model: MP-202 (012 uses MP-202/012/CBL)
I got with M.Date 12/2008

user@wazup:~$ sudo nmap -sS -O 10.100.101.1

Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-06 01:24 IDT
Interesting ports on 10.100.101.1:
Not shown: 995 closed ports
PORT     STATE    SERVICE
23/tcp   filtered telnet
443/tcp  open     https
992/tcp  open     telnets
8080/tcp open     http-proxy
8443/tcp open     https-alt
MAC Address: 00:90:8F:09:93:DC (Audio Codes)
Device type: general purpose
Running: Linux 2.4.X
OS details: Linux 2.4.18 - 2.4.35 (likely embedded)

Also another suspicious ports
2555 open uknown
8023 open unknown
2945/sctp filtered h248-binary
7626/sctp filtered simco

UDP scan took 20 minutes.
user@wazup:~$ sudo nmap -sU 10.100.101.1

Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-06 01:26 IDT
Interesting ports on 10.100.101.1:
Not shown: 983 closed ports
PORT STATE SERVICE
53/udp open|filtered domain
67/udp open|filtered dhcps
68/udp open|filtered dhcpc
161/udp open|filtered snmp
789/udp open|filtered unknown
965/udp open|filtered unknown
1007/udp open|filtered unknown
1105/udp open|filtered unknown
1900/udp open|filtered upnp
16503/udp open|filtered unknown
20678/udp open|filtered unknown
21524/udp open|filtered unknown
21644/udp open|filtered unknown
21780/udp open|filtered unknown
21898/udp open|filtered unknown
49173/udp open|filtered unknown
55043/udp open|filtered unknown
MAC Address: 00:90:8F:09:93:DC (Audio Codes)

So, to place this box after your router and control it, you need to connect your PC via cable in LAN/PC port, wait for IP address from it, check a Gateway IP and use it in browser with 8080 port (https://GATEWAY-IP/ also works). Username is "user", password is "wel-012!" (all without quotes). Set Connection Type to "Automatic IP Address Ethernet Connection".

No you need to set QoS rules for SIP and RTP protocols - this will help prioritize voice traffic over other, so when you need to call, your torrent will not affect you, because voice will get high priority.
Ports are 5060, 5061, 5004, 5005.

If support guys can't reach it, setup port forwarding to black box, they should be happy.

Led indication
SIP registration status LED indication - a successful registration ('online' state) is indicated by a LED flashing slowly (a very short flash every 4 seconds). This indication is per phone line.
The LEDs labeled 'Phone 1' and 'Phone 2'reflect the status of the phones connected to the MP-202:
ON - During power-up and when the phone is off-hook.
OFF - Normal / the phone is on-hook
Flashing - Phone is ringing

See also about that in Hebrew

Wednesday, May 5, 2010

Learning Adobe Flex

Last week I learned some Adobe Flex.
They got great video course - Flex in a Week - recommended if you want a smooth start without too much reading.

In frame of this week, I did a small project - company car chooser. Most big companies (like mine Cisco) offer to their employees leased cars. Sometimes it profitable, sometimes not (out of this article scope).

So, people should choose a car and CarChooser will help them to make a first choice (or minimize options) by simple criteria filtering like budget, major car specs, tax rates (for Israel). It uses Google Image Search service for preview images, so it's very cool. Before that we have simple cars table with names and links to makes pages. You need to open 5-10 links until you find how much you will pay, how it looks like and can you use trunk for folding bikes with food at once.

Online demo
Source code on GitHub

See also
Flex developer center
Flex/AIR Application Scope Tips

Thursday, April 29, 2010

Hertz ads fail

Wednesday, March 24, 2010

Реклама месных израильских забегаловок такая аппетитная...



Аж блевать тянет... FML

Wednesday, February 24, 2010

PHP

I was unable to install today PECL extention PDO_MYSQL via

sudo pecl install PDO_MYSQL


The problem was that after configure, make can't find mysql header files.

...
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:25:19: mysql.h: No such file or directory
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:36: error: syntax error before "MYSQL"
...


So I learned how to make an extension manually.
I ran locate mysql.h, copyed all mysql headers from there to current folder and now you can make it

phpize --clean
phpize
./configure
make


make install won't worked for me.
pdo_mysql.so placed in modules dir, copy it to extentions dir (php -i | grep extension_dir) and enable in php.ini.

These steps will not add PDO_MYSQL under the PEAR, so you need to maintain it by yourself. But to update list of installed packages, you can do this trick

sudo pecl install -rB pdo_mysql

-r means do not install files, only register the package as installed
-B means don't build C extensions

Some other good to read links
Topic : pdo_mysql.so driver Installation

Saturday, February 20, 2010

Израильские сайты

Более-менее полезные источники информации.
Для поиска по ним можно пользоваться расширенным поиском яндекса или фильтром "site:" гугла.

Безвозмездная раздача вещей
http://community.livejournal.com/hinam_ru/
и обмен

Wednesday, January 27, 2010

Right way for Windows 7 installation

Here is what you need to tweek after OS install.

Enable Administrator account
  1. run cmd as administrator
  2. type net user administrator /active:yes

Enable ping response
  1. As Administrator
  2. Go to Windows Firewall
  3. Open Advanced settings
  4. Find and enable following rules

    1. File and Printer Sharing (Echo Request - ICMPv4-In), Domain
    2. File and Printer Sharing (Echo Request - ICMPv4-In), Public
    3. File and Printer Sharing (Echo Request - ICMPv6-In), Domain
    4. File and Printer Sharing (Echo Request - ICMPv6-In), Public
Alternative way how to do that - How to Enable Ping Reply in Windows 7

Remote Desktop connections

Wired LAN priority
  1. open Control Panel
  2. go to Network connections
  3. open Advanced menu
  4. select Advanced settings
  5. in the connections box reorder them as you want them to be

There is now good way to disable DVD auto eject, see search results on that.

Windows Updates
Allow all users to install updates on computer.


Popular issues

Thursday, January 21, 2010

Git aliases

I found this very useful in day-to-day git work.
[alias]
    a = add

    s = status --short
    ss = status

    b = branch -a
    ba = branch -a -vv
    bs = !git-branch-status
    bsi = !git-branch-status -i

    c = commit
    cm = commit -m

    co = checkout

    d = diff --color
    ds = diff --color --stat
    dsp = diff --color --stat -p
    # files changed between commits
    dn = diff --color --name-only

    l = log --color --decorate
    ls = log --color --stat --decorate
    ln = log --name-status --color
    lsp = log --color --stat -p --decorate
    lg = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s'
    lga = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all
    l10 = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -10
    # for complicated branches
    lsd = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration

    ru = remote update
    sb = show-branch --sha1-name

    ls-del = ls-files -d
    ls-mod = ls-files -m # including remote files
    ls-new = ls-files --exclude-standard -o
    ls-ign = ls-files --exclude-standard -o -i

Update (2012-11-11)
https://gist.github.com/4056358

Friday, January 8, 2010

Israel start throttling torrents?

I found today that my internet provider Bezeqint started throttling my torrent downloads.

After analyzing peers list i found that:
1. They monitor torrent traffic by patterns;
2. They track only TCP connections;

Check out how perfectly ISP is shaping my non-UDP traffic


The workaround:
1. Force encryption
µTorrent: Preferences > BitTorent > set Outgoing to Forced and uncheck Allow incoming legacy connections
2. Force UDP usage
µTorrent: Preferences > Advanced settings, you'll need to force bt.transp_disposition to 10 (source, values explained)

If your's torrent client working fine, that do not do anything, because these settings will decrease peers list and as so most likely your down/up speed.

See how it looks cool now :-)


Links
New in uTorrent 1.9 - uTP, the micro transport protocol. This UDP-based reliable transport is designed to minimize latency, but still maximize bandwidth when the latency is not excessive.