Shut That Phone Up and Put it down

Smart PhoneIt is illegal in Australia (and most countries in the world) to drive and ride a vehicle while using a hand-held mobile phone. Mobile phone use can distract the drivers and riders from the driving task. Studies have found that using a mobile phone while driving is dangerous as it slows reaction times and interferes with a driver’s perception skills and increases the chance of having a crash.

Driving is an activity that requires your full attention. It requires you to pay attention to every detail, analyse the visual/audible information received, respond effectively and react in a timely manner. These statements are also the fundamental requirements in order to communicate effectively. So why isn’t the use of mobile phone everywhere else not outlawed or at least controlled? How many other accidents or deaths have been caused by smart/mobile phone distractions?

It makes it very difficult to communicate to someone whose attention is constantly divided because they’re emotionally involved with their “Android” (“iOS” for AppleHeads and WP7 for Windows Users). In case you’ve been stuck under a rock for the past 10 years and just got out, Android, iOS and WP7 are the operating systems that drive those little devices called smart phones that are single-handedly killing old fashioned, intimate communication. You remember right, eye contact, body language, tone of voice, effective use of hands, posture etc. has been replaced by a handful of symbols like :( :) :D :P LOL ROFL etc.

We’ve become too accustomed to technology. Is it really making our life easier, or is it making us do more futile tasks? Think about it, about 50% of notifications are garbage like joke emails, useless information email/SMS, FB (Facebook) alerts, twitter alerts etc. 45% are requests/reminders from your family or friends so they’re semi-important. The other 5% (almost always phone calls) are very important like doctor’s surgery calling to advise that you’re late for your appointment, semi-important stuff that’s been escalated from an SMS to a phone call, a friend or family member in distress calling for advice, etc.

The primary method of notification of a phone is through an audible alert (whether it be a call, SMS, email, FB notification, FB message, the list goes on and on) usually set to the highest volume with vibration so that it is not missed. This way, every notification becomes a priority and demands attention. There’s no way to distinguish between what’s important and what’s not. As a result, we attend to each notification with the same reckless abandon, not realizing that we’ve become “zombies” under our devices “spell”.

We’re constantly bombarded with so much useless information that we are left confused. News on the internet are so sensationalised that the title is not related to the body of the article. It makes you wonder we bother reading news on the internet at all. That’s just the thing, as advanced as technology has become right now, it is still so one dimensional that everything it disseminates has to be “Sensational”. Text articles have to have sensational titles to get people to read it. Pictures have to be amazing to get people to look at it. Facebook posts have to be shocking to get people to like it. Photos have to be revealing to get people to enjoy it. There’s no point being subtle these days, no one will even notice you.

A good rule of thumb that I follow is that the phone doesn’t get any immediate attention until it rings, I mean traditional “someone is calling” ring. Everything else can wait (put everything else on silent, and check them during allocated periods of the day). That way, I can focus on what’s important right here, right now. Better still, turn your phone off for a day or two and see if anyone visits you. Remember back in the day not too long ago when you say to your loved one that you’ll call them around 7ish just before you say goodbye. Remember the excitement and anticipation as you both go through the day apart waiting for that moment when the clock ticks past 7 o’clock. You eagerly wait by the phone to call or receive the call. We had no choice but to wait then, had to let the excitement build up, exercise restraint, had to force ourselves to get through the day with only our peaceful thoughts and memories to distract us… not the annoying, loud buzzing and ringing of an electronic device.

I miss those days.

Posted in Mobile Phone, Smart Phones | Tagged , , , , , , | Leave a comment

FREE PDF Creator

Here’s a 100% free for personal and/or business use, 100% useful tool to create, and to some extent edit PDF files. I had to download the software and see for myself but this software is the real deal. Creating professional looking PDF files can’t be easier than this. Basically, as with most users, you create your document in Microsoft Word, and with the PDF24 FREE PDF creator, you transform your word document into PDF. It doesn’t stop there.

You are also able to do a virtual print of any document to PDF24 and voila, you got another method of generating any document to PDF format. This tool also allows you to edit your existing PDF files. You can split, merge and rearrange pages, secure a PDF with a password, change PDF properties and much more. Now if you think that it stops there, then I’m sorry to disappoint because there’s more.

