Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
92% Quality Score
Upvotes Received
13
Posts with Upvotes
13
Upvoting Members
10
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
5 Commented Posts
~32.7K People Reached
Interests
Music, Rock Climbing, Software Engineering, Electrical Engineering, Particle Physics, Diving, Chemistry,

66 Posted Topics

Member Avatar for jalanderful

to make loops in assembly you need to use something similar to the goto function in c. create a point to "goto". example: move $t0, $zero #set $t0 to 0 for your counter. pos1: beq $t0, 10, pos2 #terminate the loop if $t0 equals 10 addi $t0, $t0, 1 #do …

Member Avatar for Farah_3
0
1K
Member Avatar for eny321

Let me make sure I understand you. You want to create a boolean variable who's value tells what floor you are on or whether or not you are going up or down. here is how you create a boolean var: [CODE]Boolean [B]down[/B] = [B]true[/B];[/CODE] can change the items in bold …

Member Avatar for stultuske
0
4K
Member Avatar for DarkLightning7

I'm attempting to write a substitution function but am having trouble figuring out how to fix the Error: operator and operand don't agree [circularity] operator domain: ''Z list * ''Z list * ''Z list operand: ''Z list * ''Z list * ''Z in expression: sub2 (x,y,hd z) Code: fun sub2(x, …

Member Avatar for DarkLightning7
0
1K
Member Avatar for DarkLightning7

I have this cache latency graph and I am trying to figure out how to find the cache block size for L1, L2 and L3 caches from it but I cant find anything on how to do so I was able to guess the total cache size though. ![b7dff2acb9157ada547628f8db6832d0](/attachments/large/3/b7dff2acb9157ada547628f8db6832d0.gif "b7dff2acb9157ada547628f8db6832d0") …

Member Avatar for DarkLightning7
0
238
Member Avatar for DarkLightning7

I have built this function which calls a couple other functions to get the oprator and numbers for an arithmetic operation but I get the error `function call: expected a function after the open parenthesis, but received '+`. normaly you invoke addition as (+ 5 6) and multiplication as (\* …

Member Avatar for DarkLightning7
0
239
Member Avatar for DarkLightning7

I'm trying to implement a simple recursive list search in SML/NJ but am getting some errors i dont understand. Here is the code: fun find x y = if (null y) then false else if x = hd(y) then true else find(x, tl(y)); Here are the errors: stdIn:130.6-135.22 Error: case …

Member Avatar for DarkLightning7
0
709
Member Avatar for kay19

To reduce the result you need to calculate gcd(numerator, denominator) simply divide the numerator and denominator by that value. gcd = greatest common divisor There are quite a few examples of this in Java available through a simple google search. Here is the first one i found: public static long …

Member Avatar for kay19
0
227
Member Avatar for DarkLightning7

I have been trying to implement a partially Dynamically generated GUI but an having trouble with the layout not rendering properly. Simply resizing the window corrects the issue. Here is the problimatic generation code: public void setupBookTabs() { ArrayList<String> bookTabNames = Record.getBookGroups(); for (int i = 0; i < bookTabNames.size(); …

Member Avatar for DarkLightning7
0
177
Member Avatar for Rafik Almeria

[Let me google that for you](http://lmgtfy.com/?q=install+windows+xp+from+usb) first two results are tutorials on how to write xp to the usb disk so that you can install from it. Good Luck :)

Member Avatar for DM Galaxy
0
180
Member Avatar for sub-zer0

One way to test if "a" is divisible by "b" simply subtract "b" from "a" until you get a negative number or zero. You can also test divisiblity using bit operations. To test if something is diisible by 2 do: if(a & 1 == 0) //checks if there is a …

Member Avatar for sub-zer0
0
290
Member Avatar for CCHIndiaStore

PHP and Java are certainly two of the most commonly used languages today but that does not mean they are the most powerful. Java is definately near the top of the list for power in a language but java is restrictive on what you can and cant do. For example …

Member Avatar for mike_2000_17
-3
369
Member Avatar for DarkLightning7

I need to get the value of the primarykey for the most reciently created entry in an h2 database only problem is i cant figure out how to call scope_identity() which is supposed to return a resultSet with the most reciently created key. Here is the function i am using: …

Member Avatar for ~s.o.s~
0
690
Member Avatar for murali2489

Your sql string is improperly formatted. There should be spaces between all the commands and names and if you want to load the values of s1, s2, . . . into the database you need to treat them as variable concatenations to a string. Also surrounding each value with ' …

Member Avatar for murali2489
0
425
Member Avatar for darkenmac

Pull out your calculus book and create a list of different kinds(solved using different methods) of integration problems then teach your app how to identify each one individualy. Now that your app can discern between different "kinds" of problems you can teach it how to solve each of them. I …

Member Avatar for DarkLightning7
0
139
Member Avatar for DarkLightning7

I am working on a mapping system to support pathfinding over areas that are too large to hold in memory. The problem i have run into is how to load only a small part of the map when its all linked together and then dynamicaly load more of the map …

Member Avatar for JamesCherrill
0
223
Member Avatar for Ritesh_4

Android java shares essentialy the same api as oracle java and follows all the same language rules so learning the core language will help immensely in your quest to program for android also its a lot easier to find books and tutorials on java vs android java. Here are a …

Member Avatar for DarkLightning7
0
189
Member Avatar for Mr.M

try `java -jar "C:/pathtojar/"` with quotes. If that does not work check and make sure you have a main class selected in netbeans: 1) Right click the project select properties 2) In the left hand pane select "Run" 3) under Main Class: your runnable class should be selected.

Member Avatar for JamesCherrill
0
253
Member Avatar for roxie148

Here are a few things you can try: 1)Pull out the battery and leave it out for 5 min then put it back in then try to turn on the phone. 2)Get a battery you know is good(from a phone the currently works) and replace the one in the broken …

