C:\WINDOWS\system32\cmd.exe /c sc start tomcat7To start tomcat and of course:
C:\WINDOWS\system32\cmd.exe /c sc stop tomcat7To stop tomcat. Fin.
Blog by abdza. Open Source, Computers, Gadgets, Life, Love and everything in between.
C:\WINDOWS\system32\cmd.exe /c sc start tomcat7To start tomcat and of course:
C:\WINDOWS\system32\cmd.exe /c sc stop tomcat7To stop tomcat. Fin.
One of the great advantage of living in the digital age is that it is much more cheaper and easier to become a producer. And by producer I mean producing any kind of content at all. Not just films but also photos, writing and others.
Almost any tom, dick and harry can pick up a computer, register himself on the internet and now he's a published writer read by hundreds or even millions or maybe nobody. Point being is that it is that much easier to put your ideas out there and effectively become a producer.
But then there's another side of the coin. All these contents have to be viewed by someone, liked by someone, shared by someone. So now it becomes a choice for every single person, do I want to be a consumer or producer. And most of the time the easy choice is to just be a consumer. Just spend your eyeballs time. Just browsing around, reading around, sharing around. Sometimes even when you have this great idea you think would be good to publish and share with the world, you tend to put it off. Until finally it doesn't matter anymore, and there's an opportunity lost.
Maybe it's time for me to change.
Haven't written anything for a long time already. So just punctuating the silence with a burst of wacha...
public function behaviors() { return array( 'nestedSetBehavior'=>array( 'class'=>'application.extensions.NestedSetBehavior.NestedSetBehavior', 'leftAttribute'=>'lft', 'rightAttribute'=>'rgt', 'levelAttribute'=>'level', 'hasManyRoots'=>true, 'rootAttribute'=>'root_area', ), ); }
$this->widget('CTreeView', array( 'id'=>'treelink', 'data'=>$treedata, ));
public function treechild($id) { $curnode = Areas::model()->findByPk($id); if($curnode){ $childrens = $curnode->children()->findAll(); if(sizeOf($childrens)>0){ $out = array(); foreach($childrens as $children){ $currow=['id'=>$children->id,'text'=>$children->name,'children'=>$this->treechild($children->id)]; $out[]=$currow; } return $out; } else{ return null; } } return null; } public function treedata() { $roots = Areas::model()->roots()->findAll(); $out = array(); foreach($roots as $root){ $currow=['id'=>$root->id,'text'=>$root->name,'children'=>$this->treechild($root->id)]; $out[]=$currow; } return $out; }
$this->render('tree',array( 'dataProvider'=>$dataProvider, 'treedata'=>Areas::model()->treedata(), ));
Yii::app()->clientScript->registerScript('clickscript'," $('#treelink li').on('click', function(event) { event.stopPropagation(); $('#create').attr('href',$.param.querystring($('#create').attr('href'),'parent_id='+$(this).attr('id'))); $('#edit').attr('href',$.param.querystring($('#edit').attr('href'),'id='+$(this).attr('id'))); }); ",CClientScript::POS_READY);
$this->menu=array( array('linkOptions'=>array('id'=>'create'),'label'=>'Create Areas', 'url'=>array('create')), array('linkOptions'=>array('id'=>'edit'),'label'=>'Edit Area', 'url'=>array('update')), array('label'=>'Manage Areas', 'url'=>array('admin')), );
if(isset($parent_id)){ echo $this->renderPartial('_form', array('model'=>$model,'parent_id'=>$parent_id)); }
if(isset($parent_id)){ echo CHtml::hiddenField('parent_id',$parent_id); }
if(isset($_POST['parent_id'])){ $parent = Areas::model()->findByPk($_POST['parent_id']); if($parent){ $model->appendTo($parent); } }
$this->render('create',array( 'model'=>$model, 'parent_id'=>$_GET['parent_id'], ));
I haven't blogged anything for a long time. Have so many things to say. Learned so many things to share. But in the end didn't allocate any time for it. Oh well...
My son keeps on playing with my htc phone until the batteries run dry. People can barely contact me because if my son answers the phone he doesn't want to pass it on to me. What's a techie to do? Why, get his son something else to play with of course.. :P So I scoured the low yatt plaza looking for something that would be cheap enough that if my son breaks it, I wouldn't mind, but fast enough that he can play his games on it. After searching high and low, the best I could find was the android pocket pc. It's basically just a very cheap android tablet that comes with a casing with a keyboard in it. Funny thing is, the keyboard is usb, the tablet only accepts mini usb (not even a micro usb) and so they also give an adapter from usb to mini usb. It costs rm 699 a pop. If it's still running by the year end, I'd consider that already as ROI. They claim the cpu is 1.5 Ghz and memory 1 GB. I haven't installed any diagnostics software to make sure, but the internal storage is 1 GB just by looking at the application management settings. It doesn't have a back facing camera to take any pictures, but it does have a 1.3MP webcam you can use to video chat or something. And it comes with a somewhat customized android 2.3 (customized as in it looks like a tablet interface, something like the original galaxy tab I think).
So I just had to do it. This morning I was already ready to try installing ICS on it. Mmmmm... manufacturer... none that I can find.. model.. oh err... damn these cheap things... How on earth am I going to find info on how to go about flashing it and all. Finally I just googled the build number, and I come to this gem of a post..
So basically the steps are, download the ics image either from:
MOMO9c ICS v1
build #1
Model 97FC
Kernel Version 3.0.8+ inet_dada@Inetsoftware #1 (without market, still has bug)
Build Number 97F1-D1-H2-H01-N412-20120105
- Momo9c ICS v1
Kevin Custom build 12
Model 97FC
Kernel Version 3.0.8+ inet_dada@Inetsoftware #12
Build Number 97F1-D1-H2-H01-N412-20120111
- Momo9c ICS v2
build #15
Model MOMO
Kernel Version 3.0.8+ inet_hxj@Inetsoftware #15
Build Number 97F2-D1-H1-H02-1553-20120113
I tried both the #12 and #15 build. Both seems to work fine.
After the image is downloaded, download the LiveSuitPack.
Run LiveSuitPack_v1.07.exe first,
then run LiveSuit.exe. (Yes, I did this in windows. Since it involves hardware, I would highly not recommend you try it in wine or something).
Running LiveSuit.exe will automatically run the wizard, if not click the third icon (the gears).
Click on "Yes",
then "Upgrade Mode",
then "Format",
then "Next",
then "Yes",
browse to the image you downloaded,
click "Finish".
Once that is done, there will be a progress bar but does not move. Now for the tablet.
First, switch off the tablet.
Then press the + volume button,
while keeping it (the volume button) pressed, connect the usb cable to the computer,
press the power button 6 times,
then let go of all the button. Fuh...
I had to go here to find out that.
Once that is done, the dialog box to confirm will pop up 2 times. Answer yes for both, and soon the progress bar will start moving.
Once it's finished, disconnect the table, turn it on, and there you have it, ice cream sandwich on the cheap.
Note about the build #15, it's in Japanese.
So you should first go to the settings page (flick the screen to the left to go to the pan on the right, it's the black box with control setting on it).
There choose the language options (it's the one with a capital A next to it),
click on the first option,
and select whichever english language you're comfortable in.
Then you can start playing around.
Both the build #12 and build #15 already has the market in it but I wasn't able to find the icon. What you should do is search for market, then you will find the market app. Install whatever you need.
Well, that's all for now. Time for me to keep on learning (playing) more about the ICS I've just downloaded.. :P
As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...