Saturday, May 17, 2008

symbian resource error

เวลาคอมไพล์ ดูที่ หน้าต่าง output ด้วย
resource error แล้วมันจะไม่แจ้งเหตุผลที่ error

มี resource ที่เป็น svg ต้องใช้ command line compile ถึงจะได้

เสร็จค่อยมาใน IDE แล้วมันจะงงๆเรื่อง ID ก็ไปแก้ คอมเม้นออกไปเลยก็ได้

ตอนนี้ยังเจอปัญหา
Tried to compile a non-resource file ยังแก้ไม่ได้

ปัญหาใน Emulator ของ Symbian

http://discussion.forum.nokia.com/forum/showthread.php?t=96937
http://wiki.forum.nokia.com/index.php/Emulator_issues_and_solutions

มั solve ไว้แล้ว
ปัญหาอยู่ที่ Java version ใน SDK มันมี config file เราต้องไปเพิ่ม java version 6.0 กะ 1.6 เอง
(เพราะมันมีแค่ 1.5)

You do not need to install jre 1.4.2. You can even work with the latest java installation 6.0. However, you need to modify config.properties file for the series 60 installation. Open the file \Epoc32\tools\ecmt\config\config.properties and add the version of jre for the parameter epdt.java.version.start.

For JRE 6.0, you should add:1.6,6.0,so that the line seems like:
Code: epdt.java.version.start=1.4.1,1.4.2,1.5,5.0,1.6,6.0


many thanks to pandeya , kamenlitchev.

ใช้มือถือเล่นเน็ท ผ่าน BlueTooth โดย sync กะคอม

http://www.flashfly.net/forums/viewtopic.php?t=108983
ถ้าตังไม่พอจ่าย test ก็ลองมาใช้ แบบนี้แทนไปคร่าวๆ แต่กรณีที่ต้องคุยกะ Wap Gateway
ก็ต้องใช้ Sim test อยู่ดีละนะ

เดี๋ยวขอลองก่อน ถ้าได้จะเอามาใส่เละๆอย่างเดิม

Bye Bye Symbian Sign

อ่านบล็อกหนูเนย.. เลยจะทำมั่ง
ได้โอกาสนั่งทำวันนี้ทั้งวัน ที่จริงมีผู้หนึ่งใน Flashfly Dot Net แปลไว้ให้ ก็เลยสบาย
แต่ก็ยังไม่วายมีปัญหา..

สรุปๆเลยนะว่า โหลดจาก http://www.symbian-freak.com/forum/viewtopic.php?t=18252&sid=2c4ef545b06a3beaf948c66b705011a4 อันนี้ตรงที่สุด

http://www.flashfly.net/forums/viewtopic.php?t=175508&start=0&sid=529662430f92fdb400c1543a236d1dcd อันนี้

สรุป โหลดนี่ทั้งหมด เพื่อ hack phone
1.ActivePython http://downloads.activestate.com/ActivePython/windows/2.5/ActivePython-2.5.1.1-win32-x86.msi โหลดแล้วลงบนคอม

2.PySerial http://downloads.sourceforge.net/pyserial/pyserial-2.2.win32.exe?modtime=1122861377&big_mirror=0 โหลดแล้วลงบนคอม

3.ตัว script python และตัว TRK Nokia n95 ,n82 ,etc.(FP1) http://fca00000.googlepages.com/hack_perms_s60v3_FP1.py AppTRK http://fca00000.googlepages.com/s60_3_1_app_trk_2_7.sisx n73, n80 etc. (preFP1) http://fca00000.googlepages.com/hack_perms_s60v3.py AppTRK http://keshav0001.googlepages.com/s60_3_0_app_trk_2_7.sisx

ใครอยากได้ตัวใหม่ ไปนี่ http://tools.ext.nokia.com/agents/index.htm (แต่ผมใช้เครื่อง N90 แล้วมีปัญหา เลยเอา version เก่าดีกว่า)
ตัว script เดี๋ยวเราจะรันบนคอม(double click เฉยๆ)
ตัว sisx ลงบนมือถือ

4. CapsOn/Off เอาไว้เปิด/ปิด Security โดย CapsOff จะปิด Security และCapsOn เปิด Security http://fca00000.googlepages.com/capsOnOff.rar
เพราะว่าถ้า restart เครื่องใหม่ก็จะเข้า sys/bin ไม่ได้อีก
ดังนั้นหลัง restart จะต้องใช้ capoff เพื่อเปิดโหมด hack อีกครั้ง

ในนี้จะมี file .IDD ให้ก็อบใส่ c:/sys/bin หลัง hack เสร็จ
ละ sisx 2 file คือ CapsOn.sisx และ CapsOff.sisx ..
เอ้อ มันจะมีแยกเป็น 2 version นะคือ preFP1 และ FP2 ดูว่าใช้ version อะไรข้างล่าง scroll ไปหน่อยนะ

