Search Results

Showing results 1 to 40 of 48
Search took 0.01 seconds.
Search: Posts Made By: flipjoebanana
Forum: C 28 Days Ago
Replies: 5
Views: 483
Posted By flipjoebanana
no bitwise either, u sure? ....

the problem comes to how you can store and maintain the binary number representation upon the two calls to the reverse function then I believe.

because the...
Forum: C 29 Days Ago
Replies: 1
Views: 321
Posted By flipjoebanana
Trying to recall stuff:

I'm not sure why you're closing the listening request socket, server should always have that on... anyway how about:

<create listening sock, etc.>
while(1)
{
...
Forum: C 29 Days Ago
Replies: 5
Views: 483
Posted By flipjoebanana
there's no binary pattern representation in C, so you have to use another means to represent the binary pattern from the integer value.

If you can't simply have a function that converts the...
Forum: C 29 Days Ago
Replies: 12
Views: 748
Posted By flipjoebanana
Also:
you need to know variable type casting. Specifically how to convert between the int and char types. A table that shows the relationship between integer and characters (for English alphabet) is...
Forum: C 29 Days Ago
Replies: 3
Views: 299
Posted By flipjoebanana
Thanks for the reply, I see. So I'm guessing there's not some simple built in function in the standard library or somewhere for it? If I want to avoid the lookup time as well I would have to make...
Forum: C 29 Days Ago
Replies: 1
Views: 329
Posted By flipjoebanana
from a glance:
- for the Goldbach conjecture it's greater than 2 (1 is not a prime), so the loop should start at 4, the next even, right?
-also why not just do i+2 for the increment expression...
Forum: C 29 Days Ago
Replies: 3
Views: 299
Posted By flipjoebanana
Hello,
If I want to say compare a line at a given line number to another line at a different given line number how can I do this? I know I could iterate through the file and store the lines into a...
Forum: Python Aug 14th, 2009
Replies: 3
Views: 325
Posted By flipjoebanana
Forum: Python Aug 14th, 2009
Replies: 3
Views: 325
Posted By flipjoebanana
If I have a string, i.e.:
s = "\'Quote Example\'\tby person\n"

How can I display it to view the special characters untranslated, to see:
"\'Quote Example\'\tby person\n"

instead of:
'Quote...
Forum: *nix Software Aug 11th, 2009
Replies: 4
Views: 869
Posted By flipjoebanana
SQL Server, I'm currently integrating some open source libraries to handle the task though.
Forum: Python Aug 10th, 2009
Replies: 0
Views: 200
Posted By flipjoebanana
Hello,
I am aware of programs such as py2exe and py2app for converting python to standalone windows and mac apps and have gotten those to work for most things, but I'm not sure about the best way to...
Forum: Python Aug 4th, 2009
Replies: 6
Views: 253
Posted By flipjoebanana
Well.. canvas figure is based upon window size, and if there is a widget below it, it would cause the figure to increase size while idle. Adding the figure simply to a sizer rather than basing it...
Forum: Python Aug 3rd, 2009
Replies: 6
Views: 253
Posted By flipjoebanana
I have pasted below a similar example of what I'm trying to do that I found from here: http://www.scipy.org/Matplotlib_figure_in_a_wx_panel

Here the figure re-sizes itself based upon the client...
Forum: Python Jul 31st, 2009
Replies: 6
Views: 253
Posted By flipjoebanana
I tried using sizers but the panel wouldn't shift upon resizing the window. I have something like:


class PlotPanel (wx.Panel):
def __init__( self, parent, **kwargs ):

vbox =...
Forum: Python Jul 31st, 2009
Replies: 6
Views: 253
Posted By flipjoebanana
Hello,
My problem is is that I have an area in the window for an image that is sized relative to that window. I want to place a panel below that image a certain distance from the top based on the...
Forum: Python Jul 21st, 2009
Replies: 4
Views: 314
Posted By flipjoebanana
Hello,

I am wondering the best way to go about this in python. Basically what I want is to encrypt a password (using something in python or open source) while masking the password in a wxpython...
Forum: Python Jul 17th, 2009
Replies: 5
Views: 341
Posted By flipjoebanana
thanks for testing it out. I'm using with mac 10.4 OS so I guess it has something to do with that then. It's weird because I tried a lot of the demo programs and all of them worked except for...
Forum: Python Jul 17th, 2009
Replies: 5
Views: 341
Posted By flipjoebanana
I can't get the menu or status bar to show up when executing the following program:


import wx
ID_ABOUT=101
ID_EXIT=110
class MainWindow(wx.Frame):
def __init__(self, parent,id,title):...
Forum: *nix Software Jul 2nd, 2009
Replies: 4
Views: 869
Posted By flipjoebanana
I am looking for something with a gui that is capable of accessing sql database data and then being able to produce simple graphs from that data. Any suggestions for programs or something I could...
Forum: HTML and CSS Jun 15th, 2009
Replies: 4
Views: 610
Posted By flipjoebanana
I am new to css and am having problems with setting a single object(say a table) from a set percentage from the top of the page as well as the main background.


body {...
Forum: C Jan 29th, 2009
Replies: 2
Views: 1,001
Posted By flipjoebanana
Hello, I am trying to as the title says within linux environment within my C program this is what I have so far:


int file_out = open(filename_var,O_RDWR|O_CREAT);

if((child_pid = fork()) >=...
Forum: Kernels and Modules Jan 28th, 2009
Replies: 0
Views: 1,188
Posted By flipjoebanana
What program modifications are needed(from a simple program created in linux) to work in minux. Or really can you just update minix to support everything? Thanks for any tips.
Forum: C++ Jan 28th, 2009
Replies: 5
Solved: Pointer Help
Views: 301
Posted By flipjoebanana
ahh.. ok yea it was compiler, thanks for pointing in right direction
Forum: C++ Jan 28th, 2009
Replies: 5
Solved: Pointer Help
Views: 301
Posted By flipjoebanana
gcc 4.3.2
Forum: C++ Jan 28th, 2009
Replies: 5
Solved: Pointer Help
Views: 301
Posted By flipjoebanana
why doesn't argv[0] point to "MAMMAJAMMA" in main function after assigning *argv = line within the test_function? After test_function call its just null when I want it to point to string in main...
Forum: C++ Jan 28th, 2009
Replies: 5
Solved: Pointer Help
Views: 301
Posted By flipjoebanana
Hello,
I am trying to figure out why pointer address is not preserved over a function call and how to fix it. For example:


void test_function(char **,char *);

int main() {
char...
Forum: Troubleshooting Dead Machines Sep 21st, 2008
Replies: 10
Views: 1,487
Posted By flipjoebanana
I updated the drivers, and my computer shut down while running memtest, which suggests overheating. When you apply thermal grease, is a little like spread out thinly across cpu, can the quality of...
Forum: C Sep 21st, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
ah much clearer now thanks!
Forum: C Sep 20th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
hmm.. so making the switch in my program would actually mimic what the shell is doing when I use the '<' operator like that, if I understand what you're saying. Is there any way to get that...
Forum: C Sep 20th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
thanks for the replies, so you do have to handle one after the other, so there is no way to have same functionality as:

%> program < mytext.txt
while invocating like this:
%> program mytext.txt...
Forum: C Sep 19th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
Sorry if I didn't explain it well enough, which looks like the case. That part you say is true initially, but after a file is input in the main argument to be read I want the program to continue read...
Forum: Troubleshooting Dead Machines Sep 18th, 2008
Replies: 10
Views: 1,487
Posted By flipjoebanana
I think if it would it would be insignificant.

Anyway, from the bios menu I found out my cpu is overheating to 80 degrees celsius(by sensor) which seems ridiculous and everything else seems cool...
Forum: C Sep 16th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
hmm I am still trying to understand the reasoning behind this, the implementation part you show I understand. When I add a file as a main argument, I would have to handle that file first and then...
Forum: Troubleshooting Dead Machines Sep 15th, 2008
Replies: 10
Views: 1,487
Posted By flipjoebanana
hmm thanks for the reply.. the fan on cpu, psu, and 3 in the case all seem to be working normally. So if I look into overheating, some questions arise:

If it's overheating then its really due to...
Forum: Troubleshooting Dead Machines Sep 15th, 2008
Replies: 10
Views: 1,487
Posted By flipjoebanana
Hello,
I've been trying to build computer but I experience random shut downs when I use it and can't seem to pinpoint the problem:

AMD Athlon 64 X2 Dual-Core Processor 4600+ AM2 (w/ standard AM2...
Forum: C Sep 15th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
hmm thanks for the reply but I'm confused. Isn't stdin already open so no need for else? And wouldn't that force you to do one or the other? Like in the example where a file is loaded initially but...
Forum: C Sep 12th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
ah yes I see thanks!! Adding further: Is there a way to do this within the program? Such as if the file was(possibly) included as a main argument to then pipe it to stdin(C only)?
typing:
> myfile...
Forum: C Sep 12th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
Hmm let me rephrase then.. I'll just call it an input file then, I think what I'm trying to do is similar in a way though. The file's contents contains series of arguments to be interpreted by the...
Forum: C Sep 11th, 2008
Replies: 19
Views: 2,011
Posted By flipjoebanana
Hello,
I am trying to incorporate the use of a batch file towards my program. For this I just want that after the program has starting running to send the file content's to stdin, in which case the...
Forum: C Sep 5th, 2008
Replies: 2
Views: 819
Posted By flipjoebanana
thanks for the reply!

I see how that would work but I would rather not step through each iteration and use the print statement (number of iterations is > 1500) on each iteration in gdb. I was...
Showing results 1 to 40 of 48

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC