60 Topics
| |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 :) | |
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 … | |
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 … | |
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? … | |
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 … | |
[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 … | |
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. … | |
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 … | |
#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 … | |
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) | |
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 … | |
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 … | |
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 … | |
| 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! |
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. … | |
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. | |
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... | |
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 | |
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, … | |
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). | |
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 … | |
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 … | |
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). | |
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 … | |
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 … |
The End.