## Search found 73 matches

Mon Apr 18, 2011 9:37 pm UTC
Forum: Coding
Topic: [Swing] Timer issue
Replies: 7
Views: 1167

### Re: [Swing] Timer issue

I need two Timers for: a) running a countdown -once it finalizes, it fires some actions- and b) showing the remaining time Do you mean "Timers" as in javax.swing.Timer or as in "anything allowing me to do (a) and (b)" ? I never used Timers but I know you can do that with Runnabl...
Sun Apr 17, 2011 8:25 am UTC
Forum: Language/Linguistics
Topic: Parlons Français ! [French practice]
Replies: 616
Views: 224054

### Re: Parlons Français ! [French practice]

Moi je suis un peu moins fainéant que Grop mais je suis moins bon en grammaire et autre théorie de la langue. Donc J'ai fait un peu plus de corrections que j'ai essayé de justifier mais je n'ai pas de réelle explication pour certaines. Maintenant je joue à Pokémon Emeraude. En français. J'aime b...
Sun Apr 17, 2011 7:13 am UTC
Forum: Mathematics
Topic: Math: Fleeting Thoughts
Replies: 434
Views: 158893

### Re: Math: Fleeting Thoughts

I didn't know it was called the order of the permutation *, now that I do I can indeed find various sources stating the lcm property... Thank you guys for pointing out this name and the sources/proof. * the little I know about permutations I learned from juggling. That's where I knew the orbits idea...
Sat Apr 16, 2011 8:25 pm UTC
Forum: Mathematics
Topic: Math: Fleeting Thoughts
Replies: 434
Views: 158893

### Re: Math: Fleeting Thoughts

Hello Math people, I come to you with a question (not deserving its own thread I think) about permutations. Let's say I have a function f returning a permutation of a list, I start with any list l0 and apply f on it iteratively until I get back to the original ordering. For example: l0 = [a, b, c, d...
Sat Apr 16, 2011 9:29 am UTC
Forum: Coding
Topic: A neat idea, but unsure how to implement.
Replies: 4
Views: 2347

### Re: A neat idea, but unsure how to implement.

Doesn't Google Maps only do roads? The idea is to use Google Maps as a background and overlap your data on top of it. You get all the basic map data (satellite images, terrain, ...) and user interface (zoom, move around, ...) as well as other useful stuff such as distance computations from Google M...
Fri Apr 08, 2011 6:30 pm UTC
Forum: Forum Games
Topic: Rate the avatar above you
Replies: 3926
Views: 388931

### Re: Rate the avatar above you

hush hush! what what!
would be better with sound (the first few times, then everyone would go crazy).
7/10.
Thu Apr 07, 2011 7:32 am UTC
Forum: Hardware
Replies: 3
Views: 1999

I wondered about the same problem not so long ago (but gave up on it due to my lack of basic electronics skills/knowledge). I guess it's possible to come up with a simple circuit, with a few transistors or something, that would open/close a switch (maybe 2 with the stereo) depending on a sound signa...
Thu Apr 07, 2011 6:59 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2004141

### Re: Coding: Fleeting Thoughts

And actually, I get the same results from using your other methods too. So yeah, pretty sure I'm misunderstanding the difference. a=[0,0] isn't the right example to test on. >>> from copy import copy >>> a=[[0,0],[0,0]] >>> b = copy(a) >>> print a, b [[0, 0], [0, 0]] [[0, 0], [0, 0]] >>> b[0][0] = ...
Wed Apr 06, 2011 8:39 am UTC
Forum: The Help Desk
Topic: Batch file to edit .txt?
Replies: 3
Views: 924

### Re: Batch file to edit .txt?

I'm not sure you will be able to use this depending on your OS and what you have installed but here is a solution using sed or perl. sed 's/^/a/' file > new-file perl -pe 's/^/a/' file > new-file I only tested them on linux but I think the perl one should work the same on Windows (I guess that's the...
Wed Apr 06, 2011 7:55 am UTC
Forum: Coding
Topic: I want to make a game, for portfolio and \$\$. Which Language?
Replies: 19
Views: 6257

### Re: I want to make a game, for portfolio and \$\$. Which Langu

I've already done the "Pick the first language someone suggests and start programming" deal several times before. This time I want to make an informed decision. :p What TheAmazingRando said. If you don't know how to make a game but already know to program you will benefit the most from ex...
Tue Apr 05, 2011 8:41 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2004141

### Re: Coding: Fleeting Thoughts

MHD wrote:This is signature material... Only I'm pretty sure it's over 255 chars.

But it looks like each BBCode tag gets counted as only 1 char. For example if you take exactly 255 chars of text and put it in a quote tag (adding 15 chars) you get a warning that your signature contains 257 chars.
Sun Apr 03, 2011 7:19 am UTC
Forum: Coding
Topic: Programming Language or theory based on signals
Replies: 9
Views: 1600

