You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'snow-templar'

We found 2,797 matches.


<< < > >>

Viewing 1-30 of 2,797 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 95194

1.

Questioning

Topic: Ruby Question

Posted: 06/21/09 12:01 AM

Forum: Programming

So here is a tricky one. I am someone who has been programming in Ruby for awhile now, but not in C++. A project I am working on suddenly now requires a mixture of the two. What I need to do is be able to access a C++ DLL file from the Ruby level. Now I tried doing research and found plenty of advice on how to do similar things in C, and C I sort of know, well enough I can probably get by. But it seems a lot of the Ruby C Extension stuff relies on the fact that the Ruby interpreter is programmed in C. Now the sources I have looked up said it is also possible to do this in C++, but they never give an example. They only demonstrate using a combination of C and Ruby. Can anyone point me in the right direction?

Also is there a Ruby:Main?


2.

Shouting

Topic: New Strand Of Swine Flu Found!

Posted: 05/01/09 04:30 AM

Forum: General

Please take note if you live near or exposed to those infected.

http://tinyurl.com/cceu2y


3.

None

Topic: Happy Birthday Zerok!

Posted: 05/01/09 04:20 AM

Forum: General

I even came back to say Happy Birthday!

Happy Birthday Zerok!!!


4.

Thinking

Topic: So I heard you like Zydrate

Posted: 02/05/09 03:33 AM

Forum: General

Zydrate comes in a little glass vial.

A little glass vial? A little glass vial.

And the little glass vial goes into the gun like a battery.
And the Zydrate gun goes somewhere against your anatomy.
And when the gun goes off, it sparks and you're ready for surgery.

Surgery

5.

Mad as Hell

Topic: Youths Caught Roasting Puppies

Posted: 02/05/09 03:16 AM

Forum: General

That is disgusting. What they are doing is totally inhumane. They are doing it completely wrong. The puppies need to be properly skinned, drained, and beheaded before roasting. Also they are using the wrong cooking method. I would suggest a closed charcoal grill smoked with hickory for this situation. Let it slowly cook so as to soak in the flavor of the hickory. Once cooked, one should cut the meat in a very precise manner. To cut the meat along the grain would cause the meat to have a very stingy texture. To get the proper "dissolve in your mouth" texture, once must cut perpendicular. Just be careful that the meat does not collapse before serving, but cutting like this can destroy the support structure of the meat that keeps it together.


6.

None

Topic: Quick Java Question: Inner Classes

Posted: 12/20/08 01:13 PM

Forum: Programming

At 12/20/08 12:57 PM, Jon-86 wrote:
At 12/20/08 12:53 PM, Jon-86 wrote: 1 - If your only accesing it from the Stack class then using Protected will allow the Stack class access but prevent access from external classes (protected allows sub-classes to access their super class) making it PRIVATE will stop anything accesing its attributes unless you have get / set methods (but this is what you want most of the time)
Made a mistake their but fixed it now. If only we could edit :) But this is just as god.

Well, I have accessor and mutator methods set up. I was just worried about getting access to the constructor to be able to initialize a StackNode object within the stack class. And I guess a better way of phrasing my question about inner classes with generics is...

If I has the header for my Stack class looking like this:

public class LinkedStack<E> implements Stack<E>{

Then is this the proper way to write the header for my inner class,

protected class StackNode<E>{

when my constructor header looks like this?

public StackNode(E data){

7.

Questioning

Topic: Quick Java Question: Inner Classes

Posted: 12/20/08 12:43 PM

Forum: Programming

Just a quick question. I am trying to program a Stack class from scratch using generics and singally linked nodes. I am required to write the node class as an inner class to the Stack class. So two quick questions:

1) What should be the access modifier for the inner class if I need to make multiple instances of it, but only in the Stack class?

2) Since the generic type <E> has already been declared in the Stack class, do I still have to declare the generic in the inner class header or can is leave it out and assume the inner class will be smart enough to look up to the Stack class to determine what E is?


8.

None

Topic: this pissed off alot of people...

Posted: 11/19/08 07:46 PM

Forum: General

Taking bets now for any of the following outcomes.

1) Topic remains strictly on topic with no derailment whatsoever.
2) Nazi's get brought up in comparison and then we argue the relevance of nazi's to PETA.
3) Locked thread is looooooooooooooooooooooooooooocked.
4) We all agree to have a nice cup of tea.
5) We all kill ourselves before the thread ends.
6) Misc.

PLACE BETS NOW!!!


9.

Elated

Topic: Cooking Mama, Kills! (lol, Peta)

Posted: 11/17/08 03:23 PM

Forum: General

I have to say, I never had as much fun preparing a turkey before I played this game.

Click here to play!


10.

None

Topic: Modular Progrramming in Java

Posted: 10/25/08 09:20 AM

Forum: Programming

At 10/24/08 06:31 PM, CronoMan wrote: http://java.sun.com/developer/technicalA rticles/ALT/Reflection/index.html

google for Java Reflection

Yeah but according to the Reflection API, how well reflection works depends completely on the current JRE of the user. And in many cases pose serious overhead and security issues. I will use it if I have to but is there another way?


11.

Resigned

Topic: Modular Progrramming in Java

Posted: 10/24/08 05:30 PM

Forum: Programming

Got a question for you guys. Would anyone here have any idea about how to approach the problem of allowing add-ons into a program written in Java. It would be easy if there was some way to make Java look at a directory of .class files and automatically make a single object out of each of them but I have yet to find a way to do that. Anyone have any ideas?


12.

None

Topic: lets play the weapon game!

Posted: 10/15/08 12:48 AM

Forum: General

At 10/15/08 12:41 AM, Pure-Metal-UTA wrote: Forgot the next weapon...
Antimatter.

Antimatter comes in contact with matter, starts a chain reaction that turns the whole Earth into antimatter, one of the ways that the Large Hadron Collider could kill us.

The USB 2.0 Specifications


13.

None

Topic: Best Inexpensive laptop?

Posted: 10/14/08 09:03 PM

Forum: General

You want cheap but good laptops? Look at ASUS. A lot of people don't really look at them because they are mostly known for making motherboards, but when you think of it, a laptop is mostly a motherboard with a case around it and screen attached. So because of this they have started to venture into the laptop business.

Comparison of Generic ASUS Laptops

Also they have this lightweight kickass series called the EeePC series. Very small and loooooooooooong battery life.

This one is my favorite.

There's my two cents.


14.

None

Topic: New Pc Help Urgent!!!

Posted: 10/14/08 01:56 PM

Forum: General

At 10/14/08 01:34 PM, kris008 wrote: ok Yes its deffinatly a VGA cable
the Graphics card is GeForce 9800 GT
i dont have an old monitor what im using atm is my laptop thats all i have

Answer me this... how are you using a VGA cable on a card that has only 2 DVI ports and now VGA ports?


15.

None

Topic: New Pc Help Urgent!!!

Posted: 10/14/08 01:29 PM

Forum: General

At 10/14/08 01:09 PM, kris008 wrote:
At 10/14/08 01:05 PM, MercatorMap wrote: Did you put the I/0 switch into the "I" position?

BTW, pre-built PC's = expensive as fuck, and underpowered.
Yes its on the "I" and its not a pre-built PC i had it compleatly built from scratch to all my specs not from a shop so its all good :D if the feckin monitor decides to work :l

and i know the pc works because its been tested...just not with this new monitor

could i connect the pc upto my laptop to test if its working or is that not possible?
At 10/14/08 01:18 PM, kris008 wrote:
At 10/14/08 01:16 PM, rednec0 wrote: it depends on the kind of input the monitor has. if it has a DVI input you have to tell it to switch to that and vice-versa for VGA.
the imput is VGA

Okay, now this changes things a bit. So the problem is in the monitor and not the computer, eh? Simple enough to test. You still want to double check all cable connections like I said in my previous post. However, it would also be a good idea to double check the computer and make sure it can work on a different monitor. If the computer works with any old monitor but the new monitor fails, then look through the menu options that are usually available upon hitting the menu button. There should be options there, some of which might help fix this situation, like if there is a VGA/DVI mode or something you need to switch it to. But it would make things a little easier if you posted the monitor model.

