I am way too indecisive.
I have an idea for a (admittedly craptastic) GUI program, so I start writing it in C# .NET WinForms.
Then like halfway through I'm like, damn I should have written this in Qt.
So I start writing it in Qt and remember why I hate C++ STL iterators so much.
So in my head I go
LINQ C++ STL
So I'm like, maybe I'll do it in WPF, I like markup to make UIs hey this is kinda like web development (read: ez pz)
BUT ITS LIKE WHY GOD WHY CANT I JUST PICK ONE AND COMMIT
Hi guys, I had written a program in Python 3, but now want to convert it into Python 2 code. Are there any utilities to do that automatically?
Thanks, R
I'm using VS 2010, and I'm wondering how I can get my c++ program to read a file using standard input while debugging. I know how to do it from command prompt, but not when debugging.
Basically I want it to read in a file with cin instead of me typing stuff - but in debug mode.
I have a client and server program (both in Obj-C) and I am transferring files between two devices using the programs.
The transferring is working fine, but I would like to display to the user what transfer rate they are getting.
So I know the total size of the file, and how much of the file has been transferred, is there a way to figure out the transfer rate from this information, and if not, what information do I need to calculate the transfer rate?
Thanks
Hello. Since my pc's fan is very loud, I'd like to make myself a program to "shut it up" when it's not required to be running at full speed. I want to make it with python, so is there any module that can detect the temperature and/or set the fan speed?
As the title suggests, how can I tell a JVM thrown exception from a Programmatically(does this mean, thrown by a programmer or the program) thrown exception ?
JVM Exceptions
1) ArrayIndexOutOfBoundsException
2) ClassCastException
3) NullPointerException
Programmatically thrown
1) NumberFormatException
2) AssertionError
Many Thanks
i want my tween to yoyo until the program is closed, but for some reason my tween is only "yoyoed" about 10 times before it just stops. is this normal?
var myTween:Tween = new Tween(boxSprite, "alpha", Regular.easeInOut, 1, 0.25, 1, true);
myTween.addEventListener(TweenEvent.MOTION_FINISH, yoyo, false, 0, true);
function yoyo(evt:TweenEvent):void
{
evt.target.yoyo();
}
I have been trying to learn assembly for a few years now. I get to do a "Hello, World" program but never further. I find it so hard. Is anyone able to point me to a place or maybe even themselves, teach me some? I have prior programming experice mainly in python. So i am not completely unfamiliar with programming.
I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).
Why?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()
Console.WriteLine("foo")
Console.Beep(800, 100) 'confirm this function is called'
Me.Close()
End Sub
Is it possible to detect GSM mobile (any kind) which connected
through serial port to computer and then be able to send SMS through
this mobile phone to other mobile phones from asp.net website running under iis(only 1 system), could anyone help me and guide
me, I wrote a program which could open COM port but still couldn't
detect mobile phone and send SMS through it.
if i modify a source file in a piece of mit licensed code does that mean i need to open source it too or can i keep it closed source?
Basically if i distribute my program which uses a piece of modified mit licensed code and somebody asks for the mit code, do i just point him the original piece of code or do i have him my modifications too?
example:
buil.bat script
start /B webdev.webserver.exe /port:3234 /path:C:\projects\src\XYZWeb /VPATH:/XYZWeb
when program run this script also execution stop. How to continue execution after running this script. Problem is that build.bat never end and you must manually close it.
i look here http://ss64.com/nt/start.html but no command to conitinue executing while webdev.webserver is running.
I would like to program Java servlets using Eclipse and I plan on deploying them using Tomcat. I think I can build the projects using Ant which is bundled with Eclipse. I have the standard Eclipse IDE. What options do I have for doing Servlet development in Eclipse? What changes do I need to make to Eclipse? Do I need to install a plug-in?
I have a textfile which my Java program is modifying and putting into an HTML file for display.
However, this textfile contains lots of HTML unsafe characters such as "<" and the "" which would need to be encoded into & gt; (sans space) and & lt;.
Is there some library method I can use to sanatize my text document to replace all these HTML special characters with their safe encoded equivelants?
Hi
I'm trying to use some library code written in scala from a java program.
I have a function that returns an Array (a scala Array) and I thought it would be possible to do
Tree[] = ScalaObject.myScalaFunction()
But the I get this error :
[error] found : scala.runtime.BoxedArray
[error] required: org.grammaticalframework.Trees.Absyn.Tree[]
What is the correct way to use a scala array in java ?
Can someone please write to me source code in Java? I have a task: create a program, that contains two dimensional array (with numbers) and the programm needs to sum zeros in each column and then get out the number of column in which the zeros are least.. thanks!
In a Clojure program, I have a sequence of numbers:
(2 3 4 6 8 1)
I want to find the longest sub-sequence where the items are sequential:
(2 3 4)
I am assuming that it will involve (take-while ...) or (reduce ...).
Any ideas?
hello,
is it possible to run any Command Line based program or batch file and capturer (re-direct) the out put to a text box LIVE
the CL takes time and it produce text!
something like tracert.exe (it takes time and produce good amount of text).
actually I will work with tracert.exe and I like to capture the output live and show it in a text-box while it is running
cheers
Hi all
I have a program that creates a small file in the Bin directory for the purpose of tracking a license (that's the intention), all works fine when debugging but I've just realized that when I run it on a IIS server under the anonymous user account (IUSR) the file isn't created as IUSR only has read permission (I know this is correct but drat!).
Can I write to another location under IUSR account or can I run my code under 'Local Service' account?
Thanks
Hey all,
I'm trying to make a system call in Python and store the output to a string that I can manipulate in the Python program.
#!/usr/bin/python
import subprocess
p = subprocess.Popen("pwd")
# edit - actual command I want to store output of
p2 = subprocess.Popen("ntpq -p")
I've tried a few things including some of the suggestions here:
http://stackoverflow.com/questions/1996518/retrieving-the-output-of-subprocess-call
but without any luck.
Many thanks!
Hi,
I want to access a file on remote machine(win2k3, 10.10.20.30), but i couldn't understand how to login to that machine in my program. is there any simple win api that takes network path, credentials and returns the handle?
i just want to access \10.10.20.30\c$\test.txt,
WNetAddConnection2, WNetAddConnection3 are little confusing. Any suggestion will be helpful.
I am trying to sign a token object using SHA1.
I am using bouncycastle as the security provider.
Whenever the program tries to sign something it gives me this error.
java.security.SignatureException: java.lang.IllegalArgumentException: input data too large.
What is the maximum size for signing something?
Do you have any suggestions about how I can sign this object?
Hi,
I am making an application which uses a separate program to unzip some files. How can I compile my exe to contain the unzipping exe inside so that I only have one file instead of two.