text
stringlengths
8
267k
meta
dict
Q: LINQ DBML isn't letting me insert, update, delete or select data from any tables? Why? I've created a DBML file for a LINQ to SQL mapping and after dragging all of my tables into the designer surface. In the properties of each table, the "Delete", "Insert" and "Update" are grayed out so they're not editable like the...
{ "language": "en", "url": "https://stackoverflow.com/questions/345492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is missing from Silverlight 2's version of .Net? I've just started developing in Silverlight 2 and have not run into any "missing parts" of .Net that I was using in the full version. Have you found anything to be missing from Silverlight 2's version of .Net that (1) you missed, (2) really needed, or (3) had to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you diff two pipelines in Bash? How can you diff two pipelines without using temporary files in Bash? Say you have two command pipelines: foo | bar baz | quux And you want to find the diff in their outputs. One solution would obviously be to: foo | bar > /tmp/a baz | quux > /tmp/b diff /tmp/a /tmp/b Is i...
{ "language": "en", "url": "https://stackoverflow.com/questions/345505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "156" }
Q: what's the runtime equivalent of c# 'bracketed' type cast suppose I have an enum [Flags] public enum E { zero = 0, one = 1 } then I can write E e; object o = 1; e = (E) o; and it will work. BUT if I try to do that at runtime, like (o as IConvertible).ToType(typeof(E), null) it will throw InvalidCastExcep...
{ "language": "en", "url": "https://stackoverflow.com/questions/345506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I delete the last N lines of a file? Can someone give some hints of how to delete the last n lines from a file in Perl? I have a very large file of around 400 MB, and I want to delete some 125,000 last lines from it. A: As folks have suggested Tie::Array already, which does the job well, I'll lay out the ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/345513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: parsing a line in bash I have a file that has one entry per line. Each line has the following format: "group:permissions:users" Permissions and users could have more than one value separated by comas like this: "grp1:create,delete:yo,el,ella" I want is to return the following: yo el ella This is what I have s...
{ "language": "en", "url": "https://stackoverflow.com/questions/345518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to disable a select box not inside a form? I can't seem to be able to disable a select box when the select tag is not nested inside a form tag. Some things I tried are (using Firefox 3): (via Jquery) $("#mySelect").attr("disabled", true); $("#mySelect").attr("disabled", "disabled"); (also) document.getElementB...
{ "language": "en", "url": "https://stackoverflow.com/questions/345540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Secure name for the admin area URL of a site? A question mainly for web developers. When you develop web applications and add an admin area to it, how do you name it? Leaving it 'admin' is a bit out of fashion and insecure. Mind sharing any other nouns, verbs, adjectives or whatnot, that holds the title of any web...
{ "language": "en", "url": "https://stackoverflow.com/questions/345541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perfmon-like for Linux? In windows there is perfmon to monitor various performances aspects (called counters) of the system. Is there a perfmon-like for Linux? especially, in interested in... * *CPU usage (total/per process/in kernel) *Memory usage (total/per process/in kernel) ...Is it possible to store this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to get "requests per second" for Apache in Linux? In Windows for ASP, you can get it perfmon, but... How to get "requests per second" for Apache in Linux? A: You can use 'wc -l' on the access log to get the number of lines (which roughly corresponds to the number of requests...) Do that every minute and subtrac...
{ "language": "en", "url": "https://stackoverflow.com/questions/345546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to automate Matlab/Simulink/Real-TimeWorkshop code generation? I want to use a Simulink mdl to generate C files in an automated fashion. I am currently trying to use an m-script and a dos command shell, but I am having issues with a "do you want to save" dialog hanging the m-script. By experimentation I know t...
{ "language": "en", "url": "https://stackoverflow.com/questions/345547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What algorithms are good for interactive/realtime graph-drawing? What algorithms are good for interactive/realtime graph-drawing for live data and direct-manipulation? Failing that - what libraries do you use to draw graphs? Suggestions; * *Prefuse information-visualization toolkit *any others? BTW- I mean g...
{ "language": "en", "url": "https://stackoverflow.com/questions/345549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Setting up the default AspNetSqlProvider to point to remote database When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database. I ran aspnet_regsql and was able to create the membership database on the remote...
{ "language": "en", "url": "https://stackoverflow.com/questions/345559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can you hide data in text? I wish to put some text on a page and hide some data in that text. Does anybody know of any methods / patterns that have been used in the past to solve this problem? Example: I have the following text: "The cat sat on the dog and was happy." I also have the number 123. I want to hide this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why are usability evaluation methods so rarely employed? There are many usability evaluation techniques that have been developed over the history of software development. But it seems to me that they are rarely used in practice. Why aren't usability evaluation tools and methods actually used much? Or are they used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Custom UIView via UIActionSheet Is it possible to modify a UIActionSheet with a custom UIView? I have a preferences cell in one of my tables which would benefit greatly from a modal window appearing with a UIDatePicker. Having it appear as an Alert would be fantastic as well. Ideally it would be nice to get the free...
{ "language": "en", "url": "https://stackoverflow.com/questions/345572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sorting a List of Reviews Chronologically I am trying to sort a list of movie reviews in chronological order. We have two options users can choose from, chronological and alphabetical. The page defaults to alphabetical, but when people click on the chronological option, nothing happens. Here is the code we have righ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you only build a file's project using Visual Studio's Command Window? Ctrl-Shift-B, by default, builds an entire solution. An entire solution may contain many projects. Compiling all at the same time may be very slow, especially when development is only occurring on a single project. I have tried t remap Ctrl...
{ "language": "en", "url": "https://stackoverflow.com/questions/345604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove all but the last 500,000 bytes from a file with the STL Our logging class, when initialised, truncates the log file to 500,000 bytes. From then on, log statements are appended to the file. We do this to keep disk usage low, we're a commodity end-user product. Obviously keeping the first 500,000 bytes is not u...
{ "language": "en", "url": "https://stackoverflow.com/questions/345610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP File Upload...files disappearing into the great void..where noone can hear them scream I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured Can't get file uploading to work at all. Have tested locally on the Ubuntu box... and from my Vista Box. Ubuntu is running i...
{ "language": "en", "url": "https://stackoverflow.com/questions/345617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Can I Avoid Using Exceptions for Flow Control? I have been assigned a project to develop a set of classes that act as an interface to a storage system. A requirement is that the class support a get method with the following signature: public CustomObject get(String key, Date ifModifiedSince) Basically the meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/345626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using a loop to execute text file I have redirected some valuable information into a text file. How can I execute each line of that text file in a loop? What im thinking is to double space my text file, then to use a loop to execute each line invidually. I'm hoping that when i double space the text file every string...
{ "language": "en", "url": "https://stackoverflow.com/questions/345632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: multiple SQL queries in one mysql_query statement So I have an SQL dump file that needs to be loaded using mysql_query(). Unfortunately, it's not possible to execute multiple queries with it. -> It cannot be assumed that the mysql command-line client (mysql --help) is installed -- for loading the SQL file direc...
{ "language": "en", "url": "https://stackoverflow.com/questions/345637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Aptana Studio MySQL Connection String using SSH I would like to connect to a MySQL DB using SSH from Aptana Studio, does anyone know what the connection string should be? A: Try this post: http://mysqlbarbeque.blogspot.com/2008/12/ssh-tunneling-between-databases-with.html
{ "language": "en", "url": "https://stackoverflow.com/questions/345638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DVD Menu Creation in .NET Does anyone know of a good component for .NET that will allow me to create a menu and .iso for a DVD? For each DVD I have several video files and photos that I'd like to turn into a DVD automatically. A: YMMV, but it is unlikely that you would find a drop-in component that would do this....
{ "language": "en", "url": "https://stackoverflow.com/questions/345652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# windows-services - How do I handle logging exceptions? I am creating a Windows service. When an exception occurrs, I handle it appropriately and create a log. I am using the decorator pattern, as there are many different ways people will be looking at these logs. I have an email logger, a file logger, and a windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/345656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Interacting with jQuery plugin objects after their creation I have a ticker which items are updated using polling. I have written a simple jQuery plugin for the ticker which is invoked like so: $("#cont ul").ticker(); Which turns a ul into a ticker, scrolling through the li. To add new items I have to add lis to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/345680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVN creating trunk directory on existing repository I am working a project that does not have a trunk / branches / tags directory structure - ie. everything is in the root of the svn repo. I would like to create a trunk directory and in the root directory, and move everything in the root directory into the new trunk...
{ "language": "en", "url": "https://stackoverflow.com/questions/345683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: What are the tell-tale signs of bad object oriented design? When designing a new system or getting your head around someone else's code, what are some tell tale signs that something has gone wrong in the design phase? Are there clues to look for on class diagrams and inheritance hierarchies or even in the code itsel...
{ "language": "en", "url": "https://stackoverflow.com/questions/345698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: basic php form help (currency display) You guys were very helpful yesterday. I am still a bit confused here though. I want to make it so that the numbers on the rightmost column are rounded off to the nearest dollar: http://www.nextadvisor.com/voip_services/voip_calculator.php?monthlybill=50&Submit=Submit the cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/345704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: hibernate: LazyInitializationException: could not initialize proxy Here's one that has me perplexed. I'm trying to implement a basic Hibernate DAO structure, but am having a problem. Here's the essential code: int startingCount = sfdao.count(); sfdao.create( sf ); SecurityFiling sf2 = sfdao.read( sf.getId() ); sfdao...
{ "language": "en", "url": "https://stackoverflow.com/questions/345705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: restful rails model validation I am working on a rails application (I have some experience with rails). But, this time I am using RESTful to build it. I am wondering how do I validate my models in a RESTful fashion? What I mean by that is when a user enters data into a form, but the model validations prevent the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery with asp.net server button throws an error Invalid postback or callback argument I am trying to use JQuery in my ASP.Net 2.0 website in this scenario: have three asp:dropdownlist at page. First two are filled at server, third one is filled by JQuery at client side. There is also asp:imagebutton at page that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/345721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is this idiom pythonic? (someBool and "True Result" or "False Result") I just came across this idiom in some open-source Python, and I choked on my drink. Rather than: if isUp: return "Up" else: return "Down" or even: return "Up" if isUp else "Down" the code read: return isUp and "Up" or "Down" I can see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Refactoring python module configuration to avoid relative imports This is related to a previous question of mine. I understand how to store and read configuration files. There are choices such as ConfigParser and ConfigObj. Consider this structure for a hypothetical 'eggs' module: eggs/ common/ __init__.py ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is orchestration an ESB responsibility? Is an Enterprise Service Bus (a tool that acts as a mediator, a message broker, a service enabler, schema transformation enhancer, transparent location provider, service aggregator, load balancer, monitor, and all that stuff) responsible to orchestrate services? What about put...
{ "language": "en", "url": "https://stackoverflow.com/questions/345749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Now that I've converted my primary keys to GUIDs, how do I fix the performance? I'm using TopLink as my ORM and MySQL as the DB. I traded my auto-increment primary keys for GUIDs for one of my tables (alright, not quite: I'm actually using a random 64 bit integer, but that's good enough for my needs). Anyway, now qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/345753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight Tools for Visual Studio 2008 - Placing a Control Issue What is the issue with the Silverlight Tools for VS2008? I can't seem to place controls on the designer surface. This didn't work for me on two different machines. Do you have to tweak the XAML to be able to place the first control? Cursor stays a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/345758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should enums have uninitialized values . We were having a debate if enums should have uninitialized values. For example. We have public enum TimeOfDayType { Morning Afternoon Evening } or public enum TimeOfDayType { None Morning Afternoon Evening } I think that there shouldn't be any no...
{ "language": "en", "url": "https://stackoverflow.com/questions/345760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Getting Vista/Windows Search/propsys.dll properties from the shell in managed code Has anyone managed to do this? I tried making a managed wrapper class for IPropertyStore but am getting AccessViolationExceptions on the methods (i.e. IPropertyStore::GetValue) that take a pointer to PROPVARIANT (rendered as a Marsha...
{ "language": "en", "url": "https://stackoverflow.com/questions/345766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any sample code to do iPhone mulitithreading tasks? I have some slow internet task to save and load file, I'd like to do those slow tasks in some background thread. I am wondering whether that's doable, and if it is, any sample code? Then after it is finished, I'd like it to notice back to the main thread, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: lazy loading some config params, trying to come up with a pattern in Scala I want my client code to look somewhat like this: val config:Config = new MyConfig("c:/etc/myConfig.txt") println(config.param1) println(config.param2) println(config.param3) Which means that: * *The Config interfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/345788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to retrieve PHP exec() error responses? Below is the command I tried executing, without success: exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.htaccess'); When you add a die() at the end, it catches that there's an error: exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.htaccess') or die('w...
{ "language": "en", "url": "https://stackoverflow.com/questions/345794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Warnings about unused variables in Erlang I recently started Erlang, and I notice I constantly get "Warning: variable X is unused" while compiling. For example, take the following function, which finds the maximum element in a list: max([Head|Tail]) -> max(Head,Tail). max(Element,[Head | Tail]) when...
{ "language": "en", "url": "https://stackoverflow.com/questions/345795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Custom robotics for building an auto CD-loading arm Where would you recommend that I find a company to develop or buy a CD/DVD loading arm similar to: http://www.dextimus.com/ Preferably programmable via USB but if I only can get one with a serial interface that would be fine. Drivers dont matter - I can interface d...
{ "language": "en", "url": "https://stackoverflow.com/questions/345805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: tools for diffing windows binaries? Our QA team wants to focus their testing based on what EXEs and DLLs have actually changed between builds. We have a nice svn change report, but the relationship between source and changed binaries isn't always obvious. The builds we're comparing are always full clean builds, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/345815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to limit transfer rate using HttpHandler I'm programming a file transfer handler with speed limit feature, the rate based on user level. How do I control/calculate transfer rate in HttpHandler?. Some asp.net resource tell me that use Thread.Sleep will block asp.net thread pool. A: It is generally a bad idea to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firing a mainline event from a background thread in Java My question pertains to multi-threading in Java. I'm translating an app I wrote in Visual Basic 2008 into Java. There is a class in VB called BackgroundWorker, which allows the coder to perform a task on another thread, a lot like SwingWorker in Java. The only...
{ "language": "en", "url": "https://stackoverflow.com/questions/345823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Requirements or Testing? If you had to do without one or the other in a software project, which would you pick? I've had plenty of projects in which the client or PM thought they could get away without one or the other. We always paid the price. A: Turn this around and repeat after me: "Tests are requirements." ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to visualize abstract concepts (algorithm/data structure)? What's the best way to "see what is happening" in an algorithm/data structure? If it's something like a binary search I just imagine a bunch of boxes in a row, and throwing half of them out each time. Is there something more powerful tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/345832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ball to Ball Collision - Detection and Handling With the help of the Stack Overflow community I've written a pretty basic-but fun physics simulator. You click and drag the mouse to launch a ball. It will bounce around and eventually stop on the "floor". My next big feature I want to add in is ball to ball collisio...
{ "language": "en", "url": "https://stackoverflow.com/questions/345838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "275" }
Q: How long will it take to enroll in iPhone developer program? How long will it take to enroll in the iPhone developer program after paying the $99? Is there anything to do after paying it? (I mean paperwork, faxing or sending physical stuff) How will Apple pay your revenues? (In what form and intervals, and what will...
{ "language": "en", "url": "https://stackoverflow.com/questions/345862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Getting primary key after an insert in asp.net (visual basic) I'm adding a record like this: Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb") Dim odbconBanking As New OleDbConnection _ ("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" + pathString)...
{ "language": "en", "url": "https://stackoverflow.com/questions/345865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Awk matching of entire record using regular expression Using Awk I want to match the entire record using a regular expression. By default the regular expression matching is for parts of a record. The ideal solution would: * *Be general for all fields, regardless of the field separator used. *Not treat the entire...
{ "language": "en", "url": "https://stackoverflow.com/questions/345874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't VS 2008 display extension methods in Intellisense for String class Since String implements IEnumerable<char>, I was expecting to see the Enumerable extension methods in Intellisense, for example, when typing the period in String s = "asdf"; s. I was expecting to see .Select<char>(...), .ToList<char>(), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What's the difference between class 1 and class 3 roots, and the certificates signed by them? Pretty much what the question says. What's the difference between the two classes of roots? The differences between the certificates signed by such roots? What uses would a class 1 signed certificate have that a class 3 doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/345892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to Periodically Updating Labview chart when collecting multi channel data at a high rate Looking for some help with a Labview data collection program. If I could collect 2ms of data at 8kHz (gives 16 data points) per channel (I am collecting data on 4 analog channels with an National Instruments data acquisition...
{ "language": "en", "url": "https://stackoverflow.com/questions/345893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you use jQuery to connect to a .NET Webservice? Is it possible to use jQuery to connect to a .NET webservice? Maybe something I can pass a wsdl url too. A: Since it's unlikely anyone will answer, I'll just do my part to back-link humanity's knowledge. This thread is specifically for ASP.NET, but there will be o...
{ "language": "en", "url": "https://stackoverflow.com/questions/345896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Remove Apache I have multiple installations of apache on my Mac OS X 10.5 and would like to remove them including any dependencies. They are installed in 3 different directories. How can this be achieved? A: Man. OSX comes with Apache. So why and how did you install the other 2? I hope you used MacPorts to install ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic data for winforms i have played around with dynamic data website. is there something similar for winforms. if there isn't anything out there for doing the same with winforms than the question would be why not? we have a massive ERP application that we want to migrate from AS400 to .Net Winform application. m...
{ "language": "en", "url": "https://stackoverflow.com/questions/345915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Need skeleton code to call Excel VBA from PythonWin I need to invoke a VBA macro within an Excel workbook from a python script. Someone else has provided the Excel workbook with the macro. The macro grabs updated values from an external database, and performs some fairly complex massaging of the data. I need the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tell me again why we need both .NET and Windows? Why can't Windows morph into the CLR? The same way DOS morphed into Windows? We seem to have ended up supporting and developing for three platforms from Microsoft, and I'm not sure where the boundaries are supposed to lie. Why can't the benefits of the CLR (such as ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/345924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Suggestions for auto confirming MS SQL 2005 data entry in a build process I have a automated (Visual Build) build process that runs: A set of automated smoke tests (AutoIT) that enters data into a .Net WinForm app that writes to a cleanly seeded MS SQL 2005 DB. A SQL query that returns the data I want. SELECT i.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/345929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Efficient Methods for a Life Simulation Having read up on quite a few articles on Artificial Life (A subject I find very interesting) along with several questions right here on SO, I've begun to toy with the idea of designing a (Very, very, very) simple simulator. No graphics required, even. If I've overlooked a que...
{ "language": "en", "url": "https://stackoverflow.com/questions/345930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Will .NET take over C/C++ any time? This is a subjective question. I worked in Visual Basic 6.0 before coming into the .NET space. One thing I see that there are a lot of things, for which there is a need to deal with the Win32 API. As a Visual Basic 6.0 developer, there were a lot of limitations. .NET fixes some o...
{ "language": "en", "url": "https://stackoverflow.com/questions/345936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using Windows Azure Service Bus From Silverlight Is it possible to call services hosted on the Service Bus from a Silverlight application? I tried googling around but none of the results helped. Looking at the samples (EchoService) they are using a specific microsoft DLL to setup the authentication for the service....
{ "language": "en", "url": "https://stackoverflow.com/questions/345937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create Save File Dialog Box in user control? I want to open a file dialog box in user control. I used using System.Windows.Forms, but still I can't access SaveFileDialog class. Can anybody tell me how to do this? Thanks. A: You cannot use SaveFileDialog in asp.net (if I look at the tags of the question). It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Auto populate combobox IN my case i want to implement multi select auto complete combobox using html,javascript. Is there any body who knows how to implement it. Which will be similar to text field shown in stackoverflow while adding multipal tags to any question. A: If you are talking about multiple drop down boxe...
{ "language": "en", "url": "https://stackoverflow.com/questions/345943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: WPF designer won't load when binding datasource from entity framework EDIT: I have submitted a bug report and Microsoft have acknowledge that it is a bug. There is currently no ETA on when it will be fixed. Bug Report: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=386982 Official ...
{ "language": "en", "url": "https://stackoverflow.com/questions/345947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SDL Event Debug Problem I am currently trying to get SDL events to work, but problem is that the program is not working. When I ran the program; it open and closes very quickly, and the debug gave these errors: The thread 'Win32 Thread' (0xb60) has exited with code 1 (0x1). The thread 'Win32 Thread' (0xe00) has exi...
{ "language": "en", "url": "https://stackoverflow.com/questions/345966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to capture events from a dynamically created button control in asp.net? How can a program capture generates events from a dynamically created button control in asp.net? A: You can attach the event programmatically: Button myButton = new Button(); myButton.Click += new ClickEventHandler...etc A: Button Button...
{ "language": "en", "url": "https://stackoverflow.com/questions/345970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adobe AIR 1.5 Sandbox + Motherboard Speaker I'm curious if through AIR you could access your motherboard pc speaker? It's for an Alarm Type of program and would like pitch control so more than a simple beep. Can this be accomplished through AIR? Or if not in any web-based framework for that matter? Seems a bit tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/345973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which .NET frameworks allow you to create Business Entities first, then Database Do any .NET frameworks allow you to create Business Entities first then Database. In other words allow you to use DDD / Persistence Ignorance method of backing into the database later. Any tools that allow the Models/Classes you have wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/345981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which are the good open source libraries for Collective Intelligence in .net/java? Or any open source project which utilize collective intelligence extensively?. A: Take a look at the book Collective Intelligence by Toby Segaran. It covers lots of topics, such as how Amazon generates recommendations etc etc. There'...
{ "language": "en", "url": "https://stackoverflow.com/questions/345982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a JavaScript floating div signup form I'm building a site which will have a 'Login/Register' link on every page. Whenever someone clicks this link, I want a JavaScript/div based signup form to float on top of the content with a link to 'close' it if they want. I also want the capability of the div show...
{ "language": "en", "url": "https://stackoverflow.com/questions/345987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python - No handlers could be found for logger "OpenGL.error" Okay, what is it, and why does it occur on Win2003 server, but not on WinXP. It doesn't seem to affect my application at all, but I get this error message when I close the application. And it's annoying (as errors messages should be). I am using pyOpenGl...
{ "language": "en", "url": "https://stackoverflow.com/questions/345991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: For any new Win32 application development, are you foregoing .NET? Are you choosing not to use managed code for any new applications for Win32? Why? Are there resources you need that aren't available from the CLR? (Note "New" - not enhancements to existing codebases.) A: One significant reason is ease of deployment...
{ "language": "en", "url": "https://stackoverflow.com/questions/345993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Better way to revert to a previous SVN revision of a file? I accidentally committed too many files to an SVN repository and changed some things I didn't mean to. (Sigh.) In order to revert them to their prior state, the best I could come up with was svn rm l3toks.dtx svn copy -r 854 svn+ssh://<repository URL>/l3tok...
{ "language": "en", "url": "https://stackoverflow.com/questions/345997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "167" }
Q: 3d files in vb.net I know this will be a difficult question, so I am not necessarily looking for a direct answer but maybe a tutorial or a point in the right direction. What I am doing is programing a robot that will be controlled by a remote operator. We have a 3D rendering of the robot in SolidWorks. What I am loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/346009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the usefulness of project1st in the STL? I was browsing the SGI STL documentation and ran into project1st<Arg1, Arg2>. I understand its definition, but I am having a hard time imagining a practical usage. Have you ever used project1st or can you imagine a scenario? A: A variant of project1st (taking a std::...
{ "language": "en", "url": "https://stackoverflow.com/questions/346012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript Closures and 'this' I have a problem with an object I have created that looks something like this: var myObject = { AddChildRowEvents: function(row, p2) { if(document.attachEvent) { row.attachEvent('onclick', function(){this.DoSomething();}); } else { row.addEv...
{ "language": "en", "url": "https://stackoverflow.com/questions/346015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How do I remove objects from a JavaScript associative array? Suppose I have this code: var myArray = new Object(); myArray["firstname"] = "Bob"; myArray["lastname"] = "Smith"; myArray["age"] = 25; Now if I wanted to remove "lastname"?....is there some equivalent of myArray["lastname"].remove()? (I need the element ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "703" }
Q: If CHttpConnection::OpenRequest returns NULL how do I find out why c++ mfc if CHttpConnection::OpenRequest returns a null what can I use to get the internet error. The mfc artical doesn't say what a bad responce looks like. I just said it returns a handle to a CHttpFile. A: Did you see what is the error code ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/346024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB and Oracle connectivity What are the steps to connect to Oracle 9i with VB6? How can I use modules and stored procedures in VB6 and how can I call an SP? What is the method to use ADO which is helpful to insert, update, search and delete the items from the front end? A: You will need ADO to connect to Oracle (a...
{ "language": "en", "url": "https://stackoverflow.com/questions/346033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery JCrop - How to set a fixed size selection area? I'm trying to figure out how to fix the selection box size under JCrop. The documentation mentions how to set an initial selection area but not how to make it fixed size. Does anybody knows how could I make it fixed. Thanks in advance. http://deepliquid.com/cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/346045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: getting this exception [CFURL release]: message sent to deallocated instance 0x1049530 when debugging iPhone application Title says everything. I've enabled NSZombieEnabled for project. cheers A: Are you calling [justURL release] anywhere? You shouldn't, since it is autoreleased for you... A: Just a shot in the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/346047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Writing an update query in asp.net (access database) (visual basic) I have this code: Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb") Dim odbconBanking As New OleDbConnection _ ("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" + pathString) Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/346048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to log the SQL queries between a Delphi app and a MsAccess DB? I have a Delphi 7 app using ADO/MSDASQL.1 provider and I wonder if it is possible to "log" the SQL queries sent to the DB in a easy way? Just like the SQL profiler in SQL Server? A: Inside your application you can log the commands in TADO...
{ "language": "en", "url": "https://stackoverflow.com/questions/346057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ class header files organization What are the C++ coding and file organization guidelines you suggest for people who have to deal with lots of interdependent classes spread over several source and header files? I have this situation in my project and solving class definition related errors crossing over several h...
{ "language": "en", "url": "https://stackoverflow.com/questions/346058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Did you feel learning to program with turtle graphics was useful? I'm preparing to teach someone to program. When I learned the course material, I used turtle graphics for the first few exercises. In reading introductory textbooks, I have not found one that uses the technique. Did others find this approach helpful? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: C# - Can't resolve XInput namespace in DirectX SDK (November 2008) I'm just starting to play around with directx and I've read a few articles on the internet that use XInput to interface with the Xbox controller. When I try to use it in my c# app, I can't seem to find the correct assembly to reference. From what I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Configuration window for list of connections I'm writing a program that needs a configuration window for a list of connections. I have a ListBox to list the connections, and 8 or so settings for each entry. It seems I should use data bindings somehow to bind the data to something (possibly directly to the built-in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/346071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Letting users manually sort items in a webapp I would like to make a simple web app that displays 20 or so images to users and lets them manually sort the images from favorite to least favorite, either by dragging or by using some form of up/down controls, and then submit this ordering. Are there existing tools, eit...
{ "language": "en", "url": "https://stackoverflow.com/questions/346081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UTF8 MySQL problems on Rails - encoding issues with utf8_general_ci I have a staging Rails site up that's running on MySQL 5.0.32-Debian. On this particular site, all of my tables are using utf8 / utf8_general_ci encoding. Inside that database, I have some data that looks like so: mysql> select * from currency_types...
{ "language": "en", "url": "https://stackoverflow.com/questions/346092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I write message queue handling in an object-oriented way? If you had to write code that takes messages from a message queue and updates a table in a database, how would you go about structuring it in a good oo way. How would you structure it? The messages is XML data, one node per row in the table. The rows i...
{ "language": "en", "url": "https://stackoverflow.com/questions/346105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: creating a shortcut for a exe from a batch file how to create a shortcut for a exe from a batch file. i tried call link.bat "c:\program Files\App1\program1.exe" "C:\Documents and Settings\%USERNAME%\Desktop" "C:\Documents and Settings\%USERNAME%\Start Menu\Programs" "Program1 shortcut" but it did not worked. link....
{ "language": "en", "url": "https://stackoverflow.com/questions/346107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is it possible to serialize a C# code block? I'm using C# with .NET 3.5. Is it possible to serialize a block of code, transmit it somewhere, deserialize it, and then execute it? An example usage of this would be: Action<object> pauxPublish = delegate(object o) { if (!(o is string)) { return; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What is the fastest way to fill a combobox in C#? What is the fastest way to fill ComboBox in C#? * *With Add() *Bind the ComboBox to Dataset Or there is a faster way ? Thanks. A: You'll probably find that the fastest way of doing this will be to read the DB from a datareader, then call .Add() in a loop, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: WPF - how to insert image into 2nd column of Grid element As the subject says I want to insert an image into the 2nd column of grid defined with 2 columndefintions. Programmatically that is??? I cannot see how to select the column using grid.Children.insert(1, img) does not work. Malcolm A: Image imgControl = new I...
{ "language": "en", "url": "https://stackoverflow.com/questions/346116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access private member variable of the class using its object (instance) Here is a VB.NET code snippet Public Class OOPDemo Private _strtString as String Public Function Func(obj as OOPDemo) as boolean obj._strString = "I can set value to private member using a object" End Function End Class I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/346127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }