rain plans and flexibility at maker faire

Maker Faire was interesting in that we got to use our contingency rain plan for the second time. My friend Norm and I coordinate the FIRST robotics tent at Maker Faire. The first time we used our rain plan was in 2013 where it poured overnight. See some pictures of all that water. Maker Faire was over 3 months ago. (I’ve been really busy writing my OCA book.)

2014-maker-faire

This time, I wasn’t expecting it to rain overnight so didn’t cover everything. It did rain.  I was advised afterwards to follow NWSnewyorkny on Twitter so as not to get caught by surprise again.

I got there early on Sunday morning to make sure things were in good shape and set up the tables. (We do put away flyers and the like.) I found puddles all over. Eek! I also found that the cloth bags containing many of the supplies were wet. As was the roll of paper towels I had left there. Eek! Eek!

The first thing I did was take out two plastic tablecloths. They were in sealed bags  since I hadn’t used them before. I put them on top of the tables so I could start unpacking without getting things wet.

I also learned that a moist paper well can still be used to mop up puddles of water. They don’t make things bone dry, but certainly help. Norm brought dry rags which helped. I also learned just how many dry surfaces there were – from chairs to plastic wrappers we didn’t need any more.

Lessons learned:

  1. Know the weather
  2. Cover up even if the slightest chance of rain
  3. Be creative in finding dry surfaces

The pictures is Norm, myself and two ribbons. We won an editors choice ribbon again. We also won a Best in Class (Education) ribbon for the first time. Exciting!

 

running out of bandwidth on a 4g chromebook

My mother has had her new 4G Chromebook for a few weeks now. I subscribed to the same $20 for 1GB plan as before. (Well technically there was a 100MB bonus on the old 3G plan.)

The first month was fine of the plan was me playing with it at home (mostly on wifi) and my vacation to visit her. This month was the first real month of her using it. She never ran out of bandwidth with the laptop and did the first month with the new one. How suspicious. I called Verizon and learned:

  1. Verizon offers text/email alerts on usage thresholds, but not for Chromebook pre-paid plans. In other words, useless to me.
  2. There were two days where she “used” over 200MB. And was online for over two hours. I’m not sure I believe Verizon on that, but I have no evidence to the contrary.

Here’s what we are doing to fix/troubleshoot.

Keep a log

I asked my mother to track her internet usage for a month or two so we can gather more data. She is to track the time she goes on/offline and what she does when online.

Turn off the Chromebook when not in use

I’m not sure if I’m right to be worried about someone piggybacking off her signal, but I told her to turn off (shut down, not sleep) the laptop when not online. This way we can get an accurate pictures of when she is online.

Turn off Flash

Since videos are large, I’m wondering if a website she went to uses Flash for video ads. I asked her to turn off Flash. She never watches videos so this won’t impede her experience.
  1. Type chrome:plugins in the address bar
  2. Scroll down and find the entry for Adobe Flash
  3. Click the disable link
Turn off extra bandwidth “helpers”
I’m concerned that the pre-fetching/pre-loading pages is wasting too much bandwidth. So turning that off. I don’t think the URL completion is significant, but just in case…
  1. Chrome Settings
  2. Show advanced settings
  3. Scroll down to the privacy section and uncheck
    1. “Use a prediction service to help complete searches and URLs typed in the address bar or the app launcher search book
    2. Predict network actions to improve page load performance

What do you think?

Any other ideas for what to do? She’s using a 4G plan exclusively (only going to visit a wifi connection once a month or two when an update comes out). She doesn’t watch videos and has never been a bandwidth intensive user before.

I will say that I’m glad this is a pre-paid plan where they cut you off rather than simply charging for overages.

Eclipse – easily looking at Java bytecode

A fellow moderator asked me to weigh in on this question at CodeRanch. The gist is whether this code creates one String or two:

String s = " " + 3;

How to find out the answer

The most definitive way to verify this is to check the bytecode. I had downloaded the bytecode plugin when working on our Java 8 OCA Study Guide because sometimes you just have to know what actually goes on behind the scenes to be accurate.

Using the plugin is easy. You go to Window -> Show View -> Other -> Java -> Bytecode. Then every time you save the Java file, the bytecode window is automatically updated. Great for lots of iterations.

The test

I wrote a simple Java class:

package jb;
public class PlayTest {
  public static void main(String[] args) {
    String s = "" + 3;
  }
}

The generated bytecode is:

// class version 52.0 (52)
// access flags 0x21
public class jb/PlayTest {

  // compiled from: PlayTest.java

  // access flags 0x1
  public <init>()V
   L0
    LINENUMBER 4 L0
    ALOAD 0
    INVOKESPECIAL java/lang/Object.<init> ()V
    RETURN
   L1
    LOCALVARIABLE this Ljb/PlayTest; L0 L1 0
    MAXSTACK = 1
    MAXLOCALS = 1

  // access flags 0x9
  public static main([Ljava/lang/String;)V
   L0
    LINENUMBER 8 L0
    LDC "3"
    ASTORE 1
   L1
    LINENUMBER 14 L1
    RETURN
   L2
    LOCALVARIABLE args [Ljava/lang/String; L0 L2 0
    LOCALVARIABLE s Ljava/lang/String; L1 L2 1
    MAXSTACK = 1
    MAXLOCALS = 2
}