5. X-Plore โปรแกรม file explore สำหรับ symbian นั่นเอง ไปหาโหลดตามเวบ
http://www.flashfly.net/forums/viewtopic.php?t=121069 หาเอา

สรุป 2 โหลดนี่อีก เพราะ hack ได้แล้วก็แค่เข้า sis bin
ต้อง sign sis อยู่ดีอีกไง ทำได้ 2 แบบ บนคอมหรือบนมือถือ (ก่อนนี้โหลดจากเวบอื่นใช้ไม่ได้)
1. http://fca00000.googlepages.com/cert.rar
ตัว key และ cer ที่เราจะใช้ในการ selfsign ให้ app (sis file) ที่ยังไม่ได้ signed

2. http://www.gosymbian.com/dhscr/download/dwl_ssis_uk.php?name=SignSIS-GUI
ตัว SignSis ถ้าเราจะ sign บนคอม
ต้องกรอก IMEI ให้มันด้วยอะ (ยังใช้ไม่ค่อยเป็น) แต่ Sign ได้แล้ว

3. http://www.symbian-freak.com/downloads/app/3rd_ed/mobile_signer.zip
อันนี้ Sign บนมือถือเลย
แต่ผมใช้แล้วก็ยังติด Certificated error อยู่ดี ยังใช้ไม่เป็นนั่นเอง

ผมทดสอบด้วยโปรแกรมนี้
BTSwitch v1.00 4-in-1 Iconpack OpenSigned.sis จะลองมั่งก็ไป search เอาละกัน
เป็น vesrion มี่เค้าแจกให้ไปใช้ Opensigned sign กันเอง ก็เลยใช้ hack ดูดิ๊ ลงได้ แต่ใช้ไม่ได้(ก็ ok ละ ว่ามันลงได้แล้ว)

ขั้นตอนการทำจริง.. อะแห่ม ขี้เกียจเขียนอะ ก๊อบเขาเอาละกัน..

- ให้ต่อกับคอมโดยใช้สายนะคับ โหมด PC Suite คับ
- เริ่มแรกลง AppTRK ลงมือถือ
- เข้าโปรแกรม มันจะถามให้เปิด บลูทูธ กดไม่คับ
จากนั้น กด ตัวเลือก > Settings
- เปลี่ยนConnection เป็น USB คับ แล้วกลับไปหน้าหลัก
- แล้วกดตัวเลือก > Connect เลยคับ
- ดูตรง Status จะเป็น Connected คับ
จากนั้น ลุยต่อเลย
- ไปที่ Control Panel>System>Hardware>Device Manager>Ports คับ แล้วให้เราดูว่ามือถือเราต่อ Port ที่เท่าไหร่อยู่ (ถ้าเป็น vista ก็คล้ายๆกัน ดูข้างล่าง) ดูไว้ว่า port อะไร (ของผมได้ port 6) จำเอาไว้

- แล้วเปิด hack_perms_s60v3.py (หรือ hack_perms_s60v3_FP1.py) ด้วย Notepad คับ ให้กด CTRL+F หาคำว่า "ser = " แล้วให้หยุดตรงบรรทัดนี้บรรทัดนี้


ser = serial.Serial(5) # I have COM6

มือถือเราต่อ port เลขอะไร ให้ลบ 1 แล้วใส่แทนลงไปตรงเลข 5 แล้วก้อเซฟเลยคับ (ของผมก็ใช้เลข 5 ไปเลย เพราะได้ port 6 นิ)

แล้วเปิดไฟล์(double click ที่ไฟล์ .py) คับ แล้วรอสักพัก ถ้าเห็นประมาณว่า


!!!!!!candidate!!!!!!!

ตอนแรกผมทำไม่ได้ เลยลองเปลี่ยน version TRK ให้ตรงตามในเวบ และ version ของ python ด้วย
ปรากฏว่าใช้ได้ ไม่รู้ว่าเป็นที่อันไหนกันแน่เหมือนกัน.. เอ้า ไปต่อ

เฮเลยคับ แฮคได้แย้ว < เค้าพูดนะ แต่กว่าผมจะเฮมั่ง แทบแย่ เสร็จแล้วก็ใช้ x-plore เพื่อดูว่าเข้า sys/bin ได้ยัง ปรากฏว่า version x-plore ที่ผมมีดันใหม่ มันไม่ show folder sys หรือ system เลย ก็งงแตก นึกว่ายังไม่ได้อีกเรอะ แต่ใช้ y-browser ของคุณ yucca คนเก่งแห่งเมืองไทย ก็เห็น sys/bin เลยอ๋อว่า x-plore มันต้องมี setting อะไรแน่ๆ แล้วก็จริงครับ มันซ่อนไว้ ก็ไปให้มัน show ทั้งหมดก็ ok และ ที่นี้ก็จะลง capoff capon และ จะได้หลัง restart ก็เปิดโหมดบนเครื่องได้ง่ายๆ ถ้าตามเวบเก่าๆใช้ tools อีกตัวคือ Profiler http://tools.ext.nokia.com/agents/index.htm มีขั้นตอนนิดหน่อย แต่ไม่จำเป็นแล้ว เพราะเรามี CapsOn CapOff แล้ว ลงแล้วมี icon นะ version แรกๆของผมลงแล้วไม่มี icon ใช้ไม่ได้ ลองหาโหลดใหม่จาก link ข้างต้น)