Also, no you cannot plug you computer's video into your laptop.


16.

None

Topic: New Pc Help Urgent!!!

Posted: 10/14/08 01:23 PM

Forum: General

At 10/14/08 01:04 PM, kris008 wrote: k so my new pc has just arived....its already built and windows is already instaled so basically all i am meant to have to do is plug it all in and go....
so i connected the pc to the power supply and conected the monitor to the power supply and connected the VGA cord from the PC to the monitor.
i turned on the pc and the monitor and the monitor reads 'No Signal' y is it saying that? have i forgotten to do somthing or what?

Some more information would be helpful. Like first off, what type of video card are you running? Also are you using a DVI cable or a VGA cable? (The DVI cables have the white ends while the VGA cables have the blue ends.) But generally this is what I wold do to fix this.

1) Unplug all cable connections. Sometimes you just plugged something in wrong and by taking it out and plugging it back in it will suddenly work. Sometimes dirt gets i the way and stuff.
2) Plug in your video cable from you monitor to your video card. If DVI (white port) is available, use that instead of VGA (blue port). Make sure thumbscrews and screwed in a secured all the way but don't make them so tight that they break. Also use the video port that is the highest and furthest left if you are looking at the back of your computer.
3) Plug you monitor's power cable into your wall outlet and turn on your monitor. It should turn on, warm up, and then go to an idle state and probably say something about there being no signal available.
4) Plug you computer's power cable from you computer's power supply into your wall socket and the turning on your computer.

If after these steps, your monitor still fails to find the signal, then turn off the computer and then open the case. If power is properly getting to the computer then there should be some LED's on the motherboard which will be lit up. If not then there is a problem with power to your computer. Also with the case open, attempt to boot up your computer. Look specifically for activity from the graphics card such as it getting warmer and the fan on it starting to rotate. If the fan on the graphics card is not rotating on boot up then something is wrong with either your graphics card or how it was installed.

Hope this is helpful.


17.

None

Topic: my best freind died

Posted: 10/14/08 03:56 AM

Forum: General

"Drop any good loot?"


18.

None

Topic: Microwaveable Pizza

Posted: 10/14/08 03:54 AM

Forum: General

At 10/14/08 03:49 AM, Sawdust wrote: In before "we doun car fagit"

Seriously, shit happens.

I know, it's just that it is 4am and I wanted an excuse to post on NG BBS: General again. I missed you guys and I don't get much free time nowadays with my work. But you probably get banned for making a thread called "I <3 NG BBS" without getting a ton of "Mod Ass-kisser" remarks.


19.

Mad as Hell

Topic: Microwaveable Pizza

Posted: 10/14/08 03:47 AM

Forum: General

AHHhhhh, god damn it! I just wanted a midnight snack before going to bed. But apparently I can't do that without burning my mouth because the stupid college doesn't trust us with a normal microwaves. No, instead we get these weird ones that only have pre-set times and no way to change the power level to either high, medium, or low. So I cook this pizza, bite into it, and get fucking burning hot pizza sauce spread all over the roof of my mouth. I think my mouth is numb now. Oh well, just wanted to rant, say hi, then get back to bed/software engineering homework.

PS- The place looks nice since I was last here.

Microwaveable Pizza


20.

Mad as Hell

Topic: Mobo Question (evga Vs. Xfx)

Posted: 05/29/08 09:29 PM

Forum: General

Maybe someone can figure this one out for me. So I am looking for motherboards that are reasonably future-proof (I know there is no such thing but as future-proof as possible) and I boiled it down to these two motherboards.

http://www.newegg.com/Product/Product.as px?Item=N82E16813141009
http://www.newegg.com/Product/Product.as px?Item=N82E16813188025

Mainly got it down to these two because I wanted a MoBo with the nForce 790i Ultra SLI and some other features like DDR3 and eSATA and a 1600/1333 MHz FSB. Anyways, I am trying to decide between these two motherboards, assuming they were different because they were made by different companies, but THEY ARE THE EXACT FUCKING SAME! Seriously, wtf?

