• Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
Hi,
 
We've been making a blog about vintage toys for some time now but we are stuck when it comes to banners and other similar stuff that requires images. At first I thought I could just browse google images and pick up stuff from there and make them into a banner but a friend pointed out that those might be copyrighted and we might get sued or whatever. I thought that this would be a bit of an overreaction but after looking it up I found out that there are many people with sticks up their butts that not only will ask you to remove the picture but they will also continue on and sue you even if you respond immediately. We've all seen lots of stupid sh!t copyright-wise (Barkley game comes to mind) that's why I'm asking you guys for some advice on this. Use google images for G.I.Joe, TNMT, power rangers and other toys or not?
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
Hi, I have a blog I'm making and I would like to make a script that makes the mouse disappear when it hovers over a specific link (the menu tabs). Is that possible? And if yes, how can someone make it? (using what?). BTW I'm making this blog on blogger so consider any restrictions that might apply.
 
PS: I know this isn't exactly programming but it is technology right?
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
I have a problem for 2 days now I haven't been able to exactly figure out. I have a txt file that his a list of stuff divided by semicolons (; character) and at the end it has a newline character for the next list, just like so:

...other stuff...;S234;S654;P768;P98
...other stuff...;P4;P654;S123;S432
...other stuff...;P90;S673;S879

As you can see it is random how many items we get in each line and what I want to do is to put each item in a linked list according to its line in an array. It has to look like so:

array[0] -> ...other stuff... S234 -points to-> S654 -points to-> P768 etc.
array[1] -> ...other stuff... P4 -points to-> P654 -points to-> S123 etc.
array[2] -> ......

I've made the fgets loop and all works it reads each line etc, but I'm stuck to the internal loop required in order to read each item separately inside the line given by fgets. Since it is random how many items we have in each line I can't put the strtok a predetermined amount of times inside the fgets loop and I still can't figure out what to do in order to condition the internal loop to understand that it has to exit after it finds the newline character (since this is our queue to go to the next line). Let me remind you that through strtok you can cut the whole string off according to the tokens but that does not mean that the last characters of the string array are the same as what you see after a printf("%s"). There are many junk characters thus I cannot check if the last char is a newline character...
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
I was watching this really nice cross over video and it played a old school video game soundtrack at 8:40 that I used to have but now I can't remember where it is from:


http://www.youtube.com/watch?v=IdYpn57j3VM
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
Alright so i'm doing an introductory course on OOP programming and we're obviously doing Java at my uni and i have some fast questions for those that know a little in depth stuffz:


1) We are making a calculator using a premade CalculatorGui, which requires some methods like deleteLastDigit (for the Backspace button). That particular one's body is:


deleteLastDigit(){
buf=new Stringbuffer(buf.substring(0,buf.length()-1)); which actually gives the "buf" reference a new stringbuffer instance which contains the same string without the last character (since it has been deleted by the backspace button). The question is, where does the OLD instance go? Without a reference attached to it i believe it is being annihilated by the garbage collector but i want to make sure hence the question.


2) Inside the CalculatorGui class there is a Class datamember called display which is of TextField type. We actually use this in order to show on the Gui of the calculator the numbers and the results. The function used is setText in order to refresh what is shown on the calculator's display field. The question is wouldn't it be better if this data member was an INSTANCE data member and NOT a CLASS data member? And if yes for what reason? What i wrote was that it would be better for it to be an instance data member since in order to make the calculator GUI appear you have to make a new instance of it, so we already create a new instance to use the setText method on. Also if we want to have more than one instance of the calculator (i.e 2+ calculators at the same time), when using the setText method to refresh one calculator it would refresh all of them since its a class method through the same program. Again want to make sure cause that one was totally out of my head :P.




I know its a bit long but thanks to those who will take some time and help!
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
I have a game concept in mind but for it to not be boring it requires that the player cannot memorize the map (since the whole concept is to advance avoiding obstacles). There are several problems with this concept however:


1) Assuming its possible to create a random obstacle generator, how can i be sure that there will always be a way to get through. I mean isn't it possible that the whole way is blocked by obstacles, or maybe the obstacles are put in such a way that its almost impossible to get past by them (like allowing only extremely pixel-precise movement which isn't possible in a fast paced game).


2) There is a timed explosion in the game, half screen big in order to force the player to navigate through the other half for a certain amount of time. Can i code it in a way that it is always possible to get through? I don't want to have the obstacles in the left side of the screen (which means i have to navigate to the right side to avoid them) only to get an explosion in the face since there was no room on the left side of the screen.


3) Obviously the character has some abilities that help him navigate through the field and the obstacle generator should take that in mind when designing the course.


Is all that even possible? Maybe its possible? Impossible?
Gimme your opinion veteran programmers. Thanks!
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
My motherboard is the second from the top list from this site http://www.pcstats.com/articleview.cfm?articleID=1247

I haven't invested enough time to learn about hardware stuff so i don't know what i have to look for when i check for graphics card compatibility. Could you help me out please? Also i know i must have the oldest hardware in here so don't mention anything :P

EDIT: It could be cool if you gave some suggestions about graphic cards too. Thanks
  • Avatar of Holy Cow
  • Let's put a smile on that face...
  • Group: Premium Member
  • Joined: Jun 8, 2008
  • Posts: 54
Ok so the teacher gave us this problem where we have to find out how much memory o compilation of audio and images and text file takes and there is this part i haven't figured out. It says we got 5 mins of audio at 44.1 khz at 8-bit. I have been trying to find out how it works with Hz and bits but was unsuccessful. Any tips/explanation? Im not looking for an answer to the problem but for someone to help me understand how this works.

Thanks  :fogetbackflip: