I’ve pull out the date from the game Ingress, the Mod SoftBank Ultra Link. So confirm that it added 8 out going links, and increate the range multiplier, and do not have stickiness, and increase the link defense boost. If you do not have any link, then the defense boost does not apply. Very Rare Continue reading “Data from SoftBank Ultra Link in Ingress”
Author Archives: juzhax
Data from MUFG Capsule in Ingress
© juzhax.com I farm out the MUFG Capsule I’ve trace out the data from the game Ingress by Google, maybe can find out some reference data from here. I’ve put Jarvis, ADA, Very Rare Heat Sink, Very Rare Multi-Hack into the MUFG Capsule. [code lang=”js”] { "result": [ ["72e55d5658db455db78093b6f0682c67.5", 1434910286425, { "moniker": { "differentiator": "D6F55A77" Continue reading “Data from MUFG Capsule in Ingress”
Fix Safari for Slow and Loading by Disable DNS Prefetching
I’m wondering why Safari on my Mac always slower load on facebook.com, but fast in Google Chrome. I did set the DNS for my network to Google DNS 8.8.8.8 and 8.8.4.4 and it doesn’t help much. facebook.com reverse the IP differently from different location, if your browser prefetching it, maybe slow down from the previous Continue reading “Fix Safari for Slow and Loading by Disable DNS Prefetching”
Minimum HTML5 Template
I use this minimum HTML Template to write simple output with coding sometimes. [code lang=”html”] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>title</title> <link rel="stylesheet" href="style.css"> <script src="script.js"></script> </head> <body> <!– page content –> </body> </html> [/code]
Finding all files containing a text string on Linux or Mac
I need to find some string in all folders. [code lang=”bash”] grep -rnw ‘./folder/’ -e “search-text” [/code] Note: -r is recursive -n is line number -w stands match the whole word
Fastest way to rename filenames with space to dash in linux
I want to mass rename hundred of filenames like filename 001.jpg to filename-001.jpg … … … filename 099.jpg to filename-099.jpg I use this command to rename all in few seconds in my MacBook Pro. I think it is fine to run in any linux. [code lang=”bash”] for f in *\ *; do mv "$f" "${f// Continue reading “Fastest way to rename filenames with space to dash in linux”
Show Image Size in Terminal or Shell
The easiest way to show the file size in Terminal in Mac or Linux. [code lang=”bash”] ustins-MacBook-Pro:jpg juzhax$ file 001.jpg 001.jpg: JPEG image data, EXIF standard Justins-MacBook-Pro:jpg juzhax$ identify 001.jpg 001.jpg JPEG 720×468 720×468+0+0 8-bit sRGB 59.8KB 0.000u 0:00.009 Justins-MacBook-Pro:jpg juzhax$ [/code]
command c expects followed by text error in Mac
You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this [code lang=”bash”] Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt sed: 1: "config.php": command c expects \ followed by text [/code] The first argument should be the extension of Continue reading “command c expects followed by text error in Mac”
Convert Text to Slug URL in PHP
Convert Text to slug URL, example: Brown & Cony’s Secret Date! will become: brown-conys-secret-date Will be nice url. [php] function slug_url($text) { // replace non letter or digits by – $text = preg_replace(‘~[^\\pL\d]+~u’, ‘-‘, $text); // trim $text = trim($text, ‘-‘); // transliterate $text = iconv(‘utf-8’, ‘us-ascii//TRANSLIT’, $text); // lowercase $text = strtolower($text); // remove Continue reading “Convert Text to Slug URL in PHP”
Country Code in Array with PHP Value
Just copy and paste into your code to use the country code. [php] <?php $countries = array ( ‘AF’ => ‘Afghanistan’, ‘AX’ => ‘Aland Islands’, ‘AL’ => ‘Albania’, ‘DZ’ => ‘Algeria’, ‘AS’ => ‘American Samoa’, ‘AD’ => ‘Andorra’, ‘AO’ => ‘Angola’, ‘AI’ => ‘Anguilla’, ‘AQ’ => ‘Antarctica’, ‘AG’ => ‘Antigua And Barbuda’, ‘AR’ => ‘Argentina’, Continue reading “Country Code in Array with PHP Value”