So which one do I chose?


21.

None

Topic: What do you think Heaven...

Posted: 05/11/08 11:17 PM

Forum: General

Beer volcanoes and stripper factories


22.

None

Topic: Maus clouds. Now farmable.

Posted: 05/11/08 11:15 PM

Forum: General

My friend, Kyle from Colorado, wants to know what is step 3?


23.

None

Topic: How fast is your interbutts?

Posted: 05/11/08 11:00 PM

Forum: General

At 5/11/08 10:52 PM, Thimbles wrote: And with that location, I am that much closer to finding, and killing you.

Country: United States of America
State: New York
City: Rochester
College: Rochester Institute of Technology
Dorm Hall: Nathaniel Rochester Hall
Floor: 3 (also known as the Computer Science House) link
Room: 3107

Happy now?


24.

None

Topic: How fast is your interbutts?

Posted: 05/11/08 10:51 PM

Forum: General

At 5/11/08 10:47 PM, Be-Easy wrote: You fucking wrote too much horseshit, and you didn't even have the fucking courtesy to provide us with a link, fuck you sir!, fuck you.

Sorry, I thought people would have enough intelligence to google "speed test" and click the first link.

http://www.speedtest.net/


25.

Thinking

Topic: How fast is your interbutts?

Posted: 05/11/08 10:41 PM

Forum: General

So how fast is your series of tubes? (Yes, I do realized I screencapped it in the middle of the transfer but it was doing this weird thing where when the upload was complete it was still evaluating the transfer speed.)

On an unrelated note: I should smack myself, but I do not know what for. I can either smack myself for not doing what I said I was going to do and get involved again at NG or for posting here some random topic I came up with instead of working on my computer science project and writing a program in Java that keeps track of what lines a word appears on in a text file using only binary trees and linked lists for data structures and they must be made from scratch, no java.util.collection shit allowed. Not hard but still don't want to do it. But anyways, hey guys! I have two weeks of school left and nothing better to do.

How fast is your interbutts?


26.

None

Topic: You want see "How She Move"?

Posted: 04/07/08 06:58 AM

Forum: General

At 4/7/08 06:55 AM, skemmtun wrote: Number eight.

Took the words out of my mouth.


27.

None

Topic: Desktop Shortcut to a Java program

Posted: 04/02/08 03:37 PM

Forum: Programming

Right but then how can I change the shortcut icon image for just that java program and not all the java programs on my comp?


28.

Questioning

Topic: Desktop Shortcut to a Java program

Posted: 04/02/08 01:23 PM

Forum: Programming

Quick question and one I thought I could find the answer to on Google fairly quickly but I think I am using the wrong words to search for my solution so hopefully you guys will understand.

Now creating a shortcut to an .exe program is easy because the double click on the shortcut does the same thing as double clicking on the .exe file itself. But I have a couple java programs I made that I would like to start up just as easily, but so far the only way I was shown how to start up a java program was to open a terminal, get the directory holding the java program to be the active directory, the using the 'java <insert program name here>' command. Is there a way to make a desktop icon that will launch my java programs with just a double click on the icon?


29.

Muted

Topic: making an encryption programme

Posted: 02/29/08 12:33 AM

Forum: Programming

Still a little new to programming so can't say too much here other than what I learned in my Discrete Math class about message encryption. Now keep in mind this is message encryption, not any sort of compression encryption or anything like that, but a simple encryption algorithm that used to be used by the CIA. I'll try to explain it to the best of my abilities.

/*-------------------BEGIN LESSON--------------------*/

The RSA Cryptosystem

This form of encryption is known as the RSA cryptosystem. The discovery of the system comes from two sources. It was believed to have been discovered by MIT researchers, but then the CIA released documentation that contained proof that they had actually discovered it first but did not reveal that they did because it added additional security to their messaging systems that used this algorithm. The system uses a public key and a private key. These keys usually contain large prime numbers as their basis for the algorithm. What prime numbers are used are completely up to the users, but generally something that needs to remain secret such as a CIA document uses prime integers that have a length of at least a hundred digits. However, due to integer limits on computers, you might have to deal with smaller prime numbers or alternative methods for computing large numbers. But trust me when I say that decrypting a message with just one, two, or three digit primes numbers is still a bitch. This algorithm also uses a lot of modular exponentiation, so make sure you brush up on your modulus division and exponential math.

