Hey Guys, Really want to learn Java and hope you guys could recommended some Beginner, Intermediate and Expert books/resources (e.g. websites) As of this moment i'm thinking of... Beginner: Java for Dummies, Thinking in Java Intermediate: Effective Java Expert: In addition, it'd be also be awesome if any recommendations of resources with exercises (e.g. http://www.programmr.com/practice/ ) can be provided. Cheers,

Member Avatar
Member Avatar
+0 forum 4

Sup everyone, Does anyone have any recommended tutorials/sites for Hash maps? I'm planning to use it to create and link "locations" in a basic text-based game but i've looked around and there seems to be a lot of description on hashmaps but not much tutorial/examples for them. Any sort of guide will be greatly appreciated. Cheers,

Member Avatar
Member Avatar
+0 forum 4

I currently have five resx files in a XAML and C# application. I would like to convert the .resx files into their own resource dictionary. How do I do that by what code or website to look at? In the App.Xaml, xaml, and C# what is the process?

Member Avatar
Member Avatar
+0 forum 1

I am in wonder. I just make a slideshow form and add the context menu strip as when the user click on download image then current image get copy and paste on the desktop. I use path and destination method in this but they say bitmap cannot be converted into the string. Original Code: Dim Path as string = "Path directory" } `my.resources._1` Dim destination as string = "Detination Directory" If File.Exists(path) And Not File.Exists(destination) Then File.Copy(path, destination) Replace code (try): Dim Path as bitmap = "Path directory" } `my.resources._1` Dim destination as string = "Detination Directory" If File.Exists(path) And …

Member Avatar
Member Avatar
+0 forum 4

Hello Good day. I have an interesting question as it relates to adding a background image to a JPanel (or whichever component is best for what I'm trying to achieve. Hopefully I'll get some help here.) I have a large picture that I want to use as a background image and I want it to be the background for my JFrame. The only thing is that I don't want the image to resize when the JFrame resizes. I want the image to remain centered in relation to the JFrame's position and size, but I just don't want the view of …

Member Avatar
Member Avatar
+0 forum 3

Hi I have a very large app built on my desktop. I want to continue working on it on my laptop. I tried out Team Server and uploaded the solution. I then download the solution to my laptop. I cannot build it on my laptop. I get 75 errors for Resources is not a member of my I also tried just directly copying the full folder from my desktop but its the same. I have googled this for weeks and tried every suggestion on the net i can find. Does anyone know where i start with this? What info can …

Member Avatar
Member Avatar
+0 forum 2

