Monthly Archiv: May, 2016

PHP Tracking User Activity

Package:
PHP Tracking User Activity
Summary:
Track user activity on Web pages using screenshots
Groups:
AJAX, Debug, Graphics, PHP 5, User Management
Author:
Bharat Parmar
Description:
This class can track user activity on Web pages using screenshots...

Read more at http://www.phpclasses.org/package/9736-PHP-Track-user-activity-on-Web-pages-using-screenshots.html#2016-05-07-03:47:37

Your Own Personal WiFi Storage

Our kids have reached the age – at ages 4, 4, and 7 respectively – that taking longer trips with them is now possible without everyone losing what's left of their sanity in the process. But we still have the same problem on multiple hour trips, whether it's in a car, or on a plane – how do we bring enough stuff to keep the kids entertained without carting 5 pounds of books and equipment along, per person? And if we agree, like most parents, that the iPad is the general answer to this question, how do I get enough local media downloaded and installed on each of their iPads before the trip starts? And do I need 128GB iPads, because those are kind of expensive?

We clearly have a media sharing problem. I asked on Twitter and quite a number of people recommended the HooToo HT-TM05 TripMate Titan at $40. I took their advice, and they were right – this little device is amazing!

  • 10400mAh External Battery
  • WiFi USB 3.0 media sharing device
  • Wired-to-WiFi converter
  • WiFi-to-WiFi bridge to share a single paid connection

The value of the last two points is debatable depending on your situation, but the utility of the first two is huge! Plus the large built in battery means it can act as a self-powered WiFi hotspot for 10+ hours. All this for only forty bucks!

It's a very simple device. It has exactly one button on the top:

  • Hold the button down for 5+ seconds to power on or off.
  • Tap the button to see the current battery level, represented as 1-4 white LEDs.
  • The blue LED will change to green if connected to another WiFi or wired network.

Once you get yours, just hold down the button to power it on, let it fully boot, and connect to the new TripMateSith WiFi network. As to why it's called that, I suspect it has to do with the color scheme of the device and this guy.

I am guessing licensing issues forced them to pick the 'real' name of TripMate Titan, but wirelessly, it's known as TripMateSith-XXXX. Connect to that. The default password is 11111111 (that's eight ones).

Once connected, navigate to 10.10.10.254 in your browser. Username is admin, no password.

This interface is totally smartphone compatible, for the record, but I recommend you do this from a desktop or laptop since we need to upgrade the firmware immediately. As received, the device has firmware 2.000.022 and you'll definitely want to upgrade to the latest firmware right away:

  • Make sure a small USB storage device is attached – it needs local scratch disk space to upgrade.
  • You'd think putting the firmware on a USB storage device and inserting said USB storage device into the HooToo would work, and I agree that's logical, but … you'd be wrong.
  • Connect from a laptop or desktop, then visit the Settings, Firmware page and upload the firmware file from there. (I couldn't figure out any way to upgrade firmware from a phone, at least not on iOS.)

Storage

For this particular use, so we can attach the storage, leave it attached forever, and kinda-sorta pretend it is all one device, I recommend a tiny $32 128GB USB 3.0 drive. It's not a barn-burner, but it's fast enough for its diminutive size.

In the past, I've recommended very fast USB 3.0 drives, but I think that time is coming to an end. If you need something larger than 128GB, you could carry a USB 3.0 enclosure with a traditional inexpensive 2.5" HD, but the combination of travel and spinning hard drives makes me nervous. Not to mention the extra power consumption. Instead, I recommend one of the new, budget compact M.2 SSDs in a USB 3.0 enclosure:

They run absolute circles around large USB flash drives in performance! The larger the drive, believe me, the more you need to care about this, like say you need to quickly copy a bunch of reasonably new media for the kids to enjoy before you go catch that plane.

Anyway, once you get this storage plugged into the HooToo it will automatically set up a DLNA share for you:

However, you must explicitly move the files and folders into the Share folder created by the HooToo to browse them via DLNA.

In theory you could do this directly to the filesystem on the USB drive, but since we're already there, I found it was just as easy to use the built in Explorer tool in the web browser, linked from the HooToo homepage:

  • Select the files and folders you want to move
  • Tap the wrench icon, then Cut
  • Tap to enter the Share folder
  • Tap the wrench icon, then Paste

Anyway, once you get the folders and files you want into the Share folder, you're good to go for DLNA!

Settings and WiFi

Let's continue setting up our HooToo Tripmate Titan. In the web interface, under Settings, Network Settings, these are the essentials:

  • In Host Name, first set the device name to something short and friendly. You will be typing this later on every device you attach to it. I used van and airplane for mine, since that's where we plan to use them.

  • In Wi-Fi and LAN

    • pick a simple WiFi password, because you'll need to tell people to type this in when they connect, or type it in for them. I'd keep it simple. High security is not needed here.

    • set the WiFi channel to either 1, 6, or 11 so you are not crowding around other channels.

    • set security to WPA2-PSK only. No need to support old, insecure connection types.

There's more here, if you want to bridge wired or wirelessly, but this will get you started.

iOS

Update: since I originally wrote this, I've switched to the Infuse app. It's fantastic for media consumption, and although it is a little expensive at $9, there's a reason: it supports tons of different audio and file formats, including the ones that your iPhone and iPad don't understand, including Dolby and so on.

Infuse supports the DLNA standard built into the HooToo. So all you have to do is connect to the HooToo's wireless network, press the add files plus button at upper right, and connect to the one that automatically appears — in this case, DLNA-Van, there at the bottom.

With DLNA, no login is required! Once connected, you can scan through videos easily, with rather nice thumbnail and summary support.

For more than just media, you can also use the File Explorer app for iOS (or similar). See the instructions below for Windows, as the process is very similar.

Windows / Mac

Connect to the HooToo's WiFi network, then type in the name of the device (mine's called van) in Explorer or the File Run dialog, prefixed by \\.

