Dean_Grobler 48 Posting Whiz in Training

Hi there,

I have a machine with 2 harddrives. One has Windows 7 installed and the other has Windows 8 Consumer Preview installed. Since my Win8 is my primary, it starts up into windows 8 without even showing the bootloader.

Is there a way for me to go add the other HDD that has win7 installed to the win8 bootloader so that I can choose between the 2 OSs when starting up?

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

I have a machine with 2 harddrives. One has Windows 7 installed and the other has Windows 8 Consumer Preview installed. Since my Win8 is my primary, it starts up into windows 8 without even showing the bootloader.

Is there a way for me to go add the other HDD that has win7 installed to the win8 bootloader so that I can choose between the 2 OSs when starting up?

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Are you getting an error message? We can look at that then take it from there...

Dean_Grobler 48 Posting Whiz in Training

Hmm thanks for all the comments :-) What the email address is going to be used for is pretty much to contact me personally regarding freelance web design and development. So basically it will be used for freelancing purposes.

Also the mail will be displayed on my site obviously and business cards. So if you guys agree that dean@deangrobler.com is pretty ideal then I'll stick with it. Just wanted some input from other professionals.

Dean_Grobler 48 Posting Whiz in Training

Hi guys,

So like the post header suggests. What is the best email address to use with your own-name domain? Mine is deangrobler.com. Currently the address is dean@deangrobler.com but that just seems to have too many 'deans' in there.

Any other creative ideas?

Dean_Grobler 48 Posting Whiz in Training

I won't shift entirely to Chrome OS. But hey something like this could be useful like accessing music and pictures and who knows what else no matter where you are.

But yes, won't have anything "confidential" on my instance of Chrome OS. It will serve more as a multimedia hosting thing for me than an actual full-blown Operating System.

Dean_Grobler 48 Posting Whiz in Training

Nevermind, I figured it out.. Thanks anyways

String[][] lstTransactions = (String[][])transactionList.toArray();
Dean_Grobler 48 Posting Whiz in Training

Hi there,

I'm having a rather bad morning today and my brain is being stupid. I have an ArrayList containing String Arrays. How do I convert my ArrayList to a 2D Array?

What I have:

ArrayList<String[]> transactionList = new ArrayList<String[]>();
String[] resultSetRow = {"String1","String2","String3","String4","String5"};

int resultsSetRowSize = resultSetRow.length;
for(int n = 0; n < resultsSetRowSize; n++){
   transactionList.add(resultSetRow[n]);
}

//How to convert transactionList to Array[][] ?

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Hello there,

I'm busy working on a project using GWT and Sencha GXT libraries. I have come to this stage that I now have to populate a tree with data received from an XML file... I have no idea how to do this, I've gone through the javaDocs but it doesn't explain it very well..

Does anybody have some good suggestions on what books are out there that I can have a look at?

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Thanks for all the great suggestions! I'll deffinitely go have a look at Richard Dawkins books...

Dean_Grobler 48 Posting Whiz in Training

Hey guys,

I'm looking for a good book to read on Charles Darwin and the theory of evolution. Does anyone have some suggestions? It would be cool if the book goes on to look further into the future to try and explain what the human race would be like in the next couple of millennia...

Anyways, I'm all ears....

Dean_Grobler 48 Posting Whiz in Training

Ellew!

Attached I have an example of my form written in GXT (EXT GWT). On the image you will see a red line I drew where I would like to put in a line feed just to make the layout look a bit less cramped.

Does anyone have an idea how to do this? The panel containing my form elements has a FormLayout()...

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Hey guys,

Okay, tough one. How exactly would we go about integrating Biometric scanners (e.g. fingerprint scanners) with our software?

The way I see it, the scanner scans a finger print, and then saves that data in a database, but what data is this? What file type? This is probably the main concern. Because once you have that information, you can just compare scans against the users previous scan in the database... A boolean might get returned and you can then see if the scan matches etc.

Where does one start? Any reading material anyone can suggest perhaps? I specifically want to integrate this functionality with the Java language.

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Hi guys,

I've recently started with the Sencha Touch API, or should i say, tried, as the syntax is crazy and takes some getting used to. Anyways, I'm just struggling with basic layouts in my page.

Don't want to go into too much detail if no-one here has ever worked with it before..

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

I've installed the Android SDK on my Linux (Ubuntu 10.04) machine. I don't have internet connection on my machine so I couldn't simply go download and install the required stuff through Eclipse.

Everything worked out pretty well, I'm able to run a virtual device, and I'm also able to create an Android project. But as soon as I click on the option to start an android project, a warning dialog pops up saying: "SDK Platform Tools component is missing! Please use the SDK Manager to install it"...

So we all know now that I can't do that because I don't have an internet connection on the machine. But I do have the SDK on the machine, and in the SDK directory the 'tools' folder is there. So I have no idea why it's not picking it up.

As a result, my 'R' file is not generated, and I think it's because of this tools component missing issue.

Thanks in advance for any help! I'm extremely excited to getting started with developing for Android and want to sort out this issue ASAP :confused:

Dean_Grobler 48 Posting Whiz in Training

If anyone is working on a machine without internet connection and is looking into downloading platforms for their Android SDK, your search is over...


The magic URL is - http://dl-ssl.google.com/android/repository/repository.xml
That is the XML file from which the URL for downloading the SDK packages are obtained.

For e.g. if you want to download Linux version of Android SDK for version 2.0, you could look up that XML file. You will find a block under tag SDK 2.0 like this

<sdk:archive arch="any" os="linux">
    <sdk:size>74956356</sdk:size>
    <sdk:checksum type="sha1">2a866d0870dbba18e0503cd41e5fae988a21b314</sdk:checksum>
    <sdk:url>android-2.0_r01-linux.zip</sdk:url>
</sdk:archive>

So the URL will be http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

After you downloaded the zip, simply go to <yourAndroidSdk>/Platforms and unzip the downloaded file in there. And that's it, next time you start up your IDE the platform will be listed.

Source: Quakeboyz Dev Arena

Dean_Grobler 48 Posting Whiz in Training

Thanks agian, the SDK I downloaded didn't have the basic platforms like 1.0 etc on. On the Android site they mention that you have to download atleast one platform.. Anyways, after lots of "googling" i found this, which basically lets you download the platforms in zip folders.

Pretty damn handy...

peter_budo commented: Nice find +16
Dean_Grobler 48 Posting Whiz in Training

Hi Peter,

Sorry about that, yes I saw that you able to do that now. (Thanks for pointing that out), I still have a problem though. In Android you need to install atleast one Anroid platform. This is done in Eclipse via window>Android SDK and AVD Manager>...

And yet again, i need an internet connection. So the question this time then is: Is there a way to download an Anroid platform for an offline linux machine?

Dean_Grobler 48 Posting Whiz in Training

Hey guys,

I'm working on Ubuntu 10.04. I use Eclipse as my IDE, but now I want to install the Android ADT plugin for eclipse(as seen here). Now the thing is, that I don't have internet connection on the machine that has Eclipse running so I can't simply go to window>Install new Software>Add> and paste the URL (https://dl-ssl.google.com/android/eclipse/)...

Is there a way to download the plugin files from a machine with a connection, put it on a flash drive, plug it in the non-connected machine, and install the plugins manually?

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Thanks for your replies! I don't need a parser, sorry for being a bit too unclear. Here's the low down:

You all know XPath, now xpath lets you query and get values in xml documents quite easily, now what I want, is to also be able to update the data in the given tags. XPath lets you just query, I'm wanting to also update...

And I can't find anything that does that, it's weird that XPath doesn't let you do this in the first place...

Dean_Grobler 48 Posting Whiz in Training

Ello,

Does anyone know of some 3rd party libraries that can simplify working with XML through Java, because as we all know the normal SDK's libraries are terrible..

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

The thread title pretty much says it all. How exactly do you send data to, and from portlets? Does it have something to do with the RenderRequest and RenderResponse objects? I haven't a clue... There's hardly any information on the net regarding portlet development, very frustrating.

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

I'm busy coding an interface JSP for Liferay Portal using the Alloy UI taglib.
Does anyone have a link to nice tutorials on using it? I've tried googling this but there seems to be virtually NO tutorials on this...

Thanks guys!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

I've recently been given a project that I have to develop portlets for Liferay portal. I have absolutely no experience with portlets, although I do have experience with servlets. Portlets and Servlets have quite alot in common, but I honestly don't even know where to start.

I've got a local instance of Liferay on my machine and I'm developing through Netbeans IDE using the portlet package plugin. So the whole enviroment is all set up.

What I want to know, is where can I find some real good resources on the matter, e.g. tutorials etc. Also where can I find the API docs for portlets so that I can see what methods does what and how to use them...

Basically, I need a good read on portlets, that's not too technical, but gives one proper insight to start developing some meaningful portlets...

Thanks in advance!

Dean_Grobler 48 Posting Whiz in Training

Dude you rock!!!

You don't perhaps have a link where I can download this font for free?
Don't want to sound like a cheap-skate, but I literally just want to type out one sentence and paying $30 for that is rediculous...

