It looks like you can host native code on Azure: http://msdn.microsoft.com/en-us/library/dd573362.aspx. Is it possible to run a socket server (listening tcp/udp) here? And even hosting a CLR on top?
CPU Cycles, Memory Usage, Execution Time, etc.?
Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code runs?
I have written a large C# app with many methods in many classes.
I'm trying to keep a log of what gets called and how often during my development. (I keep a record in a DB)
Every method is padded with the following calls:
void myMethod()
{
log(entering,args[]);
log(exiting,args[]);
}
Since I want to do this for all my methods, is there a better way to do this then having to replicate those lines of code in every method?
ActionScript 3 - CS5
I'm new to Flash and wondering how to change fill color from code. Something like this -
btnRed.fillColor = "0xff0000";
Thank you for your comment!
Is there a book or some other online resource that covers common code-level UI patterns (not widgets/components per se) and idioms. I'm looking for a resource that goes into some depth on MVC, event models, delegates, etc. Something in a similar vein to the POSA series would be excellent. I'm looking for something that is as platform-agnostic as possible, but I'm not sure if that even IS possible.
I get an error that says
Parse error: syntax error, unexpected
T_PRIVATE in
E:\PortableApps\xampp\htdocs\SN\AC\ACclass.php
on line 6
while trying to run my script. I'm new to classes in PHP and was wondering if someone could point out my error. Here's the code for that part.
<?php
class ac
{
public function authentication()
{
private $plain_username = $_POST['username'];
private $md5_password = md5($_POST['password']);
$ac = new ac();
Hi
please help me, I have some textarea data which needs to be changed when the user select different option from a <select>.
can you please give me some javascript easy code to do that
please i don't want jquery things
can any one give me the source code for mp3 streaming blackberry java application with play/pause, volume slider controls... with background too...
thanks in advance.
:)
Hi,
I'm developing a tool that searches the keyword entered by the user on a given site. My problem is, it searches the keyword only on html/web pages but not on the PDF/MS-Word files found on the site.
Can anyone suggest me some api/tool or provide the code that can search text from the given online PDF/MS-Word/Text file?
ActionScript 3 - CS5
I'm new to Flash and wondering how to change fill color from code. Something like this -
btnRed.fillColor = "0xff0000";
Thank you for your comment!
I am programming Android applications, and the best way here may or may not be the same as Java in general.
I simply want to be able to set a debug flag that will only execute certain portions of code when it's set to true––equiv to C++ setting a preprocessor #define DEBUG and using #ifdef DEBUG.
Is there an accepted or best way to accomplish this in Java?
Right now I'm just going to set a variable in my Application object, but I don't imagine this is the best way.
Hi,
I have a nested loop that I'm using foreach, DoSNOW, and a SNOW socket cluster to solve for. How should I go about profiling the code to make sure I'm not doing something grossly inefficient.
Also is there anyway to measure the data flows going between the master and nodes in a Snow cluster?
Thanks,
James
Why is the following VB.NET code setting str to Nothing in my VS2005 IDE:
If Trim(str = New StreamReader(OpenFile).ReadToEnd) <> "" Then
Button2.Enabled = True
TextBox1.Text = fname
End If
OpenFile is a Function that returns a FileStream
Background: I have been attempting to read the rating that is assigned in Adobe Bridge CS3 using the creative commons Metadata toolkit for php without success. I am using shared hosting so I do not have an oppotunity to recompile php with different modules.
Is php code available that could be used to read the rating that is embedded in the .jpg file? I have read that this is an xmp (xml) formatted section within the file.
What C++ static code analysis tool are there on Microsoft Windows, and which would you recommend?
Please state whether a particular tool relies on cygwin, and whether it cost money. One per post as per for voting up & down.
Similar Question: http://stackoverflow.com/questions/141498/what-open-source-c-static-analysis-tools-are-available
I know the iPhone has a site with sample apps and code for the iPhone. Are there any resources out their for the iPad?
I would like iPad specific examples like using split view, etc.
I am a complete n00b here. Can someone please post some Delphi code to
create a database
add a simple table
close the database
then, later
open a database
read each table
read each field of a given table
perform a simple search
Sorry to be so clueless. I did google, but didn't find a useful tutorial ...
Is there a way to create custom collapsable code regions in Xcode similar to how Visual Studio can fold around #region/#endregion blocks?
It would be nice to throw all autogenerated content into a region that I can fold away until I need to look at it. #pragma mark doesn't seem to do the trick.
Using the stock Sun 1.6 compiler and JRE/JIT, is it a good idea to use Duff's Device to unroll a loop? Or does it end up as code obfuscation with no performance benefit.
Hello,
The formatter in Delphi 2010 is really an annoying thing to me.
I prefer formatting my code manually.
I believe I do it better.
How can I disable it?
NOTE: Answers on why I don't use it in the first place will not be accepted. I need it switched OFF. Nothing more, nothing less.
Thank you.
I Want to know how to disable the usb drives through java programming,Can any one give the code for this or tell me the exact way to do this.............