Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
86% Quality Score
Upvotes Received
11
Posts with Upvotes
9
Upvoting Members
10
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
4 Commented Posts
~64.3K People Reached
About Me

I started with BASIC and worked up to Python, learning tons along the way.

PC Specs
Ubuntu / Windows 8 Dual Boot
Favorite Tags

84 Posted Topics

Member Avatar for Cort3z
Member Avatar for joehms22

Question: Does anyone have any recommendations that are likely to keep a large database healthy/speedy? I'm designing a database that is going to retrieve around thirty million data points a year, up to around three hundred million to a billion in a few years time when all of the sensors …

Member Avatar for Szabi Zsoldos
0
221
Member Avatar for warlord902

From my understanding MySQL locks a unit upon writing to ensure no reads happen during that: so writing blocks any reading you do. Depending on the storage engine you use ([more on that here](http://dev.mysql.com/doc/refman/5.1/en/storage-engines.html)) it may only block a row; or the entire table; you should probably choose to do …

Member Avatar for joehms22
0
186
Member Avatar for libathos

Try [JUG](http://sourceforge.net/projects/jug/) that seems to be the one that works best for me; most of them out there seem unmaintained though.

Member Avatar for libathos
0
112
Member Avatar for cassied

You might be able to use the Google Charts API... https://developers.google.com/chart/ Other than that you could home-roll something with JQuery and/or HTML5 canvas elements. I'm sure there are a few people sitting around that would love to help as something like this is definitely needed out there (myself included)

Member Avatar for joehms22
0
202
Member Avatar for PF2G

How are you storing the images in the database? If they are just under the subdir, this should work, but if they are something like Base64, you'll need to use the data: uri format. Try doing a source view on your page to see exactly what is being output by …

Member Avatar for joehms22
0
131
Member Avatar for triumphost

A double takes up 64bits in memory (usually) you can find the specifics for your machine by using the sizeof() operator in C++. A float takes 32bits, again usually. Where an unsigned char has 8, meaning 256 values. If your round was above 255, it would cause your overflow. I …

Member Avatar for triumphost
0
953
Member Avatar for simplyflawless

[CODE] public class RectangleDemo { private class Rectangle { private double height; private double width; private String color; public Rectangle(double wid, double high){ height = high; width = wid; } public Rectangle(){ height = 1; width = 1; color = "White"; } public void setHeight(double high){ height = high; } …

Member Avatar for DanOath
0
22K
Member Avatar for dgcs

Could you try giving us a little more information on the exact problem you're getting?

Member Avatar for joehms22
1
204
Member Avatar for Zssffssz

In order to get things working, you're probably going to have to find a way to hook in to the kernel on all operating systems in order for it to believe you have an actual ramdisk device. (In UNIX stle systems, you may be able to just connect to a …

Member Avatar for Zssffssz
0
967
Member Avatar for .:n'tQ-boy:.

Its unlikely you'll really need to worry about file size when you're dealig with a small dictionary, as you can get about 250 printed pages in a single MB of text, so a small dictionary shouldn't be a huge problem. That being said, if you really want it to load …

Member Avatar for joehms22
0
196
Member Avatar for cmpsHelp

Are you looking for databases that have been attacked? If so, you should get some attacks pretty quickly by just putting one up... Other than that, you might be able to get some information at [url]http://isc.sans.edu[/url], they're pretty friendly towards researchers over there. - Joe

Member Avatar for joehms22
0
99
Member Avatar for ret801

Hey, hope you still need this; I love seeing security stuff around: Joseph L. (if you need anything else and you can message me) 1. How important do you consider computer security? I am actually a security enthusiast, so information security is incredibly important, especially with so many institutions operating …

Member Avatar for WaltP
0
191
Member Avatar for straylight

I think you're looking for something like this: [CODE] def mathFunction(x): return (x-1)*(x-3)*(x-5)*(x-7) for x in range(0,8): print x, mathFunction(x) [/CODE] Ranges take in up to 3 arguments, start, stop, and step: i.e. range(3) returns 0,1,2 range(0,10) returns 0,1,2,3,4,5,6,7,8,9 range(0,10,2) returns 0,2,4,6,8 There were two things problematic with your math …

Member Avatar for joehms22
0
141
Member Avatar for n3red

[URL="http://docs.python.org/howto/regex.html"]Regular expressions[/URL] are probably your best bet being that you can't use a config parser.

Member Avatar for wortelkoek
0
233
Member Avatar for zEuSsE

This is probably not possible using conventional assembly, being that any kernel will stop your software from just randomly reading files as a security feature. You might be able to achive it through kernel calls though (check your man pages) or this manual: [URL="http://www.draga.com/~jwise/mach/documentation/essentials/manual/manual.pdf"]http://www.draga.com/~jwise/mach/documentation/essentials/manual/manual.pdf[/URL] Here is a book on assembly: …

Member Avatar for zEuSsE
0
334
Member Avatar for scott_liddle

Do you have a library that you're supposed to be using for the drawing? If not, you might want to look in to tk. [CODE]#!/usr/bin/env python from Tkinter import * tk = Tk() tk.wm_geometry("400x400") canvas = Canvas(tk, width=400, height=400) canvas.pack() canvas.create_line(0,0,400,400) canvas.create_line(400,0,0,400) tk.mainloop() [/CODE]

Member Avatar for Lucaci Andrew
0
174
Member Avatar for eman 22

You could look in to building some kind of new NoSQL implementation, or something highly scalable on such a system (think perhaps a p2p dns system), they are all the rage these days.

Member Avatar for joehms22
0
115
Member Avatar for CrAzD

I'd probably use something like Twisted if you can afford the size (it is kind of large). If things are on one network, you could just use a multicast packet to update all clients, that would probably be the cheapest assuming your router will handle it. Other than that, you …

Member Avatar for joehms22
0
116
Member Avatar for akshay.nikhare

It looks like f_path may be referencing the absoloute path to your images, rather than the path from the web root, so when the browser requests them you're getting the original absoloute path plus the web root, causing the images not to be found.

Member Avatar for joehms22
0
272
Member Avatar for ana_eht

A bump might help here too. You might want to check out audiooop in Python: [url]http://docs.python.org/library/audioop.html[/url] Other than that, you might be able to check out how it is done in some of the free speech recognition softwares, like sphinx. - Joe

Member Avatar for joehms22
1
311
Member Avatar for runge_kutta

If you're in to math at all, I think Matplotlib is looking in to getting themselves working on Python3.

Member Avatar for joehms22
0
203
Member Avatar for Matjame

Just a guess: you might want to try escaping the dashes in your original date (use %2D instead of -) Hope it helps, - Joe

Member Avatar for joehms22
0
219
Member Avatar for Xytheron

The problem with your first code (using socket) is that the actual section doing the writing isn't doing any output as that part isn't in the while loop: [CODE] import socket host = '' port = 8080 c = socket.socket(socket.AF_INET, socket.SOCK_STREAM) c.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) c.bind((host, port)) c.listen(1) while 1: csock, …

Member Avatar for joehms22
0
327
Member Avatar for joehms22

I've got some terminal session log files that I'd like to record in a video file, anyone know a good way to do this? Preferably it would be scriptable and not need X to be running so the server could do it automatically to these logs as they arrived. The …

0
178
Member Avatar for intelgy

It appears that you are using the same name for each textbox, typeTech? If so, only the last one on the page will be POSTed, try giving them different names, like 'deeptissue' then the POST value will be true or false, and you can test echo after a bunch of …

Member Avatar for HasNor
-1
176
Member Avatar for Tcll

Python doesn't use a preprocessor, so you'll have to keep some kind of list to see what is defined in the current context, i.e. insert "BUG_XF_STALL" in to it when it is defined. Essentially, you'll need to write your own preprocessor. Then later on in your code you can use …

Member Avatar for Tcll
0
445
Member Avatar for siva28

This site looks hand coded to me (from the weird looks of the source), so a good old text editor is all you need. You might be able to find some templates on-line though for free like at [URL="http://www.oswd.org/"]Open Source Web Design[/URL]. Flash would work, but remember that it won't …

Member Avatar for walid86
0
167
Member Avatar for pelin

If you provide the code you have for making the stick figure and buttons we should be able to figure out the best way for your program, otherwise we don't know what toolkit you're using (Tk, GTK, QT, WX, some derivative of pyGame). Perhaps you could hook an event to …

Member Avatar for pelin
0
467
Member Avatar for huntaz556

If you're in to games, you might want to try making Lingo, someone posted a problem they had in class about making the game and it looked fun enough that I might even try it (though I'm quite partial to the game). If you are looking to do something more …

Member Avatar for huntaz556
0
344
Member Avatar for EricaMitchell

I would start with the number 1, then test if it is prime, then go to 2, and so on until N. To test if it is prime, you might want to just compare dividing it to every number below it, to see if it divides evenly. Of course, there …

Member Avatar for anas2ahmad
0
99
Member Avatar for ShadyTyrant

In theory, this seems like it might work, but in practice, probably not, because once a cracker gets in to your database, it is likely that they will have more than enough information to get in to another one (i.e. once they have usernames and passwords, they can then enter …

Member Avatar for joehms22
0
142
Member Avatar for atlas123

What if you assign a static IP to the laptops? Could it be that DHCP services are taken over by the switch and therefore the wifi can't let anyone connect? - Joe

Member Avatar for joehms22
0
108
Member Avatar for [csharp]

You can use the link below: [CODE]http://username:password@www.website.com/directory/file.html[/CODE] I would strongly advise against it though! Passwords should not be sent as part of a GET request in plain-text ever due to the ease of stealing them.

Member Avatar for joehms22
0
83
Member Avatar for eltonpiko

If you're managing your own server, I wouldn't install a panel. However it is sometimes much easier to administer over a panel, in that case I would say setting up a good quality VPN would be your best bet and configuring your panel to only allow connections from localhost, that …

Member Avatar for joehms22
0
186
Member Avatar for Tomashqooo
Re: IDK

They are both full featured pen testing services. I'd personally go with Back|Track as that runs really well from a LiveCD and it is what I know. However the distribution doesn't matter so much as the tools, both contain similar tools, and if you need others it is always easy …

Member Avatar for joehms22
0
143
Member Avatar for cdedmundson

In Python all strings are also arrays, therefore you can easily manipulate them as such, I'll give some code as it is probably easier to comprehend than a wall of text :) [CODE] word = "bones" for i in range(len(word)): c = word[i] print c [/CODE] output: [CODE] b o …

Member Avatar for joehms22
0
374
Member Avatar for RobotFX

I would change in to the stars folder then run this command: [CODE]find -name *_t.jpg -delete[/CODE] It will find all files ending in _t.jpg recursively and delete them. - Joe

Member Avatar for joehms22
0
799
Member Avatar for vijay496

Try putting your newlines after the text, I'll bet that because you put it before, the compiler optimizes the first it in to the second string. [CODE] #include<stdio.h> main() { printf("welcome to\n"); fork(); printf("DaniWeb Discussion\n"); } [/CODE]

Member Avatar for rubberman
1
194
Member Avatar for woodenduck

You might want to try using [URL="http://jquery.com/"]jQuery[/URL] as a framework, it is really simple and clean, although it will add a little extra code to your page. If you are just looking for the URL, you could use the window variable's location property: var wantedString = window.location; If you want …

Member Avatar for woodenduck
0
603
Member Avatar for Stefano Mtangoo

I've read that some of that model have faulty hard drive connectors and won't work until the POST tests are bypassed. I would try changing your boot order because you never know; maybe the bus connecting to the HDD takes a few extra moments to get on-line causing boot to …

Member Avatar for Stefano Mtangoo
0
215
Member Avatar for thatjoeguy01

I think an example would be easier than telling: [CODE] #!/usr/bin/env python import random # The random module is really handy. quotes = ['quote 1', 'quote 2', 'quote 3','quote 4', 'quote 5', 'quote 6', 'quote 7', 'quote 8', 'quote 9', 'quote 10'] # Take the user's input, num_quotes = int(input('How …

Member Avatar for thatjoeguy01
0
184
Member Avatar for jakeray

Do you mean that when the user posts the second form, the variable isn't submitted again? i.e. Your user posts the manufacturer, is brought to a list of products, and when they post from there the manufacturer isn't in the second post? If so, you should either use php sessions …

Member Avatar for joehms22
0
267
Member Avatar for SamarthWiz

I think you might be forgetting that your username and password may come in with an appended newline <CR LF>. You should change your validation to: [CODE] if self.username == SETTINGS.username + "\r\n": if self.password == SETTINGS.password + "\r\n": client.send("Loged in as :\n" + SETTINGS.username) break [/CODE] Side note: Telnet …

Member Avatar for nezachem
0
1K
Member Avatar for spunkywacko

This seems to be what you are looking for: [URL="http://www.noah.org/wiki/PIL_Image_show_with_Tk"]http://www.noah.org/wiki/PIL_Image_show_with_Tk[/URL]

Member Avatar for vegaseat
0
3K
Member Avatar for arindam_ron

I would try using the [URL="http://code.google.com/p/python-gnupg/"]gnu-pg[/URL] module, as that will likely be helpful: From the website: "gnupg.py is a Python API which wraps the GNU Privacy Guard. The GNU Privacy Guard (gpg, or gpg.exe on Windows) is a command-line program which provides support for programmatic access via spawning a separate …

Member Avatar for joehms22
0
168
Member Avatar for Majestics

You might want to look in to the [URL="http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/"]JPcap library[/URL]. There is a rather nice [URL="http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/tutorial/index.html"]tutorial here[/URL]. Being that this can output pcap files, you can even test it against Wireshark to make sure you are getting what you want. - Joe

Member Avatar for joehms22
0
112
Member Avatar for ceptic

This is kind of dangerous as it requires you to open your SQL server up to Java. It would probably be best to create a PHP script that acts as a relay that your Java application can post requests to. Of course, make sure your PHP script validates all input. …

Member Avatar for joehms22
0
91
Member Avatar for canarian

You could actually write this more concisely like this: [CODE] void cmd_write(String message) { if( cmd_output ) System.out.println(message); } [/CODE] Other than that, your application will run slightly slower because of the boolean comparison each time, but it isn't really significant in the grand scheme of things. The only major …

Member Avatar for adarshcu
0
88
Member Avatar for joehms22

I've got an algorithm that at most does 1 operation for the first time a loop is run, 2 for the second, 3 for the third up to n for the nth. Essentially the sum of all numbers 1 to n is the worst case running time. or [TEX]\frac{n*(n+1)}{2}[/TEX] I …

Member Avatar for joehms22
0
454

The End.