15,190 Topics

Member Avatar for
Member Avatar for Jack_9

Hello. I want to use sqlmap.py to analyze my website for sql injection attacks but the computer that I have to use I don't have admin access on so i'm using portable python but I need to pass the script a command line argument and I can't seem to do …

0
73
Member Avatar for Jack_9

Hello. I'm running injection tests on an SQL database and I found a good script to do so....But it takes command line parameters which I can't execute properly because the command would normally look somthing like this...... python sqlmap.py -u "url.com" --batch. But I can't seem to do that because …

Member Avatar for HiHe
0
3K
Member Avatar for Odyssey2001

Hello! I'm new to Python,so I'm sorry if it's a simple question. I have a text file where each line contains a path.Under some of the "final" subdirectories there are 1 or 2 lines that contain some values.The text file looks like this: folder1 folder1\folder2 folder1\folder2\folder3 'something1','something2' folder4 folder4\folder5 folder4\folder5\folder6 …

Member Avatar for Odyssey2001
0
231
Member Avatar for samuel1991

Hi all, actually I have a requirement to remove all non letter character. (Numbers, Punctuation, symbols, non printing characters etc.) string.punctuation does a good job, but it does NOT remove any non English punctuation (Like '。' which is a full stop in Chinese) So I come accross such code: import …

Member Avatar for Gribouillis
0
322
Member Avatar for Tcll

if this is in the wrong area, I'm sorry. :) I'm looking for a good alternative for python on linux/wine that's capable of this: http://lh3.ggpht.com/-cuRe_8IrRCw/VEYPPy8J-3I/AAAAAAAAH10/DnjCVyfCEEg/s1282/VS2010.png ^ the popup under my cursor I need that specific level of informative intellisense, which I can't seem to find in any other IDE. (most …

Member Avatar for Tcll
0
628
Member Avatar for bustamorg

I have been working on this program for a few days and have most of it working, the only issue that I am having is when a word has multiple iterations pf the same letter. I need the program to print out all the letters that are the same when …

Member Avatar for bustamorg
0
232
Member Avatar for Subin raj

You are given N integers that are arranged circularly. There are N ways to pick consecutive subsequences of length M (M < N). For any such subsequence we can find the “K”-value of that subsequence. “K”-value for a given subsequence is the Kth smallest number in that subsequence.

Member Avatar for slate
0
147
Member Avatar for Jack_9

Hello ladies and gentleman of Daniweb.com. I wanted to ask a question about publishing an application, or a program to put online. But all of my code is neatly organized (PY) modules which canc only urn if you have python installed and I don't want to make people install python …

Member Avatar for Jack_9
0
172
Member Avatar for mgold

I'd like to find an algorithm book that's either meant to be or good to use as a reference. By "reference" I mean that it contains all the basic algorithms (machine-learning algorithms especially) like QuickSort, Logistical Regression, Clustering. Preferably, including both the mathimicatical definition as well as psuedo code, or …

Member Avatar for StefanijaV93
0
451
Member Avatar for valestrom

Hey, I'm trying to figure out how to get this kind of program to work, it's supposed to be a UNIX style program in the sense that everything is command line driven. What I'm trying to get it to do is when the function is called it takes the input …

Member Avatar for Gribouillis
0
5K
Member Avatar for Jack_9

Hello! I'm very newbie when it comes to linux ive done some stuff with the desktop version but nothing with servers. I was wondering what installation to get and such in order to offer the best support for my python application.

Member Avatar for Jack_9
0
110
Member Avatar for rebekah.stacy1

Write a program that asks the user to enter a series of 20 numbers. Store the numbers in a list and display the lowest, highest, total, and average of the numbers. Plus display enter a series of 20 numberes, find the lowest, highest, total, and average of the numbers in …

Member Avatar for vegaseat
0
525
Member Avatar for ryannnnn

**Read title.** username = base64.b64encode(username)+'\n' This is what I thought would have worked, but it comes up with an error, "TypeError: can't concat bytes to str", meaning that I cannot add +'\n' to the end of the code. If there is anyway anyone knows how to write the byte of …

Member Avatar for vegaseat
0
302
Member Avatar for Dawnbox

Hello! First time posting here so bare with me with my formating and other stuff. I've got a task were I'm going to create a caesar cipher. You should be able to write a sentance to the program and the shifting it should use. Then the letters should be shifted …

Member Avatar for Dawnbox
0
342
Member Avatar for vegaseat

With the advent of Python33 the module time has received a high resolution timer/counter. Here we use time.perf_counter() in a decorator to conveniently time two test functions.

3
2K
Member Avatar for Tcll

This language is built with python to give me a dynamic backend to make this possible. The language is based off ASM opcodes but generalizes them into basic coding practices. More info here: http://tcll5850.proboards.com/thread/271/umcsl note: WIP the language is meant to make it possible to convert between ASM and other …

0
275
Member Avatar for krishna bharath

give a grammar and example of if statement for each of the following languages: a)perl, b)python