Dean_Grobler 48 Posting Whiz in Training

I'm actually taking a chance here hoping that someone will know what font this is.

Bellow is an image of a companies logo, what I want to know, is what font is being used?
It could be that this 'font' was custom made for this specific logo... OR, it could be that this is actually an existing font....

Hope to get atleast ONE response!

Dean_Grobler 48 Posting Whiz in Training

Boy do I feel stupid right now...
There is no shorter way of doing this? The actual application I'm using this idea on has like 25+ methods in the class. So would the only way be by itterating through 25+ if,else() statements?

Dean_Grobler 48 Posting Whiz in Training

Geez.. Don't know if that's possible. Not that I've came accross anyways..
How about creating an applet and displaying it in your HTML5 page with the <applet> tag? Or is that not what they want either?

********Edit*************
Damn, peter beat me to it!

Dean_Grobler 48 Posting Whiz in Training

Hey there,

I'm stuck in a rut at the moment trying to figure something out. I have a class, that has 4 methods. method1(), method2(), method3() and whatMethod()...

whatMethod() accepts a String and then decides what method to execute based on the received String. Say the String that was sent to whatMethod() was "method2", then whatMethod() will execute method2()...

How would you go about doing this? I've been sitting here trying to figure out how but I seem to be a bit slow today...

Thank in advance!

Dean_Grobler 48 Posting Whiz in Training

Hey guys,

So first of all, after lots of job hunting I finanly got an interview and a call this morning telling me that I got the job. I'm going to be working as a Junior Developer.

This is my first IT job, and don't know what the enviroment is like working with in a team of developers. I'm sure it's natuaral to be very anxious about all of this, but are there any "code of ethics" in the IT workplace?

Any tips you can throw at me? How was your first day in the industry?

Thanks guys!

Dean_Grobler 48 Posting Whiz in Training

Eclipse and Netbeans has always been at eachothers necks. Eclipse is really nice, especially the fact that you can get plugins for virtually anything you need.

With Netbeans though, the selling point to me is that a GUI builder is already available on it, plus my company makes use only of Netbeans, so I don't have much of a choice in the matter.

I've worked on and off on both IDE's though and the look and feel for both is really similiar. If you only use Eclipse and you have to migrate to Netbeans, you'll be up and running in Netbeans probably under an hour.

I'm only speaking out of my limited experience on the matter and what i've found on working on them.

Dean_Grobler 48 Posting Whiz in Training

Thanks for your reply. It seems like I have all the hardware requirements that is needed for NB7.

Do you think that if I upgrade my JDK/JRE to the latest release it might solve the issue?

Dean_Grobler 48 Posting Whiz in Training

I read up a bit more now and it seems like this is the Java Virtual Machine that is crashing... Still no idea why this is happening and how to fix it.

Dean_Grobler 48 Posting Whiz in Training

I understand this is not Java related, but since a lot of Java Developers out there use Netbeans as their IDE. I figured that I'll get help here easier.

Anyways, I downloaded Netbeans 7 (the full version), and tried installing it on Windows 7. The installer starts, and right after you accept the licencing agreement for JUnit and click the 'next' button, the installer stops and a file gets created in the same directory as the .exe for Netbeans that I launched.

The file is called 'hs_err_pid2156'... Bellow is some of the content of the file, but if you need to see more, just shout and I'll post the entire document.

------------------------------------------------------------------------------

# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7591a86c, pid=2156, tid=3808
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# Problematic frame:
# C [SHLWAPI.dll+0x1a86c]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp

------------------------------------------------------------------------------

What is this and why does the installer just bomb out all of a sudden??
I also tried installing Netbeans 6.9 but the same thing happens. So I'm guessing that this is probably a Java problem rather than a Netbeans problem...

Dean_Grobler 48 Posting Whiz in Training

Since some of us might get a bit rusty with our coding, we constantly need projects to keep us busy, no matter how big or small. Making sure you code a little a day it not only fun but also allows your skills to continue growning.

The problem though, is that sometimes you just don't know what to code. You simply just run out of ideas...

So I would like to encourage everyone, to post some ideas and suggestions here of projects to take on, no matter how big or small, whether it's a simple console program that does some math or coding your own browser. Lets get a nice list going here so that when we run out of ideas, we can simply come to daniweb and check out this (hopefully extensive) list...

Dean_Grobler 48 Posting Whiz in Training

Hi there,

Can anyone point me to where I can find good tutorials (or even an online book) of how to connect to XML with Java (Reading/Writing to an XML file etc). I've tried to Google it but I just seem to find tutorials that are very confusing and vague.

I don't even know what classes are used to do this so even just naming the classes to be used would be of great help to me.

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Well slap me with a hake and call me fishy!
I just realised that if you just type a couple of slashes:
//////////////////////
And just adjust the size and alignment, it sorts out my problem!

Dean_Grobler 48 Posting Whiz in Training

Hi Oviyarajan,

Go check out this site called w3schools.com, they not only teach you HTML, but also CSS, Javascript etc. So that you can give your HTML pages some character.

HTML is fairly easy to learn, and after a week I'm sure you'll be able to create a deicent basic HTML site.

Good luck!

Dean_Grobler 48 Posting Whiz in Training

Hi there,

I just want to find out if one can create a "strpied filled rectangle" as seen in the attached pic in photoshop? This might be more of a job for Illustrator but since I only have photoshop I have to make do.

I'm not sure if one can just create a rectangle in photoshop, set the border to 0px and then instead of a fill color perhaps have a fill pattern(such as the stipes).

Any suggestions will greatly be appreciated!

Dean_Grobler 48 Posting Whiz in Training

I'm using Opera 11.10 as it's better than Chrome AND Firefox... In my opinion anyways.

Portgas D. Ace commented: Your opinion is invalid. +0
Dean_Grobler 48 Posting Whiz in Training

Okay, There's no particular time for work-out , you can workout at anytime you want, except post lunch or dinner or anytime you had food.

How many hours after a meal would not be considered post-lunch/dinner? 2 hours? 3 hours?

Dean_Grobler 48 Posting Whiz in Training

Hey!

I'm planning on getting more excercise since sitting on my ass for 12+ hours a day makes me feel useless.

What would the best time to work out though? Should I rather work out late at night before bed, or early in the morning right after I wake up?

Hmmm...:-/

Dean_Grobler 48 Posting Whiz in Training

Hey there,

I'm in somewhat of a predicament. Can you send HTML form data to a servlet on another computer over the net or something? If so, what would one put in the <form action="_"> attribute?

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Thanks for great advice. I'm considering another option other than JApplet, since not every user is going to have the JRE on their machine. Can HTML form data get forwared to a remote machine?

Sure you can use "mailto:someone@somewhere.com" but that's just stupid. What if you want the form data to be sent to a servlet on a remote machine. What would one specify in the <form action=""> tag?

Dean_Grobler 48 Posting Whiz in Training

Mine would have to be Jedi Jesus.

susheelsundar commented: Lord Jesus Rocks :) +0
jingda commented: Nice, but i thought the cross should be the other way round. Like a sword +0
Dean_Grobler 48 Posting Whiz in Training

If you could be any animal, what would it be?
Now, what color would you like to be?
Thirdly, what superpowers would you like to have?

I would like to be a squirel, a green squirel, and
my superpowers would have to be stoping time.

Now you go...

Dean_Grobler 48 Posting Whiz in Training

Hey guys,

I've taken on a project where I have to code an applet that gathers information and sends it to a database. The thing is though, that the client's website is being hosted by some other unknown company.

I have the impression that in order for this to work, the database will have to be on the same server the site is hosted on, am I correct assuming this? Otherwise, how would one gather information from an applet, and let it connect to a database that's on one of the clients PC at their company/not on the server the site is on?

I'm not asking for code, just a push in the right direction...

Thanks!

Dean_Grobler 48 Posting Whiz in Training

Thanks @Momerath, that is exactly what I was looking for!

Hey @abelLazm, I can imagine C# being easier to deal with. As for the VS, other IDE's for Java has the exact same functionality. Like Eclipse and Netbeans for instance. Looking at the Syntax, C# and Java are alot same.

In terms of getting started. Do you just download the C# SDK from MSDN or something. Then you can download any IDE like VisualStudio for instance and get coding?

Dean_Grobler 48 Posting Whiz in Training

Great thanks again!
One last question I have, does c# have some form of API documentation? In otherwords, where you can see what methods are already build into the language and what methods are available for you to use?

In Java this is called the API docs. Can't seem to be finding something similiar on google for c#...

Dean_Grobler 48 Posting Whiz in Training

Thanks for your replies, it really cleared up some misconceptions I had. I know it might seem that I'm comparing Java and C#, but I'm just listing what I'm used to and then asking how it works in C#...

About creating the user interface with "windows form application" or coding it manually. What is considered better practice? I'm sure diff people have diff opinions about this, but I would just like to know what the majority thinks.

Also, in Java, your pre-complied file is a .java file, after it has been compiled it's a .class file. In C#, what type of file is a pre-compiled program? After it's been compiled I'm assuming it's a .exe ?
If using a text editor, I'm also assuming that you can compile your programs through command prompt?