Member Avatar for CimmerianX
0
222
Member Avatar for zahidhcy
Re: loop

code for above post :) int matrix[3][4] = {{3, 4, 5, 6}, {1, 4, 6, 9}, {8, 3, 5, 2}} Printing the array using nested for loops: for(int i = 0; i < 3; i++){ //initialize the for loop. for(counter var; exit condition; incriment the var) for(int j = 0; …

Member Avatar for Unimportant
0
190
Member Avatar for game06

It hard to help when you dont tell us much about the problem and your description is not very clear. You mean that the class is not compiling?

Member Avatar for peter_budo
0
76
Member Avatar for Niraj Agarwal

What are the errors codeblocks gives you when the program gets stuck or is it trapped in an infinite loop? Try inserting print statements to find out where its getting stuck if your not getting any errors.

Member Avatar for rubberman
-1
147
Member Avatar for Nihil777

Check out this website http://linuxhomeserverguide.com/ it explains how to do everything you listed.

Member Avatar for Nihil777
0
197
Member Avatar for Shurui

Java applets are still very powerful but as iamthwee said its a "has-been" there are much better ways to create in browser programs, javascript for example. One thing to realize is that the computer accepts all input and output as strings so not being able to ues just integers is …

Member Avatar for iamthwee
0
245
Member Avatar for Azad Omer

When you call a constructor it instances(creates) an object right? When using the `this` keword in the object constructor it refers to the object that is being instanced(created). When using it outside of the constructor such as in a method call like: foo1.addDimension(dim1) where below is the method called: public …

Member Avatar for stultuske
0
290
Member Avatar for techyworld

Google is your friend :) first search result: http://www.tutorialspoint.com/jsf/ here is one specificaly for eclipse: http://www.coreservlets.com/JSF-Tutorial/ and of course oracle's offical tutorials: http://docs.oracle.com/javaee/6/tutorial/doc/bnaph.html http://docs.oracle.com/cd/E11035_01/workshop102/webapplications/jsf/jsf-app-tutorial/Introduction.html

Member Avatar for DarkLightning7
0
173
Member Avatar for DarkLightning7

Ok so im working on a mapping library for my pathfinding system and im trying to figure out what Data structure would be best to use for rapid calls up to several hundred a second, as low memory usage as possible, and not too difficult to store and load pieces(chunks) …

Member Avatar for DarkLightning7
0
204
Member Avatar for DarkLightning7

Ive been working on pathfinding algorithms for a couple weeks now and A Star has me stumped. Right now i am attempting to Pathfind over a maze in a matrix of the form boolean map[x][y][5]; where index 0-3 are the walls on the cells starting on the right with 0, …

Member Avatar for DarkLightning7
0
275
Member Avatar for DarkLightning7

I could not get c function calls to work inside of nasm so i wrote my own read integer procedure. Im sure its inefficient and could be greatly imporved but right now I'm interested in where the negative sign went. Any help is greatly apreiciated. ;---------------------------------------------------------; ;reads a 64 bit …

Member Avatar for Assembly Guy
0
233
Member Avatar for DarkLightning7

So ive been teaching myself x86 over the last couple days now im trying to call c functions and am getting segmentation faults. if someone could explain how to call them properly that would be great. here is my code: print integer is just he control string %d as i …

Member Avatar for DarkLightning7
0
5K
Member Avatar for uknown2

For starters your switch statment's syntax is not correct. it follow this format. switch(char){ case 'A': //notice no brackets anround individual cases //call some method break; //notice the semicolon case 'B': //call some other method break; . . . ect. } once you fix that if you still have problems …

Member Avatar for bguild
0
2K

The End.