You can also download the PDF24 Article to PDF plug-in for your WordPress website that will enable your readers to convert one or more of your posts to PDF files.

Now that’s what I call a complete PDF solution. Thanks PDF24.org!

Posted in PDF, Utilities | Tagged , , , | Leave a comment

Format Factory Review

I was looking for a free tool that will convert a bulky MOV file to something much smaller so I can post it to a website. I got a tip from a friend that Format Factory will do the job and much more. I was a bit sceptical at first but I thought why not.

I downloaded the 40MB package after quickly Googling the term “format media converter” because I couldn’t remember the name of the software at the time. I installed the application and used it to convert the MOV file to AVI, and I was blown away! It converted very quickly without any problems. Wow, I am now a fan!

Here’s the full spec of the software:

Format Factory is a multifunctional media converter.
Provides functions below:

  • All to MP4/3GP/MPG/AVI/WMV/FLV/SWF.
  • All to MP3/WMA/AMR/OGG/AAC/WAV.
  • All to JPG/BMP/PNG/TIF/ICO/GIF/TGA.
  • Rip DVD to video file , Rip Music CD to audio file.
  • MP4 files support iPod/iPhone/PSP/BlackBerry format.
  • Supports RMVB,Watermark, AV Mux.

 

Format Factory’s Feature:

  1. support converting all popular video,audio,picture formats to others.
  2. Repair damaged video and audio file.
  3. Reducing Multimedia file size.
  4. Support iphone,ipod multimedia file formats.
  5. Picture converting supports Zoom,Rotate/Flip,tags.
  6. DVD Ripper.
  7. Supports 56 languages
Posted in DivX, FLV, MP4, MPG, SWF, Video Conversion, WMV | Tagged , | Leave a comment

Posting Binary File Via a Proxy Using PHP Curl

Don’t ask me why I had to do this, but at work today, I had the need to post files up to a remote server while running the php script behind our firewall. Basically, we needed to make files inside our firewall available on the internet. I found out that the native fopen command cannot easily be configured to post via a proxy server so I had to implement the curl solution with the help of a work mate (Thanks Dean!).

I’ve attached the code below for those who has the need to do the same thing as I. When looking at the code, take note of line 2. Most work accounts belong to a domain, but some don’t so for those not on a domain, make sure you remove DOMAIN\\. For those on a domain take note of the double slash \\ (single slash won’t work).

Happy coding!

<?php

define("C_PROXY_SERVER_URL","proxy.server.com:8080");

define("C_PROXY_PASS","DOMAIN\\username:password");

$upload_url = "http://someremotesite.com/uploader.php";

 

$sample_file = "c:/Program Files/Apache Software Foundation/Apache2.2/htdocs/phpfileuploader/localuploads/FileZilla.zip";

