Posts

php - Page glitches unless error_reporting is -1? -

on site, if error_reporting not -1, page entirely glitches out i made 2 pages, both same except testblog.php has error_reporting(0);, whereas blog.php has error_reporting(-1); these pages: http://pirates-online-rewritten.com/blog.php http://pirates-online-rewritten.com/testblog.php this code (please fix format someone, don't know how): <?php include "header2.php"; include "connect.php"; error_reporting(-1); $id = mysql_real_escape_string(strip_tags(stripslashes($_get['id']))); $getpost = mysql_query("select * blogs id='$id'"); $gp = mysql_fetch_object($getpost); ?> <table border="0" cellpadding="0" cellspacing="0" width="626" summary="layout table"> <tr> <td valign="top" width="626"> <!-- begin center content --> <table border="0"...

node.js - Cordova run ubuntu not work -

i installed ubuntu 14.04 , can not run application using "cordova run ubuntu", gives following error : paulo@paulo-notebook:~/hello$ sudo cordova run ubuntu referenceerror: name not defined @ object.configparser.setdescription (/usr/local/lib/node_modules/cordova/src/configparser.js:70:45) @ object.module.exports.update_from_config (/usr/local/lib/node_modules/cordova/src/metadata/ubuntu_parser.js:74:21) @ object.module.exports.update_project (/usr/local/lib/node_modules/cordova/src/metadata/ubuntu_parser.js:156:21) @ /usr/local/lib/node_modules/cordova/src/prepare.js:113:31 @ _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54) @ self.promisedispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30) @ promise.promise.promisedispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13) @ /usr/local/lib/node_modules/cordova/node_modules/q/q.js:821:14 @ flush (/usr/local/lib/node_mo...

c# - Securing client side json -

i new in windows store apps development. creating windows store app requires store data on client side. data present in json format having build action content. whenever user runs application, initializing objects reading json file. plain text , contains data should not revealed user. can encrypt json means. need workaround encrypt json data while building application , decrypt json while reading , initializing objects. please suggest. i'm assuming code looks this: string json = file.readalltext("/<path json>/config.json"); // parse json ... you can encrypt content of json file using aes encryption. need define key used encryption , decryption. take in here : using aes encrypt / decrypt in c# after using encryption code this: when need read configuration: string encryptedjson = file.readalltext("/<path json>/config.json"); string aeskey = "<your aes key>"; string plainjson = aesdecrypt(encryptedjson, aeskey...

google play - Android app not compatible with ASUS NEXUS 7 -

i received feedback published app user asus nexus 7 tablet: google play store says app not compatible device. i can't figure out why, believe nexus 7 has app needs, i'm missing something. here relevant manifest snippet: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xxx.xxxxxxxxx.xxxxxxxxxx" android:versioncode="3" android:versionname="2.1" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="18" /> <uses-feature android:glesversion="0x00020000" android:required="true" /> <uses-feature android:name="android.hardware.location" android:required="true" /> <uses-feature android:name="android.hardware.location.gps" android:required="fal...

jquery - How to hide jpanelmenu after load page -

please go fiddle . want hide jpanel after load page. how can that? here code fiddle . jquery $(document).ready(function () { var jpm = $.jpanelmenu({ menu: '#menu', trigger: '.menu-trigger', duration: 300 }); jpm.on(); $(".menu").click(function(){ var url = $(this).attr("link"); alert(url); $( "#contents" ).load(url+" #area"); }); }); have tried this: $(document).ready(function () { var jpm = $.jpanelmenu({ menu: '#menu', trigger: '.menu-trigger', duration: 300 }); jpm.on(); $(".menu").click(function(){ var url = $(this).attr("link"); alert(url); $( "#contents" ).load(url+" #area"); jpm.close();//add line }); });

python - Recording video from raspberry pi and saving it to a external hard drive -

i have raspberry pi model b, , raspberry pi camera module i have either 3tb external hard drive or apple time capsule what want able record video remotely (via ssh issue commands) , want record unlimited time until issue command stop recording. want video streamed , saved directly time capsule if possible. so easy way of explaining want i plug in raspberry pi , connect via ssh tell raspberry pi start recording video @ 1080p @ 30fps while video being recorded getting saved directly onto time capsual have live preview mac video getting recorded can see if need adjust anything issue stop command end recording. storage space not issue me. this have work with raspberry pi model b 8gb sd card something similar ( don't know if same 1 ) http://www.amazon.co.uk/time-capsule-500gb-hard-drive/dp/b00132b0mg a network card : edimax ew-7811un 150mbps wireless nano usb adapter mac or pc this first real question , i've been searching answer please excuse me if h...

php - header redirect not working at all -

i have php file called init.php want load inc.php files (that contains html). structure of file. define ("html", __dir__ . '/page/'); $page = !empty($_get['page']) ? $_get['page'] : 'index'; if (!file_exists(html . $page . '.inc.php')) $page = 'index'; header('location: ' . html . $page . '.inc.php'); for reason, redirection doesn't redirect place should redirect (localhost/page/index.inc.php) any idea of happening there? note i'm @ index.php in root directory , i've required_once init.php in same root directory. location should uri, not file path! header('location: /page/' . $page . '.inc.php'); __dir__ give directory of file being parsed (for example, /home/site/index.php . location header expecting uri (for example, /page/something.php ), not file system path.