tech support15

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 30 October 2012

Aviva Premiership Rugby Predictions ~ Final Standings

Posted on 19:35 by Unknown


Regular readers of this blog know that I do regression analysis for Aviva Premiership Rugby.  It comes out of my RugbyMetrics analysis tool.  Much like MoneyBall, I mine statistics looking for new ratios and performance indicators.

I came up with a new index that takes into account a teams ability to score point versus its ability to defend.  It is an interesting analysis.  Based on performance thus far, I will go out on a limb, and barring any unforeseen circumstances, the following table shows how the teams should finish at the end of the season based solely on the numbers that they have put up:

Scoring Advantage Index  Team
1.438405797 Harlequins
1.034782609 Leicester
0.945652174 Exeter
0.795986622 Northampton
0.785507246 London
0.724637681 Bath
0.688405797 Gloucester
0.617391304 Saracens
0.585507246 Worcester
0.52173913 London Welsh
0.48447205 London Irish
0.194508009 Sale Sharks

This should be a fairly reliable predictor of how the teams will finish.  The numbers show that the Exeter Chiefs should make a big move from their current 8th position to third if they continue to play the way that they do.

A team with a higher scoring advantage index should beat any team with a lower one.

The scoring advantage index can be used as a coaching tool.  If a particular, play, setup, roster change etc creates a better Scoring Advantage Index, then that is a successful strategy.  The next course of action is to tie individual player performance to Scoring Advantage Index.
Read More
Posted in Aviva Premiership, performance analysis rugby, predictions, rugby, rugby analysis, rugby performance, RugbyMetrics | No comments

Monday, 29 October 2012

A Whole Bunch of MySQL Stuff

Posted on 20:13 by Unknown
Had a major event today on our server.  MySQL took the server down.  It was the daemon mysqld.  It started to spike the memory, which started the system to page furiously and then we had a kernel dump.  Went to /var/log/messages and grepped for “memory” and saw that UID27 reported out of memory as part of the crash output.  The message was

 [ERROR] /usr/share/mysqld: Out of memory (Needed xxx bytes)

So what to do?  Obviously we didn't have enough RAM allocation.  I use entirely an innodb engine with mysql.  So I had to find where mysql was getting its configs from.

From the server console, I typed in:

mysql --help

and among all of the stuff that was returned, it told me where to look for the config file.  It said:


Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf

So I went to /etc/my.cnf and used the vi editor.  I added

innodb_buffer_pool_size = 1000M

I added it under [mysqld].  We have 4 Gigs of RAM and the allowable value is up to 80% of the RAM.  Previous to this it was 16M.

Then I stopped the database by issuing the following command:

/etc/init.d/mysqld stop

No issues.

To start it, I issued

/etc/init.d/mysqld start

and it failed.  This is what it said:


[root@ap1 etc]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED]

Well, went back to /etc/my.cnf and I noticed that I had forgotten the "i" in the innodb_buffer_pool_size.  I added that, and it started.

I gotta tell you, the application now screams!!  I should have done a RAM allocation earlier.




Read More
Posted in [ERROR] /usr/share/mysqld: Out of memory (Needed xxx bytes), increase mysql memory size, mysql, mysql error, out of memory | No comments

Making Effective Online Ads

Posted on 16:11 by Unknown


Everybody sells at one time or another. We sell ourselves to our dates. We sell ourselves to our prospective employers. We sell stuff on the internet. There is a lot of clutter out there, and when we have something to sell, we must get ourselves to stand out above the clutter.

If you have to create an ad, or a webpage or any online presence, then this eBook is for you. It is the Top Secrets of the Admasters. It teaches you how to make the most effective online ads and web pages. It tells how to make ads that people cannot resist clicking on.

The psychology and layout of an online presence is important. This book show you how to use color, subject matter, trusted colors, the 9 elements that your ad must have and other helpful tips to rise above the noise and get noticed on the web.

Buy it here on Amazon Kindle:  http://www.amazon.com/dp/B009XHPIYE
Read More
Posted in advertising how-to, how to make an effective online ad, top secrets of the admasters | No comments

Tuesday, 23 October 2012

Major UIX Tip -- It's Black and White

Posted on 09:26 by Unknown
If you ware a regular reader of this blog, you know that I have several blogs, and I am constantly experimenting with them as to optimal design to generate the most hits, the greatest user experience and the best UIX or user interface experience.

I decided to experiment with stickability -- how long visitors to the site would stick around for content other than that what brought them there in the first place.  I took two relatively popular blogs, and had one with a black background and one with a white background.

The white background blog continuously outperformed the black one.  After a month, I switched it.  The one that was previously black and now white, suddenly became popular again with more hits.

No one needs more black and white evidence than this.  I had previously opined that a black background on a mobile device acts like a mirror, and that a white background was better.  That was a subjective feeling before.  It appears that it is also an empirical observation now.
Read More
Posted in background color, blog design, real UIX, UIX, Ultimate Web Page Design, web page development tip | No comments

Sunday, 21 October 2012

New Revenue Stream for Photoshop Gurus

Posted on 20:06 by Unknown
Self publishing on Amazon with eBooks is now a big thing.

I was reading an online forum for that topic and the author of the above book idly wondered online as to whether Brits hated her because she wasn't getting sales in the UK.  Her book had a cover of the heroine in a bar scene that was drawn for the cover.

I opined that perhaps the UK reader had cultural anomalies that made them hard to identify with the American bar scene.  The author replied that she was considering changing the cover.