curl_add_file($post_array,"uploadedfile",$sample_file);
curl_post_data($post_array, "p", "lkjdw9087787asdhkldhasdjaksh987987jklasdf");
curl_post_data($post_array, "file_id", 201);
curl_post_data($post_array, "phase_id", 201);
echo "<pre>";
echo "Data to post:\n";
print_r($post_array);
echo "\n";
echo "upload response: \n";
echo curl_post_request($upload_url, $post_array);
function curl_add_file(&$p_post_array, $p_name, $p_file)
{
if(!is_array($p_post_array))
$p_post_array = array();
if(!is_file($p_file) || empty($p_name) )
{
return FALSE;
}
if(!empty($mimetype))
{
$filename = "@" .  $p_file  . ";type=" . $mimetype;
}
else
{
$filename = "@" .  $p_file;
}
$p_post_array[strtolower($p_name)] = $filename;
return TRUE;
}
function curl_post_data(&$p_post_array, $p_name, $p_data)
{
if(!is_array($p_post_array))
$p_post_array = array();
if(empty($p_name))
return FALSE;
$p_post_array[strtolower($p_name)] = $p_data;
return TRUE;
}
function curl_post_request($p_url, $p_postdata)
{
$curl_res = curl_init();
curl_setopt($curl_res, CURLOPT_URL, $p_url);
curl_setopt($curl_res, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($curl_res, CURLOPT_PROXY, C_PROXY_SERVER_URL);
curl_setopt($curl_res, CURLOPT_PROXYUSERPWD, C_PROXY_PASS);
curl_setopt($curl_res, CURLOPT_POST, true);
curl_setopt($curl_res, CURLOPT_POSTFIELDS, $p_postdata );
curl_setopt($curl_res, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl_res);
if($response === FALSE)
$output = curl_error($curl_res);
else
$output = $response;
curl_close ($curl_res);
return $output;
}
?>

Posted in CURL, PHP | Tagged , , , , , , | Leave a comment

Getting Session Environment Parameters in Oracle

To display all environment variable values for a given oracle session, run the following code:

begin
FOR i IN 1..owa.num_cgi_vars LOOP
htp.p(owa.cgi_var_name(i)||' : '||owa.cgi_var_val(i));
END LOOP;
end;

The name of the environment variable and value will be displayed. To reference each variable individually use the following syntax:

OWA_UTIL.get_cgi_env(VARIABLE_NAME)

eg. OWA_UTIL.get_cgi_env('REQUEST_PROTOCOL')

Here’s the list of all available variables:

PLSQL_GATEWAY
GATEWAY_IVERSION
SERVER_SOFTWARE
GATEWAY_INTERFACE
SERVER_PORT
SERVER_NAME
REQUEST_METHOD
PATH_INFO
SCRIPT_NAME
REMOTE_ADDR
SERVER_PROTOCOL
REQUEST_PROTOCOL
REMOTE_USER
HTTP_CONTENT_LENGTH
HTTP_CONTENT_TYPE
HTTP_USER_AGENT
HTTP_HOST
HTTP_ACCEPT
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_REFERER
HTTP_ORACLE_ECID
WEB_AUTHENT_PREFIX
DAD_NAME
DOC_ACCESS_PATH
DOCUMENT_TABLE
PATH_ALIAS
REQUEST_CHARSET
REQUEST_IANA_CHARSET
SCRIPT_PREFIX
HTTP_COOKIE

Sample Output:

PLSQL_GATEWAY : WebDb
GATEWAY_IVERSION : 3
SERVER_SOFTWARE : Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
GATEWAY_INTERFACE : CGI/1.1
SERVER_PORT : 7780
SERVER_NAME : lxapp0533v
REQUEST_METHOD : POST
PATH_INFO : /wwv_flow.show
SCRIPT_NAME : /pls/dmt
REMOTE_ADDR : 148.132.152.59
SERVER_PROTOCOL : HTTP/1.1
REQUEST_PROTOCOL : HTTP
REMOTE_USER : APEX_PUBLIC_USER
HTTP_CONTENT_LENGTH : 416
HTTP_CONTENT_TYPE : application/x-www-form-urlencoded
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
HTTP_HOST : lxapp0533v.in.telstra.com.au:7780
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING : gzip, deflate
HTTP_ACCEPT_LANGUAGE : en-au
HTTP_REFERER : http://lxapp0533v.in.telstra.com.au:7780/pls/dmt/f?p=4500:1003:4479870342920497::NO:::
HTTP_ORACLE_ECID : 1297402712:144.135.172.44:22243:0:21186,0
WEB_AUTHENT_PREFIX :
DAD_NAME : dmt
DOC_ACCESS_PATH : docs
DOCUMENT_TABLE : wwv_flow_file_objects$
PATH_ALIAS :
REQUEST_CHARSET : UTF8
REQUEST_IANA_CHARSET : UTF-8
SCRIPT_PREFIX : /pls
HTTP_COOKIE : ISCOOKIE=true; LOGIN_USERNAME_COOKIE=d205414; LOGIN_PASSWORD_COOKIE=; LOGIN_REMEMBER_ME_COOKIE=; r1=%23ALL; r2=%23ALL; r3=%23ALL; propHide=4301%2C%23ALL; WWV_FLOW_USER2=47770A7FD83D3E0A; ORACLE_PLATFORM_REMEMBER_UN=D205414:dmt; __ppFullPath=di-di; s_nr=1296902947468; s_evar18=%5B%5B%27referral%27%2C%271296902515781%27%5D%5D; SearchSettings=50,0,0,1,1,1,1,1; HTMLDB_IDLE_SESSION=11-FEB-2011 10:22:00; WWV_CUSTOM-F_955908081711180_100=739B959ED77BAFE2

Posted in ApEx, Oracle, PL/SQL | Tagged , , , | Leave a comment