Click here to Skip to main content
15,893,381 members
Everything / General Programming

General Programming

programming

Great Reads

by OriginalGriff
Marking code you need to return to later
by jurhas
A small simulator for a 6 axis articulated robot
by super
A rough guide for developers how to approach development of software for Internal use especially in Engineering companies, where shorter turnaround is more important
by Colin Vella
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.

Latest Articles

by Henrik Vestermark
The steps needed to build an Interval Arithmetic class in C++
by Jackson Jiang
Introduction to and development journey of a real-time transcription function
by Shun Huang
Use Python to build atomic binary trees
by Andreas "PAX" Lück
Investigation of PE file modifications performed by Microsoft Detours

All Articles

Sort by Updated

General Programming 

22 May 2010 by #realJSOP
Essential programmer skill - the ability to approach a problem from more that one direction.
8 May 2010 by #realJSOP
Pretty much anything you can think of can be modeled in software.It's not as much about choosing the right language as it is about choosing the right technology/olatform. At first blush, I'd go with WPF/C# because WPF gives you the ready-made functionality required by the 3-D/graphical...
10 Jun 2010 by #realJSOP
Using google ("c# send binary file with sockets"), I found this:http://socketprogramming.blogspot.com/2008/11/split-and-assemble-large-file-around.html[^]
19 Jul 2010 by #realJSOP
Your question makes little sense. If you are asking if you can get aweb serive's settings from a database in order to communicate with the web service, yes you can, but only if that database can be accessed without the use of the web service. Typically, a web service can only be accessed...
24 Sep 2010 by #realJSOP
I group methods by according to their nature:- Constructors- Initialization of structures/variables- Event handlers- Methods according to functional category- Uncategorized methodsI also (out of habit from coding in Pascal many years ago) put the most interally referenced methods...
27 Sep 2010 by #realJSOP
You could do it that way, if you're willing to create a custom collection class. It would probably be easier (and faster) to use a Dictionary, though.
7 Dec 2010 by #realJSOP
If you only knew how to use google, you'd get almost 2.5 MILLION results when you searched for "layered programming".
5 Jan 2011 by #realJSOP
Yes, it's solvable. Use string.Split("\r\n") to split the string into a string array, and then you can process the array elements.
10 Jan 2011 by #realJSOP
An abstract class cannot be instantiated. You MUST derive a new class from it, and implement all of the pure virtual functions in it, and then use the new class instead.This is basic C++ stuff...
14 Jun 2011 by #realJSOP
Start writing code. That's the only way you're really going to learn it anyway. Books can give you theories and barely working do-nothing examples that don't reflect real-world requirements.Find a site you like, and try to duplicate it. Then, try to make it better. Learn how to write a legacy...
29 Jun 2011 by #realJSOP
A generic List is more efficient because it deals with just the specified object type. An ArrayList requires boxing because it supports multiple types in a single list. It's almost always better to use a List rather than an ArrayList.
28 Jul 2011 by #realJSOP
The best way to learn how to write code is by actually WRITING code.Come up with an idea for an application that is useful to *you*. If you are unable to do that, pick an existing application, and try to duplicate it in appearance and functionality. My adviuce is to start small, and work your...
1 Aug 2011 by #realJSOP
Isn't google compatible with Linux?
30 Aug 2011 by #realJSOP
By definition, a "pet project" is something that you've dedicated yourself to performing/completing sometime in your lifetime, like building a boat to sail around the world, or inventing the better mousetrap. You can't realistically ask someone else to identify such a project for you.
2 Sep 2011 by #realJSOP
Go here [^]There are a lot of qualified programmers looking for work.
12 Sep 2011 by #realJSOP
The following lines of code will give the same result:int diff = Math.Abs(score[0] - score[1]);int diff2 = Math.Abs(score[1] - score[0]);Honest opinion - you're asking too many basic questions. Learn how to use google and save yourself some time.
2 Dec 2011 by #realJSOP
Yes. Just add a setup project to your solution and set the appropriate .Net version as a pre-requisite, and it will install it if necessary when the user runs your setup application.
2 Dec 2011 by #realJSOP
Nobody with any sense of self-awareness is going to allow an installer run remotely.
14 Mar 2012 by #realJSOP
The one that allows you to collect a paycheck. Philosophy and adherence to archaic belief systems aside, there really are no other considerations...
6 Jan 2022 by 0x01AA
At a first glance based on your vague input: The Table with users: Users Id, UserThisAndThat The Tables for the messages: Messages Id SendFromUserId SendToUserId Message Query example: SELECT COUNT(*) FROM Messages WHERE...
17 Jul 2013 by 12345_abcde
i have a database table containing: SEG,AMK,101427Y,EG3902,EG3902-G1 SEG,AMK,101427Y,EGS650,EGS650-G1 SEG,AMK,103852S,EG3901,EG3901-G1 SEG,AMK,103852S,EG3904,EG3904-G1 SEG,AMK,103852S,EGS104,EGS104-G1 SEG,AMK,103852S,EGS650,EGS650-G1 ...
18 Jul 2013 by 12345_abcde
hi, i have a datagrid which looks like:subject studentseg1001 182737H 29837B 29837C 19282Weg1002 192837C 32810Hso on and so forth.how can i do a counter and put into a column between subject and...
21 Jul 2013 by 12345_abcde
can anyone tell me if im storing my data into list correctly? my codes are as follows: Dim connect As String connect = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & Application.StartupPath & "\segdata.accdb" Dim conn As New OleDbConnection(connect) ...
22 Jul 2013 by 12345_abcde
i have dt1 from a querycmd.CommandText = "SELECT DISTINCT AdminNo, ModuleCode FROM(SEGDATA)ORDER BY AdminNo ASC, ModuleCode ASC" Dim dt1 As New DataTable dt1.Load(cmd.ExecuteReader) DataGridView1.AutoGenerateColumns = True DataGridView1.DataSource =...
23 Jul 2013 by 12345_abcde
dt1 looks like: AdminNo ModuleCode111411H EG1001111411H Eg1003111380Y EG2011dt2 looks like:PaperNo Module1 Module2 Module3 ....1 EG1001 2 EG1003 EG10013 EG2011i want to check for each modulecode in dt1...
24 Jul 2013 by 12345_abcde
i edited it to:Dim dt3 As New DataTable dt3.Columns.Add("AdminNo", GetType(String)) '/*Add column AdminNo dt3.Columns.Add("PaperNo", GetType(Integer)) Dim curmodule As String = String.Empty For Each dr1 As DataRow In dt1.Rows curmodule =...
24 Jul 2013 by 12345_abcde
i edit my code to : Dim dt3 As New DataTable dt3.Columns.Add("AdminNo", GetType(String)) '/*Add column AdminNo dt3.Columns.Add("PaperNo", GetType(Integer)) Dim curmodule As String = String.Empty For Each dr1 As DataRow In dt1.Rows curmodule =...
24 Jul 2013 by 12345_abcde
Hi, i have this datatable dt3 which looks like:ADminNo PaperNo111411H 3111411H 18172828z 3172828z 18111380Y 93111938S 10How to i get something like:ConflictingPaper Numberofstudents AdminNo3 : 8 2 ...
28 Jul 2013 by 12345_abcde
Hi i have a datatable which looks like:Modulecode AdminNoEG1001 111411H 111380Y 192029BEG1002 110970R 102938X...populated in a dgv.How to i get:Modulecode NumofStudents AdminNoEG1001 3 ...
28 Jul 2013 by 12345_abcde
hi i have these codes:Dim dt As New DataTable ' Create four typed columns in the DataTable. dt.Columns.Add("ConflictingPaper", GetType(String)) dt.Columns.Add("Numberofstudents", GetType(Integer)) ...
30 Jul 2013 by 12345_abcde
Hi i have a datatable, dt3 showing:adminno paperno111411H 4111411H 9182938C 2192839A 3111380Y 26111380Y 36111380Y 40182737N 26182737N 40i want to populate:conflictingpaper numberof students adminno4:9 1 ...
31 Jul 2013 by 12345_abcde
hi can anyone tell me how do i put load linq query into datatable then populate into datagridview?my codes are as follows:Dim dt As New DataTable '' Create 3 typed columns in the DataTable. dt.Columns.Add("ConflictingPaper", GetType(String)) ...
1 Aug 2013 by 12345_abcde
Hi, i have these codes: Dim dt3 As New DataTable dt3.Columns.Add("AdminNo", GetType(String)) '/*Add column AdminNo dt3.Columns.Add("PaperNo", GetType(Integer)) Dim curmodule As String = String.Empty For Each dr1 As DataRow In dt1.Rows ...
2 Feb 2022 by 1298201
#include #include using namespace std; class payroll { private: string name; int day; int rate; int ot; int otrate; int sss; int phil; int pgibg; public : int get_info(); ...
29 Sep 2012 by 12bob50
I want to learn assembly to get a better understanding of computers and programs and also making faster lightweight programs. Where do I start? Any recommended tutorials? P.S. I have FASM and MASM assemblers on my computer.
21 Nov 2013 by 3PillarLabs
Get photo albums from Facebook and Twitter in Android.
24 Apr 2010 by 7homam
Suppose if i have to create a frame, i will import the package JFrame, like:import javax.swing.JFrame;Similarly for ActionListener and ActionEvent :import java.awt.event.ActionListener;import java.awt.event.ActionEvent;But i don't know in which package TimerListener is...
4 Sep 2010 by [Andi]Law
Anyone know the programming language used to create microsoft office???
22 Jun 2014 by _Asif_
Welcome to the wonderful word of CCXML/VXML
28 Jun 2013 by _Asif_
This tip helps in creating User schema with fresh password on the fly
1 Mar 2014 by _Asif_
Try thisListBox with Custom Scrollbar[^]
2 Feb 2022 by _Asif_
It seems * you just copy the code from some website, incorrectly paste it * press F5 (run). * Got Compiliation Error * You came on Codeproject, paste the code again and asking to solve the problem, without putting any efforts at all. My...
5 Aug 2011 by _Zorro_
Personnaly I think that studying within an organization is something usefull, and here is why.If you study alone you basically choose your subjects by yourself, so you'll be more likely choosing stuff you're good at, or like. You'll also won't know what to study, in what particulary...
17 Nov 2013 by A-DeveloperZ
HiI develop software such as attitude indicator , HSI and ..... with C# and java.Recently I shift to Ada and I use (GNAT programmign studio) I reasearch about Ada and found this language is suitable for develop avionics software and Real-time system.unfortunately Ada don't have...
6 Sep 2014 by aarif moh shaikh
Actually you have one Identity Column so You have to specify rest of Column Name for Inserting Value into the table.For Example :INSERT INTO EMP_TBL (NAME,ADDRESS) VALUES ('"+TextBox1.Text+"','"+TextBox2.Text+"')
12 Apr 2012 by aayushraina
please check ns2 simulator development forum you will get lot have help and can do lot of research on network topologies and dynamic routing algorithms
13 Feb 2013 by abbaspirmoradi
Hi every one. I have file with less than 10 mbyteI want save it into sql. I convert it to array of bytes.then save it into sql.type of this field in sql is varbinary(max).when I retrieve file from sql size of file is 13 byte.where is my bug?Code that I use for Convert File to Array...
16 Jul 2014 by Abdallah Al-Dalleh
Hello allIf you have constants, very often used variables (whatever the name is), what is the best way to store them ? does it make a difference ?Code (static class, const variables, enum, ... etc.)config file ( appsettings for example )Database
26 May 2010 by Abhinav S
shilf wrote:is class B static by compiler?Class B is not static. You would not be able to doB b=new B(); if this was the case.For different samples on nested classes, have a look here.
26 May 2010 by Abhinav S
shilf wrote:why f() within class A can be used directly in Main(),but we must create object a to use g()?This is because f() is static and does not require that an instance of an object to access it.shilf wrote:the same;why y within class OuterClass can be used directly in nested...
9 Jul 2010 by Abhinav S
If you want to build your own custom template, see here.
7 Aug 2010 by Abhinav S
Dude - what exactly are you trying to ask? You can post your question in Hindi on the Hindi forum here.
12 Sep 2010 by Abhinav S
Check if the vendor provides any information.
21 Sep 2010 by Abhinav S
Something like an image that is never used?No it will not have any effect on the project itself. The size of your dll could go up after the compile though.
27 Sep 2010 by Abhinav S
You might also consider watching some videos that would help you start writing some code.One link here[^].
19 Oct 2010 by Abhinav S
F# is not C#.See here [^] for more information on F#.
3 Nov 2010 by Abhinav S
See here[^] for differences.To achieve this, you need to use programming languages that support support parallel programming (for e.g. C# 4.0).
5 Nov 2010 by Abhinav S
This is the question answer section.You might want to post this in the tip / tricks section.
5 Nov 2010 by Abhinav S
This is the question answer section.You might want to post this in the tip / tricks section.
14 Dec 2010 by Abhinav S
You could base your judgement on when to do this and when not using Cohesion and Coupling. For a good discussion, see here[^].
5 Jan 2011 by Abhinav S
You can have strings line by line (in one string).You will do something likestring myString = "Flexi" + "SrNo" + "\t" + "TV11010300454537" + "\n" + "SubId" + "\t" + "1048589838" + "\n" + ....//and so on
6 Apr 2011 by Abhinav S
I would say, start by reading a book on programming.Once you go through it completely, these concepts will remain with you for a long long time.Once you have learnt your first language, you can go through tutorials online, videos etc for your next language.
11 Apr 2011 by Abhinav S
Word does not have sheet names so you are basically on the wrong track at the moment.
5 May 2011 by Abhinav S
You might want to start from here.
24 Jun 2011 by Abhinav S
It should be as simple as this.[^], so unless you post some code here it will be hard for anyone to detect what could be going wrong.
29 Jun 2011 by Abhinav S
Not much I would think - since there is no boxing / unboxing here.Implementing List might just still come out better in terms of performance because there is no need to do any type checking at runtime.Two more interesting reads on this topic -...
8 Jul 2011 by Abhinav S
If you are a college grad, you can probably start learning both and then pick up one of the two based on how you feel comfortable with them.
9 Dec 2011 by Abhinav S
Start be reading through http://msdn.microsoft.com/en-us/library/2e08f6yc(v=VS.100).aspx[^].Easy Asynchronous Programming[^] should be useful to you as well.Asynchronous Method Invocation[^] and...
11 Dec 2011 by Abhinav S
In a nutshell, Encapsulation is hiding certain parts of your program so that they are not accessible to everyone.Abstraction is hiding the complexity of the program.This[^] might help you out.
13 Dec 2011 by Abhinav S
I searched and came across this question[^] asked a few months ago. Should help you out.
7 Mar 2012 by Abhinav S
There is nothing that can beat a "dry run" through code and reverse engineering to figure out how it works.Very often, this needs to be done without proper diagrams, so you should go ahead without worrying too much.Try to figure out where the code jumps to other locations (e.g. a web...
16 May 2012 by Abhinav S
http://vkreyni...
18 Aug 2012 by Abhinav S
A loop could freeze the UI so a timer would be better, but in general, depends on what you are trying to do.
5 Sep 2012 by Abhinav S
These links (though in C#) could help you -Links with arbitrary text in a RichTextBox[^]http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/09a0bd7f-0720-4d0e-b4ef-3310efcf7ed7/[^]
30 Nov 2014 by Abhinav S
Depends on what you need to do.If you have some experience with C or C++, start with those languages.If you want to build websites, you might want to pick up some web development languages like HTML and JavaScript.
2 Apr 2015 by Abhinav S
Here you go - What Is the .NET Framework, and Why Do I Need It?[^].
10 May 2015 by Abhipal Singh
As we all know, there are 26 chars in English.(and assuming z is replaced by a)Follow the below steps:1) Treat each character as a number, like a as 0 b as 1 c as 2 and so on. (Hint: Enumerations)2) Subtract the number you get from 25 (not 26 as we are starting...
27 Jun 2021 by Abhishek Sharma Jun2021
import java.util.*; public class test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter the number"); String k = sc.next(); int s =...
2 Oct 2014 by Adam Zgagacz
WinForms Scrollbar with enhanced properties, graphical bookmarks and value tooltips.
28 Sep 2012 by AdamNThompson
I was exactly where you are 7 years ago and I remember how frustrating it would be sometimes when attempting to maintain code written by other programmers. When you are doing new development it's a lot easier because you can write it however you want, but when it's already written you must work...
29 Aug 2014 by ADemontis
I think it's a firewall / antivirus problem... check if your antivirus / firewall blocks the application.I have tried the code and it works 100% but system mechanics professional asked me to allow the connection to RemotePort 587 because it is not a 'common one'.
29 Jun 2021 by Aditya Gupta 2021
Arif runs an NGO for the welfare of animals. There are N workers in his NGO and they have been assigned the task to collect funds for the smooth running of the NGO. Arif has the information for each worker of how much amount they could collect...
30 Sep 2010 by Aescleal
As CPallini said it sounds like a compiler error. So what exactly is the error you're getting? Eidt the question and cut and paste the whole line you get off your compiler that describes the error.In the meantime there's a line number with the error. Have a look at the line it says the error...
3 Oct 2010 by Aescleal
linayang wrote:this is the "testlist"function which is in "server.cpp"file.Why isn't it in an include file? Unless you're using a compiler based on EDG you can't export a template definition from a source file and just include the prototype somewhere. Whatever calls testlist needs to see...
3 Oct 2010 by Aescleal
As router's a template don't you get an error in main at:Router integerRouter;?Cheers,Ash
26 Oct 2021 by af asali
hello. please write this algorithm (following picture link) (for example 1-start 2-declare sum,n,t,i 3-read n ....) many many thanks. https://atechdaily.com/resources/images/posts/2021/1/506/flowchart-for-series-of-s-1-3-5-7.png[^] What I have...
1 Oct 2010 by After2050
This article demonstrates how to create public and private members in JavaScript through a sample.
26 Sep 2010 by After2050
This article demonstrates the steps in creating a simple jQuery plug-in with a sample called Map Scroller.
15 Oct 2010 by After2050
Describes about five interesting tips in JavaScript.
5 Sep 2012 by AfterShave
How to print contents of Rich Text Box in VB.NET? Is it easy?
5 Sep 2012 by AfterShave
How to indent a paragraph in rich text box?
5 Sep 2012 by AfterShave
How to load an image in a rich text box control? I mean that if i save a document that contains an image, how to load this document without loosing the image?
5 Sep 2012 by AfterShave
How to insert a hyperlink in rich text control in vb.net? I'm making a text editor and i need it.
6 Sep 2012 by AfterShave
How to use the chart control in vb.net or c#?And If I Know well Visual Basic Programming, does it mean that i know and C Sharp programming?
6 Sep 2012 by AfterShave
What is help provider in VB.NET? How to use this control?
12 Sep 2012 by AfterShave
How to draw lines in a picturebox if a button is clicked?
19 Sep 2012 by AfterShave
I have searched over the web and i can't find an answer. How to resize a picture box to fit an image that loads a user?
20 Sep 2012 by AfterShave
How can I add something like msgbox in a form if close button is pressed? I mean that if the close button is pressed then a dialog appears with different choices.