It occurred to me that a photoshop person could make some serious cash by doing covers for authors.  Then I discovered that they were.  There was some guy selling stock photos for $20 with the title and author added with the photoshop text tools.  Others were selling covers for up to $299 per cover.  Photoshop gurus, here is another revenue stream for you.

A real graphics designer with a creative flair could probably make more money doing covers than the authors were making writing the books.

Just as an exercise tonight, I idly wondered how I would re-design the cover of Ms. Alroc's book called "Strangely Sober".  Knowing that sex sells, I photoshopped the above cover just as an exercise.  Ms. Alroc didn't ask for this and is unaware that I am doing this.  I just did it to see how my design effort would turn out.  I will certainly notify her that I have done this, and I will remove it if she requests it.

And if you are a Kindle reader, please buy her book:  http://www.amazon.com/Strangely-Sober-Essa-Alroc/dp/1478341467/ref=la_B008QN3FX2_1_1?ie=UTF8&qid=1350875121&sr=1-1

Thanks.

Read More
Posted in amazon, book covers, ePublishing, kindle, making money with photoshop, photoshop | No comments

Tuesday, 16 October 2012

How to split a .war file or a .zip file

Posted on 14:06 by Unknown

I had a problem.  I remotely manage some coders 800 miles away.  I am getting them up to speed with j2ee, jsps, java, pojos and such.  I needed to get a .war file to them to deploy on a test server.

I used Eclipse to make my war, and when I went to send it to them, the size of the file was 34 megabytes.  I am only allowed 25 megabytes with my email program as an attachment.

What makes a war file big, are the jars in the lib directory.  I could have pulled them out and sent them separately, but my programmers are junior programmers and I wanted a no-muss, no fuss solution.  I needed a free file splitter.

So I went to http://www.filesplitter.org/ and downloaded FreeFileSplitter.  I broke my war file into 18 mb chunks, and sent my guys two emails each with a chunk attached.

They downloaded FreeFileSplitter on their end.  It doesn't even have an installer.  It is just a very small binary that sits on the desktop.  They joined the two chunks together and deployed the war.

Thanks very much to FreeFileSplitter.  It works like a charm.  It will split and reassemble any kind of file including zip and media files.
Read More
Posted in file splitter, file too big for email, free file splitter, split a .war file, split war file, war file | No comments

Monday, 15 October 2012

How To Prevent Hack Attacks and Cyber Attacks From Iran

Posted on 17:12 by Unknown
I just read that American Banks and other companies are under cyber attack sponsored by the government of Iran.

If I were the CIO, CTO or the IT management type responsible for American banks, financial institutions, energy companies, or major (and not-so-major) corporations, I would call in my network administrators and system administrators and have them write firewall rules blocking everything from Iran. If there is an economic embargo, there should be an internet embargo as well.

As a public service, here is a list of IP addresses to write the firewall wall rules preventing any access at all from Iran.

 Major IP Address Blocks For Iran


