Comment by BobbyShaftoe on Is there programming language which can tolerate...
I'm not sure people understand what the questioner is asking. It's not about if try/catch exception handling exists. It's about whether there is a language that will, without any other constructs,...
View ArticleComment by BobbyShaftoe on Linker error LNK2038: mismatch detected in Release...
Have you don a "clean" first?
View ArticleComment by BobbyShaftoe on Which Java web framework closely resembles ASP.NET...
@Jeremy-Petzold, that's not very productive.
View ArticleComment by BobbyShaftoe on C: Error opening file from string name
Do a perror("fopen"); in your NULL check.
View ArticleComment by BobbyShaftoe on Heard of a deconstructed kernel project?
Are you talking about a microkernel?
View ArticleComment by BobbyShaftoe on At what rate are the number of cores per CPU...
That's a pretty long time. Out of curiousity, why can't you make it arbitrarily parallel?
View ArticleComment by BobbyShaftoe on Better way for storing database IDs and lookup names
Why don't you store all of this data, including the groups, in a database?
View ArticleComment by BobbyShaftoe on Get time from database and compare
What database server are you using?
View ArticleComment by BobbyShaftoe on Best practice: best database naming convention for...
I'm not sure I really agree that that very angry looking naming convention is considered "best practice" in the "SQL world." Just sayin ...
View ArticleComment by BobbyShaftoe on Not giving proper message, when my .ini file's...
@HassanNisar, I agree that File.Exists returns false in this case but really it will always return false given that the result of ReadValue, as I can tell, in this case, will never be a valid file path...
View ArticleComment by BobbyShaftoe on Copy string in constructor
Yes, they are automatic properties. In C# there is this notion of properties. You can make the "get;" have special code in the body, in C# 3.5, this shortcut was added so that you could have properties...
View ArticleComment by BobbyShaftoe on C: Sorting Big Data; Not in Memory
To everyone commenting about this: There are cases where you need a disk aware sorting method. What if the file was 1TB? Even though 10,000,000 ints may not be a lot for many systems, the user may be...
View ArticleComment by BobbyShaftoe on php output to javascript array with json
Similar to: stackoverflow.com/questions/13272406/…
View ArticleComment by BobbyShaftoe on How could I get square root of a symbol in python?
This should not be closed. The user is using a library called sympy. I suggest the user should update the question to make it clear that Symbol() is coming from this library; this will clear up the...
View ArticleComment by BobbyShaftoe on how to find the sum of all acolumn and row in 2d arry
It would be helpful as @Shubham discusses to show to declaration / initialization of summ. If this does not solve the issue, it would also be good to explain what is not working exactly, what values do...
View ArticleAnswer by BobbyShaftoe for How do you generate SQL using LINQ?
So, you should download LinqPad:http://www.linqpad.net/This will give you some nice information about what LINQ is doing.
View ArticleAnswer by BobbyShaftoe for Effcient method for ajax autocomplete query on big...
Well, you shouldn't be querying. This should be cached. Think about it like this. Let's say there are 28,000 tags on SO. Let's say each tag is 128 bytes (it's not). That's just 3,584,000 bytes...
View ArticleAnswer by BobbyShaftoe for Help creating the necessary TSQL for this basic...
There are so many ways to do this and depends heavily on your schema. This is one way. Obviously, this is not a complete schema.ProductCategory(Id, CategoryName)Product(Id, ProductCategoryId,...
View ArticleAnswer by BobbyShaftoe for Is my simple quiz database with topics & subtopics...
Sure, this is normalized and looks fine given your requirements. However, you may have left off the subtopic_id on the question table.
View ArticleAnswer by BobbyShaftoe for Which Java web framework closely resembles ASP.NET...
Have you considered the Play! Framework? Are other options are things like Spring MVC. Play is pretty lightweight but gives you some features you might be accustomed to already.
View ArticleAnswer by BobbyShaftoe for C++: How to deal with NULL values (e.g. from a...
From http://art-blog.no-ip.info/wikipp/en/page/ref_dbixx_row :Function cols() returns number of columns in the row. isnull() returns if specific filed is null, using it's column number (starting from...
View ArticleAnswer by BobbyShaftoe for Is there a way to program for gameboy?
http://www.loirak.com/gameboy/gbprog.phpFrom link:Have you ever dreamed of becomming a game programmer? Today is your lucky day, ...
View ArticleAnswer by BobbyShaftoe for Various clients to web server architecture
Well, you should use something like the Model View Controller architecture, which would allow you to achieve your goal of code reuse. Your rich client application would simply use the JSON/XML based...
View ArticleAnswer by BobbyShaftoe for WHY I got seg fault here? need help. Want to put...
You did allocate space but you you are passing the wrong thing. Try this:#include <stdio.h>#include <stdlib.h>int main(){ int num = 1; char test[8]; sprintf(test,"%d",num);...
View ArticleAnswer by BobbyShaftoe for ASP.NET Error: Could not load file or assembly...
Close your solution, shutdown IIS, go to:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\And delete all of those files. Then restart IIS and try it all again.
View ArticleAnswer by BobbyShaftoe for WMI "installed" query different from add/remove...
All that Add/Remove Programs is really doing is reading this Registry key:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
View ArticleAnswer by BobbyShaftoe for .NET convert number to string representation (1 to...
A conversion from integer to long form English... I could write that ;-) is a pretty good article on the topic:using System;public class NumberToEnglish { private static string[] onesMapping = new...
View ArticleBatch Printing PDFs from ASP.NET
I have a situation where in a web application a user may need a variable list of PDFs to be printed. That is, given a large list of PDFs, the user may choose an arbitrary subset of that list to print....
View ArticleAnswer by BobbyShaftoe for Is bool a native C type?
No, there is no bool in ISO C90.Here's a list of keywords in standard C (not...
View ArticleAnswer by BobbyShaftoe for Connect to wireless network
You might find this project interesting. It is just a .NET wrapper on the native API. You should be able to call this from PowerShell without too much trouble:http://managedwifi.codeplex.com/
View ArticleAnswer by BobbyShaftoe for Where to get started with APIs
An API is an Application Programming Interface. This is really a generic term for a lot of different sort of things. I'm assuming you mean "Web APIs" which are usually RESTful or SOAP based. The sort...
View ArticleAnswer by BobbyShaftoe for Two types of array one is string and the other is...
You are not incrementing the index variable. I have incremented it. This is not really the best way to do this but I don't entirely understand what exactly you want to do. I hope this modification...
View ArticleAnswer by BobbyShaftoe for Where is Juval Lowy's ServiceModelEx library for WCF?
The latest version is maintained on IDesign's site here:http://idesign.net/Downloads/GetDownload/1887Older version are available on the O'Reilly site.Programming WCF Services 3rd Edition (PWSTE)...
View ArticleHow to call a SOAP web service on Android [closed]
I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to...
View ArticleAnswer by BobbyShaftoe for Increasing (or decreasing) the memory available to...
From: http://gking.harvard.edu/zelig/docs/How_do_I2.html (mirror)Windows users may get the error that R has run out of memory. If you have R already installed and subsequently install more RAM, you may...
View ArticleAnswer by BobbyShaftoe for How can I show a tooltip on a disabled button?
So assuming your control is called button1 you could do something like this.You have to do it by handling the MouseMove event of your form since the events won't be fired from your control.bool IsShown...
View ArticleAnswer by BobbyShaftoe for Does Java have buffer overflows?
Yes and no. No, in that you cannot really create mistakenly open yourself up to a buffer overflow vulnerability because it is a managed memory model. However, there can be buffer overflow...
View ArticleAnswer by BobbyShaftoe for How to detect Windows 64-bit platform with .NET?
Quickest way:if(IntPtr.Size == 8) { // 64 bit machine} else if(IntPtr.Size == 4) { // 32 bit machine} Note: this is very direct and works correctly on 64-bit only if the program does not force...
View ArticleAnswer by BobbyShaftoe for Algorithms for Simulating Fluid Flow
This is not my area of research but I believe this is considered the canonical work:Fluid Simulation for Computer...
View ArticleAnswer by BobbyShaftoe for Difference between racearound condition and deadlock
Think of a race condition using the traditional example. Say you and a friend have an ATM cards for the same bank account. Now suppose the account has $100 in it. Consider what happens when you attempt...
View ArticleAnswer by BobbyShaftoe for What does a "CALLBACK" declaration in C do?
The "CALLBACK" is a calling convention. There are other kinds of calling conventions. CALLBACK is the same as __stdcall.http://www.codeguru.com/cpp/cpp/cpp_mfc/callbacks/article.php/c10557Some more...
View ArticleAnswer by BobbyShaftoe for How do I get/set a winforms application's working...
So, you can change directory by just using Environment.CurrentDirectory = (sum directory). There are many ways to get the original executing directory, one way is essentially the way you described and...
View ArticleAnswer by BobbyShaftoe for How do I sort a vector of custom objects?
In your class, you may overload the "<" operator.class MyClass{ bool operator <(const MyClass& rhs) { return this->key < rhs.key; }}
View Article