The default user accounts are admin and guest with no passwords, unless you set one up. Admin lets you write files; guest does not.

Once you connect you'll see the default file share for the USB device and can begin browsing the files at UsbDisk1_Volume1.

I also figured out how to browse the HooToo filesystem from a Mac as well:

  • Connect to the HooToo's WiFi network
  • Open a Finder Window
  • On the "Go" menu select "Connect to Server..."
  • Enter the HooToo device name, e.g. van
  • When prompted enter admin or guest credentials

Caveats

For some reason, with a USB 3.0 flash drive attached, the battery slowly drains even when powered off. So you'll want to remove any flash drive when the HooToo is powered off for extended periods. I have no idea why this happens, but I was definitely able to reproduce the behavior. Kind of annoying since my whole goal was to have "one" device, but oh well.

This isn't a fancy, glitzy Plex based system, it's a basic DLNA share. Devices that have previously connected to this WiFi network will definitely connect to it when no other WiFi networks are available, like say, when you're in a van driving to Legoland, or on a plane flying to visit your grandparents. You will still have to train people to launch the Infuse app, and the right device name to look for...

... or, if you're on a desktop / laptop, create a desktop link to the proper share.

But in my book, simple is good. The HooToo HT-TM05 TripMate plus a small 128GB flash drive is an easy, flexible way to wirelessly share large media files across a ton of devices for less than 75 bucks total, and it comes with a large, convenient rechargeable battery.

I think one of these will live, with its charger cable and a flash drive chock full of awesome media, permanently inside our van for the kids. Remember, no matter where you go, there your … files … are.

[advertisement] Building out your tech team? Stack Overflow Careers helps you hire from the largest community for programmers on the planet. We built our site with developers like you in mind.

Simple Instant JSON (New)

Package:
Simple Instant JSON
Summary:
Authenticate users and respond with a JSON result
Groups:
HTML, PHP 5
Author:
Bruno Henrique Ferreira de Oliveira
Description:
This is a very simple class that can authenticate users and respond with a JSON result...

Read more at http://www.phpclasses.org/package/9700-PHP-Authenticate-users-and-respond-with-a-JSON-result.html

WordPress 4.5.2 Security Release

WordPress 4.5.2 is now available. This is a security release for all previous versions and we strongly encourage you to update your sites immediately.

WordPress versions 4.5.1 and earlier are affected by a SOME vulnerability through Plupload, the third-party library WordPress uses for uploading files. WordPress versions 4.2 through 4.5.1 are vulnerable to reflected XSS using specially crafted URIs through MediaElement.js, the third-party library used for media players. MediaElement.js and Plupload have also released updates fixing these issues.

Both issues were analyzed and reported by Mario Heiderich, Masato Kinugawa, and Filedescriptor from Cure53. Thanks to the team for practicing responsible disclosure, and to the Plupload and MediaElement.js teams for working closely with us to coördinate and fix these issues.

Download WordPress 4.5.2 or venture over to Dashboard → Updates and simply click “Update Now.” Sites that support automatic background updates are already beginning to update to WordPress 4.5.2.

Additionally, there are multiple widely publicized vulnerabilities in the ImageMagick image processing library, which is used by a number of hosts and is supported in WordPress. For our current response to these issues, see this post on the core development blog.

PHP HtmlEntities Encoding and Decoding

ggg_htmlentities_tests
Package:
PHP HtmlEntities Encoding and Decoding
Summary:
Encode and decode a longer list of HTML entities
Groups:
HTML, PHP 5, Text processing
Author:
Gavin Gordon Markowski
Description:
This class can encode and decode a longer list of HTML entities...

Read more at http://www.phpclasses.org/package/9698-PHP-Encode-and-decode-a-longer-list-of-HTML-entities.html#2016-05-06-10:26:42

[New] Free Royalty-Free Stock Photos

Get free photos to accompany your blog posts, to spruce up your Powerpoint presentations, to decorate your website, etc. These beautiful stock photos come royalty-free and cover a huge range of subjects, including scenery, animals, people, buildings, inanimate objects and so on.

PHP Tracking User Activity (New)

Package:
PHP Tracking User Activity
Summary:
Track user activity on Web pages using screenshots
Groups:
AJAX, Debug, Graphics, PHP 5, User Management
Author:
Bharat Parmar
Description:
This class can track user activity on Web pages using screenshots...

Read more at http://www.phpclasses.org/package/9736-PHP-Track-user-activity-on-Web-pages-using-screenshots.html

PHP HtmlEntities Encoding and Decoding

ggg_htmlentities_tests
Package:
PHP HtmlEntities Encoding and Decoding
Summary:
Encode and decode a longer list of HTML entities
Groups:
HTML, PHP 5, Text processing
Author:
Gavin Gordon Markowski
Description:
This class can encode and decode a longer list of HTML entities...

Read more at http://www.phpclasses.org/package/9698-PHP-Encode-and-decode-a-longer-list-of-HTML-entities.html#2016-05-04-17:17:50
Powered by Gewgley