From IPTo IPTotal IPsAssign DateOwner
62.60.128.062.60.255.2553276813/06/2001Iranian Research Organization for Science & Technology
62.193.0.062.193.31.255819217/07/2000DP IRAN
62.220.96.062.220.127.255819225/10/2001Soroush Audio Visual Company
77.36.128.077.36.255.2553276812/03/2007IRIB (Islamic Republic of Iran Broadcasting)
77.77.64.077.77.127.2551638421/02/2007Rayaneh Danesh Golestan
77.104.64.077.104.127.2551638407/10/2008Respina Networks & Beyond
77.237.64.077.237.95.255819201/02/2007Respina Networks & Beyond
77.237.160.077.237.191.255819206/02/2007Parsun Network Solutions
77.245.224.077.245.239.255409607/05/2007Research Institute Of Petroleum Industry
78.38.0.078.39.255.25513107219/03/2007Information Technology Company (ITC)
78.109.192.078.109.207.255409617/07/2007Afranet
78.110.112.078.110.127.255409609/08/2007TSTonline co.
78.111.0.078.111.15.255409627/08/2007Neda Rayaneh
78.154.32.078.154.63.255819217/07/2007Arya Sepehr Ettelarasan Tehran
78.157.32.078.157.63.255819228/08/2007Fanava Group
78.158.160.078.158.191.255819206/09/2007Arya Sepehr Ettelarasan Tehran
79.127.0.079.127.127.2553276817/09/2007AsiaTech Inc.
79.132.192.079.132.223.255819202/10/2007Morva System Company
79.175.128.079.175.191.2551638412/11/2007Afranet
80.66.176.080.66.191.255409609/06/2004University of Tehran Informatic Center
80.69.240.080.69.255.255409603/04/2009ir.pasargad
80.71.112.080.71.127.255409618/01/2005Neda Rayaneh
80.75.0.080.75.15.255409619/06/2001Afranet
80.191.0.080.191.255.2556553623/07/2002Information Technology Company (ITC)
80.242.0.080.242.15.255409627/04/2009AFROOZ Etela Resan Company Ltd
80.253.128.080.253.143.255409613/12/2001Azadnet Resaneh
80.253.144.080.253.159.255409628/05/2002Azadnet Resaneh
81.12.0.081.12.127.2553276827/05/2002Soroush Audio Visual Company
81.28.32.081.28.47.255409617/04/2002IsIran
81.28.48.081.28.63.255409622/12/2004IsIran
81.29.240.081.29.255.255409617/06/2009Pardis Ettela Resaan Sepehr
81.31.160.081.31.175.255409603/06/2002Sharif University Of Technology
81.31.176.081.31.191.255409608/12/2003Sharif University Of Technology
81.90.144.081.90.159.255409604/01/2006Afranet
81.91.128.081.91.143.255409618/07/2002DATAK Internet Engineering, Inc
81.91.144.081.91.159.255409626/09/2002DATAK Internet Engineering, Inc
82.99.192.082.99.255.2551638412/12/2003Pars Online
82.115.0.082.115.31.255819206/01/2004Parsun Network Solutions
83.147.192.083.147.255.2551638414/06/2007Oracle Investment Group.
84.47.192.084.47.255.2551638418/10/2004Parscyberian Consultants
84.241.0.084.241.63.2551638410/06/2004Aria Rasana Tadbir
85.9.64.085.9.127.2551638411/02/2005Pishgaman Kavir Yazd Cooperative
85.15.0.085.15.63.2551638419/04/2005Aria Rasana Tadbir
85.133.128.085.133.255.2553276806/12/2005Sepanta Communication Development Co. Ltd
85.185.0.085.185.255.2556553625/11/2004Information Technology Company (ITC)
85.198.0.085.198.63.2551638431/01/2005TSTonline co.
86.109.32.086.109.63.255819205/07/2005Azadnet Resaneh
87.107.0.087.107.255.2556553622/08/2005Soroush Audio Visual Company
87.247.160.087.247.191.255819223/11/2005Neda Rayaneh
87.248.128.087.248.159.255819226/08/2008CallWithMe
89.144.128.089.144.191.2551638427/01/2006ANDISHE SABZ KHAZAR CO. P.J.S.
89.165.0.089.165.127.2553276801/03/2006Neda Gostar Saba Data Transfer Company Private Joint Stock
89.221.80.089.221.95.255409629/09/2006Fanava Group
89.235.64.089.235.127.2551638430/05/2006Azadnet Resaneh
91.98.0.091.99.255.25513107211/09/2006Pars Online
91.184.64.091.184.95.255819211/10/2006DATAK Internet Engineering, Inc
91.186.192.091.186.223.255819210/11/2006Oracle Investment Group.
92.50.0.092.50.63.2551638417/12/2007Shahrad Net Company Ltd.
92.61.176.092.61.191.255409602/01/2008Arian Rasaneh Pars
92.62.176.092.62.191.255409625/01/2008ir.pasargad
92.242.192.092.242.223.255819208/01/2008Respina Networks & Beyond
93.110.0.093.110.255.2556553624/04/2008Laser Company Ltd
94.74.128.094.74.191.2551638414/07/2008Farahoosh Dena
94.101.128.094.101.143.255409615/08/2008AFROOZ Etela Resan Company Ltd
94.101.176.094.101.191.255409621/08/2008Jahan Negar Parsian
94.101.240.094.101.255.255409626/08/2008AFROOZ Etela Resan Company Ltd
94.139.160.094.139.191.255819226/11/2008DATAK Internet Engineering, Inc
94.182.0.094.183.255.25513107217/09/2008Aria Rasana Tadbir
94.184.0.094.184.127.2553276811/08/2008I.P.M
94.184.128.094.184.255.2553276815/07/2009I.P.M
94.241.128.094.241.191.2551638430/09/2008Oracle Investment Group.
95.38.0.095.38.255.2556553611/12/2008Fanava Group
95.80.128.095.80.191.2551638425/11/2008Bozorg Net-e Aria
95.81.64.095.81.127.2551638404/06/2009Hamara System Tabriz Engineering Company
95.82.0.095.82.63.2551638408/12/2008Shahrad Net Company Ltd.
95.82.64.095.82.127.2551638411/12/2008kara amin ertebat
95.142.224.095.142.239.255409611/08/2009Armaghan Rahe Talaie
188.34.0.0188.34.255.2556553619/03/2009Asre Enteghal Dadeha
188.75.64.0188.75.127.2551638424/08/2009homatelecom
188.118.64.0188.118.127.2551638422/06/2009University of Tehran Informatic Center
188.121.96.0188.121.127.255819211/05/2009Jahan Negar Parsian
188.121.128.0188.121.159.255819211/05/2009TSTonline co.
188.126.128.0188.126.159.255819223/07/2009Arian Rasaneh Pars
188.136.128.0188.136.255.2553276815/05/2009Ariana Gostar Spadana
188.158.0.0188.159.255.25513107209/06/2009Neda Gostar Saba Data Transfer Company Private Joint Stock
194.225.0.0194.225.255.2556553629/12/1995I.P.M
195.146.32.0195.146.63.255819222/07/1997Information Technology Company (ITC)
212.16.64.0212.16.95.255819229/05/2008Farhang Azma Company Ltd
212.33.192.0212.33.223.255819215/07/2008Fanavaran Ettelaaat Dibagaran Karaj Co. Ltd.
212.50.224.0212.50.255.255819223/05/2008Rasaneh Esfahan Net
212.80.0.0212.80.31.255819227/05/2009Farhang Azma Company Ltd
212.95.128.0212.95.159.255819227/04/2009Parsun Network Solutions
212.120.192.0212.120.223.255819227/05/2008Hamara System Tabriz Engineering Company
213.176.0.0213.176.31.255819208/12/1999Iranian Research Organization for Science & Technology
213.176.32.0213.176.63.255819225/07/2000Iranian Research Organization for Science & Technology
213.176.64.0213.176.127.2551638401/02/2000Iranian Research Organization for Science & Technology
213.195.0.0213.195.63.2551638421/04/2009Arya Sepehr Ettelarasan Tehran
213.207.192.0213.207.255.2551638407/11/2002DATAK Internet Engineering, Inc
213.217.32.0213.217.63.255819219/02/2001Pars Online
213.233.160.0213.233.191.255819204/04/2003Sharif University Of Technology
217.11.16.0217.11.31.255409621/11/2002Afranet
217.24.144.0217.24.159.255409620/03/2003Parscyberian Consultants
217.25.48.0217.25.63.255409624/03/2003IRNA
217.64.144.0217.64.159.255409601/04/2009Aka Networks
217.66.192.0217.66.207.255409607/11/2000Neda Rayaneh
217.66.208.0217.66.223.255409602/02/2001Neda Rayaneh
217.146.208.0217.146.223.255409626/04/2004Neda Rayaneh
217.172.96.0217.172.127.255819211/02/2004Parscyberian Consultants
217.174.16.0217.174.31.255409626/03/2004National Iranian Oil Company
217.218.0.0217.219.255.25513107203/04/2001Information Technology Company (ITC)
Source:  http://www.nirsoft.net/countryip/ir.html

