Contact Nack Athens

Need a website created or Need an event captured?

Hello! My name is Nack Athens. I am a Web Developer/Designer who has been in Photography since 1999.

I live in Seattle, WA but I originally came from Phnom Penh Cambodia.

Specialties

Linux, Apache, MySQL, PHP, C#, Java, XHTML / HTML, CSS, JavaScript, JQuery, AJAX, Database Design, MVC (Model View Controller)

I’m happy to answer any question you might have, and you can get in contact via the contact form on this site.

Life should be fun. If not, fix it!

Update from Joomla 1.7 to 3.0

Before upgrading from 1.7 to 2.5, please make a backup and consult with Joomla’s documentation: http://docs.joomla.org/Upgrading_from_Joomla_1.7_to_Joomla_2.5 Then check out the Joomla 3 FAQ: http://community.joomla.org/blogs/community/1683-joomla-30-faq.html

Read More

M.I.T. Computer Program Reveals Invisible Motion in Video

This is very interesting…

Read More

{yii} CGridView Custom Buttons

Example array( 'class'=>'CButtonColumn', 'template'=>'{update}{add}{delete}', 'buttons'=>array( 'update'=>array( 'url'=>'$this->grid->controller->createUrl("/Extras/update", array("id"=>$data->id,"asDialog"=>1,"gridId"=>$this->grid->id))', 'click'=>'function(){$("#cru-frame").attr("src",$(this).attr("href")); $("#cru-dialog").dialog("open"); return false;}', 'visible'=>'($data->id===null)?false:true;' ), 'add' => array( 'label'=>'Add', 'imageUrl'=>Yii::app()->request->baseUrl.'/css/gridViewStyle/images/gr-plus.png', 'url'=>'$this->grid->controller->createUrl("/Extras/create", array("eid"=>$data->extras_id, "bid"=>'.$model->id.', "asDialog"=>1,"gridId"=>$this->grid->id))', 'click'=>'function(){$("#cru-frame").attr("src",$(this).attr("href")); $("#cru-dialog").dialog("open"); return false;}', 'visible'=>'($data->id===null)?true:false;' ), 'delete'=>array( 'url'=>'$this->grid->controller->createUrl("/Extras/delete", array("id"=>$data->primaryKey,"asDialog"=>1,"gridId"=>$this->grid->id))', ),   ), ),

Read More

{Yii} Cgridview Custom Button Action Using Ajax

'buttons'=>array ( 'myCustomButton' => array ( 'label'=>'my button label', 'click'=>"function(){ $.fn.yiiGridView.update('user-grid', { type:'POST', url:$(this).attr('href'), success:function(data) { $('.output').html(data); $.fn.yiiGridView.update('user-grid'); } }) return false; } ", 'url'=>'Yii::app()->controller->createUrl("myAction",array("id"=>$data->primaryKey))', ),

Read More

50 performance tricks to make your HTML5 apps and sites faster

Read More

{Yii} How to register Jquery UI – js and css

With Yii 1.1.4, Jquery UI became part of Yii core. To activate JQuery UI, add the following line to your page: Yii::app()->getClientScript()->registerCoreScript( 'jquery.ui' ); If you want a custom style, download a JQuery UI css and add the following line: Yii::app()->getClientScript()->registerCssFile('LINK_TO_YOUR_CSS_FILE'); To use the style sheet that is already shipped with Yii, add the following line: Yii::app()->clientScript->registerCssFile( Yii::app()->clientScript->getCoreScriptUrl().'/jui/css/base/jquery-ui.css');

Read More

List open ports and listening services

Command to list all open ports and listening services: netstat -lnptu The output should look something like this: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2458/cupsd tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2353/postgres tcp6 0 0 :::22 :::* LISTEN 2335/sshd udp 0 0 0.0.0.0:631 0.0.0.0:* 2458/cupsd …

Read More

Get URL parameters using jQuery

jQuery code snippet to get the dynamic variables stored in the url as parameters and store them as JavaScript variables ready for use with your scripts. $.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); return results[1] || 0; } // example.com?param1=name&param2=&id=6 $.urlParam('param1'); // name $.urlParam('id'); // 6 $.urlParam('param2'); // null //example params with spaces http://www.example.com?city=Gold Coast …

Read More

Page 1 of 212»