ขั้นตอนการลง(เอาของเค้ามาใส่ต่อ)
ก้อลง CapsOn CapsOff โหลดมาแล้วจะมีสอง Folder ก้อคือที่ขึ้นต้นด้วย preFP1 คือของ OS9.1 คับ FP1 ของ OS9.2 คับ

จากนั้นก๊อบไฟล์ CProfDriver_SISX.ldd ที่อยู่ในที่เดียวกัน ไปที่ C:\sys\bin เป็นอันจบคับ
(เวลาจะเข้า sys private ต้องเปิด CapsOffก่อนคับ เปิดเครื่องใหม่หรือกด CapsOn ก้อเข้าไม่ได้เหมือนเดิมแล้วคับ)

ต่อไปเป็นการ ลงโปร unsigned ต้องบอกกันหน่อยนะคับ ว่าบางโปรเนี่ย จะลงไม่ได้ เพราะต้องใช้สิทธิ์ในการเข้าถึงมากกว่าคับ เช่น AllFiles กะ TCB ซึ่งเราก้อลงไม่ได้ ตอนนี้มีวิธีแล้วคับ ลุยต่อ

ลง Mobilesigner (แนบไฟล์) ต้องลงในเครื่องนะคับ

จากนั้นโหลด keycert.rar กับ 00000001.rar (แนบไฟล์มา) คับ (ของผมอยู๋ใน cer.rar แน่ะ มีครบ)

เปิดโปรแกรม X-Plore แล้วก๊อบ 00000001 ไปไว้ที่ C:\resource\swicertstore\dat(ต้องสร้างขึ้นมาเองนะคับ) - (ตอนแรกผมสร้าง ทั้ง 2 อันพร้อมกันไม่ได้ ต้องสร้าง swicertstore ก่อน แล้วออกจากโรแกรม x-plore แล้วก็ค่อยเข้ามา สร้าง folder dat ใหม่ทีหลัง)

จากนั้นต้องตั้งให้เป็น Read-Only ด้วยคับ โดยเลือกที่ไฟล์ 00000001 แล้วกดเลข6 คับ ติ๊กถูกที่ Read-only แล้วกด Change คับ

แล้วก๊อบ key.key กับ cert.cer ไปไว้ที่ c:\private\EC696702 คับ
(คัยที่ยังลงไม่ได้ให้ลองก๊อบทับใหม่แล้วติ๊ก Read-onlyที่ ไฟล์key กับ cert ด้วยคับ)

ถ้าจะลงโปรแกรมที่ยังไม่ได้ sign ก้อให้เข้าไปที่โปร MobileSigner คับ แล้วเลือกไฟล์ จากนั้นก้อกด ตัวเลือก > SelfSign แค่นั้นแหละคับ ไฟล์ที่ได้นามสกุลจะถูกเติม x เข้าไปอีกตัว เช่น irremote.sis ก้อจะมีไฟล์ใหม่เพิ่มมาชื่อว่า irremote.sisx ในที่เดียวกันคับ
ถ้าลงสำเร็จก้อคือทำได้คับ

เค้าแก้ปัญฆากันแน่ะ ก็ก๊อบมา..
norrakant พิมพ์ว่า:
ก็ยังไม่ได้เหมือนเดิมอ่ะครับ สงสัยว่า คงต้องยอมแพ้ซะแระ เอิ้กๆๆๆ ขอบคุณสำหรับคำแนะนำดีๆนะครับ แต่ว่าถ้าจะให้ดีขอ link เวบที่ว่าก็จะดีมากเลยอ่ะครับ
http://www.symbian-freak.com/forum/viewtopic.php?t=18252

มันมีอีกวิธีอะคับ คือไฟล์ 00000001 ก๊อบไปไว้ที่เดิม แต่ไฟล์ อีกสองอันทำเหมือนการ sign ธรรมดาคับ แนบไปไว้แล้ว ตอน sign ไม่ต้องใส่พาสนะคับ

ของผมไม่ได้ แจ่ว่าลองใช้บนคอมแล้วได้ ก็เลยไม่เอาละ เหนื่อย..

ของผมจะใช้ SignSis ที่คอมให้เสร็จไปเลย รัน SignSis เลยครับ
ก็กด *#06# เพื่อดู IMEI บนมือถือ แล้วมากรอกบนคอม แล้วก็เลือก cer และ key ที่มี แล้ว sign ไปเลยไม่ต้องสนใจใดๆ จะได้ sisx มาครับ เอาไปลงได้เลย

จบและ
======