Come to think of it, I should do this with China too.  It is ironic that the minute that I deploy a new server, I start getting clever scripted hack attacks from institutions in China, like the meteorological institute.  I think that firewall blocking from unfriendlies, should be the first step in protecting your digital assets.


 
Read More
Posted in block ip addresses, Firewall Rules, IP addresses for Iran, preventing hack attacks from the Middle East | No comments

Sunday, 14 October 2012

Buddha of the Binaries ~ Zen of Software Development~ Noble Truth #3

Posted on 13:26 by Unknown

Oh Buddhist of the Binaries, I desire more lessons, what is the third noble truth?

Well my little code monkey with the red ass,  the third noble truth is that bugs in software  can be overcome and apps become killer and happiness can be attained; that true happiness and contentment are possible. lf we give up useless kiddie scripting and learn to code Java classes and jsps each day at a time (not dwelling in the past or the imagined future) then we can become happy and free. We then have more time and energy to help take our company viral. This is Nirvana.

One must learn to write elegant, simple profound code that supplies a desired need among the software addicts of the world.  Your code must become the crack cocaine of the mobile device.

For the other lessons, click HERE (and send money!)


Read More
Posted in buddhist of the binaries, digital buddha, the first noble truth, the zen of software development | No comments

Friday, 12 October 2012

How To Resize and Rename Photos

Posted on 09:24 by Unknown
I had a problem.  I had to send a kajillion pictures to a person.  They were taken with a high resolution setting on the camera.  All of the photos were too large to be sent by email.

Usually when I have just a few, I open them in GIMP and resize the image.  This was a whole folder full of photos.

I searched the web for a free resizer and PhotoResize400.exe came up.  I gave it the college try.  I downloaded it from here:  http://www.rw-designer.com/picture-resize  and to my surprise, it wasn't zipped or anything.  The binary executable loaded directly onto the desktop.

I then separated out the pics that I wanted into a new folder on the desktop.  Then I closed the folder, grabbed it by selecting it, and drag and dropped it on the PhotoResize400.exe icon.  As quick as you could say "Gee I wonder if this works|, it was done.  I took a peek inside the folder, and sure enough it was done.

It preserved the original pics, and next to it, made a newer smaller version labeled -400.jpg.  (If the original pic was name 100234.jpg, it renamed it to 100234-400.jpg).  So now, it was a pain in the rear to separate them.  I decided to use DOS to do it.

I opened a RUN command shell and changed directory (cd command) to my desktop.  Then I did a directory listing (dir).  All of the photos were name September12-00x.jpg and the smaller ones were named September12-00x-400.jpg.

To separate them out so that the listing would group the smaller ones together, I had to do a DOS rename. It was easy as pie.  I typed in rename September12*-400.jpg  resized*.jpg in the cmd window.

What this did was rename the September12-00x-400.jpg to resized-00x-400.jpg.  The 00x was an incremental number (01, 02,03) so the numbering was preserved, it just took out the September12 prefix, because even the big ones (unresized) started with that prefix and they were a pain to separate.  Now all of the unresized ones started with September12 and all of the small ones started with resized.  When you did a directory listing or explored the folder, they were all neatly grouped into large and small by name.

As a product review, I fully recommend PhotoResize400.exe.  The photos are a little small for my liking, but it let me send a whole pile through the email.
Read More
Posted in PhotoResize400.exe, photos, product review, rename, resize | No comments

Thursday, 11 October 2012

Anonymous Email? What is the Best?

Posted on 11:49 by Unknown
I was idly wondering about sending an anonymous email, so I plugged the term into good old Google.  The first site that came up was:

www.sendanonymousemail.net


I have a couple of throwaway email accounts (everyone should have a couple of them that cannot be tied to you) and send two from that page.  That was 5 hours ago.  No email has arrived at any of my email boxes from them.  Things that make you go hmmmmm.

Then I ended up at:

send-email.org

Well, within 20 minutes the test email arrived.  So I would say that send-email.org is the best out of the two.

When the email arrived, it said that it was from Free Email Service and the return address was: info@send-email.org

That works for me.

Then I got to thinking ...........  ..............

suppose that I was an intelligence agency, FBI, law enforcement, private investigator, criminal, blackmailer or a news organization.  I would set up one of these things to collect information and see what comes in.