Each encryption key consists of a modulus n = pq where 'p' and 'q' are large primes. There is also an exponent 'e' that is relatively prime to (p-1)(q-1). To produce a usable key, two large primes must be found. The idea behind these being so large is that the larger they are, the longer it takes for a computer program to factor these numbers out of the product of the two primes because it is only the product the public gets to see.

RSA Encryption

First change all letters into integers using a Caesar cipher (Example: a=0, b=1, c=2, ..., y=24, z=25) or a shift cipher which is a Ceasar cipher but with all the letter's numerical values shifted by a chosen integer. Now assuming the letter 'M' represents a integer that has yet to be encypted (aka plaintext) and C represents an integer that has been encypted (aka ciphertext), you should use the following function:

C = M^e mod n

Let me use the following example to illustrate how the encyption process works. I am going to encrypt the message STOP using RSA encryption. For this example I will set p = 43 and q = 59. So n = 43 * 59 = 2537, and e = 13. Note that gcd(e, (p-1)(q-1)) = gcd(13, 42 * 58) = 1 and gcd means "greatest common denominator." I translate the letters of STOP into their numerical equivalents and then group them into blocks of four. We get:

1819 1415

We now encrypt the message using the mapping:

C = M^13 mod 2537

Computations using modular multiplication show that 1819^13 mod 2537 = 2081 and 1415^13 mod 2537 = 2182. The message is now encrypted as 2081 2182 and is ready to be sent to the reciever to the message.

RSA Decryption

The plaintext message can be quickly recieved when the decryption key 'd' and an inverse of 'e' modulo (p-1)(q-1) is known. [Such an inverse exists because gcd(e, (p-1)(g-1)) = 1.] To see this, note that if de = 1 (mod (p-1)(q-1)), there is an integer 'k' such that de = 1 + k(p-1)(q-1). It follows that:

C^d = (M^e)^d = M^ed = M^(1+k(p-1)(q-1)) (mod n)

By a thing called Fermat's Little Theorem [assuming gcd(M, p) = gcd(M, q) = 1, which holds true except in rare cases], it follows that M^(p-1) = 1 (mod p) and M^(q-1) = 1 (mod q). Consequently,

C^d = M * (M^(p-1))^(k(q-1)) = M * 1 = M (mod p)

and

C^d = M * (M^(p-1))^(k(p-1)) = M * 1 = M (mod q)

Because gcd(p , q) = 1, it follows by something called the Chinese Remainder Theorem that

C^d = M (mod pq)

Now here is an example to explain all the shit I just said which was pretty much copied out of my discrete math book. The situation here is we received the message 0981 0461. We need to find the decrypted message. Now we will assume the cipher we are using hasn't changed from the encryption exercise above. So we used n = 43 * 59 and exponent 13. d = 937 is an inverse of 13 modulo 42 * 58 = 2436. I use 937 as my decryption exponent. Consequently, to decrypt a block C, we compute

P = C^937 mod 2537

To decrypt the message, we use the fast modular exponentation algorithm to computer 0981^937 mod 2537 = 0704 and 0461^937 mod 2537 = 1115. Consequently the numberical version of the original message is 0704 1115. Translating that back to English letters (assuming only a Caesar cipher was used) we see that the message is HELP.

/*--------------END LESSON----------------*/

Now for some of you kiddies, this might be a bit over your head, but if you understand the concept of modulus division and prime numbers, it shouldn't be too hard to get. My best advice is to try to follow the examples as best as possible.


30.

None

Topic: It's been awhile General...

Posted: 02/23/08 10:03 PM

Forum: General

At 2/23/08 09:53 PM, Yamor wrote: We have penicorns?

I remember penicorns. Thank you Stamper


All times are Eastern Standard Time (GMT -5) | Current Time: 08:00 PM

<< < > >>

Viewing 1-30 of 2,797 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 95194