### Re: Programming Language or theory based on signals

Wikipedia knows about signal programming and says it "is similar to event-driven programming".
Is that what you're looking for? If not, can you explain how your idea differs?
Sat Apr 02, 2011 8:42 am UTC
Forum: Coding
Topic: XML tags Perl coding
Replies: 2
Views: 765

### Re: XML tags Perl coding

Also, as duerig said, if you're dealing with XML, use an XML lib and not regular expressions. But in this case, if your multiple root nodes are in a single document/file, your XML is not valid so there's a good chance the libraries won't want anything to do with it. I don't think there is a good sol...
Fri Apr 01, 2011 12:22 pm UTC
Forum: Coding
Topic: I want to make a game, for portfolio and \$\$. Which Language?
Replies: 19
Views: 6257

### Re: I want to make a game, for portfolio and \$\$. Which Langu

Sorry, still looks all over the place to me. - Ṣḥould I ḥoṣṭ my game myṣelḟ or...? I know ṣomeone wḥo ḥad ṭo ṣḥuṭ down ṭḥeir game becauṣe ṭḥey couldn'ṭ aḟḟord ṭḥe ṣerver bill anymore. Depends of the requirements (CPU load, bandwidth, ...) of your game... which depends of the type of game and impleme...
Thu Mar 31, 2011 6:43 am UTC
Forum: Computer Science
Topic: Looking at The Art of Computer Programming
Replies: 7
Views: 2975

### Re: Looking at The Art of brainbox Programming

What the heck is up with the editor? It's not April first yet where I live.... On the topic of reading, understanding, and being familiar enough with stuff: this announcement is at the top of every forum. tl;dr? Clearly you're new here. The mods of this forum work hard keeping stuff ... moderated, ...
Tue Mar 29, 2011 10:44 am UTC
Forum: Coding
Topic: I want to make a game, for portfolio and \$\$. Which Language?
Replies: 19
Views: 6257

### Re: I want to make a game, for portfolio and \$\$. Which Langu

I'm not at all an expert in games making but I think you should focus on what your main goal is (portfolio or \$\$ as you put it). You mentioned lots of thing, programming, art/sound, level design, piracy, platforms, compatibility, languages, costs, ... but I don't think you can really have it all at ...
Mon Mar 28, 2011 7:15 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2004141

### Re: Coding: Fleeting Thoughts

