Jump to Navigation

AssertionFailure id is null in play

When I was working for school (do I something else?) I encountered the assertionfaillure exception in play upon a save operation. The message included is a verry small one, just sayin gthat the id is null.

When you surf the internet, the most common explanation is you have made an error and not matched a constraint (eg string length). In my case however, this was not the problem. After searching a while I encountered the solution.

language: 

LocalvariablesNamesEnhancer exception in play!

When you're using play 1.2.4 and you have updated your hibernate version, it is possible (in special cases) that you encounter the error " An unexpected error occured caused by exception UnexpectedException: While applying class 

language: 

how to update hibernate in play

Play is a great framework, but sometimes it has it flaws. On of those flaws is the hibernate version that is attached (play 1.2.4). The attached version is 3.6.1 while there are already a lot of newer versions. some of them with special bugfixes. 

But that's no problem, you can easily update your play installation to use the newer version by editting your play dependencies. To do so open conf/dependencies.yml and add the following lines:

language: 

custom test id in play!

For this semester we're working in the play! framework.After struggling to get struts2, hibernate and java working together in tomcat last year, the play! framework is a nice relief.

(please note that for the rest of the article a basic understanding of the id's in play! is required)

language: 

android help FAQ

Q: What to do with a classcastexception: can not be cast to Fragment. (While the cast refers to a Fragment class)

A: When you're using the compability library, you're activity containing the fragment needs to extend the FragmentActivity

language: 

word/line wrap in netbeans 7

When programming, it can be handy to wrap you very long line over multiple lines, but without the need to manually add newlines.

In netbeans (7+) this can be done easy in the options menu. You can doe this by following tis steps:
-click tools
-click options
-choose editor
-click the formatting tab
-now, on you right you have a couple of options. Go to the line wrap option and set the dropdownbox from "off" to "after words"

 

screenshots:

language: 

Set custom height for android progressbar

Since short I'm working on a small android application. In this application i wanted to add a small progressbar. The default height however (15dp) was a bit too mucht to use in the application. After some googling I found that this code should work (in your view xml):

 

language: 

quick : no device associated with this account in android

When you get the error in the android market (market.android.com) "There are no Android devices associated with this account.". There is a quick and simple solution.

  1. open the android market on your phone
  2. try again on market.android.com
  3. still an error?
    1. go to https://www.google.com/dashboard 
    2. scrool down to android
    3. your device should be listed here
    4. refresh market.android.com
language: 

x11 fowarding in putty on windows

When you run a windows enviroment but need to use a unix program, x11 forwarding can be a solution. How it works is really simple, you login on a remote (unix) server with ssh. The next step is then to launch the program, and the screens of the external program are shown on you desktop.

language: 

Ervaring Scarlet

Kwestie van andere mensen een hoop last te besparen hieronder kort de ervaringen hier thuis met de vriendelijk mensen van scarlet. Alles begon met de omschakeling van ADSL naar VDSL(2) waarbij je zo'n leuke modem krijgt van scarlet.

 

language: 

keys not working in vnc

Not so long ago I encountered a problem when setting up a vps. The company that offered the VPS had the nice feature to self install the OS you wanted by vnc. This was verry nice because you could configure all you wanted from the start. 

language: 

inheritance in (ansi) c

The programming language c is an old language from before OO programming. It's successor c++ has all the OO needs like classes. In c, those items don't exist. The only grouping that you can do is to create so-called structs. For the proper use of structs there are other websites wich will cover this deeper.

Now, those structs can't do much. They don't have an inheritance mechanism out-of-the-box. But there are workarounds.

language: 

ASAVPN encountered error

Litle bugfix for the ASAVPN software from cisco. After installing, the software runs great, but when I rebooted or shutdown and restarted my pc the problem began. When the software tried to establish the vpn adapter, an error box occured with the text "the vpn client driver encountered an error". 

Aftwer searching for a while, I crossed the cisco faq site with the solution. 

For vista/win7:

language: 

eclipse vs netbeans

Wich IDE is the best, is a matter everybody should look into for him of herself. In the following post comes my experiences, but they could differ to your own feelings. I will take a couple of points and highlight them where I have found differences.

To situate: I use netbeans by default and for school (university ghent). I (have) use(d) eclipse for my studentjob with technicolor. My expecience with eclipse is only in java, where in netbeans I also have used php. 

language: 

how to manage games in google plus

google With google plus winning customers, and the enabling of the games section, a question asked is, how to manage my games (and applications)?

 

language: 

Pages

Subscribe to tech RSS


virtuaos

Main menu 2

by Dr. Radut.