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 I need to generate a timetable using the information provided.(I need to do this) Please help as I'm still a beginner. I really appreciate it. Thanks in advance

Member Avatar
Member Avatar
+0 forum 8

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 "align-center")

Member Avatar
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 1

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 a value will assign the sent value to the variable associated with the yield. I used this once to iterate through my generator once with one set of values, and then later with a different set. Cool stuff.

Member Avatar
+0 forum 0

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
Member Avatar
+0 forum 2

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 paypal, bitpal and etc.. Some helpful codes from you might help me a lot. I've been searching over the web about source codes with no success. Please do share your ideas about this. Thank you

Member Avatar
Member Avatar
+0 forum 1

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 question asking the user his 5x tables. i.e What is 5x3? What is 5x7? and so on and he needs to enter the correct answer, after which it will display correct or incorrect. I am having trouble getting the user input part. So far my code allows for him to …

Member Avatar
Member Avatar
+0 forum 2

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? The reason I'm asking this is for the input of tags in our Wordpress blog and/or future articles we write.

Member Avatar
Member Avatar
+0 forum 1

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 of it show up by order. function showImage() { //get image object var myImg = document.getElementById('showImage'); //declare image directory path and image array var thePath = "images/"; var theImages = new Array(); theImages[0] = "01.png"; theImages[1] = "02.png"; theImages[2] = "03.png"; theImages[3] = "04.png"; theImages[4] = "05.png"; theImages[5] = "06.png"; …

Member Avatar
Member Avatar
+0 forum 4

[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 static storage class. The value of variable persists across executions of this scope and is guaranteed to be initialized before the variable is used for the first time. When the program exits from the scope, the variable keeps its value until the next time the program enters that scope. We'll …

Member Avatar
Member Avatar
+0 forum 2

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. Can anyone tell me why? I appreciate the help. Here is my code: #include "stdafx.h" #include <stdio.h> #include <tchar.h> #include <iostream> #include <math.h> #include <conio.h> #include <iomanip> #include <time.h> #include <stdlib.h> #include <dos.h> using namespace std; void lab_7 (void) { srand((unsigned)time(0)); // declarations FILE *fptr; char fileName[50] = ""; double …

Member Avatar
Member Avatar
+0 forum 2

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 can make a copy of those days. The results will be shown as follows: 7/17/2012 7/18/2012 7/19/2012 7/20/2012 I also want to make a case in which if the user selects dates from: 7/17/2012 through 7/10/2012, the program will throw out a message that the second date is earlier than …

Member Avatar
Member Avatar
+0 forum 5

#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 the grid /******************************************************************** * Class: PickUpGame * Purpose: To store the grid and the current x and y position of the * user. Also has memeber functions to intialize the grid and print it. * Allows the user to move around the grid but provides no out of * bounds …

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

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 be possible to add my python script to the ScribusGenerator ?

Member Avatar
+0 forum 0

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 as list of strings result = '' for line in lines: i = 0 for cell in row: tmp = ('%VAR_' + headerRow[i] + '%') line = line.replace(tmp, cell) # string.replace(old, new) i = i + 1 result = result + line return result def getCsvData(self, csvfile): # Read CSV …

Member Avatar
Member Avatar
+0 forum 6

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 how many attempts you've made. Every task of the program is to be made as a function. This is what i've made so far. And it compiles fine. /* Magic's Number game */ #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> using namespace std; int main () { const int …

Member Avatar
Member Avatar
+0 forum 6

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
Member Avatar
-1 forum 3

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. If you want usefull use of recursive generator, see my 11.11.11 11:11:11 Code Snippet post of [full multiword anagram program](http://www.daniweb.com/software-development/python/code/365540/simple-multiword-anagram-candidate-words).

Member Avatar
+0 forum 0

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
Member Avatar
+0 forum 10

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 5

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, training.Training_Aids_Used, training.Online_Material_Used FROM training WHERE training.Training_Provided = 'No' AND %current_user_id% = Userlist.Staff_name WHERE userlist.Role NOT LIKE 'Employee' [/code]

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+2 forum 1

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 directories if started in interactive prompt mode by not supplying parameters from command line. Few usefull dictionary locations mentioned also in code: [url]http://wordlist.sourceforge.net/[/url] [url]http://www.isc.ro/en/commands/lists.html[/url]

Member Avatar
+0 forum 0

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 at a time (which limits some file operations, seek() doesn't work backwards for example). This code was inspired by the standard library's StringIO module. Please note that when memory or disk access is not an issue, it may be more efficient to write a temporary file than to use this …

Member Avatar
Member Avatar
+2 forum 3

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
Member Avatar
+0 forum 6

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 PHP code generator? any sugestion? Let's discuss!

Member Avatar
Member Avatar
+1 forum 8

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 web site files which would look like a customized version of my template site. Have you done this or considered it and decided against it? If you have do you think it was worth the effort?

Member Avatar
Member Avatar
+0 forum 2

Here is simple math program to list number whose all factors are in given set of factors. I have included my timing decorator, which uses my timestring function, so I included that and imports for decorator in the decorator function, bit against the rules. Of course I could have used also the timeit module. I have implemented task by using previous results and expanding those and using modified sieve algorithm. For the sieve method you should provide your favorite prime_sieve in module utils or change the name according to your module/function name.

Member Avatar
+0 forum 0

The End.