Mindblown: a blog about philosophy.

  • Ad server test

    Test an ad with cookie disabled (Firefox content blocking) &nocookie=0 => turn on detection Test WP macro

  • ffmpeg to create timelapse video from images

    This is the best tool I found. Much faster and much easier to use on Mac. I’ve tried iMovie and it’s ok but it’s not as fast (too many steps and processes). Here is a one-liner that works for me all the time: ffmpeg -r 4 -pattern_type glob -i “*.JPG” -s 1280×720 -pix_fmt yuv420p timelapse.mp4

  • Plants 2018

    moved here http://blog.trungson.com/?page_id=459

  • Solar stuff

    Solar: still try to use the deep-cycle battery bought from Walmart on Dec/2012, probably not holding charge too good. Bought a 100W panel from Amazon (Renogy) and a Xantrex 2000W sin-wave inverter. Use biz to finance this project as a solar backup server. Will likely buy 2 Trojan T105 6V batteries to replace the generic…

  • San Martin, Morgan Hill – Creek Water and Rain Level

    Webcams Stream Sensor – West Little Llagas below Edmundson Ave Precipitation Sensor – West Little Llagas Weather Forecast OLD Webcam

  • Engine Oil – Automobile Car Specs

    For my cars so I don’t have to keep looking up the docs: Honda Civic 2016 (10th Gen) – 0W-20 – 3.4 US qt (3.2 liters) oil change only – 3.7 US qt (3.5 liters) oil change with filter Honda Odyssey 2011 – 0W-20 (w/ filter: 4.5 qt, 4.3L, w/o filter: 4.2qt, 4L) – Coolant:…

  • WKWebView Example

    Reference: https://developer.apple.com/reference/webkit/wkwebview Sample Code: import UIKit import WebKit class ViewController: UIViewController , WKNavigationDelegate { var webView : WKWebView! override func viewDidLoad() { super.viewDidLoad() let adreq = “https://g.adspeed.net/ad.php?do=html&zid=xxxx” let url = NSURL(string: adreq) let request = NSURLRequest(URL: url!) webView = WKWebView(frame: self.view.frame) webView.navigationDelegate = self webView.loadRequest(request) self.view.addSubview(webView) self.view.sendSubviewToBack(webView) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } //…

  • Optimization with foreach() an empty array

    <?php $vResult = array(); $vAry = array(‘abc’); $vLimit = 10000000; $vStart = microtime(true); for ($i=1;$i<$vLimit; $i++) { foreach ($vAry as $a) {} } // rof $vResult[] = “NoEmptyCheck= “.(microtime(true)-$vStart); $vStart = microtime(true); for ($i=1;$i<$vLimit; $i++) { if (!empty($vAry)) { foreach ($vAry as $a) {} } } // rof $vResult[] = “WithEmptyCheck= “.(microtime(true)-$vStart); echo implode(“\n”,$vResult).”\n”; /*…

  • Optimization with in_array()

    Ever wonder with many in_array() checks, you can speed it up depending on your scenario. In my case, 99% it’s empty so it’s better with an empty() check <?php $vResult = array(); $vAry = array(); $vLimit = 10000000; $vStart = microtime(true); for ($i=1;$i<$vLimit; $i++) { if (in_array(123,$vAry)) { } } // rof $vResult[] = “NoEmptyCheck=…

  • Planter Clearance @ Lowe’s

    Got a bunch of outdoor plastic planters on sales at Lowes.com: 9x 22″ red $4, colorful 21″ ones for $5, some cilantro color for $3.11. Garden Treasures 11.42-in H x 14.61-in W x 14.61-in D Green Brushed Indoor/Outdoor Planter $3.75 Item #: 485048 | Model #: P13011511241CG Garden Treasures 14.45-in H x 17.2-in W x…

Got any book recommendations?