That thought was enough to scare the crap out of me.  Its now back to sending emails from a Linux command line for me.

Update:  It is now 16 hours and the emails from sendanonymousemail.net still have not yet arrived.  This service is definitely not to be relied on.

Update II - I think that sendanonymousemail.net is a scam.  My test emails still haven't arrived a full day and a half later, and they probably never will.

Read More
Posted in Anonymous email, best remailer service, remailer, send email anonymously | No comments

Wednesday, 10 October 2012

java.sql.SQLException: After end of result set

Posted on 18:53 by Unknown




I had to google this exception thrown because I had never encountered it before:

java.sql.SQLException: After end of result set


It turns out that I had called ResultSet rs.next() twice.  The second time it was after the end of it.  It was a careless dumb coding error.

Simple yet dumb error.   Hope this helps.
Read More
Posted in java.sql.SQLException: After end of result set | No comments

Thread: java.net.SocketException: Too many open files

Posted on 15:29 by Unknown
Running my tomcat app on a Centos machine.  I looked at the logs and saw this error:

Thread: java.net.SocketException: Too many open files

Bummer.  I opened up a putty ssh to the server and did an su to superuser.  I wanted to see what the hard limit was for open file handles

I typed in at the bash#    ulimit -Hn and the return value was 1024,  Not good.

I issued the command to up the hard limit to 10000.  The command was ulimit -Hn 10000.

The soft limit was 1024 as well.  I upped the soft limit to 5000 with the command:  ulimit -Sn 5000

From what I could gather, this problem started happening when I initiated a log4j logger and we started getting decent traffic.

Hope this helps.
Read More
Posted in increase maximum number of open files, Thread: java.net.SocketException: Too many open files, ulimit Hn Sn | No comments

Friday, 5 October 2012

Java - How to make an arraylist of arraylists

Posted on 12:11 by Unknown
I had to make an arraylist of arraylists.  The reason that I was doing this, was that I had to eliminate duplicates from a resultset.  The easiest way to do this was to put the resultset into an arraylist so that I could operate on it, because you can't iterate or use a resultset twice in Java.

Here are a few examples of the constructors to make an arraylist of arraylists:

   ArrayList<ArrayList<Object>> allData = new ArrayList<ArrayList<Object>>();

 ArrayList<ArrayList<String>> allString = new ArrayList<ArrayList<String>>();

 ArrayList<ArrayList<int>> allInts = new ArrayList<ArrayList<int>>();


Easy once you know how.
Read More
Posted in arraylist, arraylist of arraylists, java | No comments

Thursday, 4 October 2012

CNN Website Error

Posted on 06:15 by Unknown
(click for larger image)

This has all happened to us at one time or another.  We have deployed a website and have forgotten to validate the tags.  When we visit the website live, we find the above junk printed.  It is actually the tag code that wasn't interpreted but rather rendered as text due to a missing element.

One of the easiest ways to avoid website validation errors is to go to the following URL:

http://validator.w3.org/

and enter the URL.  It will identify any tag errors.

I am just amazed that a large organization like CNN who lives and dies by their online presence would make such newbie mistakes.
Read More
Posted in CNN, website doesn't work, website errors | No comments

Tuesday, 2 October 2012

Java String MySQL Error

Posted on 10:51 by Unknown
I just spent an hour banging my head against a wall.  I constructed a mysql query string from variables.  So my string construct would look like this:
String quality = "Very Good";

String queryString = "Select  * from products where consumer_rating=" + quality;

The thing kept bombing.  It said that I had an sql error near where consumer_rating=Very Good.

It all looked kosher.  I had forgotten that a string value needs single quotes.

In other words, I should have declared quality =" 'Very Good' ";

Notice the single quotes after the double quotes.  Necessary for an sql statement for string injection.

Hope this helps someone save some time.
Read More
Posted in double quote, java, mysql error, single quote, string, string error | No comments
Newer Posts Older Posts Home
View mobile version
Subscribe to: Posts (Atom)

Popular Posts

  • C# .NET Textbox GotFocus Event
    When one Googles to find out sample code for a C# .Net textbox gotFocus() event, the first few search results are not that explicit.  So wit...
  • Mechanized Attack Detection Algorithms
    I was on a CNN sub site and they were talking about security and threat of attack. One of the types of attacks that they were profiling, wa...
  • More Reasons Why To Quit Facebook and LinkedIn
    Man, I am looking smarter and smarter every day for quitting Facebook and LinkedIn. Can you imagine that your credit rating will suffer for...
  • Exception in thread "Thread-0" org.eclipse.swt.SWTException: Invalid thread access
    So you are getting your feet wet with Java SWT and you are having trouble updating your UI while you are doing some heavy processing.  Perha...
  • Is Android Safer Than iOS for Mobile Banking?
    First of all, total disclosure:  I am a registered Apple, Android and Nokia developer.  I have no real preferences.  There are good and bad ...
  • Java Networking
    I have this issue where I need to know the IP address or some identifying part of a computer.  Using Java, I came across the class of java.n...
  • It's Time -- A New Plug-in Filter for Browsers Needed
    I am starting to get a little ticked off at how much data is being collected on me when I surf the internet. Websites often ask for authent...
  • Classmates.com -- Another MySpace in the Making?
    A few years ago, I signed up on Classmates.com. I did it out of pure curiosity to find out where my peers in high school ended up. I enrol...
  • IE Users are Stupid, and Microsoft Knows it.
    (Click on the pic to make it larger) I have several email accounts. One of them is Hotmail. When I sign out of Hotmail, I usually land in ...
  • Facebook -- Dead Man Walking
    A couple of years ago, it would have been heresy to say that MySpace was irrelevant. It is now a ghost of what it was, and it IS irrelevant....

Categories

  • .avi
  • .Net
  • .wmv
  • [ERROR] /usr/share/mysqld: Out of memory (Needed xxx bytes)
  • activity with webview
  • ad
  • ads
  • adsense
  • Advanced UX
  • advertising how-to
  • algorithms
  • amazon
  • amenities
  • analysis
  • analyzing emotions in speech
  • android simulator
  • Anonymous email
  • anti-terrorist in cyberspace
  • apache
  • app
  • Apple
  • Apple Developer Site Down
  • apps
  • apps listing
  • arraylist
  • arraylist of arraylists
  • Artificial Intelligence
  • Arvind Bhatia
  • assholes
  • Avira
  • Aviva Premiership
  • background color
  • Bahamas
  • baidu
  • bait and switch
  • bash
  • basics
  • Bayesian inference
  • best blogging software
  • best free mobile web template
  • best iso image burner
  • Best Practices
  • best remailer service
  • big brother
  • big data
  • binaries
  • black hole net
  • blackhat SEO
  • block ip addresses
  • blog comments
  • blog design
  • Blogger
  • blue screen
  • bogus
  • Bombing
  • book covers
  • bookmark
  • Boston Bombing
  • Boston Marathon
  • browser
  • browser plugins
  • browser wars
  • browsing history
  • buddhist of the binaries
  • bug
  • Build 7600
  • Business Intelligence Cubes
  • C Sharp
  • c#
  • C# .NET Textbox GotFocus Event
  • cable
  • call center software
  • Camden Hughes
  • Can not issue data manipulation statements with executeQuery()
  • can't see Android Device
  • cannot upload image
  • Carl Jung
  • Casey Anthony
  • Caylee Anthony
  • censorship
  • changing revenue paradigms
  • charging
  • check LinkedIn Password
  • China
  • chinese investments
  • Chinese Search Engine
  • Chrome
  • chrome extensions
  • classes folder empty
  • classmates.com
  • clear on focus
  • clearmeter.com
  • click and clear input
  • closure
  • CNN
  • combating terrorism
  • comm.jar
  • comm3.0_u1_linux
  • command line
  • compiled
  • computer trading algorithm
  • computer virus
  • conciousness
  • connection pool
  • connection pooling
  • conspiracy theories
  • consulting
  • content analysis
  • content management systems
  • convert avi to dvd
  • convert dvd to avi
  • convert Gregorian Calendar to DateTime using Timestamp
  • converting Twitter followers to web hits
  • cookie monster
  • coolutils.com
  • copyright dispute
  • corrupt data
  • crap software
  • crash
  • create iphone app
  • css
  • current datetime
  • cyberspace counter terrorism
  • dark knight
  • dark web
  • Data Cleansing
  • data mining
  • data privacy
  • Data Refinery
  • data storage
  • datamining
  • date
  • date time manipulation
  • day trader
  • day trading
  • daytrader
  • daytrading
  • dead batman
  • dead man walking
  • decline of desktop
  • declining membership
  • delete database duplicates
  • delete duplicate rows
  • derek medina wife photo
  • determining user behind browser history
  • develop iPhone apps
  • developer
  • Developer website
  • development
  • dialog
  • dialog won't open
  • dictionary of apps
  • difference
  • digital buddha
  • disconnect.me
  • discountApp browser hijack
  • divx codec
  • Divx codec pack
  • DNA and information storage
  • DNSChanger Malware
  • do not track plus
  • domain name
  • domain name works
  • double quote
  • Download jfaces jar
  • drop Image
  • dumb ass
  • Dummies Guide to UIX
  • dvd
  • Eclipse
  • eCommerce
  • editor
  • Effective ways of fighting SPAM
  • Elliott Wave
  • end application
  • ePublishing
  • ereader
  • error
  • escape ampersand
  • Escape Key
  • exam for software developer
  • example
  • excel
  • Excellent
  • Exception in thread "main" java.lang.NoClassDefFoundError:
  • EXP/CVE-2012-0507
  • exploit
  • extreme software techniques
  • extreme UX
  • Facebook
  • facebook fair valuation
  • Facebook fatigue
  • facebook ipo
  • Facebook stock
  • facebook true share price
  • facebook true stock price
  • fail
  • failing
  • failure
  • fake traffic hits
  • faking domains
  • fast forward button for browser
  • fault tolerance
  • file splitter
  • file too big for email
  • find apps
  • Firewall Rules
  • firmware embedded in DNA
  • fly-half
  • Form not visible in task bar
  • format telephone number
  • formula doesn't work
  • forums
  • free
  • free email
  • free file splitter
  • free iso burner
  • free template
  • freedom of speech
  • frozen
  • funny
  • fuzzy class
  • fuzzy logic
  • Galaxy
  • geek gossip
  • gerard depardieu
  • get date from timestamp
  • get minutes
  • get remaining minutes between two dates
  • get rid of characters in a number
  • get rid of unwanted characters
  • ghostery
  • gmail
  • good stuff
  • google
  • google ads
  • Google Chrome
  • Google Chrome Browser Blocker
  • Google Circles
  • Google Image Search
  • Google+
  • gramlets
  • great stuff
  • GSM modem
  • hacked
  • hacked LinkedIn Password
  • hackers
  • Handling large amounts of data
  • Hard disk corruption
  • hardware
  • hashtag
  • hot trends
  • how computer games will evolve in the future
  • how do copy a form
  • how google image search works
  • how to build an iphone app
  • how to deal with spammers
  • how to develop iphone app
  • how to duplicate a form
  • how to get a company website quickly
  • how to get rich by writing apps
  • how to get venture capital
  • how to give users an anonymous number
  • how to make an effective online ad
  • how to redirect
  • how to see directory
  • how to send mail with linux
  • how to validate
  • html
  • html input
  • html input tag
  • html tag
  • html tags
  • human garbage
  • hunting terrorists through technology
  • I/Choreographer (xxxxx): Skipped 60 frames! The application may be doing too much work on its main thread.
  • icefaces
  • IDE
  • IE users stupid
  • IE9
  • if browsers were guns
  • imperfect clues
  • In order to select an image from your online storage
  • increase maximum number of open files
  • increase mysql memory size
  • inexact computing
  • innovative uses
  • intelligence test
  • interest engine
  • interesting problem to solve
  • Internet
  • Internet explorer
  • Internet Explorer 10
  • Internet Explorer 8
  • Internet Privacy
  • invalid server's version String Tamirsharpssh
  • investing
  • Invoke or BeginInvoke cannot be called on a control until the window handle has been created
  • iOS
  • iOS 7.1 beta
  • iOX
  • IP addresses for Iran
  • iPad
  • iPhone
  • iphone app
  • iphone apps development
  • ipo
  • is facebook dying
  • is the google search engine concious
  • IT
  • it consulting
  • it jobs
  • java
  • java 8
  • java.lang.ClassNotFoundException:
  • java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0
  • java.sql.SQLException: After end of result set
  • java.util.date
  • javascript
  • javax.servlet.ServletException: java.lang.UnsupportedClassVersionError Unsupported major.minor version 51.0
  • JdbcOdbcDriver.finalize() line: not available
  • JNDI
  • job test
  • join three tables
  • JSF
  • jsp
  • Julianne McCrery
  • Jungian view of the computer
  • keylistener
  • kill application
  • killer robot
  • kindle
  • Kyron Horman
  • lamda
  • laptop
  • launchrock.com
  • learn to program
  • Leicester Tigers
  • libmysqlclient.a
  • Linkedin
  • linking interests to content
  • linux
  • list directories
  • localhost
  • login
  • login before proceeding to page
  • looking for work
  • Mac
  • macbook Pro
  • mail
  • mailer
  • make iphone app
  • making money with photoshop
  • malware
  • malware protection
  • man on roof
  • Mandelbroatian math
  • mango
  • Mark Zuckerberg
  • massively parallel systems
  • Mathematical Modeling Regression
  • mechanized attack detection
  • Merry Christmas
  • meta tag
  • micro programs
  • microsoft
  • microsoft codec
  • microsoft codec doesn't work
  • microsoft is crap
  • microsoft spam tabloid national enquirer
  • Microsoft sucks
  • Minimum Viable Product
  • missing data
  • missing information
  • mistakes
  • mobifreaks.com
  • mobile
  • mobile web tags
  • moderator
  • monetization
  • monetize social media
  • monetizing social media
  • most popular Browser
  • most popular Operating System
  • mothers who kill
  • mouse
  • mouse is dead
  • movie files
  • Multi-Layer-Perceptrons
  • mute button for browser
  • myevent.com
  • myspace
  • mysql
  • mysql client
  • mysql error
  • navigate
  • needed. Structure Query Language
  • network interface
  • Neural Nets
  • new paradigm
  • new SQL functions
  • New Version of Xcode available
  • Nigerian Scam
  • no black screens
  • nokia
  • nokia developer
  • nokia website hacked
  • non-cloud cloud
  • non-compatible
  • nook
  • numbers game
  • OCR
  • offshore software development
  • old technology
  • online
  • open source
  • org.apache.catalina.loader.DevLoader
  • org.eclipse.swt
  • out of memory
  • pages unresponsive
  • parallel computing
  • parallel executables
  • parameter
  • partnership
  • pattern recognition
  • PDF to Word
  • pee on a plane
  • Perfect Web Page
  • performance analysis rugby
  • Perils of Python
  • phone
  • PhotoResize400.exe
  • photos
  • photoshop
  • PHP
  • picture
  • please sign in
  • plugin
  • predictions
  • predictive analysis
  • preventing hack attacks from the Middle East
  • privacy
  • privacy concerns
  • privacy policy
  • problems
  • problems with Microsoft
  • product review
  • programlets
  • programmers in paradise
  • protect yourself
  • punch clock
  • python programming language
  • quant
  • quit facebook
  • quit linkedin
  • Randi Zuckerberg
  • RapidShare
  • RapidShare.com
  • readability
  • real life
  • real UIX
  • reddit
  • redirect
  • refresh
  • remailer
  • rename
  • resize
  • rest in pieces
  • revenge
  • review
  • rise of mobile
  • risks
  • rocketmail
  • roller
  • rough order of magnitude
  • round number to nearest 100
  • row_count()
  • rugby
  • rugby analysis
  • rugby performance
  • RugbyMetrics
  • rules engine
  • running PHP on Tomcat
  • sabermetrics
  • sabremetrics
  • sample
  • Samsung
  • samsung galaxy usb device not recognized
  • satellite
  • scam
  • scan
  • schedule
  • scouting
  • scouting tools
  • script
  • scum of the earth
  • scumbag
  • Search Engine
  • security
  • Seed
  • select results into a file
  • select tag
  • semantic web
  • send email anonymously
  • send sms
  • sendmail
  • SEO
  • serial port
  • server hangup
  • set select
  • set the select of a combo box
  • sharp
  • sharpssh
  • shell
  • shift in consulting
  • show line numbers
  • silicon
  • SIM car
  • single quote
  • skype
  • skype crashes xp
  • skype is crap
  • skype virus
  • sms
  • sms spam
  • social media
  • soft censorship
  • software
  • software algorithm required
  • software bug
  • software emotionally aware
  • software in bugs
  • software job
  • software to capture emotion
  • Solve a tricky problem
  • sony
  • source code
  • spam
  • spammers
  • split a .war file
  • split war file
  • spreadsheet
  • spying on the internet
  • spywal
  • SQL
  • sql tip
  • ssh
  • SSL connection error
  • standard
  • start process at specific time
  • start-up web presence
  • startup
  • startups
  • statistic problem
  • statistics
  • stock manipulation
  • stock price
  • story
  • string
  • string error
  • strip out characters from a number
  • subtract dates
  • sucks
  • sunset
  • Surface
  • SWT
  • Tablet
  • tech support
  • technical test
  • technical trading
  • technology
  • template
  • ten things to get venture capital
  • Terri Horman
  • text spam
  • The best anti-virus
  • The Fastest And Slowest Emails among the big free providers
  • The feature you requested is currently unavailable. Please try again later.
  • the first noble truth
  • The Future of Online Games
  • the ish function
  • the menu supervisor
  • The most effective way to generate hits
  • the next big thing
  • the next big thing in computing
  • The Real Social Network
  • the zen of software development
  • thin slicing
  • This Copy of Windows is not genuine
  • thread
  • Thread: java.net.SocketException: Too many open files
  • thumb-driven menus
  • time comparison
  • Timestamp
  • tip
  • to front
  • toby flood
  • today comparison
  • today() function
  • tomcat
  • tomcat won't start
  • too old for IT job
  • top secrets of the admasters
  • toshiba
  • Toshiba Laptop Mouse Won't Work
  • total privacy
  • totally distributed software
  • tracking cookies
  • traffic faker
  • trends
  • true stock price
  • true value of facebook stock
  • Turing Test
  • twitpic
  • Twitter
  • twitter follow back
  • ubuntu
  • UIThread
  • UIX
  • UIX for Dummies
  • ulimit Hn Sn
  • Ultimate Web Page Design
  • Ultra data privacy
  • unavailable
  • Uncaught ReferenceError: $ is not defined?
  • Uncaught SyntaxError: Unexpected token ILLEGAL
  • unemployed
  • unmoderated
  • update
  • update UI
  • Upgrading SQL
  • url
  • usability
  • usb
  • usb modem
  • User Experience
  • User Interface Experience
  • validating data
  • valuation
  • variable
  • vi
  • video
  • viewing
  • vim
  • vimeo
  • virus
  • Virus domain
  • visual comparison
  • Visual studio
  • vpn connection
  • Walmart
  • war file
  • warning
  • Warren Buffett
  • web page development tip
  • web-based email
  • website doesn't work
  • website errors
  • website traffic
  • Webview
  • Western Digital SmartWare Review
  • what the chinese are searching for
  • where facebook stock will end up
  • who was at the computer
  • Windows 7
  • Windows 8
  • Windows Tablet
  • won't build
  • won't turn off
  • won't turn on
  • word filtering
  • www doesn't work
  • xcode tutorials
  • xhtml
  • Yahoo
  • yahoo copies gmail
  • yahoo mail
  • You have logged out from another location. Do you want to log in again
  • youtube
  • амперсанд

