Gevey sim not working on Rogers | Call failed on 122

This week it seems that the Gevey sim has stopped working on the iPhone 4.

Whenever we try to dial 122 we get the message “Call Failed” right away. Normally you need to maintain the call for at least 2 seconds before moving onto the next step in the Gevey unlocking process.

We’re not sure if this has something to do with Rogers (or Canada?) blocking calls to 122. If you are experiencing the same thing, please let us know in the comments.

Add MySQL User | Give them Permissions On a Database

create mysql user
This simple guide demonstrates adding a new user to mysql and giving that user full access rights to a particular db within MySQL. This is really useful when you want to create a new database user for a new wordpress isntall.

You can do this from the command line of your server if you login with:
mysql -u root -p
Or you can do it from within phpmyadmin (phpmyadmin is probably the best option if you are using a web hosting account)

Before you create the new user, you will want to create a new database (you can do that from the main page of phpmyadmin)
Use the following 2 lines to create a new user named sammy with password strong_password and give him full access rights for the database called MY_DB
CREATE USER 'sammy'@'localhost' IDENTIFIED BY 'strong_password';
GRANT ALL PRIVILEGES ON MY_DB.* TO 'sammy'@'localhost' WITH GRANT OPTION;

Turn your Blog into a Mobile App for Nokia | Nokia App for Everyone

Ovi Guide Banner

Nokia has made it incredibly easy for anyone who is connected to the internet to create their own application with the Ovi App Wizard. It basically captures the RSS feed from your blog and prints it to a neat looking, customizable, application frame that you can put on the Ovi store either for free or for a price not exceeding 5 Euros. You can also turn you Facebook, Blogger, Tmblr, Youtube, Picasa, and Flickr feeds into sections of your Ovi app, or give them their own independent applications. Up to 4 feeds are allowed per application and they can be from the same platform (ie. 2 rss feeds from different sites of yours.)

What You’re Going to Need

  • Feed Url(s) If your using WordPress it will be the www.yourblogs.com/feed/, otherwise all you need to do is copy the url of your account
  • A Logo for Each Feed This should be a 256×256 pixel PNG, JPG or GIF that will be displayed on the Ovistore website, Ovistore app, and in the users app drawer as the app icon. Make sure its not too complicated as many Nokia phones will scale it down to 60x60px and you dont want it to look blurry or “mashed”.
  • A Banner for Each FeedThis should be a 360×60 pixel PNG, JPG or GIF that will be displayed across the top of the application. Uploading a screencapture of you blog header that’s at the perscribed size will do fine, Ovi wizard has a cropping tool for you to get the size perfect.
  • (Optional) A Millennial Media or an Mpression AccountThe Ovi App Wizard lets monotize your app beyond including a price tag by adding advertising. Unfortunately, it can only be served by one of the two ad distributors listed above.

The Result

Once you’ve got all your components, just follow the Ovi Wizards instructions and you’ll end up with something like this →

The text colour of the links and app bar are both customizable, as is the background colour of the app bar itself. The placement of sections (ie the app bar, banner, posts) are not customizable but you can choose to display your posts as a grid of pictures instead of the title excerpt. In our example we only have a blog feed, if you have other feeds included in your app then there would be a drop-down menu on the app bar to navigate between them.

Ovi App

Share It

So we’ve crafted this nifty Nokia app with about an hour’s worth of work; not bad. Its a great tool for reader/fan retention and it can turn into solid source of revenue from advertising or sales. The App wizard also has an automated social network sharing tool as well as a web tool to create a banner for your app.

Try it out and post your app links below in a comment!

Change jBoss 5 Default Port

This guide explains how to change the default port of jboss 5.x (which is 8080) to whatever port you want

  1. Open the server.xml file that corresponds to your deployment server
    i.e. vi <jboss-home>/server/default/deploy/jbossweb.sar/server.xml
  2. Find the line: <Connector protocol=”HTTP/1.1″ port=”8080″ address=”${jboss.bind.address}”
  3. Change port 8080 to whatever port you would like to use
  4. Restart jBoss

simple mysqldump example

This post shows how to export a database from the command line. You can export for backup purposes or you can export and move the sql database file to a new database server.

Here is a simple example of using mysqldump on ubuntu linux:

mysqldump -u root -p MY_DATABASE_NAME > /home/myuser/db_backup.2014.08.07.sql

And here is how to import the MySQL dump file to a new database:

mysql -u root -p NEW_DATABASE_NAME < /home/myuser/db_backup.2014.08.07.sql

mysql

Install Sun Java JDK on Ubuntu Linux

Here is the quick guide on installing the Sun Java jdk on Ubuntu Linux. I needed to do this on 10.04 server edition, but it should be the same for just about all versions. If you don’t want to do too much from the command line, substitute step 2 with: sudo gedit /etc/apt/sources.list to edit the file with gedit instead of vi.

  1. Open the terminal
  2. run: sudo vi /etc/apt/sources.list
    1. Add This Line (you can add the new line anywhere in the file):
      deb http://archive.canonical.com/ lucid partner
  3. run: sudo apt-get update
  4. run: sudo apt-get install sun-java6-jdk

Mark as Draft in Word 2010

This quick guide explains how to mark a Microsoft Word 2010 (or 2007) document as a draft (using that typical diagonal DRAFT text that goes across each page)

  1. Go to the Page Layout tab
  2. Select Watermark
  3. Choose Draft 1

Seam Generator Tutorial | Generate a crud web app in seconds

This is just a quick note on the steps to run through when using the seam generator.

For a full walkthrough of how to build a java crud web application in under a minute, check out the video at the bottom of this page.

  1. ./seam setup
  2. ./seam create-project
  3. ./seam generate
  4. ./seam explode

You’ll need to download:

  • jBoss 5
  • Seam 2
  • MySQL
  • MySQL jdbc driver (connector/j) – in the video he uses postgres, so you can use that too. When I tried with postgres I got to the end and there was no Browse Data button..

How to Fix Error duplicate Id for a component selectParent

This error appears in in some projects created with seam 2 when you try to create or edit a record in the web ui. It seems to be a bug.

You need to modify one line in either your seam-home/seam-gen/view/edit.page.xml.ftl or seam-home/seam-gen/view/edit.xhtml.ftl depending on your version of seam.

open up the file and change this line:

to

Then Re-Run ./seam generate and ./seam explode

Restart jboss and everything should be working

The final code chunk should look like this:

How to Create a War File in Netbeans

In most default configurations netbeans, does not create a war file in the dist folder where you would expect it. By default it often just copies the exploded war file into the jboss or glassfish deploy folder.

In order to create a war file:

  1. Right-Click your project in the explorer
  2. Select Properties
  3. Go to Build and Run
  4. From the ‘Build Project’ drop-down select ‘archive’
  5. Hit OK
  6. Right Click on your project
  7. Select Build (this will create the war)

Go to your projects//dist folder and you will see your war file