Member Avatar for HiHe
-2
348
Member Avatar for Lardmeister

String input has changed from Python2's raw_input(prompt) to Python3's input(prompt). The old Python2 numeric input(prompt) has gone away with Python3, all input is now string input. The snippet shows a few lines you can add to your program such that you only need to use input(prompt). This makes your code …

Member Avatar for vegaseat
2
219
Member Avatar for shaziya

cut_list We have to use a cut_list by writing a function called cutlist that "cuts" a list. Whwew a list and an index is given, and returns a copy of the list, but the items before and after the index is swapped, but what i dont get is it should …

Member Avatar for vegaseat
0
162
Member Avatar for sbaw

I am using Python 2.7.8. I installed the following: py2exe-0.6.9.win32-py2.7.exe and pywinusb-0.3.3 I have a script that I am trying to run. When I do I get the following error: C:\Python27\MyScripts\VMS\Python_Firmware_Upgrader-4_00_02\Python_Firmware_Upgrader\python-msp430-tools\win32>python ./setup-combined-tools py2exe.py changed directory to C:\Python27\MyScripts\VMS\Python_Firmware_Upgrader-4_00_02\Python_Firmware_Upgrader\python-msp430-tools running py2exe *** searching for required modules *** Traceback (most recent call last): …

Member Avatar for sbaw
0
1K
Member Avatar for tarmer

I am not looking for anybody to do the work for me - I have a questions I am trying to get answered as I go thru trying to learn - I am ahead of myself but am looking to the future I am looking to create a soccer simultor …

Member Avatar for vegaseat
0
192
Member Avatar for OnEaglesWingsjf

What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4)

Member Avatar for HiHe
0
122
Member Avatar for flebber

This is a simple problem that for some reason I can't get to work. The problem I created for myself was to use call a function from a function using *args and print out the question and solution. I want the output to vary as the *args can accept any …

Member Avatar for flebber
0
296
Member Avatar for mark103

Hi guys, I have added the list of buttons for the channels and programs in the xbmc skin. I have one yellow box on the channel and program box for both buttons. I want to know how I can move the yellow box to go to the next program when …

Member Avatar for Schol-R-LEA
0
179
Member Avatar for vegaseat

The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! For info on wxPython modules see: http://www.wxpython.org/docs/api/wx-module.html

Member Avatar for HiHe
2
21K
Member Avatar for shaziya

Hi I dont want the extra bracket inside the list thats been outputted so how would I fix that? This is the code: def my_code(list1, list2, index): index = ['a','b','c'] list2 = [2] list1 = [1,2,3] list1.insert(2,index) return list1 and it returns: [1, 2, ['a', 'b', 'c'], 3] I dont …

Member Avatar for snippsat
0
174
Member Avatar for Jack_9

Hello. I work for a company that does alot of stuff with python and I was wondering what methods are better then the one I use for finding a bug in millions of lines of code. What I like to do is find out what the bug does. Let's just …

Member Avatar for vegaseat
0
329
Member Avatar for Miyuki

I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte at a time for comparing?

Member Avatar for Jack_9
0
523
Member Avatar for Lardmeister

Does anybody have some experience with the iPython notebook? How do you get started?

Member Avatar for bumsfeld
0
294
Member Avatar for mcroni

hi, pls i have written a set of codes for a program and i want to deselect the radiobutton and also clear the contents of the entry widgets,the entry widgets get cleared tho. thank you def adduser(): name = "Name: " + entry_box1.get() reference_number ="Reference_number: " + entry_box2.get() room_number = …

Member Avatar for vegaseat
0
2K

The End.