All Things Techie With Huge, Unstructured, Intuitive Leaps

Uncaught ReferenceError: $ is not defined?

Okay, so I had a onload javascript function with a paramter called in a jsp.  I got the parameter from a URL.


String thisParam = request.getParameter("myParam");


Immediately after this line, I called a onload function passing the above parameter:

<body onload="call(<%=thisParam%>)">

I kept getting the value of thisParam is not defined.  Uncaught Reference Error.

So what cured it?

I was missing the single quotes:

<body onload="call('<%=thisParam%>')">

Hope this helps someone.

Java 8 -- Lamdas and Closures

I found this excellent blog post on Java 8 Lamda and closure:

It explains everything succinctly.  Other articles were clear as mud.  This one did it for me.

Boston Marathon Conspiracy Theories

It didn't take long for the conspiracy theory nuts to come out.  This widely circulated picture of the man on roof during explosion is part of the conspiracy theory.  The domain name  was bought to keep this domain out of the hands of nuts.  It has just a sober message on it to remember the victims.

This picture was a twitter sensation yesterday.  It seems that terrorist events like this, seem to attract all of the nutbars in the land.

Hunting Down The Boston Bomber

I was shocked and dismayed that someone would bomb the Boston Marathon.  The marathon is the ultimate example of how to triumph in Life by preparation, practice, true grit, determination and everything that makes us rise above the animals as human beings.

The second thought that ran through my mind, is that technology should and could be employed in the hunt to bring the Boston Bomber to justice.  I am sure that the FBI and Homeland Security are doing this, but if it were me, I would start with the premise that the bombs were detonated remotely with cell phones.  There was no suicide bomber here.  Radio Control using Radio Shack remote controllers would be out of the question due to range and interference   The easiest way for a sociopath to detonate the devices would be a throw-away cell phone.

So, going on that premise, I would data mine the cell tower data looking for numbers that didn't come back up after the bombings.  I would narrow the gap to look for numbers that were not in existence a month before the bombing, and I would data-mine the records to show which cell phone numbers have not returned to active service after the bombing.

From there, I would have probably hundreds or even thousands of numbers.  I would then program an auto-dialer to try and establish a SIP connection with the Subscriber Interface Modules of the numbers that came up in my search.  If I was able to establish contact with the SIM card, they would be eliminated as suspects.

The net result of such a search could be a throw-away, over-the-counter cell phone, but it could be identified as to where it was possibly bought, the geographic area in which it was first turned on,  and it would provide a possible starting point clues in bringing the bomber to justice.

If these anti-social, anti-human animals use technology to create terror, we have to use that same or better technology against them to take them out of this society that we live in.

Edit a day later:  It appears that there was a crude electronic timer in the bomb.  That still doesn't negate the idea of datamining the cell phone records at the time of the bombing.

Navigating a VPN connection, Viewing directories using VPN connection

It's been a dog's age since I played with a VPN on Windows.  You can set up an VPN following these instructions:

So I did it and then thought: "OK, what now?  How do I navigate or see directories?".  I had forgotten.

Open an Explorer window (Windows key + e) and in the navigation bar, type in a double backslash followed by the IP address followed by another backslash then C$ to get to the base C drive directory.  From there, click to your hearts content to navigate.

Hope this helps.

Facebook Pictures Land You in Jail in the Bahamas

Banana Republic Police Chief Ellison Greenslade.

Taken from the Tribune of the Bahamas.


Tribune Staff Reporter

POLICE Commissioner Ellison Greenslade has warned the public not to post “lewd” or “obscene” pictures on social media and has vowed to pursue such cases and bring charges.

He said yesterday that technology should be used for “positive reasons, not to malign persons’ characters,” and called on the public to report any published photos of such a nature.

“I send a clear message to all and sundry: have your fun on social media, send your messages to your friends; but this issue of posting lewd pictures of people, obscene pictures of people – whether they are alive or dead or injured – is an area that’s going to get you into grave problems.”

Calls to The Tribune following the commissioner’s announcement noted that earlier this week, a 17-year-old girl attempted to commit suicide by drinking bleach after an ex-boyfriend posted a nude video of her on 
Facebook, yet there have been no reports of charges in connection with this.

And, they asked, if Mr Greenslade intends to focus on social media – which in most cases a member of the public has to agree to view – what will he do about more public websites?

When asked if any charges have been made in connection with recent instances of nude photos or recordings being posted on-line, the commissioner said: “If we haven’t, then I intend to. I am going to pursue every single one of them.

“We have looked at charges already for any number of cases but I am saying particularly to persons who are grieved – the commissioner has said it – I am available to speak to them. If you don’t feel that we are moving quickly enough in the CDU or any other department, bring it to my attention. Bring it to my attention and we are going to move to deal with it.”

Mr Greenslade added: “There’s one thing to have the pictures – if it’s an adult, you are doing some things in the privacy of your own home as a consenting adult with some other adult – that has absolutely nothing to do with me, you, or the police department.

“However, where you are manipulated as a citizen to take those images and to post them – in any form – to the extent that they are now infringing upon the rights of a person and causing them undue harm and damage to their reputation, you are now on a very, very slippery slope.”

The commissioner called upon the public to report any instances to police and affirmed the police are in a position today where they can “hold the line” – or uphold the law – as it relates to the Internet.

“I don’t want to be overly aggressive with my comments other than to say, I’d like to see some improvements,” he said. “I believe we need to afford the best protection to our people.

“It’s a beautiful thing to be able to use technology but we need to use it for positive reasons, not to malign persons’ characters, not to steal monies from their bank accounts, not to cause them undue harm – or any harm for that matter. I am so pleased that I have an opportunity to say to the public, we stand with you and I’m not going to stand by. But you must let us know so if you’re surfing the net and you come across it. Trust me and send it to me and let me as commissioner give a directive.”

Despite democracy, there are some things that “you cannot do,” Mr Greenslade said, if those things contravene the law.

Many callers mentioned tabloid websites that regularly publish false and damaging content of a political nature, but have never been prosecuted.

Mr Greenslade added: “I sound that clarion call this morning and I demonstrate by action, how serious I am about that. I am prepared to speak to it again and again, until that message is clear. If you post on Facebook or any other social media anything that is contrary to law, that is obscene or indecent, and it infringes upon the rights of any other citizen, this commissioner and all members of the RBPF – I daresay all of us in public safety – are going to take action because we have a problem with that. We are not going to ignore it.”

Background Context:  The Bahamas has one of the highest murder per capita rates in the world.  The islands are rife with drug running, human trafficking, shootings and robberies.  Tourists are robbed at gun point.  The unsolved murder rate is incredibly high.  There was an extra-judicial killing of an escaped prisoner by a prison guard who has never been brought to justice.  There has been two high profile murders of prominent gay men that are unsolved because of "special involvement" with the men on a personal level by the Prime Minister.  A British banker was putatively killed by his ex-partner and never been brought to justice.  The first Prime Minister's son killed his girl friend.  And yet they are going to prosecute Facebook picture postings.  This came about when an activist posted Facebook pics of a prisoner who died in custody.  This police chief arrested that man yesterday.  Someone should call Amnesty International.

Original link: