Sunday, May 23, 2010
Second Milestone
Today is a second milestone for me. Its exactly 2 month since I quit my job. I'm a little behind, haven't release my second apps yet. But May isn't over, hopefully i can manage in this last few days.
Tuesday, May 18, 2010
Forget to create trunk folder in SVN
Another one about SVN. Since i'm a bit hurry when adding my project to my SVN repositories. I forgot to create the common directories (trunk, branch and tags). After my project is stable i decided to move the code to the proper directories before tagging it.
After quick i found a simple and effective way. Since I'm working on windows, i made a simple batch script for it. Beware it tested lightly, and I didn't tune it to be a generic script.
@echo off
set repo=http://localhost/svn/myProject
echo "Repository location " %repo%
echo "Creating SVNTemp directory"
del SVNTemp
mkdir SVNTemp
echo "Checking out source from repo"
svn checkout %repo% SVNTemp
echo "Creating trunk in repo"
svn mkdir %repo%/trunk -m "creating trunk"
cd SVNTemp
FOR /F %%a IN ('dir /b *') do (
echo "Moving %%a to trunk"
C:\Progra~1\Subversion\bin\svn.exe mv %%a trunk
)
svn commit -m "organizing to trunk"
cd ..
@echo on
After quick i found a simple and effective way. Since I'm working on windows, i made a simple batch script for it. Beware it tested lightly, and I didn't tune it to be a generic script.
@echo off
set repo=http://localhost/svn/myProject
echo "Repository location " %repo%
echo "Creating SVNTemp directory"
del SVNTemp
mkdir SVNTemp
echo "Checking out source from repo"
svn checkout %repo% SVNTemp
echo "Creating trunk in repo"
svn mkdir %repo%/trunk -m "creating trunk"
cd SVNTemp
FOR /F %%a IN ('dir /b *') do (
echo "Moving %%a to trunk"
C:\Progra~1\Subversion\bin\svn.exe mv %%a trunk
)
svn commit -m "organizing to trunk"
cd ..
@echo on
Tuesday, May 11, 2010
1 Of 2 Fear
Udah lama emosi gw gak memuncak seperti ini. Dulu udah sering marah, berantem, capek. Jadi sekarang lebih milih diam aja , paling2 dibilang cuek abis. Tapi gak ada yang bakal sakit hati kena gw semprot, dan gw gak bakal uring2an berminggu2.
Tapi tanggal 9 dan 10 Mei ini nyokap memang bener2 keterlaluan. Tapi tetep aja gak bisa marah sama nyokap sendiri, gak mau nyakitin hati, but don't push me !
Tapi tanggal 9 dan 10 Mei ini nyokap memang bener2 keterlaluan. Tapi tetep aja gak bisa marah sama nyokap sendiri, gak mau nyakitin hati, but don't push me !
Saturday, May 8, 2010
The mystifying URL Encoding
I just found out about this things. I never really care about the difference between URL and URI. Whatever it is I just figured it will point to a resource somewhere in the internet. For all i know they can be used interchangeably, so far.
It turn out, when you're trying to generate your own URL programmatic-ally , it matters. One thing to know, that it encode space differently. URL will encode space into + as demand by html 4.0 specification. While with URI you can get the usual %20 character.
And what more annoying is this fact. That you can't simply use URLEncoder to encode and decode URL, but you need to create a URI then execute the toURL() method.
Tapestry URL
Now something specific about tapestry. Since I'm creating an android client that will talk with tapestry server. I need to generate my own URL. In this URL fiasco it turn out that tapestry has its own URL Encoding policy. You can see the change in this jira. Tapestry substitute the '%' character with '$00'.
Luckily the you can get tapestry URLEncoder implementation from tapestry code. So i just use that class in my android app. And one problem solved.
Oh another thing i found out. Tapestry page isn't debug able with eclipse WTP. But the services are.
Cheers
~FD
It turn out, when you're trying to generate your own URL programmatic-ally , it matters. One thing to know, that it encode space differently. URL will encode space into + as demand by html 4.0 specification. While with URI you can get the usual %20 character.
And what more annoying is this fact. That you can't simply use URLEncoder to encode and decode URL, but you need to create a URI then execute the toURL() method.
Tapestry URL
Now something specific about tapestry. Since I'm creating an android client that will talk with tapestry server. I need to generate my own URL. In this URL fiasco it turn out that tapestry has its own URL Encoding policy. You can see the change in this jira. Tapestry substitute the '%' character with '$00'.
Luckily the you can get tapestry URLEncoder implementation from tapestry code. So i just use that class in my android app. And one problem solved.
Oh another thing i found out. Tapestry page isn't debug able with eclipse WTP. But the services are.
Cheers
~FD
Its not easy
Well, its not easy when you're always at home and people think that you're just wasting your saving money. Ditching out a well payed job and many opportunities.
Its not easy, especially when they didn't understand about your field of work. Hell, even some of the people in your line of work couldn't see as far as you and other see.
Its not easy. But at least I'm thankful that my parent never ever force their decision on me. Although they sometimes didn't understand why i do it. And sometimes brought up question that i couldn't answer at the moment. I could only smile, and hope they will see it at the end.
Its not easy. But this is my choice, and i will go through it no matter what happened.
Its not easy, especially when they didn't understand about your field of work. Hell, even some of the people in your line of work couldn't see as far as you and other see.
Its not easy. But at least I'm thankful that my parent never ever force their decision on me. Although they sometimes didn't understand why i do it. And sometimes brought up question that i couldn't answer at the moment. I could only smile, and hope they will see it at the end.
Its not easy. But this is my choice, and i will go through it no matter what happened.
Siapakah pengguna tapestry 5 di indonesia ?
Judul di atas adalah pertanyaan yang muncul di kepala saya saat ini. Semenjak dulu 'canggih tetapi susah' adalah sebuah paradigma yang melekat dengan Tapestry. Tadinya saya pikir dengan keluarnya tapestry 5 (T5) akhirnya tapestry akan bisa jadi booming. Mungkin bukan saya sendiri yang berpikir seperti itu, tetapi para pengguna tapestry yang lain juga berpikir seperti itu. Tapi pada kenyataanya hal itu tidak terjadi.
Hingga saat ini, dimana tapestry dengan versi 5.1.0.5 yang sudah cukup stabil. Ternyata labelnya tetap melekat. Saya sendiri harus mengakui belajar Tapestry itu tidak mudah, sampai sekarang pun masih seperti orang bego :D.
Tetapi ini juga yang membuat saya tidak bisa lepas dari T5, terutama disaat seperti sekarang. Dimana saya merasa perlu untuk mendalami satu hal secara serius. Tidak hanya belajar kulitnya saja seperti selama ini. Tapestry itu canggih, apalagi di T5, banyak konsep2 yang mendahului jamannya. Selain itu tapestry banyak 'memaksa' kita untuk menggunakan cara2 yang 'benar' dengan segala jenis design pattern yang perlu kita pelajari. Bukan sekedar framework hack and slash :)
Mungkin itu juga sebabnya tapestry begitu sulit untuk di kuasai. Tetapi bagi saya sendiri mempelajari T5 dengan baik menjadi begitu berharga. Banyak hal yang bisa saya pelajari, semakin kelihatan perbedaan keahlian dalam mendalami konsep java dan web setiap kali saya mempelajari sesuatu. Pengalaman ini suatu saat pasti akan menjadi begitu berharga.
Dan sekarang yang menjadi pertanyaan saya adalah. Apakah ada orang lain di indonesia yang memiliki pikiran yang sama dengan saya. Kalau seandainya ada komunitasnya betapa senangnya bisa saling bertukar pengetahuan sebagai pengguna T5.
I'm sure we can learn a lot :D
Cheers
Hingga saat ini, dimana tapestry dengan versi 5.1.0.5 yang sudah cukup stabil. Ternyata labelnya tetap melekat. Saya sendiri harus mengakui belajar Tapestry itu tidak mudah, sampai sekarang pun masih seperti orang bego :D.
Tetapi ini juga yang membuat saya tidak bisa lepas dari T5, terutama disaat seperti sekarang. Dimana saya merasa perlu untuk mendalami satu hal secara serius. Tidak hanya belajar kulitnya saja seperti selama ini. Tapestry itu canggih, apalagi di T5, banyak konsep2 yang mendahului jamannya. Selain itu tapestry banyak 'memaksa' kita untuk menggunakan cara2 yang 'benar' dengan segala jenis design pattern yang perlu kita pelajari. Bukan sekedar framework hack and slash :)
Mungkin itu juga sebabnya tapestry begitu sulit untuk di kuasai. Tetapi bagi saya sendiri mempelajari T5 dengan baik menjadi begitu berharga. Banyak hal yang bisa saya pelajari, semakin kelihatan perbedaan keahlian dalam mendalami konsep java dan web setiap kali saya mempelajari sesuatu. Pengalaman ini suatu saat pasti akan menjadi begitu berharga.
Dan sekarang yang menjadi pertanyaan saya adalah. Apakah ada orang lain di indonesia yang memiliki pikiran yang sama dengan saya. Kalau seandainya ada komunitasnya betapa senangnya bisa saling bertukar pengetahuan sebagai pengguna T5.
I'm sure we can learn a lot :D
Cheers
Wednesday, May 5, 2010
Removing folder from SVN
Well, i haven't use SVN for a long time, so my memory is a bit lacking. I initially import all of my project to SVN, but I've forgotten some folder that should be excluded from the initial import. Such as generated bin files. And i want to remove it from SVN versioning.
The solution is pretty simple, you go to the folder that you didn't want to manage in windows explorer. Search for file and folder containing .svn, and don't forget to check search subdirectory, and search hidden file option. Sort by folder, delete all of the .svn folder.
Then go to eclipse, update your project. And then the bin folder will have a question mark near it. Just right click add to svn:ignore. And you're finished. The bin folder wouldn't be managed by SVN any longer.
Update :
After migrating to eclipse galileo subclipse somehow treat this workaround as un-ignored error. The better approach is to delete the folder from SVN Repositories View and check out the code again, and then add the folder to svn:ignore. The subclipse wiki explain in more detail.
~SD
The solution is pretty simple, you go to the folder that you didn't want to manage in windows explorer. Search for file and folder containing .svn, and don't forget to check search subdirectory, and search hidden file option. Sort by folder, delete all of the .svn folder.
Then go to eclipse, update your project. And then the bin folder will have a question mark near it. Just right click add to svn:ignore. And you're finished. The bin folder wouldn't be managed by SVN any longer.
Update :
After migrating to eclipse galileo subclipse somehow treat this workaround as un-ignored error. The better approach is to delete the folder from SVN Repositories View and check out the code again, and then add the folder to svn:ignore. The subclipse wiki explain in more detail.
~SD
Subscribe to:
Posts (Atom)