Our Software Development forum encompasses topics related to native application programming design and development.

60 39 39 36 36 34 33 31 31 30
Member Avatar
A short example of Pygame showing an image with a known internet url.
by vegaseat 1,720 in Software Development ()
Member Avatar
Use Python module threading to count intervals (in seconds) in the background. You can use this to time any relatively slow event like the time it took to finish a game or play some music. You can also peek at the current interval value as the event goes on. Go …
by vegaseat 1,720 in Software Development ()
Member Avatar
There are many examples of compressing files in VB.Net. So many of these examples are using third party libraries which is just not neccesarry. People were saying that files and archives exceeding 4Gb couldn't be used... I hate restrictions and decided to "Stick it to Microsoft" To get a better …
by J.C. SolvoTerra 109 in Software Development ()
Member Avatar
When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …
by skatamatic 371 in Software Development ()
Member Avatar
I'm sure I've mentioned this type of wrapper class for accessing databases in a provider-agnostic manner before, but never posted a functional implementation. So here it is. Questions, comments, and suggestions are welcome as always. :)
by deceptikon 1,711 in Software Development ()
Member Avatar
A list of class objects mimics a C array of structures. The snippet explores how to setup the list, and sort the list according to a selected attribute. Then we use a format string to display the sorted list. Take a look at how to search the list. All in …
by vegaseat 1,720 in Software Development ()
Member Avatar
This snippets contains a python program to find a shortest solution to the problem of the farmer who whishes to cross a river. The boat can only contain two things, including the rower. The farmer comes with a wolf, a duck and a bag of corn, and he can't leave …
by Gribouillis 1,265 in Software Development ()
Member Avatar
void Halt (); void Reply (const char * num,uint8_t stat); { this is the error message for this code 7|error: 'uint8_t' has not been declared 9|error: expected unqualified-id before '{' token
by directorabbey in Software Development ()
Member Avatar
Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long …
by vegaseat 1,720 in Software Development ()
Member Avatar
The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are …
by vegaseat 1,720 in Software Development ()
Member Avatar
Another application of Python module base64, this time to embed midi music data in your program. You also need the module pygame to execute this Python code. Enjoy the music!
by vegaseat 1,720 in Software Development ()
Member Avatar
Hey guys, does anyone know how to do this? Here is my current code that will not work. I have tried everything that I know how to make this work to no avail. This is under form1_load. Any help would be awesome. Thanks in advance.
by powerade661 in Software Development ()
Member Avatar
Sometimes you only want to enter numeric data in a textbox. You have two options here : Let a user type whatever he/she wants into a textbox, validate the input and show him or her an annoying message that he/she has done something wrong.:angry: Or: capture the key before input, …
by ddanbe 2,418 in Software Development ()
Member Avatar
Using the wx.lib.pdfwin.PDFWindow one can read Adobe PDF files (.pdf) with wxPython. The PDF file format is popular document file format allowing mixing of text and graphics. The GUI toolkit wxPython's newer wx.activex module allows one to use the ActiveX control, as if it would be one wx.Window. It actually …
by bumsfeld 413 in Software Development ()
Member Avatar
Following is a matrix multiplication code written in MPI (Message Passing Interface) which could be run on CPU cluster for parallel processing. This has been successfully tested with two square matrices, each of the size 1500*1500.
by tyrantbrian in Software Development ()
Member Avatar
The Tkinter GUI toolkit comes with a scrolled text widget that is called ScrolledText. To get access to it you have to import it separately. It allows you to display large amounts of text in a small space.
by vegaseat 1,720 in Software Development ()
Member Avatar
I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, I am limited to streaming files in the mp4 format. Fortunately, ffmpeg allows me to convert other formats to mp4. …
by Reverend Jim 1,221 in Software Development ()
Member Avatar
This program displays a simple analog clock to show the current system time. Uses a Hand class to create objects - hour, minute and seconds hands.The 'hands' are just straight lines, and two circles make the 'frame' of the clock. Compiles correctly on TurboC++ v3.0
by vicky_dev 12 in Software Development ()
Member Avatar
If you have a long message to display in a large readable font, then this little Tkinter GUI toolkit code might help.
by vegaseat 1,720 in Software Development ()
Member Avatar
Sometimes we want to not split by every space character, but we want to split only on those outside of brackets and quotes. This way we can have for example quoted string as single argument for command. EDIT: 1. Added hierarchical nesting of same kind of brackets. 2. Bunching multiple …
by pyTony 888 in Software Development ()
Member Avatar
[B]Expression evaluation using Emit[/B] This class was designed to evaluate simple mathematical expressions. But instead of developing a routine to do the calculating, we use Emit to dynamically build a method that does the math for us. IMPORTANT: This is done with integer math. 7/2*3 = 9, not 10.5 (or …
by Momerath 1,327 in Software Development ()
Member Avatar
Now, before you say it already exists (because it does) I found that those didn't really have the generic ability to find any control on a form, regardless of containers. So, here you have a piece of code which will find any control on a form and will also search …
by Ketsuekiame 860 in Software Development ()
c#
Member Avatar
Here is a small extention of the Panel class that allows you to 'collapse' it. So far, the user can place a control on the parent form and perform a collapse/expantion by: 'Where cpNew is a Collapsible Panel If Not cpNew.PanelCollapsed Then cpNew.Collapse() 'or If cpNew.PanelCollapsed Then cpNew.Expand() I will …
by Begginnerdev 256 in Software Development ()
Member Avatar
A simple graphical year calendar. Compiler: Turbo C In main current year is set manually, for more generic way use date function to get current year.
by Luckychap 68 in Software Development ()
c
Member Avatar
Our text file contains 10 words,and located in C:\ drive,we will read this data into an array and write out the results to the screen Created by FlamingClaw 2009.04.26.
by FlamingClaw 98 in Software Development ()
Member Avatar
[CODE]struct PCB* handleProcessArrival_PP(struct PCB *processhead,struct PCB *processtail,struct PCB *currProcess,struct PCB *newProcess,int currTime){ if(currProcess==NULL){ newProcess->executionStartTime = currTime; newProcess->executionEndTime = currTime+newProcess->totalBurstTime; newProcess->remainingBurstTime = newProcess->totalBurstTime; if(newProcess->processID==processhead->processID){ processhead= newProcess->next; printf("processhead in case 1 %d \n",processhead->processID); } currProcess=newProcess; printf("***current process = new process%d \n",currProcess->processID); contents(processhead); return currProcess; //return processhead; } if (currProcess->processID !=0){ contents(processhead); if(currProcess->processPriority>newProcess->processPriority){//new …
by ayeswarya in Software Development ()
Member Avatar
This simple key logger shows any character/special key when pressed.
by vegaseat 1,720 in Software Development ()
Member Avatar
This is a snippet I use to clear a form. Right now it clears: TextBox, RichTextBox, ComboBox, CheckBox and RadioButton. More can be added if needed... :)
by avirag 10 in Software Development ()
Member Avatar
This snippet defines a function returning new identifiers created from reading the computer's time.
by Gribouillis 1,265 in Software Development ()
Member Avatar
The module pyglet leans on OpenGL for graphics and is used in the scientific community together with Python. This short code snippet shows you how to use it to display an animated GIF file. The download is free, so give it a try. You don't have to download OpenGL to …
by vegaseat 1,720 in Software Development ()
Latest Posts