Blog Archive

  • ►  2013 (82)
    • ►  November (8)
    • ►  October (18)
    • ►  September (10)
    • ►  August (10)
    • ►  July (11)
    • ►  June (9)
    • ►  May (2)
    • ►  April (6)
    • ►  March (6)
    • ►  January (2)
  • ▼  2012 (115)
    • ►  December (9)
    • ►  November (4)
    • ▼  October (15)
      • Aviva Premiership Rugby Predictions ~ Final Standings
      • A Whole Bunch of MySQL Stuff
      • Making Effective Online Ads
      • Major UIX Tip -- It's Black and White
      • New Revenue Stream for Photoshop Gurus
      • How to split a .war file or a .zip file
      • How To Prevent Hack Attacks and Cyber Attacks Fro...
      • Buddha of the Binaries ~ Zen of Software Developme...
      • How To Resize and Rename Photos
      • Anonymous Email? What is the Best?
      • java.sql.SQLException: After end of result set
      • Thread: java.net.SocketException: Too many open files
      • Java - How to make an arraylist of arraylists
      • CNN Website Error
      • Java String MySQL Error
    • ►  September (8)
    • ►  August (14)
    • ►  July (12)
    • ►  June (14)
    • ►  May (19)
    • ►  April (12)
    • ►  March (4)
    • ►  February (2)
    • ►  January (2)
  • ►  2011 (59)
    • ►  December (2)
    • ►  October (1)
    • ►  September (8)
    • ►  August (6)
    • ►  July (8)
    • ►  June (10)
    • ►  May (13)
    • ►  April (11)
Powered by Blogger.

About Me

Unknown
View my complete profile