24 Discussion / Question Topics

Remove Filter
Member Avatar for ShawnCplus

This is just a little something for those of you used to using the Eclipse IDE, it's syntax highlighting almost identical to Eclipse save a bit of enhancement. Eclipse doesn't highlight ints, octal and hex individually but DevC++ can, there are a few other things in there that promote very …

Member Avatar for Tech_1
3
406
Member Avatar for ShawnCplus

As the title says: Is the XOR Swap algorithm still viable? I know that temp-swaps are supposedly faster but the shear coolness of an XOR swap makes it more attractive to me. What do you guys/gals think? For anyone that doesn't know what an XOR swap is here goes [code=c++] …

Member Avatar for arkoenig
0
232
Member Avatar for ShawnCplus

Could the Homework Help announcement in the C++ forum also be added to the PHP forum. I doubt it'll stem the flow of begging or spoonfeeding - which is becoming a growing problem - but it wouldn't hurt.

Member Avatar for almostbob
0
403
Member Avatar for ShawnCplus

Was there an issue with the mail server because I didn't get any notification emails all weekend and all of a sudden it's spamming my inbox with about 5 emails every few minutes.

Member Avatar for blud
0
101
Member Avatar for ShawnCplus

I was treading on a thin line for a while with the PHP forum but I have finally gone and lost all hope for this forum that I've called home for 4 years. And it only took 7 simple words for me to lose hope completely. [quote]and what do you …

Member Avatar for vegaseat
0
54
Member Avatar for ShawnCplus

If you've gotten the error "Supplied argument is not a valid MySQL resource" you're in luck because so has everyone else that has ever used PHP... ever. The error is caused by a number of things including: Your query is wrong, you failed to connect to the database or you …

Member Avatar for digital-ether
6
4K
Member Avatar for ShawnCplus

I wrote this FSM to tokenize HTML for my syntax highlighter, it works pretty well and its fast but its currently ugly as all heck and could definitely use some love so if anyone is up for taking a whack at cleaning it up or giving me some speed hints …

Member Avatar for ShawnCplus
0
113
Member Avatar for ShawnCplus

No matter what Daniweb does to "hint" to place code tags around code no one pays attention. Could there be some sort of feature which checks a post for certain code keywords and alerts the user in some way to place code tags around code?

Member Avatar for Salem
0
91
Member Avatar for ShawnCplus

As many of you that have worked with VB.NET know, and have been irritated by, you can't use a nonconstant variable to size an array. A simple workaround, reply if this is a problem, is to take input on the size of the array (Yes, I know you can't do …

Member Avatar for leveena
1
139
Member Avatar for ShawnCplus

Small script to pull information from [url=http://trac.edgewall.com/]Trac[/url]. Note that this will [b]only[/b] work if you set up your trac environment to use a MySQL database (It is pretty simple to switch from SQLite to MySQL though). It uses template format just to make it easy to customize. I originally had …

0
99
Member Avatar for ShawnCplus

Is it just me or have serif fonts become the new go-to font of Web 2.0 sites. Out the window with you old, boring sans-serif Verdana. Who needs you Arial? We have Georgia, glorious Georgia, or even *gasp* Garamond. Has the serif laid it's pointy edge into the blunt broadside …

Member Avatar for Al-Saeed
0
125
Member Avatar for ShawnCplus

Finally hit 300 posts, and only took a little under 3 years. As a side note I think this is the first time I've ever posted in the Geeks' Lounge.

Member Avatar for sneekula
1
144
Member Avatar for ShawnCplus

I've come across a bit of a conundrum. Firefox handles DOM manipulation based on the standard which (would'a'thunk-it?) works. However, Internet Explorer does not. So here's the situation. I've got a select box and a remove button which, in Firefox, works as advertised, ie., removes the selected element from the …

Member Avatar for ShawnCplus
0
123
Member Avatar for ShawnCplus

So, I've got a nifty little recursive function that runs through a select box and all it's children looking for the selected element and removes it, if the parent element is empty then it removes that as well. However, the W3C decided when passing DOM that there are 12, count …

1
60
Member Avatar for ShawnCplus

So Firefox 3.0b2 was released and though I'm constantly cringing since my add-ons obviously don't work yet I must say I am very pleased. There is a noticeable difference in the amount of memory being used, I've been using it all day long and I have yet to see it …

Member Avatar for ukerbel
0
158
Member Avatar for ShawnCplus

OK I've got to the stage of development where I'm balancing out formulas and I was looking for a bit of input. Here are some formulas I've made (typeset with OO.o Formula). (See the attached thumbnail) Just a reminder, << and >> are bitshifts, NOT strictly greater/less than, continue :). …

0
68
Member Avatar for ShawnCplus

For those of you who haven't heard of or used AutoHotKey check it out here [URL="http://www.autohotkey.com/"]http://www.autohotkey.com[/URL] for the rest of you I made a really simple script for Dev-C++ to add some speed to it. (I had more in the script but they were things only I would remember and …

Member Avatar for ShawnCplus
2
167
Member Avatar for ShawnCplus

I've been trying to decide how to handle saving game data. At first I was using plaintext which is quick and straight forward but also very, very ugly. I wanted to delve into the world of XML to save data since although it is a bit slower since it has …

Member Avatar for jwenting
0
134
Member Avatar for ShawnCplus

I'm having a slight problem. This particular function is crashing caused by the Loadfile ifstream being opened. [code=c++] void LoadChar(Entity players[], char saveNum) { string filename, saves; saves = saveNum; filename = "save/Save" + saves + ".sav"; char *file; file = const_cast<char*>(filename.c_str()); ifstream Loadfile(file, ios::in); //this little diddy right here …

Member Avatar for ShawnCplus
0
1K
Member Avatar for ShawnCplus

Most likely you've seen a flash MP3 player or two while searching the web but I have a favorite. This is the [URL="http://www.jeroenwijering.com/?item=JW_MP3_Player"]JW MP3 Player[/URL], mainly because it has external JavaScript functions that can be used to access data about the player dynamically. I've written a few things for it …

Member Avatar for ~s.o.s~
1
462
Member Avatar for ShawnCplus

Well this is my problem, I wrote a function to sort a 2d char array but right now the second dimension bound cannot be variable so it has to be hardset (which I don't particularly like) This is what I have [code=c++] void multi_charSort(char array[][5]) { int i,j; char temp2[5]; …

Member Avatar for dougy83
0
232
Member Avatar for ShawnCplus

Hello, I have received some tips to take advantage of the whitespace on my homepage and I was wondering; What is a good way to utilize whitespace in a way that still pertains to my website and doesn't overcrowd the page? I was thinking of using more defined spacers between …

Member Avatar for ShawnCplus
0
122
Member Avatar for ShawnCplus

OK, my father evidentally gave my name to some lady to fix her computer but I got there and it is impossible to work on the computer as I left my spare monitor 120 miles away in my apartment. So here is the situation: The monitor (Compaq FP5017) goes black …

0
64
Member Avatar for ShawnCplus

I am going to college after this summer for programming and applications development. I have a little knowledge of C++ and very little C. I was wondering if anyone had some suggestions to some exercises projects that would give me a head start if you will, before I get to …

Member Avatar for Rashakil Fol
0
272

The End.