Wish you happy new year..... . . 2014
Wish you happy new year..... . . 2014
Mike Driver
cherry valley forever
AnasAbdin
Today's Document
Cosimo Galluzzi
todays bird

PR's Tumblrdome

Origami Around
trying on a metaphor
styofa doing anything
sheepfilms
I'd rather be in outer space 🛸

★
No title available
RMH
Lint Roller? I Barely Know Her

Discoholic 🪩
dirt enthusiast

shark vs the universe

❣ Chile in a Photography ❣

seen from United States

seen from South Korea

seen from Türkiye

seen from United States

seen from United States

seen from United States
seen from United States

seen from United Kingdom

seen from France

seen from Germany
seen from United States
seen from Germany
seen from Canada

seen from United States
seen from Indonesia

seen from United States
seen from Israel
seen from United States
seen from Japan

seen from Poland
@udhayakumar
Wish you happy new year..... . . 2014
Wish you happy new year..... . . 2014
find and remove folders/files in linux
Example:
$udhayakumar@TB013:~/dump/data$
Make sure you are in correct location then use below command as per your needs
folder: find -name "\.svn" -exec rm -rf {} \;
or find -name "\code" -exec rm -rf {} \;
files: find -name "\.jpg" -exec rm -rf {} \;
or find -name "xyz.txt" -exec rm -rf {} \;
HTML Ascii code 4 Triangle or arrow
For HTML ASCII Coding ◄ = ◄ ► = ► ▼ = ▼ ▲ = ▲
For UNICODE
U+25B2 = ▲
U+25BC = ▼
U+25C0 = ◀
U+25B6 = ▶
Setting proxy in android phone(opera)
Download opera from the play store
type opera:config in address bar and press go
now a page opens with set of settings for opera
search the proxy
change the proxy which you want to use
save it, and restart the opera
all over
*correct me if i am wrong
Ubuntu panel power indicator
Purge and re-install indicator-power
sudo apt-get purge indicator-power
sudo apt-get install indicator-power
jdk7-installation in ubuntu12.04
clean and install oracle JDK in linux
sudo aptitude purge `dpkg -l | grep java | awk '{print $2}'` -y
sudo aptitude purge `dpkg -l | grep gcj | awk '{print $2}'` -y
Download the Linux version of jdk
tar -xvf jdk-7u4-linux-i586 (1).tar.gz
sudo mv ./jdk1.7.0_04 /usr/lib/jvm/jdk1.7.0_04
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
sudo update-alternatives --config java
java -version
All done.... . .
Ubuntu 12.4 show desktop
use this shortcut keys to show desk top in ubuntu 12.04
ctrl + super(windows) +d
Get Localhost ip in PHP 4 all interface in ubuntu
old one not that much friendly..... . .
use this snippet to get ip's for all network interface to ubuntu system
<?php
$temp = shell_exec("/sbin/ifconfig | cut -b 1-10");
$array = preg_split("/[\s]*[ ][\s]*/", $temp);
$array = array_diff($array, array(""));
$ip = 0;
foreach ($array as $inetface)
{
$ifconfig = shell_exec('/sbin/ifconfig '.$inetface);
if(!is_null($ifconfig))
{
echo '/sbin/ifconfig '.$inetface.' : ';
preg_match('/addr:([\d\.]+)/', $ifconfig, $match);
$ip = $match[1];
echo $ip.'<br>';
}
}
?>
CORRECT ME if i am wrong... . .
Get Localhost ip in PHP 4 all interface
regular usage
$ifconfig
eth0 blob blob
lo blob blob
wlan blob blob
try something better like this
udhayakumar@TB013:~$ ifconfig eth0 | grep "inet addr:"
inet addr:192.168.0.117 Bcast:192.168.0.255 Mask:255.255.255.0
udhayakumar@TB013:~$ ifconfig wlan | grep "inet addr:"
inet addr:192.168.0.119 Bcast:192.168.0.255 Mask:255.255.255.0
udhayakumar@TB013:~$
now How to use these things in php code
<?php
echo exec('/sbin/ifconfig eth0 | grep "inet addr:"');
echo "<br />";
echo "wlan ip address::::: ";
echo
exec('/sbin/ifconfig wlan | grep "inet addr:"');
?>
Correct me if i am wrong.... . .
PHP mysql_connect Error
HI,
Sometimes mysql_connect() method returns the error(in browser 500 - Internal server error) in log is like 'Resolving a Fatal error: Call to undefined function mysql_connect()'
To solve this issue:
method one:
Verify that the line to load the extension in php.ini has been uncommented. In Linux, the line is extension=mysql.so. Uncomment the line by removing the semi-colon. You might also need to configure the extension_dir variable(mysql.so file dir).
if it fails try
method two:
$ sudo apt-get install mysql-client
$ sudo apt-get install php-mysql
Note: after each process dont forget to restart the server
QR droid service usage in android
install QRdroid then try this snippet.
public class LoginActivity extends Activity { private static final int ACTIVITY_RESULT_QR_DRDROID = 0; public static final String SCAN = "la.droid.qr.scan"; public static final String COMPLETE = "la.droid.qr.complete"; public static final String RESULT = "la.droid.qr.result"; //public static final Map MAP = new HashMap(); public static final Map CONFLIST = new HashMap(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //For full screen display requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,W indowManager.LayoutParams.FLAG_FULLSCREEN); //setContentView(R.layout.main); Intent scaIntent=new Intent( SCAN ); scaIntent.putExtra(COMPLETE, true); startActivityForResult(scaIntent, ACTIVITY_RESULT_QR_DRDROID); } @Override protected void onActivityResult(int requestCode, int returnCode, Intent intent) { super.onActivityResult(requestCode, returnCode, intent); if (ACTIVITY_RESULT_QR_DRDROID==requestCode && null!=intent && intent.getExtras()!=null ) { String result = intent.getExtras().getString(RESULT); Log.e("", result); } } //string separator private void getlines(String result) throws ClientProtocolException, IOException { //result is qr content } } Try this code
Stop Async in Ajax call
In Ajax use 'async: false' to stop executing first, It may helps to execute the code in sequence,
$.ajax({
type: 'GET',
async: false,
url: 'url',
cache: false,
dataType: 'json',
success: function (response) {
//TO-DO
}
});