I am programming in C, using the Windows API, and would like to know how I could draw separators.
I'm a total noob when it comes to writing GUI applications, so I may need a code example.
It won't let me post the picture. Btw, Someone from Reddit.programming sent me over here. So thanks!
TITLE MASM Template
; Description
;
; Revision date:
INCLUDE Irvine32.inc
.data
myArray BYTE 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
.code
main PROC
call Clrscr
mov esi, OFFSET myArray
mov ecx, LENGTHOF myArray
mov eax, 0
L1:
add eax, [esi]
inc esi
loop L1
call WriteInt
exit
main ENDP
END main
Results in:
-334881242
Hi..
I have to parse xml file and after parsing I have to out related data in sqlite by using c#.
I have parsed the xml file but not able to transfer those data into Sqlite data base.
There are some problem while doing so.
as I am not able to find System.Data.Sqlite even I have installed sqlite.
Thanks...
How can I localize/internationalize attribute values in .NET?
My specific example is for ASP.NET web parts such as WebDisplayName, WebDescription, etc. where I inherit from the base class that uses these attributes.
Also, is there any difference to doing this with attributes declared in my own classes?
Thanks!
Everytime I load my model into XNA, I can usually see it far off in the distance. When I change some parameters and make it zoom up close, 10/10 times it's rotated funny and I'm set with the task of rotating it. Is there any easy way to do it except by experimenting? Or am I exporting it wrong (using Blender)? Is there any value I should set the objects in my 3d scene to be before exporting it so they appear 'upright'?
I am new to the language and I need to know what are the top things that are absolutely necessary to know in order to make a fully functional website or web app using the Ruby programming language?
Mainly Ruby on Rails with Rake and other tools that mainly use Rake.
Update: I know many other languages like C++, Java, PHP, Perl, etc, etc ....
Update 2: This is great ... keep 'em coming!
I'm currently learning the fascinating J programming language, but one thing I have not been able to figure out is how to filter a list.
Suppose I have the arbitrary list 3 2 2 7 7 2 9 and I want to remove the 2s but leave everything else unchanged, i.e., my result would be 3 7 7 9. How on earth do I do this?
I need to convert a number which gives decimals in factored format in to decimals,
i.e. 11.16 is 11.5 in decimal. This is because 16 is in base of 32 and 11.16 should be read as 11+16/32 = 11.5
I get 11.16 as a string and I need to change it to 11.5 as numeric in MS SQL(2005) database.
Any shorter way of doing this rather than splitting strings,converting to numerics,maths,convert to string, concatenate and then convert to numeric?
I have a site where people upload videos, which are converted to .flv format. Simple.
I wanted to also convert to an mp4 format that will "stream" to an iphone and blackberry, or allowed to be downloaded to either, for later viewing.
Can someone post a working ffmpeg line to accomplish this task?
Closest I got was this (which doesn't work)
ffmpeg -i in.avi -f mp4 -vcodec libx264 -maxrate 1000 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec libfaac -s 480x320 -ab 128k -qscale 7 out.mp4
I'm still pretty new to Android and programming in general, and I can't seem to get the command line tools packaged with the Android SDK to work. I'm running Mac OSX and each time I try to run layoutopt, for example, the terminal returns, *-bash: cmd: command not found
*
Also, is it okay to have my SDK located in the Developer directory and my android project in some unrelated directory when using these tools?
I've never done any unit testing before, and would like to learn what it is and how it can be useful in my Python code.
I've read through a few Python unit testing tutorials online but they're all so complicated and assume an extended programming background. I'm using Python with Pylons to create a simple web app.
Any simple examples would be greatly appreciated.
Thanks!
Hello there!
I'm just started on playing around with the canvas HTML5-object. For the sake of performance tests, I have made a little ping pong game (http://bit.ly/arTPut). Apart from my quick'n'dirty programming skills, I believe, that there are also some performance boosts, I haven't used. Especially, the ball seams to be blue with a little red-touch, but by my decleration it should be yellow. Would be very nice, if someone could help me!
Greetings, Vilius
Hello everyone,
What do you consider a better programming practice: passing objects as pointers or references to functions. What do you do for input validation?
Thanks.
What's the story behind the ::'s sometimes token name
T_PAAMAYIM_NEKUDOTAYIM
I'm mainly interested in knowing if
This is an abbreviation for something else
This is a phrase in a language other than English, and if so what's the language and what's a rough translation
This is some obscure-to-me programming term
Drunk Developers
Thanks!
I have configured the wildcard DNS of *.mydomain.com and it's all working properly. My question is which of these should I rely on identifying client subdomain requests?
$_SERVER["HTTP_HOST"]
$_SERVER["SERVER_NAME"]
$_SERVER["SCRIPT_URI"]
They all seem to contain the subdomain part I want but after reading this article by Chris: http://shiflett.org/blog/2005/feb/more-on-filtering-input-and-escaping-output, I'm lost at see and there appears to be no safe way to do this?
Any idea on accomplishing this task securely?
Hi
i want to do some activity on sms after user read it,
so how can my background service in android know that particular sms is now read(when my service start work) to react for some task.
is there system generate any integer when user read sms. if it generate than how will i get?
if anyone have any idea than share it.
How would i go about having my site know lets say "IE User Visit's" and my site goes oh there on IE pop up lightbox or something. needs to support html. but say there on Mozilla or safari base browsers it just goes it because radius is supported by them
I got infected by a virus. It looks like I removed it, but it somehow injected a few more processes (I can see them in the task manager) that respawn when I kill them (somehow). Is there a way to destroy those process to stop them from respawning, or in the case something else is respawning them, to kill that "something"?
I have a computationally expensive task in perl, and would like to inform the user that computation is ongoing by printing out a period after each portion of the computation is completed. Unfortunately, until I print a "\n", none of my periods are printed. How can I address this?
I have a webapp in ASP.Net with a VB codebehind. I need a List variable I have declared to persist as long as the person is on the page, but currently any time a control posts back to the code, everything is cleared out. I am completely new to ASP.net, so I have no idea if this is even possible. Can it be done with a Session variable? Those seem to me to be limited to base types, but I could be wrong.
I have a computationally expensive task in perl, and would like to inform the user that computation is ongoing by printing out a period after each portion of the computation is completed. Unfortunately, until I print a "\n", none of my periods are printed. How can I address this?
ASP.NET MVC helpers generates URLs with slash, I use <base /> tag for my project, so it possible to place application to folder. Is it possible to generate relative URLs without first slash?
Thanks!
Hi
Hoe to get the full path of the file that saved on into sharepoint document library. I have one requirement, in this if i upload one file to the document library, then i want to save the Doc path of the same to the DB. please help me to implement this task.
Thanks in advance..
I have a need to create a utility in Suze Linux. The utility will make modifications to some text files, and then use the information in those text files to program a device in the computer using a different executable which accepts command line parameters.
I am fluent in c#, but have never worked with Linux. Should I take the time to learn Gnu C++ to do this, or install Mono? How would I execute the programming utility and pass it command line parameters?
I want to build a model engine for a model base testing application. I assume there are some refernces that can be helpfull. I would like to use the cool features of WPF. Is there anything like this that exists? or any other helpful recommendation?