Check your current memory free
> free
Run this command
> free && sync && echo 3 > /proc/sys/vm/drop_caches && free
Check again
> free
Tag Cloud
accordion
(1)
admin
(1)
administration
(1)
android
(2)
angel love
(2)
answer
(1)
app
(1)
archangel
(2)
auto complete
(1)
axis2 json
(1)
backup
(1)
barcode
(3)
bb
(1)
binary decimal convert c
(1)
blackberry
(9)
boylevantz
(1)
browser error
(1)
c
(1)
C#
(1)
career
(1)
certification
(1)
ci
(1)
codeigniter
(1)
color
(1)
connection
(1)
contenga
(1)
create
(1)
csharp
(1)
css
(1)
database
(2)
db
(1)
demo
(1)
dev
(2)
developer
(2)
download
(1)
eclipse
(1)
enterprise deploy
(1)
eval
(1)
evo
(1)
expression
(2)
facelets
(1)
free
(1)
golden ratio
(1)
grant
(1)
hash md5 encrypt encryption
(1)
heap size
(1)
hibernate
(1)
html
(1)
ibm
(3)
index.php
(1)
installation manager
(1)
ios
(1)
java
(14)
javascript
(3)
jawab
(1)
job
(1)
jquery
(1)
jquery mobile
(2)
js
(2)
jsf
(2)
juel
(1)
kerjaan
(1)
kernel
(1)
language
(1)
launchpad
(1)
linux
(1)
list
(1)
listfield
(1)
location
(1)
log
(1)
log4j
(1)
logging
(1)
lowongan
(1)
magang
(1)
maven
(1)
memory
(1)
message
(1)
mobile
(3)
mysql
(3)
native
(1)
opportunity
(1)
orion
(1)
out of memory
(1)
php
(2)
pin
(1)
pom.xml maven pom sort sortpom mvn
(1)
postgre
(1)
program
(1)
programmer
(2)
programming
(1)
psql
(1)
Q&A
(1)
qrcode barcode java
(1)
question
(1)
remote
(1)
remove index.php
(1)
servlet
(1)
simple
(1)
solusi
(1)
spring
(1)
swap
(1)
tab
(1)
tanya
(1)
tcp rinetd linux suse redirection
(1)
tips
(1)
Tomcat
(1)
tooltip
(1)
training
(1)
ui
(1)
url
(1)
user
(1)
user interface
(1)
vacancy
(3)
web
(4)
webworks
(1)
worklight
(3)
zxing
(1)
Thursday, November 21, 2013
Tuesday, October 29, 2013
Removing url/index.php/... when using CodeIgniter
When creating application using CodeIgniter by default the URL will be as follow:
http://www.mydomain.com/index.php/home
When you want to shown as
http://www.mydomain.com/home
Solution
Put a file .htaccess in your root application folder
The file .htaccess content is
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ /your-root-folder/index.php/$1 [L]
http://www.mydomain.com/index.php/home
When you want to shown as
http://www.mydomain.com/home
Solution
Put a file .htaccess in your root application folder
The file .htaccess content is
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ /your-root-folder/index.php/$1 [L]
Thursday, October 24, 2013
Butuh jawaban ?
Butuh Jawaban ?
Tanyakan disini
http://tanyajawab.evo-training.com
Untuk request penambahan kategori, bisa melakukan request via email di boylevantz@gmail.com
Tanyakan disini
http://tanyajawab.evo-training.com
Untuk request penambahan kategori, bisa melakukan request via email di boylevantz@gmail.com
Labels:
android,
answer,
c,
evo,
java,
jawab,
php,
program,
programmer,
programming,
Q&A,
question,
solusi,
tanya,
training
Tuesday, September 24, 2013
Lowongan Magang Web Developer
Di buka lowongan untuk posisi magang
Web Programmer
- Dibutuhkan 2 orang
- Skill requirement basic: HTML,javascript,jquery,PHP, MySQL
- No Experience needed
- Akan diberikan training tambahan sebelum kerja
- Dikontrak untuk 1 bulan dengan possibility untuk diperpanjang.
- Kantor di Business Park Kebon jeruk A18
- Bila selesai kontrak akan diberikan surat rekomendasi staff magang dengan cap perusahaan.
- Jam kerja 20 atau 40 jam/minggu
Bagi yang berminat silahkan hubungi via email di
ali@evo-training.com
dengan judul email "Magang Web Programmer"
Web Programmer
- Dibutuhkan 2 orang
- Skill requirement basic: HTML,javascript,jquery,PHP, MySQL
- No Experience needed
- Akan diberikan training tambahan sebelum kerja
- Dikontrak untuk 1 bulan dengan possibility untuk diperpanjang.
- Kantor di Business Park Kebon jeruk A18
- Bila selesai kontrak akan diberikan surat rekomendasi staff magang dengan cap perusahaan.
- Jam kerja 20 atau 40 jam/minggu
Bagi yang berminat silahkan hubungi via email di
ali@evo-training.com
dengan judul email "Magang Web Programmer"
Jakarta, Indonesia
Jakarta, Indonesia
Thursday, July 18, 2013
Worklight Demo Application
Here is simple application build using IBM Worklight
Preparations:
- Install Eclipse Juno with Worklight
For full source code download here:
Worklight project - project for mobile client side, using IBM Worklight Studio
Server side code - server side code in PHP and MySQL
The application will demo how to:
- Use worklight in offline mode, does not contact Worklight Server
- Call external server side, cross domain (I'm using PHP and MySQL for example)
- Using jQueryMobile
- Using Google Map Javascript API
Code review
get_list.php
For full source code download here:
Worklight project - project for mobile client side, using IBM Worklight Studio
Server side code - server side code in PHP and MySQL
Preparations:
- Install Eclipse Juno with Worklight
For full source code download here:
Worklight project - project for mobile client side, using IBM Worklight Studio
Server side code - server side code in PHP and MySQL
The application will demo how to:
- Use worklight in offline mode, does not contact Worklight Server
- Call external server side, cross domain (I'm using PHP and MySQL for example)
- Using jQueryMobile
- Using Google Map Javascript API
Code review
get_list.php
<?php header("Access-Control-Allow-Origin: *"); header("Content-type: application/json"); $result = array(); $con = mysql_connect("localhost","root",""); mysql_select_db("demo"); $sql = "select * from contacts"; $rs = mysql_query($sql); while($read = mysql_fetch_array($rs)){ $result[] = array("id"=>$read[0], "name"=>$read[1], "phone"=>$read[2]); } mysql_close($con); echo json_encode($result);?>In client side application can use jQuery mobile with Worklight
<!DOCTYPE HTML>On javascript side
<html>
<head>
<meta charset="UTF-8">
<title>DemoApp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="stylesheet" href="css/DemoApp.css">
<link rel="stylesheet" href="jqueryMobile/jquery.mobile-1.3.1.min.css">
<link rel="stylesheet" href="jqueryMobile/jquery.mobile.theme-1.3.1.min.css">
<script>window.$ = window.jQuery = WLJQ;</script>
</head>
<body id="content">
<div id="home" data-role="page">
<div data-role="header">
<a href="#add_contact" data-role="button" id="addContact" data-theme="b">Add Contact</a> <h2>Demo App</h2>
<a href="#view_map" data-role="button" id="viewMap" data-theme="b">View Map</a>
</div>
<div data-role="content">
<div id="message"></div>
<ul id="contact_list" data-role="listview">
</ul>
</div>
</div>
<div id="add_contact" data-role="page">
<div data-role="header">
<a href="#" data-role="button" data-rel="back" data-theme="b">Back</a>
<h2>Demo App</h2>
</div>
<div data-role="content">
<div>
<input type="text" id="txtName" placeholder="Your name" />
</div>
<div>
<input type="text" id="txtPhone" placeholder="Your phone" />
</div>
<div>
<input type="button" id="btnSave" value="Save" data-theme="b" />
</div>
</div>
</div>
<div id="view_map" data-role="page">
<div data-role="header">
<a href="#" data-role="button" data-rel="back">Back</a>
<h2>Demo App</h2>
</div>
<div data-role="content">
<div id="canvas"></div>
</div>
</div>
<script src="js/initOptions.js"></script>
<script src="js/DemoApp.js"></script>
<script src="js/messages.js"></script>
<script src="jqueryMobile/jquery.mobile-1.3.1.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
</body>
</html>
$(document).ready(function(){
$('#addContact').click(function(){
$('#txtName').val('');
$('#txtPhone').val('');
$.mobile.changePage('#add_contact');
});
$('#viewMap').click(function(){
$.mobile.changePage('#view_map');
loadMap();
});
$('#btnSave').click(function(){
var name = $('#txtName').val();
var phone = $('#txtPhone').val();
if(name.trim()==''){
alert('Name is required');
$('#txtName').focus();
return;
}
if(phone.trim()==''){
alert('Phone is required');
$('#txtPhone').focus();
return;
}
addContact(name, phone);
});
loadContactList();
});
For full source code download here:
Worklight project - project for mobile client side, using IBM Worklight Studio
Server side code - server side code in PHP and MySQL
Jakarta, Indonesia
Jakarta, Republic of Indonesia
Tuesday, February 26, 2013
Create beautiful random color with Javascript
<html>
<head>
</head>
<body>
<div id="content" />
<script>
var golden_ratio = 0.618033988749895;
function hsv_to_rgb(h, s, v){
var r,g,b,p,q,v;
var hi = (h*6);
var f = h*6 - hi;
p = v * (1 - s);
q = v * (1 - f*s);
t = v * (1 - (1-f) * s);
hi = parseInt(hi,10);
if(hi==0) { r=v; g=t; b=p; }
if(hi==1) { r=q; g=v; b=p; }
if(hi==2) { r=p; g=v; b=t; }
if(hi==3) { r=p; g=q; b=v; }
if(hi==4) { r=t; g=p; b=v; }
if(hi==5) { r=v; g=p; b=q; }
return { r : parseInt(r*256,10), g : parseInt(g*256,10), b: parseInt(b*256,10) }
}
var html = '';
var rnd = Math.random();
var rnds = 0.5;
var rndv = 0.95;
for(var i=0;i<6;i++){
rnd += golden_ratio;
rnd %= 1;
var color = hsv_to_rgb(rnd, rnds, rndv);
var hexString = '#'+color.r.toString(16)+color.g.toString(16)+color.b.toString(16);
html += '<div style="width:50px;height:50px;background-color: '+hexString+'"> </div><br/>';
}
rnds = 0.25;
rndv = 0.8;
for(var i=0;i<6;i++){
console.log('*');
rnd += golden_ratio;
rnd %= 1;
var color = hsv_to_rgb(rnd, rnds, rndv);
var hexString = '#'+color.r.toString(16)+color.g.toString(16)+color.b.toString(16);
html += '<div style="width:50px;height:50px;background-color: '+hexString+'"> </div><br/>';
}
rnds = 0.3;
rndv = 0.99;
for(var i=0;i<6;i++){
console.log('*');
rnd += golden_ratio;
rnd %= 1;
var color = hsv_to_rgb(rnd, rnds, rndv);
var hexString = '#'+color.r.toString(16)+color.g.toString(16)+color.b.toString(16);
html += '<div style="width:50px;height:50px;background-color: '+hexString+'"> </div><br/>';
}
//console.log(html);
document.getElementById('content').innerHTML = html;
</script>
</body>
</html>
Saturday, January 12, 2013
Convert binary to decimal
Convert
Convert binary to decimal.
Input 101, will be output as 5
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
long int y, num, sum,k;
char x[8];
// Harusnya input terlebih dahulu, jgn strlen dulu
scanf("%s",x); fflush(stdin);
sum = 0;
k=strlen(x);
for (y=0; y<k; y++)
{
num=x[y]-'0';
sum=sum + powl(2,num);
}
printf("%d", sum);
getchar();
return 0;
}
Labels:
binary decimal convert c
Jakarta, Indonesia
Jakarta, Indonesia
Subscribe to:
Posts (Atom)