Which features do you wish were being pencilled in for future .Net releases? I'm curious to see what other language features I'm not currently aware of.
I was curious to know what would happen if i assign a negative value to an unsigned variable.
The code will look somewhat like this.
unsigned int nVal = 0;
nVal = -5;
It didnt give me any compiler error. When i ran the nVal was having strange value. Could it be that some 2's complement value gets assigned to nVal.
I'm looking for a quick bash script or program that will allow me to kick off a python script in a separate thread. What's the best way to do this? I know this is incredibly simple, just curious if there's a preferred way to do it.
We’ve got an interesting requirement that we’ll want to support multiple languages at runtime since we’re a service. If a user talks to us using Japanese or English, we’ll want to respond in the appropriate language. FxCop likes us to store our strings in resource files, but I was curious to know if there was an integrated way to select resource string at runtime without having to do it manually.
Bottom Line: We need to be able to support multiple languages in a single binary. :)
Hey guys, there is a form where the user select some of his friends and I'm curious on how I can implement a list that searches simultaneously while the user is typing a friend's name and when he selects the name the name is written in the text box(jQuery). And if the user wants to select more than one friend, when I'm inserting the names in the database, how can I separate the names that are written in one input field?
With the large amount of BCL types such as Dictionary, HashTable, List, all the IEnumerable types; I was curious to know what were some of the more advanced structures you've had to implement and for what algorithm/application.
hi all, just curious if there was a good service paid or unpaid where I can send in either a user's email address or the domain from their email address and get back if they're a known spammer or not?
thanks
I'm looking for a quick bash script or program that will allow me to kick off a python script in a separate process. What's the best way to do this? I know this is incredibly simple, just curious if there's a preferred way to do it.
I'm using VB's StringBuilder, and I was curious what is considered "best practice" for emptying the builder/setting it to a new string. Would it be something like this:
Dim str As New System.Text.StringBuilder()
str.Append("Some string to remove")
str = new System.Text.StringBuilder()
str.Append("Ahh, fresh new text!")
or is there a "Better" way?
Thanks
If I have the following structure:
Public Class UserData
Public ID As String
Public Name As String
End Class
How can I select it in a conditional like this?
Dim myUsers As New List(Of UserData)
If myUsers.Contains(.ID = "1") = True Then
...
I know that myUsers.Contains(.ID = "1") is totally wrong, but I am curious how to do something like that? Is it possible? Is this a job for LINQ?
I am curious if there is any history behind why the ^ character is used to escape the special characters <, , |, &, and ^ in environment variable names in Windows instead the '\' character that is typically used to escape special characters.
Please note that I realize there may be no reason for this, but I'd be interested to hear if there is a reason.
I have a friend who wrote code for a large array with 1,048,576 maximum elements. Everything runs fine when complied using ./make but but when using just ./ we get a segmentation fault. It's obviously not too crucial of a prob to solve. Nonetheless, I am very curious about it. if anyone has seen this or has any Ideas as why...
As we all know java program will start executing from the main method of the class. So was curious to know that is there any other way by which we can make another static method as the entry point, that is can we override this property of the JVM to start with some other method than main?
many of you will ask why do you want to do this? so want to make it clear that its just a curiosity to know about. And if it is there then it might help in many ways
Perhaps you know the story of HTTP and HTML being developed on a NeXT computer. I am curious which platform served as the first home for these programming languages:
Ada
C
C++
C#
D
Erlang
Fortran
Haskell
Java
Javascript
Lisp
Logo
MATLAB
ML
Perl
PHP
Prolog
Python
R
Ruby
Scheme
SQL
Smalltalk
I thought it might be interesting to reflect on how the machine and operating environment lead to different design decisions. Or to see if some architecture or operating system variant was particularly fruitful for programming language development. A question for the historians among us.
I have C# web application that I want it to send out an email on a certain date, such as if equipment isn't returned on the day it was due. Data is in MS SQL database.
I've got all the email code already done, and I'm just curious how do I trigger this email, say after the COB on that particular day?
Thanks,
Eric
I've Googled and poked around the Go website, but I can't seem to find an explanation for Go's extraordinary build times. Are they products of the language features (or lack thereof), a highly optimized compiler, or something else? I'm not trying to promote Go; I'm just curious.
Just curious if the tab bar UI element in screenshots is some built in class or customized.
If it is customized, then please give me a hint on what classes I might check to have something like that.
The first screenshot is initial tab bar. When I tap on the last icon the tab bar smoothly(animated) resize itself as on second screenshot. If I press the edit button the icons are shaking(as on iPhone home) and I'm able to arrange them.
first
second
I'm curious if there is anyone around here that has inside information on the implementation details of window properties (SetProp, GetProp, etc.) in Windows.
SetProp @ MSDN
GetProp @ MSDN
For instance, how are storage and lookups done?
If you are looking for /Resource/Id and that resource does not exist, I had always though that 404 was the appropriate response. However, when returning "null" from a Jersey handler, I get back a "204 No Content". I can likely work with either one, but am curious to others thoughts on this.
To answer my own next question. To get jersey to return 404 you must throw an exception.
if (a == null)
throw new WebApplicationException(404);
Anyone have numbers on how many machines / % of internet uses have Google Native Client?
I'm curious about google NaCL as a platform: it seems to combine the best of the web (just a webpage, accessible on any machine) and desktop apps (OpenGL, C/C++ power). The only question is -- what percent of the world actually use it.
Anyone have data on this?
Thanks!
I'm curious to know who is testing against Chrome.
I am mainly because it has become my primary browser, so all development is taking place on Chrome, then i test with IE and Firefox.
I'm from a WinAPI / C++ background, and I'm curious as to what the Java world uses in place of a threaded message loop in a worker thread to handle communications and interactions between threads. The idea is to use a message pump in both the worker thread, and the main thread, and have them posting messages back and forth. This solution is very WinAPI / C++ centric, and probably not the preferred method of achieving this goal in Java.
What is the 'Java' way to do something like this?
Just curious how many people are actually running 2010 and what's your feedback so far?
Can I run 2010 concurrently with 2008 without issues?
Also, are 2008 projects 100% compatible with 2010 and if so should I just uninstall 2008?
Thanks for any feedback.
I personally like the 'exclusive or' operator when it makes sense in context of boolean checks because of its conciseness. I much prefer to write
if (boolean1 ^ boolean2)
{
//do it
}
than
if((boolean1 && !boolean2) || (boolean2 && !boolean1))
{
//do it
}
but I often get confused looks (from other experienced java developers, not just the newbies), and sometimes comments about how it should only be used for bitwise operations. I'm curious as to the best practices others use around the '^' operator.
I've noticed many questions on here from new programmers that can be solved using libraries. When a library is suggested, often times they respond "I don't want to use X library" Is it the learning curve? or ? Just curious!