So I have been working on a program lately, or actually was working on it and came back to check on it. The program is being developed for someone else, who unfortunately has not been cooperative in giving me the stuff I need to test it. The program is used to read in a webpage, parse its data, and then notify if changes have occurred. Now this program involves using Threads, something that while I understand the concept of, and have gone over, I have never really implemented into a program like this (I have used BackgroundWorkers before but this …

Member Avatar
Member Avatar
+0 forum 10

Hi, I have a error message when I try and execute the following code $ccid = cleanQuery($_SESSION['cid']); $ip = $_SERVER['REMOTE_ADDR']; $today = date('Y-m-d'); // check to see how many entries in the tbllog have already been entered $qry5 = mysql_query("SELECT count(id) AS total FROM tbllog WHERE cid=$ccid AND action='EMAIL_REFER' AND datetime LIKE'$today%' GROUP BY ipaddress"); //echo $num_email = mysql_num_rows($qry5); $row3 = mysql_fetch_array($qry5); $num_email = $row3['total'];

Member Avatar
Member Avatar
+0 forum 2

Hey everyone, I have just uploaded my php files onto a free hosting server and tried to access the website. I got this error " mysql_fetch_array() expects a resource in parameter 1" or something like that. By the way, the files did work on my local machine. What is the problem? and how do I go about fixing it?

Member Avatar
Member Avatar
+0 forum 4

i have this problem for checking for duplicate username in database. this error appear whether the username is duplicate and does not duplicate. Please help. Warning: mysql_num_rows() expects parameter 1 to be resource, boolean in <?php include_once 'db/db.php'; include_once 'admin-class.php'; $admin = new itg_admin(); if(isset($_POST['Submit'])) { $con = mysql_connect("localhost","username","password","tablename"); if (!$con) { die('Could not connect: ' . mysql_error()); } //---Encrypt ---// $confirmcode=md5(uniqid(rand())); $password=md5($_POST['password']); //---Insert value to table---// mysql_select_db( 'tablename' ); $getduplicates = mysql_query("SELECT * FROM users WHERE username =$_POST[username]"); $duplicates = mysql_num_rows($getduplicates); if($duplicates){ echo "Username has been used.Please choose another username"; ?> <script type="text/javascript"> alert("Username has been used.Please choose another …

Member Avatar
Member Avatar
+0 forum 2

Is there any method to deal with distributed deadlock when multiple instances are available for each resource type? I think method of wait-for graph and chase algorithm can be used only when single instance of each resource type is available.

Member Avatar
Member Avatar
+0 forum 1

i have added the $random in line 53 and '$random' ,'0' in 57 line inside the (),in the database i have added random and activated with boolean value which is 0 or 1,and when i click the previu/debug in browser button it show me this: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\site 2\register.php on line 22 Please fill in all fields! when i click in another page the register link i open normaly not like this,where is the problem?? <?php $submit = @$_POST['submit']; //form data $fullname = strip_tags (@$_POST['fullname']); $username = strtolower(strip_tags (@$_POST['username'])); $password= strip_tags(@$_POST['password']); …

Member Avatar
Member Avatar
+0 forum 5

I'm doing a project that require the user to type in the phonetic sounds for example, "th". then the program will play a wave file that produce th sounds. As there are many different wave files for a phonetic sounds, i decided to group them into separate files, which means it would not be in the same folder of the .exe directory. In this case how do i play the sound that is from another file? Here is the segment that i thought could work but it didnt.. please help me! FILENAME1 = strcat(text_data, ".wav"); FILENAME2 = strcat("wav" ,FILENAME1); printf …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am getting these constant annoying errors in Visual Basic .NET 2010 Express. I'm pretty sure I'm not the only one, but these errors are always relating to images and resources! [QUOTE][B]The Type 'Global.ExampleProject.My.Resources.Resources' has no property named 'example.png'[/B][/QUOTE] I am pretty sure these are bug, due to the fact that I get these errors after a while in most of my projects - it's absolutely annoying! Most solutions include removing the resources (commenting them out of the form designer code) and re-importing them... But then the problem comes back again after the project has been loaded a few …

Member Avatar
Member Avatar
+0 forum 8

So i'm working on a java program that will eventually be used like a library on an EIS system. My next step is to work with the resource adapter, and i've never done anything like this before. I understand the architecture in this case and what the resource adapter does, from what i understand it has some inbound data that comes all the way from the client, through beans, and jsp's. Then it will be outbounded to the EIS system in this case. I have the code to be used as a library, or in the EIS level. I also …

Member Avatar
+0 forum 0

Hi, I have a problem with some resource files (i.e. .txt) which I have created in the project under let's say com/myapp/resources. I have a class created: com.myapp.util.MyClass which reference a file.txt located in resources folder: [CODE] MyClass.class.getResourceAsStream("../resources/file.txt"); [/CODE] The project is created in eclipse. After I export the project as runnable jar I try to execute the jar and I get a null InputStream. Could you guys please tell me what else is to be configured (something in the MANIFEST file probably... :| ) Thanks in advance!

Member Avatar
Member Avatar
+0 forum 6

This code works perfectly fine when I run it as a class file (the font is located in the same directory) - however when I package it into a JAR file it can't find the font and the program crashes. The font is definitely being included in the JAR archive, so I suspect I'm not using the correct syntax to point to it. How would I modify this so that it works in both cases? [CODE] // Text area font try { // Determine the font file path String path = System.getProperty("java.class.path"); String fileseparator = System.getProperty("file.separator"); int pathlength = path.length(); …

Member Avatar
Member Avatar
+0 forum 8

Hi there, I'm trying to access a resource only dll (compiled with the [i]/NOENTRY[/i] linker option) within C#. The dll file was created using a rc file that contains a [b]STRINGTABLE[/b]. I used [b]CComBSTR[/b] to load the string resource from the dll in C++; I'm not sure how to do the same in C#. Any suggestions would be appreciated :)

Member Avatar
Member Avatar
+0 forum 1

All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this. I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a picture-box on the main form and I want to show that picture1.bmp when I click a button. It was quite simple in Visual basic, all you have to do is PictureBox1.Image = My.Resources.Picture1 [VB] But I don't know how to do it in VC++ 2010. I have been searching the …

Member Avatar
Member Avatar
+0 forum 2

Within an organization, which is most important factor: Data or Human Resource? Please give a brief explanation Regards,

Member Avatar
Member Avatar
-2 forum 5

Hello all, First and foremost I would like to thank anyone who will end up contributing to this thread. I'm relatively new to PHP/MySQL and did a site migration for a client to a different server. The website was working perfectly fine before, however now I am getting these errors. I will post the php codes below. Any help is appreciated! Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hermes/web11/b1630/moo.thchealthorg/controlpanel/includes/connection.php on line 29 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hermes/web11/b1630/moo.thchealthorg/login.php on line 45 Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar
Member Avatar
+0 forum 3

im creating a custom button . when user select a image file for button image i want to add it to the project resource (in design time) . how to do this?? im currently drawing image using image location but its not a good solution.

Member Avatar
Member Avatar
+0 forum 8

Here is a snippet of the code that I have thus far (Which I wish worked): [CODE] Dim PlayedSound as string If ComboBox1.SelectedItem = "Sound 1" Then PlayedSound = "Sound1" My.Computer.Audio.Play(My.Resources.(PlayedSound, AudioPlayMode.Background) [/CODE] So basically the combobox1 item which is selected is sent to a string and is then supposed to be played from my resources. The .wav file which is in my resources is named "Sound1" however I have no idea how to reference it. Any ideas? Thanks! :)

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm building a generic [B]Class Library[/B] that I will use it in all my projects. However, I want to know how can I access Resource file from a Class Library ? I will appreciate if you can send me a code sample! Thank you for your help Paul

Member Avatar
Member Avatar
+0 forum 2

Hi Daniweb, I've been programming a base class resource manager for a game I'm working on, and so read up on boost's shared_ptr and weak_ptr. I'm done with it and it works and I would really appreciate some feedback on my choice of implementation and design. Am I using the smart pointers in a correct way? Am I overcomplicating things? etc... Here's the code: [CODE] #ifndef RESOURCE_MANAGER_HPP #define RESOURCE_MANAGER_HPP #include <map> #include <string> #include <iostream> #include <stdexcept> #include <boost/smart_ptr/shared_ptr.hpp> #include <boost/smart_ptr/weak_ptr.hpp> template<typename T> class ResourceManager { // Type definitions protected: typedef boost::shared_ptr<T> Resource; // Not to be used by users …

Member Avatar
+0 forum 0

Hi Guys, i am in a fix big fix. I have completed my vb project and have created the set up files as well.. Now when I try to install my program on another machine then it gives me an error. I found out the problem and it seems to be two of the images are not loading even though i have saved them in my application folder.. But when i save them in the resource folder the program runs but does not displays the images stored in the resource folder. Could anyone please help me to retrieve .png image …

Member Avatar
Member Avatar
+0 forum 1

I have a file, "multi.ico" which has four images of different sizes (16x16, 24x24, 32x32, 48x48). Each sized image is a different color, to make it easy to tell which size we are dealing with. This file has been inserted into a resource file "Multi.resources" using Lutz Roeder's .NET Resourcer. I need to be able to extract the ico from the .resource file in such a way as to keep all four sizes of images. Ideally, I would like to have a wrapper class around the .ico object which allows selection of the image of the proper size. I have …

Member Avatar
Member Avatar
+0 forum 2

I am trying to update/modify/reverse engineer the software for a robot I have. The company went out of business and some friends and I are trying to add features to the program. I use RedGate's .NET Reflector to unpack the DLL and EXE files into VS solutions, projects, and code files. The problem is that each DLL/EXE (and there are at least a dozen) all have dozens of resources stored in them. Mostly they are BAML files, which can be converted to XAML files, but there are also PNG, font files, .HEX files used to the robots themselves, etc. All …

Member Avatar
+0 forum 0

I have used Resource Hacker to extract all the files from an .exe so I could translate the menus right (translating in the program shows me wrong characters). Now I want to compile these files into an .exe file. How can I do that? Thank you in advance.

Member Avatar
Member Avatar
+0 forum 2

I added a minimize to tray function, to do that i need to assign an icon for the tray, the problem is the only way i can do that is this [CODE] Icon ico = new Icon( "calculator.ico"); appIcon.Icon = ico;[/CODE] witch means that calculator.ico should be in the same folder as the program. Now i have added calculator.ico to the program resources but i dont know to assign it to the variable ico, could someone help me plz?

Member Avatar
Member Avatar
+0 forum 1

The End.