คนที่แปลเค้าแยกให้ด้วยว่า เครื่องไหนจัดเป็น preFP1 FP1 หรือ FP2 (FP2 จะยัง hack ไม่ได้) ตามนี้
List of Nokia phones grouped by Feature packs.
Compiled by .::SWANKYLEO::.
Source: http://www.forum.nokia.com/devices/matrix_s60_3ed_1.html

Pre-FP1 devices: -------------------
Nokia N77
Nokia E61i
Nokia E65
Nokia N93i
Nokia N91 8GB
Nokia E62
Nokia E50
Nokia 5500
Nokia N93
Nokia N73
Nokia N80
Nokia N71
Nokia N92
Nokia E70
Nokia E60
Nokia E61
Nokia 3250

FP1 devices: ---------------
Nokia 6124 classic
Nokia N82
Nokia N95-3 NAM
Nokia E51
Nokia N95 8GB
Nokia N81
Nokia N81 8GB
Nokia 6121 classic
Nokia 6120 classic
Nokia 5700 XpressMusic
Nokia 6110 Navigator
Nokia E90 Communicator
Nokia N76
Nokia 6290
Nokia N95

FP2 devices (ยังแฮคไม่ได้) -------------
Nokia 5320 XpressMusic
Nokia N78
Nokia N96
Nokia 6210 Navigator
Nokia 6220 classic

N90 ของผมใช้ perFP1



Nokia phones -> Cable drivers of nokia pc suite version 6.85 need to be installed, nor 6.86 nor 6.84


1. Download and Install ActivePython on your PC
2. Download and Install PySerial
3. The magic python script and TRK application
a.) for Nokia (n95 ,n82 ,etc.) + AppTRK / (for n73, n80 etc) + AppTRK (Thanks to FCA00000)
b.) for UIQ based (P1i , w960i etc.) (Thanks to swmail)
4. Application to turn security on and off (from phone)
a.) for Nokia (n95 ,n82 ,n73 ,n80 etc.) (Thanks to FCA00000)
b.) for UIQ based (P1i , w960i etc.) (Thanks to swmail)

The Real Part:

1. Install the AppTRK application on your phone's memory and start it, then in options>settings, select connection as USB.

2. Connect your phone to your PC via USB in PC Suite mode and then AppTRK will report connected on your phone

3. Go to Control Panel>System>Hardware>Device Manager>Ports

OR in Windows Vista: Control Panel>System>Device Manager>Ports.

Note the COM Port your phone is using

4. Open the python script in notepad (the one downloaded in step 3 with .py extension)

5. Search "serial.serial" without quotes and then replace the numerical value in bracket with the value of your COM Port minus 1 i.e. if your port was 22 then replace it with 21.

6. Save the file

7. Run the script by simply double clicking it

8. Now if you see something like

!!!!!!candidate!!!!!!!

in the output window, then.....
congratulations now your phone is really yours!!

9. Now you can exit the AppTRK application.

10. Verify the hack with X-Plore, see if you can explore c:/sys/

11. Now if you will reboot the phone you will have to reactivate the hack with above procedure OR to do it without PC do the following(Note: for the first time PC hack is needed)

12.a.) For Nokia :

I. copy CProfDriver_SISX.ldd from RAR downloaded in step 4a into C:\sys\bin

II. install CapsOn.sisx

III. install CapsOff.sisx

b.) For UIQ based

I. Copy patched trkdriver.ldd from rar downloaded in step 4b to c:\sys\bin\

II. Install CapsSwitch on your phone

13. Now you can switch security on and off without pc through these applications

CapsOff = Security OFF and do whatever you want to do with your phone

CapsOn = Restrictions ON

After this hack you'll be able to install unsigned applications without SymbianSigned

Note: This tutorial is same for all symbian OS 9 phones(n95,n82,n73,n8,P1i,w960i etc.) until'n'unless mentioned


So here's the HOWTO for installing unsigned applications on your Symbian phone after you have hacked it(CapsOFF) :-

1. Download this rar file containing the certificate, the key and the authentication file for your phone. (Thanks to leftup of symbian freak)

2. Copy the file "00000001" to "C:\resource\swicertstore\dat\" on your phone and mark the file read-only from X-Plore or other similar file explorer. If the given directories do not exist , create them

3. So now your own authentication system is installed on your phone. Now you need to sign your sis files with the given certificate and key in the rar file.

4. For signing sis files (pc based method)(works for all Symbian OS 9 phones)


I) Download and install SignSis GUI on your PC

II) Select the given certificate and key(password is blank) given in 'the rar file you downloaded'

III) Select the file you need to sign and sign it and transfer it to your phone, install normally..

IV) Now you have the application installed with all its capabilities


------------------------------OR---------------------------------


4. Mobile based method(no need for a pc), works only for Nokia phones


I) Download and install MobileSigner on your phone

II) Open MobileSigner and select and sign the 'unsigned sis file' and MobileSigner will generate a signed sisx file in the same directory as the source file.

