11,530 Posted Topics

Member Avatar for darkscript
Member Avatar for xbretzel
Member Avatar for Shaffer
Member Avatar for TkTkorrovi
Member Avatar for jasimp

In PHP, the time() function gets the current system time. Perhaps there is a Python equivalent that fetches the current year according to the system time? It would be a nice next step as you learn and improve your Python.

Member Avatar for majestic0110
0
157
Member Avatar for Dani

[LEFT]This is a program I wrote for my x86 assembly class which revolves a "roulette wheel" around. Wait about a minute and it will eventually slow down to a stop. It uses Irvine32.inc which came with the textbook.[/LEFT]

Member Avatar for holmes008
0
357
Member Avatar for Dani

This is a program I wrote for my x86 assembly class which bounces an ASCII ball across the screen. It uses Irvine32.inc which came with the textbook.

0
2K
Member Avatar for Electrohead

If you're goal is to deal with output, you may find that using ob_ is more flexible, as it lets you retrieve the output from external files and store them in variables for later use. The syntax would be: [code=php]<?php ob_start(); $output = ob_get_contents(); ob_end_clean(); ?>[/code] There are also a …

Member Avatar for Dani
0
148
Member Avatar for TkTkorrovi

Thanks :) And for a more complete cat, check out: [url]http://www.daniweb.com/code/snippet216.html[/url]

Member Avatar for Dani
0
105
Member Avatar for Tight_Coder_Ex
Member Avatar for vegaseat
Member Avatar for Tom Pilk
Member Avatar for helloadam

Why are you setting the width and height of the image to 65x38 pixels in size?

Member Avatar for uringinteristi
0
208
Member Avatar for helloadam

Of course, there will also need to be a submit button of some kind, to handle the data input.

Member Avatar for mmiikkee12
0
159
Member Avatar for 1o0oBhP

I am still working on perfecting the engine which powers these code snippets. Not all languages are full supported, but I can assure you that I am working on it!

Member Avatar for mmiikkee12
0
358
Member Avatar for vegaseat
Member Avatar for vegaseat

Cool. :) I've heard of the language but never had experience with it. Is it a proprietary language? Where could one get access to a compiler?

Member Avatar for eddie-jdp
0
209
Member Avatar for DeFrog777
Member Avatar for Dani
0
206
Member Avatar for 1o0oBhP
Member Avatar for ALT-F4

I'm new to Java. This has actually been the first time I've seen a constructor method for main. Looks good, and it's a good way to explain recursion.

Member Avatar for Dani
0
190
Member Avatar for Narue
Member Avatar for DeFrog777

I thought I had De Ja Vu for a second with the same snippet posted twice ... but then I read and saw it's slightly different. I've no experience with Pascal. Where could I pick myself up a Pascal compiler to test this out?

Member Avatar for yvesli
0
328
Member Avatar for Narue
Member Avatar for DanF

Thanks for giving us DaniWeb's most popular code snippet :) I'm sorry to see you haven't stuck around very long at all ... come visit us, Dan! :)

Member Avatar for Dani
0
148
Member Avatar for Dani

A simplistic program to compute the volume of a cylinder when its radius and length are input via MyInput.class

0
191
Member Avatar for Dani

A simple demonstration of how MyInput.class can be used to input data from the keyboard. Computation is then done to compute the interest rate on a mortage.

Member Avatar for holmes008
0
201
Member Avatar for Dani
Member Avatar for p.bondam
0
201
Member Avatar for Dani

An example of method overloading. The program calls a function to get the square root of a number. The appropriate function (integer or double version) is executed.

2
210
Member Avatar for Dani

The JOptionPane class is used to give the CompMortgage.java program a front-end GUI interface. The class is divided into numerous functions.

Member Avatar for diamonddog
0
181
Member Avatar for Dani

A program similar to ComputeMortgage.java utilizing a mathematical formula and multiple methods to calculate a loan payment.

1
200
Member Avatar for Dani

A single class consisting of multiple methods is used to demonstrate the robustness of keyboard input in Java. A try-catch block is used. The program graphically prints out a square root table by using JTextArea, JScrollPane and JOptionPane.

Member Avatar for Ghost
0
232
Member Avatar for Dani

A demonstration of introductory object oriented programming. A class to define a circle object with radius, area, and perimeter parameters.

0
273
Member Avatar for Dani

This program consists of two functions in one class. It is the driver program for the CircleClass.java file.

0
196
Member Avatar for Dani

A program similar to CircleClass.java which defines a rectangle object. ClientProgram.java is the driver program for the Rectangle.java file.

0
2K
Member Avatar for Dani

Two classes which aim to demonstrate private and public members of a class. A static variable is used as an accumulator to keep track of the number of class objects which are created.

Member Avatar for tunstar
0
255
Member Avatar for Dani

A program combining a switch statement with static variables in a class. Based on the switch statement, a class object is dynamically created.

0
209
Member Avatar for johnroach1985
Member Avatar for Eddi

This program consists of one function in one class. It uses MyInput.java to demonstrate how primitive data types are implemented in Java.

Member Avatar for cms271828
0
370
Member Avatar for Dani

This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number.

Member Avatar for dharween0629
0
214
Member Avatar for Asif_NSU

I tried compiling it but got an error that it couldn't include graphics.h because the file doesn't exist. Or something like that. I'm probably doing it wrong. I tried using MS Visual Studio.NET.

Member Avatar for neelam_209
0
3K
Member Avatar for Ghost

Whoa! Pretty daunting task if you ask me. I have a hard enough time trying to learn a language nevermind think of all of the aspects to a language. Take a look at scheme, for example ;) I'll leave this one up to the experts. You're being forewarned though - …

Member Avatar for zack999
0
160
Member Avatar for Danny

The way that I understand it is, you have full control over who you link to. Therefore, if casino and other bad sites link to you, no harm done because you have no control over what sites link to you. But you do have control over who you choose to …

Member Avatar for snapshot
0
164
Member Avatar for Young Teck 06

Danny Garon runs this? I've gotta yell at him later tonite for not telling me about it :)

Member Avatar for malkhaz
0
261
Member Avatar for darkagn

I do try to run these surveys once a year. The reason I send them via PM is because if I were to petition for feedback here, I'd get 10, maybe 20 responses. However, the survey let me easily assemble thousands upon thousands of responses in one place and completely …

Member Avatar for Chaky
0
174
Member Avatar for cm103

Google is also pretty good at personally responding to all emails they receive. Even if it's a form letter reply (which it typically is) it's usually relevant / accurate info.

Member Avatar for Austin SEO
0
152
Member Avatar for kaninelupus

Also, if an offending post is completely removed from the database, we have no way of keeping track of it. The very essence of our infraction system is designed around knowing whether it's someone's first offense or if they keep making the same mistake over and over again despite multiple …

Member Avatar for kaninelupus
-1
470
Member Avatar for lllllIllIlllI

Not really any more eye candy ... at least for now, the site will have the same look and feel. This upgrade is much more behind the scenes ... the biggest changes will be more stability and long time bugs finally being fixed, as sos said. The biggest additional feature …

Member Avatar for The Dude
0
111
Member Avatar for videowall
Member Avatar for peter_budo

We've been talking here in the office about starting a twitter feed, but hit a roadblock when the DaniWeb name was already taken.

Member Avatar for kaninelupus
0
160
Member Avatar for Ancient Dragon

AD, I already PM'ed you yesterday so you know how I feel, but I figured a public statement of some sort was in order anyways. I wish you the very best of luck and good health in the future!

Member Avatar for crunchie
0
189

The End.