60 Topics

Member Avatar for
Member Avatar for MosaicFuneral

Haven't programmed in a long time. Last project was a GCODE pathway generator I wrote several years back. My compiler is obviously several years out of date. Uses time(), itoa(), rand(). Current standard compliant compilers should have <chrono>, <thread>, <random>, and to_string() in suppliment to those more deprecated functions. This …

Member Avatar for DGPickett
2
3K
Member Avatar for Matth963

Hi, I'm doing a simple study planner in java. Obviously I need to do a timetable generator. The program works like this: 1. The user enters the start time of school and the length of each breaks (Done) 2. The user enters the lessons(Done) 3. When the user presses next …

Member Avatar for Jhonathan_1
0
5K
Member Avatar for hefaz

hello there i am trying to make an application that can generat words automatically, i have used four text boxes, i want the first three boxes to get a word automatically from a file or from an array and show it in forth textbox, how can i do that? ![Capture.JPG](/attachments/large/4/45f56d9fc31c7e7b5da52fc4beebd007.JPG …

Member Avatar for rproffitt
0
560
Member Avatar for vegaseat

Generators are rather familiar objects in Python. Generators supply data on demand. Using Go you can create a generator with a goroutine and a channel. Here the goroutine is an anonymous function within a function, simple to implement.

Member Avatar for vegaseat
0
1K
Member Avatar for BustACode

I just love generators in Python. One of the cool things I found out from [this](http://nedbatchelder.com/text/iter.html) site was that one could send in a value when calling on an active generator. To do so one uses the send() method and a yield like so: "x = yield". The send with …

0
326
Member Avatar for Stefce

Hello everyone i want to make a random number generator and also to check the numbers, and if that number exist in the database than to generate other number... thank you :)

Member Avatar for harishprakash
0
384
Member Avatar for Zdneth_1

Good day IT Enthusiasts and Pros! I want to ask if any of you has an idea of making a web-based application that involves sales quotation and proposal generation? I badly need some tutorials or some pieces of advice on how to make it in PHP especially involving payments using …

Member Avatar for diafol
0
234
Member Avatar for mstoltz1

Ok, so I just made this account because I'm super stuck. Basically I need to create a math quiz that takes a users input (1 through 12), have it spit out a question, i.e What is 5 x 12? however if the user enters 5, it must randomly generate a …

Member Avatar for JamesCherrill
0
2K
Member Avatar for HoverportMedia

Hello everyone, I may not be no SEO expert (yet), but during my studies of SEO, I was wondering about tag cloud generators. The reason I question these tag cloud generators is one, are they reliable in any sense and if they are, what is the one you would recommend? …

Member Avatar for jafrain_jaff
0
325
Member Avatar for Cravver

I have this code here and I need to know how to make it randomize the amoutn of images there are: Currently it shows the images, and uses a cookie so the image doesnt show up more than it needs to, but i need to randomize the image order instead …

Member Avatar for Cravver
0
364
Member Avatar for Vasthor

[Click Here](http://s16.postimg.org/rjkqfahp1/faulty1.png) I thought after the function call of gen_aux before the loop, the static call on the type for r should have make it declared. but why not? how static really works? this is what it's explained in the books:- static type variable; For local declarations, declares variable with …

Member Avatar for sepp2k
0
225
Member Avatar for ralph.d.abernathy.1

Hello everyone. I'm working on a project that acts as a function generator to output a sine wave. The program also outputs an excel file with all of the data points so one can plot the points. For some reason, when I add noise, the graph does not look right. …

Member Avatar for ralph.d.abernathy.1
0
412
Member Avatar for Start4me

I would like to make a program in which the user selects a time frame, for example if he selects from a DateTimePicker1 the time 7 (July), 17th, 2012 through DateTimePicker2 7 (July), 20th, 2012, and presses the button, a text will show up in a textbox from which he …

Member Avatar for tinstaafl
0
286
Member Avatar for gamnlxvi

#include <iostream> #include <stdlib.h> //For system() #include <conio.h> //For getche() #include <time.h> using namespace std; //You can modify these numbers but don't delete these constants or this starting code will not work const int MAX_HEIGHT = 20; //The height of the grid const int MAX_WIDTH = 40; //The width of …

Member Avatar for deceptikon
0
538
Member Avatar for Start4me

I want to create an integer generating program where the user enters any number in TextBox1 and TextBox2 and presses the Generate button and in another textbox the integers shows up. REFER TO THE LINK to see what I mean. [Click Here](http://picturepush.com/public/11671143)

Member Avatar for tinstaafl
0
223
Member Avatar for biscayne

Does anyone have experience with calling a Python script to parse data into a Scribus template and generate a pdf file ? I know about the ScribusGenerator by Ekkehard Will, which works pretty well, but I have a tailormade python script that combines data from 2 csv tables. Would it …

0
123
Member Avatar for biscayne

When trying to load csv file data into Scribus it only takes the data of the last row. I'm using ScribusGenerator.py by Ekkehard Will and my best guess is that the cause of the problem is somewhere in this part of the code: def replaceVariablesWithCsvData(self, headerRow, row, lines): # lines …

Member Avatar for biscayne
0
2K
Member Avatar for Magic681

So the task is relatively simple; create a program that will generate a random number, and then prompt the user to input a number. If the is lower or greater than the generated number, a message will display whether you're lower or higher than the number. The program also records …

Member Avatar for ravenous
0
380
Member Avatar for HTMLperson5

This is a goofy sentence generator I have made in python; it took about 5 minutes to get the code to work - but its working now so if your curious try it out!

Member Avatar for HTMLperson5
-1
540
Member Avatar for TrustyTony

Here you see how one could use recursion together with generators for (inefficient) permutations generator. It is kind of interesting to know how one can do it recursively (of course there exist many ways). Anyway this snippet demonstrates how you can use recursive generator call to feed a for statement. …

0
431
Member Avatar for TrustyTony

Gribouillis has allready posted code similar to this in his snippets, but here version for input suitable for for expressions, generators and list comprehensions. Need to add robustness by some try...except blocks for real world use.

Member Avatar for vegaseat
0
533
Member Avatar for ChintuChowdary

HI TO ALL, In purchase order level we can generate barcode for those purchases automatically. Please suggest code or any software to overcome this problem. THANKS IN ADVANCE...

Member Avatar for ChintuChowdary
0
170
Member Avatar for Timziski

Hey everyone, can anyone help me out with a code that creates a program where a user can key in 3 coordinate points and when the click "Generate Triangle" button. the program automatically creates the program. Please help. Cheerz

Member Avatar for kingsonprisonic
0
288
Member Avatar for JukesK

Im using PHPGenerator for mysql to generate some pages at work. Is it possible for me to do a MySQL query like below? Or am i trying something thats impossible?? [code] SELECT training.id, training.Employee_Name, training.Team_Name, training.Date_Requested, training.Course_Information, training.Training_Provided, training.Time_Taken, training.Trainer, training.Critique_Completed, training.Certification, training.Comments, training.file_name, training.file_type, training.file_size, training.Training_Information_Given_Was, training.Training_Course_Structure_Was, training.Training_Instructor_Was, training.Training_Instruction_Aids_Was, …

Member Avatar for smantscheff
0
156
Member Avatar for Gribouillis

This snippet defines a simple decorator to post-process a function's return value through a sequence of filters. As a first application, the decorator can transform a generator function into a function returning a sequence type (list, tuple, dict).

Member Avatar for Gribouillis
2
569
Member Avatar for TrustyTony

This is my code for anagrams not utilizing the ready prepared file of anagram synonyms to celebrate 11.11.11 11:11:11. If you start program it warns you about missing subdirectory dict and creates it. You may put any word files, one word per line, to file <dictionary name>.txt. Program lists available …

0
2K
Member Avatar for Gribouillis

Any sequence of python strings can be disguised to look like a file opened for reading, which can then be passed on the fly to functions expecting such an input file. This code snippet defines the necessary adapter class. The obtained file-like objects store only one string of the sequence …

Member Avatar for Gribouillis
2
1K
Member Avatar for TrustyTony

Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line).

Member Avatar for Gribouillis
0
606
Member Avatar for Jones_nash

Hello there my friends, I was looking to the best PHP code generator in the market, i already take a look into some frameworks but before i buy it i wanted to take a look here to know if you guys have any sugestion. Any of you already have/use/bought any …

Member Avatar for Ezzaral
1
180
Member Avatar for br_astronut

I am learning ASP.NET and have built a basic web site that I want to use as a template for future sites. I am wondering if I should build a code generator that will take as an input an xml file which describes the application and then generate the base …

Member Avatar for AleMonteiro
0
204

The End.