*if you have problem signing try "self-sign" option*

III) Install the generated sisx file and application will be having all its capabilities.

Enjoy )))

Thursday, May 15, 2008

dotnet control

http://www.akadia.com/services/dotnet_user_controls.html


bitmap transparency
http://www.pcreview.co.uk/forums/thread-1320947.php
http://www.codeproject.com/KB/buttons/od_buttons.aspx

Opensource Nokia Browser (webkit)

มันมีจริงๆด้วยดิเอ้อ
http://opensource.nokia.com/
http://opensource.nokia.com/projects/S60browser/index.html

ดู Core มันเป็นรูป
http://blogs.s60.com/browser/2007/10/coring_the_browser_1.html

Browser Plug-in API

ก็ถ้าเปิด Media Player ไม่ได้ สู้เปิด Browser เลยดีมั้ย

http://www.forum.nokia.com/main/resources/technologies/browser_plug-in_api.html
แต่ก็มีปัญหา http://discussion.forum.nokia.com/forum/showthread.php?t=56553

มี example ใน 3rd edition นะ (แต่ 2nd edition ท่าจะไม่มี)
http://www.newlc.com/forum/browser-embedded-mode-symbian-3rd-edition
Are you talking about a Browser Control embed in you native Symbian App. If yes, pls have a look at BrCtlSampleApp example which comes along with S60 SDK.
\Symbian\9.1\S60_3rd\S60Ex\BrCtlSampleApp . Can I ask, what example application are you making(if you don't mind)

Nokia Open Sources S60 Mobile Browser Code <= จิงป่าว http://www.itbusinessedge.com/item/?ci=16518

ข่าววงการ Browser
http://blogs.s60.com/browser/browser_wars/
น่าสนใจเนอะ
http://blogs.s60.com/browser/user_interface/
คุยกันไว้ว่า ไอ้นี่มาแล้วว
http://blogs.s60.com/browser/widgets/

หมอนี่บอกว่าทำทุกอย่างบน web browser กันดีกว่า
http://blogs.s60.com/browser/2008/02/whats_all_that_other_software.html

What's all that other software for? Posted by Peter Harbeson at 07:06 AM Categories: User Interface
I decided to see how much I could do with my mobile without using any software other than making/receiving calls and using the browser. The answer is: almost everything I need or want to do. Here's what I can do with the browser:
keep my calendar in any of several web-based calendars (Google, Yahoo, Plaxo, and probably a dozen others)
send and receive email using the web (pharbeson [at] gmail [dot] com, by the way)
send SMS using bigfoot.com
maintain a to-do list
view and edit Office documents using Google docs
listen to music
watch videos
back up data (although most of my data isn't local, so it's already backed up)
maintain and use a contact list -- this is not as well integrated as it could be, but it's possible
read ebooks
subscribe to and read RSS feeds
subscribe to podcasts (although I listen to them without the browser)I can't use the camera through the browser, and I didn't find a useful web-based way to do reminders when they're tied to specific times -- for example, "wake up, you have a meeting in five minutes".
I didn't try games, reasoning that I don't play mobile games anyway, and I don't know what the native games are like on the phone.
Nearly everything I use my mobile phone for I can do with just underlying software for calls, connections, and the like, and a browser. The one thing I would need to make this scenario viable is to pay a flat rate for data. The implications for the device itself are also important: with the same specifications you free up a lot more memory for browser-related operations. The UI gets vastly simpler and (if you do it right) easier. The bug count automatically drops, simply because there are millions of fewer lines of code. Battery life might take a hit because of the near-constant data connection. Some operations might take a performance hit because they're being performed in (for example) Javascript instead of native code. The history of computing, though, clearly shows that such things are temporary issues.
Imagine that a company wanted to create a phone like this. The advantages might be that with vastly fewer pieces of software, that company could devote more resources to the browser. This would enable them to add browser features and updates faster. They'd be able to use their resources to partner with third party developers, who would find the investment manageable because they're creating web apps.
The one thing that company would have to do would be to partner with carriers so that the user experience of the phone -- which is really the user experience of a phone and its infrastructure -- would include a good model for constant data connection.
All of this is fairly obvious.
So far, Apple has made a major step in this direction, and Google is certainly rumored to be planning an even bigger step. Service providers (carriers) in the US have enormous clout in phone design, and often market devices under their own brand names. They're anything but innovative, but I'm sure that there are some people in those companies making exactly these points.

3GP streamming

http://www.torrentocracy.com/blog/archives/2006/05/streaming_mytht_1.shtml
http://www.mythtv.org/modules.php?name=MythFeatures

เอ้อ.. ก็มันเป็น web browser นี่นะ ก็เลยเปิด streamming ได้
บน Phone แต่ไม่รู้ว่า OS อะไร

เป็น 3GP



Streaming MythTV to your cell phone
Electrical tape wearing thin holding together my old cell phone (Samsung i500), I decided it was time to give in and upgrade to a new phone. I drank the kool-aid on a 2 year Sprint contract given the discounts both on the phone and in my monthly service, and in the end settled on the Samsung a920. It's an EVDO enabled phone with Sprint's $15 unlimited monthly data service. Playing around with the mobile TV functionality (that's an extra $10/month but I was enjoying the first month free), I had one of those lightning bolt moments.
Why not stream my own video to the phone? Better yet, why not just automate my MythTV to convert my recorded programs and automatically have them ready to be streamed whenever I care to watch them on the phone?
A bit of research later, I discovered SlingBox can stream your tv to your phone, but it needs to be a Windows mobile phone and then there's the monthly service fees and the box to buy. I also found random mythtv devotees with similar ideas at least as far back as January 2005, but couldn't otherwise find a concise guide or more information. Inspired by ZooVision, I knew it was possible for users to stream their own content to their phone, it was just a matter of putting the pieces all together. A couple hours of tinkering later, and I've got a working solution... my "tivo" on my cell phone wherever there's sprint evdo access. So here are the steps:
Get MythTV up and running. I won't go into that, but it's worth the hassle even if I couldn't stream it to my cell phone.
Follow these directions which will get you an updated version of ffmpeg (named ffmpeg3gp) and a myth3gp script which, in combination, allow you to take Myth recorded video and convert it to 3gp, a mobile video format standard that most multimedia phones support. However, instead of using the myth3gp script from there, you'll likely want to use this myth3gp script as I've included a couple of necessary changes. Save that txt file as /usr/local/bin/myth3gp on your Myth box.
Create a directory to hold your 3gp videos on your Myth system. Open up the myth3gp script from the previous step and change the line that says: out="/mnt/drive2/myth3gp"to: out="/directory/for/saving/your/3gp/videos"
Install gpac. Once you've compiled and installed gpac, it will provide you with an executable called MP4Box which is used to convert the 3gp file from step two into a 3gp file that is streaming enabled. The myth3gp script calls MP4Box to take care of this for us.
Find an internet connected server which can house your 3gp videos and be available to stream them at will to your phone. On said server you'll need to install Apple's Darwin Streaming Server. Installing it can be a bit of pain, but just be sure to have port 554 open so that it can handle the rtsp streaming protocol. For me, getting Darwin to work took the most effort. If your MythTV box has a static IP and is internet accessible, that should work fine, but in my case I'm uploading the videos to another server.
We're in the homestretch. We've got programs to convert Myth recorded video to a phone friendly format, and we've got a server that can stream them to our phone. We just now need an automated process to convert the video and upload it to the server running Darwin and we'll be in phone tv nirvana. Myth can do this automation for us. You'll need to exit out of Myth and run: mythtv-setupFrom there, choose the "General" menu item and hit enter until you get to the "Job Queue" screen. Put a checkmark in "Allow User Job #1 jobs and continue to the next screen until you get the page with label "User Job #1 description". Give it a description like "Myth 3GP" and for the command, use (note the quotes): /usr/local/bin/myth3gp %DIR%/%FILE%
"%STARTTIME%~~~%TITLE~~~%SUBTITLE%"Save your changes, exit, restart the mythbackend and restart Myth.
With Myth restarted, go into Utilities / Setup -> Setup -> TV Settings -> General and click through until you get the "General (Jobs)" page. On this page, put a check in the checkbox next "Run User Job #1 On New Recordings". This will ensure that our process gets run after each new recording. Important Note: For all existing recurring recordings that you had prior to setting up Myth3GP, you'll need to manually edit the recording options and in "Post Recording Processing", you'll need to switch its setting so that it says "Run 'Myth3GP'".
If your using your local Myth system for Darwin streaming, just be sure that Darwin knows where to find the 3gp files on your system. Otherwise, edit the myth3gp script from step number two and set the darwin_username, darwin_hostname and darwin_dir as appropriate for your external server. At the bottom of the script, it uses scp to transfer the file from your Myth system to your Darwin server. Though, for everything to be automated, you'll need to set up scp to not require a password. Directions for password free ssh/scp are short and sweet. Once you can transfer files between systems sans password, you are good to go.
The final step. On your Darwin machine, make sure you have a web server running (apache), php installed and place this php script somewhere in a web accessible folder. It's job is to scan your 3gp movie folder for movies and generate a webpage with rtsp:// links so that you can access your recordings from your phone. Edit the php script and change $directory to the directory path for your 3gp videos and set $hostname to your hostname. With that installed, you're done. You can manually convert your old recordings by starting the "Myth3GP" job on them and any new recording will automatically get the mobile treatment. Fire up the URL for the mythmobile php script and start streaming.
Triumph. Indeed some beautiful uses of fair use. Fair use to record the tv program to my hard drive... Fair use to convert the video format to one viewable by my cell phone... Fair use to stream it to my cell phone for my own personal enjoyment. Now imagine trying to do any of this with the broadcast flag in place.By Gary Lerhaupt, 03:51 AM in general Comments (0)

Windows Mobile Tips

โรยละเอียดได้ใน link

http://blogs.msdn.com/raffael/archive/2008/03/25/gps-programming-tips-for-windows-mobile-part-1.aspx
- Introducing GPS Intermediate Driver

http://blogs.msdn.com/raffael/archive/2008/04/03/gps-programming-tips-for-windows-mobile-part-2.aspx
- Useful samples on the web
- Bluetooth Shared Source possible enhancements

http://blogs.msdn.com/raffael/archive/2008/04/18/gps-programming-tips-for-windows-mobile-part-3.aspx
- GPS Signal Quality
- Error Reduction
- Avoid problems with localizations
- Data Layer: do NOT use XML files... <- ติดใจเพราะอันนี้ เค้าให้ใช้ mssql compact ดีกว่ากันเยอะ
- Hints about showing itinerary with GPS Data independently on current device resolution\orientation
(- links to this project on Codeplex and to webcast Creating Location-Aware Applications for Windows Mobile Devices (Level 300))

twitter กะ jaiku

http://raymasky.blogspot.com/2007/05/twitter-vs-jaiku-review.html

UI อะนะ

https://twitter.com
http://www.youtube.com/watch?v=4niCIdpjw9E&eurl=http://video.aol.com/video-detail/tricastmedias-twuik-j2me-gui-sdk-on-windows-mobile-50/2119959142


N95 Games
http://www.youtube.com/watch?v=L7AVHqaQGq8&NR=1


MMF Video Playback

รู้จัก orb 2.0

ขึ้นชื่อทีเดียว
http://www.cnet.com.au/software/internet/0,239029524,240060064,00.htm
http://blogs.s60.com/s60multimedia/2006/11/why_orb_is_cool_part_iii.html
http://nseries-mobile.blogspot.com/2006/11/orb-just-got-better.html

อะไรน้า
http://www.avvenu.com/

Tuesday, May 13, 2008

mobile tv (video streaming) on demand

รวม Solution Mobile TV แบบ streamming นะ= http://www.geekzone.co.nz/content.asp?contentid=1430
มี ASX ที่เรางงๆกัน

ASX is a Microsoft Windows Media file format (that points to the actual Windows Media Audio or Windows Media Video file/stream): http://en.wikipedia.org/wiki/Advanced_Stream_Redirector
So, it hasn't anything particular to do with "online tv", except, e.g., through some broadcast operator having chosen to use Microsoft formats to stream video over the Internet.
If that's what you're after, then what you need is: - Software that supports Windows Media Video streaming for the P990. - Or a PC that can capture and re-encode the video stream to something else.
I don't believe there are any Windows Media Video file or streaming capable applications available for the P990.
You could also ask if the "online tv" provider (whomever it is, you didn't say) could offere the video in some other non-Microsoft format that your phone can handle.

=============

I was reading about British Telecom developing a streaming technology with Vemotion. Don't we have other technologies out there for this? What about Windows Media, RealOne Player and Oplayo, all already available for mobile devices? Is this Vemotion technology better? So, using a GPRS connection (Vodafone New Zealand), I tried some of these products.


How to find content?
Good question. I know of a few sites with links to live streaming content. If using a Symbian smartphone you'll need a HTML browser to find content using the websites listed later - and not all of them are mobile friendly in terms of resources needed to load.Free content is available from the Media Centers. Both most used formats (RealOne and Windows Media) offer this facility, but it's mostly a showcase, with short clips.Mobile carriers in Europe and Australia offer video content, but seems to be limited to short films (up to 15 minutes) and latest news or sport actions (just the goals, thanks).Perhaps one of the most complete listings for live content is on Radios.com.br. It's in Portuguese, but there's a menu on the left side with live International TVs and radio stations. Content is split between RealOne Player format and Windows Media Player format.Another site is a publisher, PPCVidz. Subscribers can watch to full length movies, and there are plenty of free options there. Not all of them optimised for mobile networks, but some will work quite well. The site contents are in Windows Media Player format.Oplayo's website lists a showcase with some interesting links. MobileMediaClub offers content, around £1.0 per stream for six hours access.And a new listing is Foneflix with sport and entertainment videos. USers in UK just have to send an SMS to a special number to subscribe to the service and download the player for Java based mobile phones. The platform is also based on Oplayo player.

Conclusion
3G will have to do better than what we have now with 2.5G to convince me to leave the couch potato days behind. And currently, although some content is available, the bandwidth available on 2.5G is not good enough for some of these codecs. RealOne and Windows Media are really heavy formats for the current networks. And the cost structure is prohibitive. Users will not watch a full length movie having to pay per MB (unless you're on some all you can eat GPRS plan like T-Mobile).By the way, you can order a free DVD (S&H US$7.75) with the complete BMW Films series from their website. I've got it and it's really cool.

Thursday, May 08, 2008

แปลง Header ของ Browser (The proximitron)

ที่จริง ถ้าเราอยากเล่น wap โดยที่ไม่ต้องใช้มือถือก็สามารถทำได้
เดี๋ยวนี้ wap มันจะเขียนด้วย xhtml (หรือคิดไปเองนะ)
หรือบางทีก็เป็น html ดุ้นๆก็มี ดังนั้น เราใช้ Browser ธรรมดาก็เปิดได้

แต่ถ้าเป็น Wap จริง มี Mozilla FireFox ที่สามารถอ่าน Wap เข้าใจ
ก็ใช้จิ้งจอกน้อยของเราเข้าไปเล่น ไปโหลดเกม ริงโทนได้

แต่กระนั้น สำหรับบาง site ที่ต้องการจำกัด หรือบันทึกเบอร์โทรศัพท์ หรือมีการตรวจสอบ User Agent
ที่จริงจะเอาไปใช้มากในการแบ่ง user ที่เข้ามาที่ website ผ่านทางมือถือ หรือผ่านทางคอม ให้มาที่ url เดียวกัน แต่จะตรวจสอบ header แล้ว redirect ไปยังที่ๆควรจะไป

ถ้ารู้ว่าเป็น mobile ก็จะส่งไปยัง content ของ mobile ซึ่งเราก็อยากจะเข้าถึง content ของ mobile นี่นา แค่เราใช้ browser บนคอมเท่านั้นเอง

วิธีการก็คือ เราต้องรู้ User-Agent ของโทรศัพท์เราจริงๆว่า มันเขียนยังไง (เป็น text ยาวๆอันนึง)
แล้วเราก็มา simulate ใส่ไว้ในโปรแกรม Proximiton ให้มันรันเป็น Proxy แล้วก็ set ให้ browser ตั้ง Proxy เป็น localhost นี้

User-Agent หาได้ทั่วไปตามคนใจดีมาโพส หรือจะใช้โค้ด PHP ในการดึงก็ได้ จากที่เอามาเค้าดูจาก Phpinfo ก็มี
ตามนี้ http://www.mattcutts.com/blog/iphone-user-agent/

ก็จะมี header ของ มือถือ หรือ iphone ก็ลอง search หาจาก google ดูได้


The User-Agent header contains a line of text that can be used to identify a user agent and client device. Most of the time, we can find the device model and manufacturer from the User-Agent header. It may also contain information such as the client device's OS version, browser version, Java capabilities, etc.
Some example User-Agent headers are provided below.

The User-Agent header of the Nokia 6230i cell phone:
Nokia6230i/2.0 (03.25) Profile/MIDP-2.0 Configuration/CLDC-1.1

The User-Agent header of the Nokia 6600 cell phone:
Nokia6600/1.0 (4.03.24) SymbianOS/6.1 Series60/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0

The User-Agent header of the Sony Ericsson T610 cell phone:
SonyEricssonT610/R501 Profile/MIDP-1.0 Configuration/CLDC-1.0

The User-Agent header of the Sony Ericsson K700i cell phone:
SonyEricssonK700i/R2AG SEMC-Browser/4.0.3 Profile/MIDP-2.0 Configuration/CLDC-1.1

The User-Agent header of Openwave Mobile Browser 6.2.2:
OPWV-SDK/62 UP.Browser/6.2.2.1.208 (GUI) MMP/2.0

-----------------------------------

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3

ลองดูนะ




ส่วนบาง site จะมีการ charge ตังด้วย operator อย่าง AIS DTAC .. ก็จะมีการบวก Header เพื่อแนบเบอร์โทรเราไปให้ ที่จริงเราก็สร้าง header นี้ได้ถ้าเรารู้คำ แล้วเบอร์ที่เรากรอกไปก็อาจจะซวยได้ เพราะโดนไป charge เงิน ดังนั้น ก็ขอให้เป็นการสู้กันระหว่า Admin กะพวกเสียดายตังละกัน เขียนเอาไว้ช่วยจำ เพราะเคยทำมาจ้า

Tuesday, May 06, 2008

social network น่าสนใจ

http://www.chrisbrogan.com/how-does-your-blog-relate-to-your-business/
http://www.chrisbrogan.com/social-networking-architecture-project/


Marianne RichmondJune 25, 2006 07:40 PM
Interestingly enough, the MIT School of Architecture and Planning (http://loohooloo.mit.edu/) is also home to the MIT Media Lab (http://loohooloo.mit.edu/divisions/media_lab/overview/) where there seems to be lots going on in research of social media (http://www.media.mit.edu/research/ResearchPubWeb.pl?ID=38) and they seem to be incorporating social networks into their architecture and planning program and architecture and planning into their social media porgram.
I came accross it looking for social network research.Marianne Richmond

http://web.media.mit.edu/~orkan/projects/portraits/index.html
http://www.media.mit.edu/research/38

Opensocial Let's Start

http://code.google.com/apis/opensocial/