27 Topics

Member Avatar for
Member Avatar for shanenin

I am trying to get in the habit of practicing coding on daily basis. I decided to try do do tic tac toe in powershell. This took my a rediculous amount of hours to finsh. I am glad to be done. Nest projec will be something more useful like automating …

Member Avatar for Nutster
0
1K
Member Avatar for pooja.singh.3950

You have a block of platinum that can be exchanged in your bank either for cash or for smaller blocks of platinum. If you exchange a block of m grams, you get three blocks of weight m/2, m/3 and m/4 grams each. You don't get any fractional part, as the …

Member Avatar for pooja.singh.3950
-2
383
Member Avatar for oussama_1

Here's a simple game code, open a new vb project and copy paste this code and hit run. the game contains 3 levels, all you have to do is to shoot the smiley faces to earn money using mouse clicks, also there's a boss enemy on level 3. I didn't …

Member Avatar for oussama_1
3
916
Member Avatar for masterinex

I have one class called Class1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace static2 { public class Automobile { public static int NumberOfWheels = 4; public static int SizeOfGasTank { get { return 15; } } public int compute(int a,int b) { int c = a*b; …

Member Avatar for Mike Askew
0
144
Member Avatar for dany12

Hy I would like to know what python gui framework, I can use that will be compatible cross platform and will help me create my snippet saver, that will be relational database, with categories for each language. I thought I can use kivy to create my graphical interface than use …

Member Avatar for dany12
0
342
Member Avatar for petrarobert002
Member Avatar for ddanbe

I wanted to make an array of bits which I could click on and off at will. Sort of a register you could manipulate. First thing that came up was a checkbox control. But I wanted to change the usual checkmark with a 1 or a 0. With tips from …

Member Avatar for TnTinMN
0
2K
Member Avatar for TrustyTony

I posted one Scheme code to Legacy Languages, and noticed that the formating for Lisp style quoting (single single quote or back quote before) does not function. I know you have more urgent things to consider, but you could put it in your list, Dani.

Member Avatar for TrustyTony
0
225
Member Avatar for Nutster

What is the recommended way to make changes to a code snippet that I have posted after the half-hour edit period is over? Would it be to add another posting with the new code or make a new posting and somehow invalidate the original, or could the edit period be …

Member Avatar for Dani
0
266
Member Avatar for Dani

Hey everyone, We haven't done a good contest here on DaniWeb for quite some time, so I'd like to start one up again :) Throughout the months of June and July, I'd like to encourage members to submit fully working code snippets to our library. Throughout the month of August, …

Member Avatar for L7Sqr
3
1K
Member Avatar for TrustyTony

Here are instructions for voting for winner of the code snippet competition! http://www.daniweb.com/community-center/threads/429756/code-snippet-contest-...-cast-your-vote

Member Avatar for TrustyTony
0
204
Member Avatar for Dani

Cast your vote in the Summer 2012 Code Snippet Contest :) **http://www.surveymonkey.com/s/CodeContest**

Member Avatar for TrustyTony
1
451
Member Avatar for Dani

Just want to remind everyone that the code snippet contest is wrapping up the middle of this week, so get the last of your submissions in! :)

0
166
Member Avatar for Ancient Dragon

I tried to make a post without code snippets of any kind in Geek's Lounge and got this error message >The code snippet in your post is formatted incorrectly. Please use the Code button in the editor toolbar when posting whitespace-sensitive text or curly braces. I found out that it's …

Member Avatar for Ancient Dragon
0
257
Member Avatar for TrustyTony
Member Avatar for Ene Uran
0
202
Member Avatar for TrustyTony

What is prefered version on handling 'serialized' code snippets, with features added to previous post? I have posted a [polynomial expression snippet](http://www.daniweb.com/software-development/python/code/425151/class-based-polynomials-with-magic-methods#post1817526) to which I could not include the division part because original poster whose thread inspired me to start, have not proved finding his solution to the problem. Should …

Member Avatar for TrustyTony
0
229
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 JJCollins
Member Avatar for euwbah

Here you can share assembly code snippets for the YASM assembler and you can also help people with their YASM assembly programming and share 32-bit apps. :) I also have a problem when I do this (It is supposed to generate a very simple hello in the cmd(DOS/command.com/command prompt): [CODE] …

Member Avatar for euwbah
0
271
Member Avatar for Momerath

I posted a code snippet ([URL="http://www.daniweb.com/software-development/csharp/code/355645"]Optimizing Matrix Multiplication[/URL]) and when I check the stats on it and click the [URL="http://www.daniweb.com/forums/linkbacks.php?t=355645"]linkbacks[/URL] I get a page of "Incompatible Browser | Facebook" links. What's up with that?!

Member Avatar for Momerath
1
139
Member Avatar for efregoso

Hi, so I am trying to create a text file, that holds coordinates of bricks for the game brick breaker. I have a the textfile labeled as level1, and the coordinates are -5,9,0 -4,9,0 -3,9,0 now I am having trouble with getting python to open the file, and read the …

Member Avatar for TrustyTony
0
180
Member Avatar for efregoso

Hi, I am trying to make a brick breaker game, but I am stuck. i need help moving the panel, and getting the ball to bounce off of bricks upon collision and erase the bricks. Also I wanted to create two lists, one that contains coordinates, the second would be …

Member Avatar for efregoso
0
2K
Member Avatar for 101domain

I have seen lots of websites that use Google Snippets to attract the users. What is the correct way to use them and in which part of website these are applied?

Member Avatar for maneetpuri
0
212
Member Avatar for ApocDen

1. Imports System.IO 2. Create class "CreateThumbnails" or any class and place following function inside that class You need one function to response call back to main function Function ImageAbortDummyCallback() As Boolean Return False End Function

0
495
Member Avatar for ApocDen

this snippet is to create random passwords with a chosen length and a specified number of numbers. Uses both lower case and capital letters, which are chosen at random. And example is: wep5Q268LtTe. [B][U]How to use.[/U][/B] Using this is very easy just add to the appropriate page and call the …

0
699
Member Avatar for nav33n

Hi all, I have a suggestion (not sure if it has already been discussed). In the profile, at the community tab, we have, for example, [quote] Code Snippets: 10 [/quote] If this number [i]10[/i] is made a href linking to all the code snippets posted by that particular user, it …

Member Avatar for nav33n
6
312
Member Avatar for codejoust

Would anyone be able to provide pointers / comments on this object-oriented PHP program? You can take a look at it on [URL=http://github.com/codejoust/PHPContactForm/]http://github.com/codejoust/PHPContactForm/[/URL] It's still a work in progress.

0
108

The End.