I once spent half a day trying to find a bug in my code, only to realize it was actually a bug in tried using read someone's opinion about Eclipse for five minutes on the internet . I don't will never use Eclipse anymore ever . Better yet? (actually, I do use Eclipse, maybe there's something wr...
Sun Mar 27, 2011 10:27 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2004141

### Re: Coding: Fleeting Thoughts

Eclipse is ok until you try to do anything more advanced that basic text editing, then it crashes. What do you mean by "more advanced that basic text editing" ? Is there an IDE that will let me specify a command line argument to pass to the program when running it from the IDE? That'd be ...
Sat Mar 26, 2011 5:17 pm UTC
Forum: The Help Desk
Topic: Drawing software - text on edges
Replies: 10
Views: 1510

### Re: Drawing software - text on edges

Has yEd been mentioned yet? I mostly use it for its automatic layout features and they don't play very well with complex edge labels configurations, but if you're willing to move things around by hand so nothing overlaps I guess you can get good results. Here's a quick example (I didn't have pretty ...
Sat Mar 26, 2011 1:59 pm UTC
Forum: Coding
Topic: Java- how do I separate a string into individual characters
Replies: 7
Views: 1856

### Re: Java- how do I separate a string into individual charact

Yay for Unicode indeed, thanks for the test case. Updated regex based functions: public static List<String> getGraphemesWithRegex(String string) { Matcher matcher = Pattern.compile("(\\P{M}\\p{M}*)").matcher(string); List<String> list = new ArrayList<String>(string.length()); while (matche...
Fri Mar 25, 2011 7:16 pm UTC
Forum: Coding
Topic: Java- how do I separate a string into individual characters
Replies: 7
Views: 1856

### Re: Java- how do I separate a string into individual charact

I've tried using StringTokenizer with the arguments "", but that has just got me a return of the original string. This "" trick happens to (sort of) work with split "XKCD".split("") returns ["", "X", "K", "C", "D&q...
Thu Mar 24, 2011 10:50 am UTC
Forum: Coding
Topic: Perl problem, change PP: first occurrence to HL:
Replies: 16
Views: 2083

### Re: Perl problem, change PP: first occurrence to HL:

I'd like to apologize in advance for the non-perl and therefore slightly off topic answer but...

0,/^PP:/{s/^PP:/HL:/}

That's what she sed.
Fri Mar 18, 2011 5:17 pm UTC
Forum: Language/Linguistics
Topic: Parlons Français ! [French practice]
Replies: 616
Views: 224054

### Re: Parlons Français ! [French practice]

J'aimerais savoir s'il y a des accents du Nord et Sud en France (comme en Angleterre) et s'il y a d'autres accents des pays voisins de la France (la Belgique, l'Italie, la Suisse, etc.)Merci! Il y a en effet beaucoup d'accents différents selon les régions de France et dans les pays voisins comme tu...
Tue Mar 15, 2011 7:56 pm UTC
Forum: Language/Linguistics
Topic: Using 'there' twice in a row
Replies: 19
Views: 3890

### Re: Using 'there' twice in a row

Can you be able to be redundant? You could always try to manage to succeed in being able to be redundant, I believe I guess I think. So is "it may, maybe, ...", or "it may, perhaps, ..." which seems a bit less weird, simply redundant or would it imply a lower certainty in the st...
Tue Mar 15, 2011 5:37 pm UTC
Forum: Language/Linguistics
Topic: Using 'there' twice in a row
Replies: 19
Views: 3890

### Re: Using 'there' twice in a row

What about other words? I don't know... May may, maybe, be before June.
Although in this case I guess "may maybe" is likely bad form somehow (should be "might" instead?)... but what do I know? I'm French and therefore I suck at English, yeah!
Sun Mar 13, 2011 12:35 pm UTC
Forum: Language/Linguistics
Topic: Parlons Français ! [French practice]
Replies: 616
Views: 224054

### Re: Parlons Français ! [French practice]

Apparemment c'est une reprise de Tuff Ghost de The Unicorns, traduite de façon plus ou moins correcte/exacte. Les paroles originales sont: tuff ghost, tuff crowd, tuff love sit down, sit down, sit down tuff ghost, tuff crowd, tuff love sit down, sit down, sit down say something now say something now...
Tue Mar 08, 2011 10:53 am UTC
Forum: Coding
Replies: 7
Views: 2500

I just came across a link to a Chrome extension name Cloud Save . https://chrome.google.com/extensions/img/omiekjeapoonbhiemenfoccbdpeagdah/1299557423.73/screenshot/4001 I didn't test it but from the little I read it seems like it does the "download to local then upload to cloud" thing
Sat Feb 26, 2011 12:03 pm UTC
Forum: Computer Science
Topic: Algorithm question
Replies: 6
Views: 1574

### Re: Algorithm question

As letterX already explained, yes you can import the data in Excel but do you really need/want to? Wouldn't something like gnuplot be more appropriate if you just want to produce a graph without needing specific processing of the data in Excel? It would be more appropriate if: ⋅ You have ...
Fri Feb 25, 2011 10:13 am UTC
Forum: Computer Science
Topic: Algorithm question
Replies: 6
Views: 1574

### Re: Algorithm question

As letterX already explained, yes you can import the data in Excel but do you really need/want to? Wouldn't something like gnuplot be more appropriate if you just want to produce a graph without needing specific processing of the data in Excel? edit: found an example, I did it a while ago and I thin...
Thu Feb 17, 2011 5:33 pm UTC
Forum: General
Topic: Math and Juggling
Replies: 6
Views: 1320

### Re: Math and Juggling

Necro time! (Was I supposed to do this or create a new thread?) I know there are jugglers around here and obviously there are also people who love math and algorithms and It'd be disappointing if the two didn't overlap at all. I'd like to see if this thread could go back on tracks... First to answer...
Wed Feb 16, 2011 8:46 pm UTC
Forum: General
Topic: Who the dickens are you?
Replies: 10922
Views: 2377548

### Re: INTRO THREAD THE THIRD

Bunny! Made of lego! Welcome to the forums diabolo, I love your avatar! :D Thanks! By the way, juggling is math/algorithmics, how come no one is talking about that here except for 5posts a 2year old thread? Maybe because it's pretty hard. It was often a topic of a practical class at my uni, but in ...
Wed Feb 16, 2011 8:26 pm UTC
Forum: Coding
Topic: Java Assignment - a little help bitte?
Replies: 6
Views: 3079

### Re: Java Assignment - a little help bitte?

So the how is a bad way to do the what but maybe it doesn't really matter? If it's an introduction class you need to experiment a bit with the language anyway. Even if the exercise doesn't make sense you can still manage learn a few things from it. did you make your "very long string" priv...
Tue Feb 15, 2011 11:00 pm UTC
Forum: General
Topic: Who the dickens are you?
Replies: 10922
Views: 2377548

### Re: INTRO THREAD THE THIRD

Hello world! So I've been lurking around here for a little while and I just now decided that maybe I could try and contribute sometimes rather than just read, but first things first: quick introduction. A bit about me in no particular order: I'm not a spambot, I'm interested in sciences (studied the...