text
stringlengths
8
267k
meta
dict
Q: How to compare and search list of integers efficiently? I have a database populated with 1 million objects. Each object has a 'tags' field - set of integers. For example: object1: tags(1,3,4) object2: tags(2) object3: tags(3,4) object4: tags(5) and so on. Query parameter is a set on integers, lets try q(3,4,5) obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/408855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to serialize Python objects in a human-readable format? I need to store Python structures made of lists / dictionaries, tuples into a human-readable format. The idea is like using something similar to pickle, but pickle is not human-friendly. Other options that come to my mind are YAML (through PyYAML and JSON (...
{ "language": "en", "url": "https://stackoverflow.com/questions/408866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: SSRS engine This is regarding SSRS engine. For my project we are not going to buy SQL server software. Instead of what I just want to know, is there any posibility to use only SSRS engine. So that I can have the ref. (DLL) And then I can use wherever I want. Please help on this. A: If we don't consider the technica...
{ "language": "en", "url": "https://stackoverflow.com/questions/408868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails has_many :through Find by Extra Attributes in Join Model New to both Ruby and Rails but I'm book educated by now (which apparently means nothing, haha). I've got two models, Event and User joined through a table EventUser class User < ActiveRecord::Base has_many :event_users has_many :events, :through => :...
{ "language": "en", "url": "https://stackoverflow.com/questions/408872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Mass Memory Default directory in my application i want to support both mass memory and memory card. but is the defualt drive name for mass memory "F:" ? or it might change . and how could i know if it changes ?!? Note : Lang is C# , windows application , Mobile series :S60 thnx A: I think you mean Mass Storage Devi...
{ "language": "en", "url": "https://stackoverflow.com/questions/408880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connecting to an SQL Server mdf file via PHP I currently have a school assignment that involves both PHP and asp.net. Now the assignment is that I make an E-commerce website with PHP and it's CMS with asp.net. Therefore both websites connect to the same database which is in SQL Server. At the moment using Visual Stu...
{ "language": "en", "url": "https://stackoverflow.com/questions/408896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Corrupt quotes in generated HTML for an ASPX intro: I am pretty sure this is my fault. But I just don't see it and before tearing my hair out, I thought I should ask here ;) I have a button which looks like this in my ASPX: <input onClick="ELB_ClearSelection('DropDownList___00178');" type="Button" value="Clear" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/408898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditional compilation depending on the framework version in C# Are there any preprocessor symbols which allow something like #if CLR_AT_LEAST_3.5 // use ReaderWriterLockSlim #else // use ReaderWriterLock #endif or some other way to do this? A: There aren't any built in, but you can supply your own. For this spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/408908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: I need help with Animation Callbacks (iPhone) I am creating an application in iPhone and I have several UIViews and layers in it. I am doing some animations using CAKeyframeAnimation class and since the animations have to be chained, I have overridden the animationDidStop method in UIView. I am getting the callbacks...
{ "language": "en", "url": "https://stackoverflow.com/questions/408917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you monitor your Ruby programming productivity? Ruby coders: How do you monitor your productivity? I'm curious to know what you use to keep track of how much you do and how well you do it. A: For any programming task, the best way to track productivity is by tracking requirements/features delivered. Every...
{ "language": "en", "url": "https://stackoverflow.com/questions/408951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct formulation of the A* algorithm I'm looking at definitions of the A* path-finding algorithm, and it seems to be defined somewhat differently in different places. The difference is in the action performed when going through the successors of a node, and finding that a successor is on the closed list. * *One...
{ "language": "en", "url": "https://stackoverflow.com/questions/408952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to find inbound links to a given URL on the fly? Technorarati's got their Cosmos api, which works fairly well but limits you to noncommercial use and no more than 500 queries a day. Yahoo's got a Site Explorer InLink Data API, but it defines the task very literally, returning links from sidebar widgets in blogs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/408954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio ‘Go To Definition’ menu option behaviour - Why is it inconsistent between C# and VB projects When developing in a VS2005+ with C# project and I right click on a framework method/property/type and select ‘Go To Definition’, by default we get a new locked tab with code that has been generated from the fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/408959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: console print w/o scrolling I see console apps print colors and seen apps such as ffmpeg print text over itself instead of a new line. How do I print over an existing line? I want to display fps in my console app either at the very top or very bottom and have regular printfs go there and scroll normally. I need this...
{ "language": "en", "url": "https://stackoverflow.com/questions/408965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: IOCP, Cross platform libraries? I've recently bumped into something called IOCP on the windows platform, to be more precise: Input/Output Control Ports. This seems to be the most efficient way to code your server software when it needs to hold thousands of users concurrently. (Correct me if I'm wrong, but thread-per...
{ "language": "en", "url": "https://stackoverflow.com/questions/408970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compare integer in bash, unary operator expected The following code gives [: -ge: unary operator expected when i=0 if [ $i -ge 2 ] then #some code fi why? A: Judging from the error message the value of i was the empty string when you executed it, not 0. A: I need to add my 5 cents. I see everybody use [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/408975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: Any JavaScript Frameworks with the aim of standard based cross-platform JS and DOM? I'm trying to find any JavaScript frameworks whose sole aim is to standardize the DOM and JavaScript across all browsers. What I'm not looking for is frameworks which create their own API to solve these common problems. I want someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/408978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem : Getting a mobile drive size using C# throws exception - Commented when i run this code : CONADefinitions.CONAPI_FOLDER_INFO2 FolderInfo; int iResult = 0; IntPtr Buffer = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CONADefinitions.CONAPI_FOLDER_INFO2))); iResult = CONAFileSystem.CONAFindNext...
{ "language": "en", "url": "https://stackoverflow.com/questions/408985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# 4.0 Specification Beta? Can anybody clarify if Microsoft has released a [draft] specification of C# 4.0 yet? If so, where can I find/download it? A: The C# 4.0 Draft Specification is located here. A: Try here C# 4.0 Documentation it may be too high level for you. A: No spec yet, but the CTP is available for p...
{ "language": "en", "url": "https://stackoverflow.com/questions/408987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java(Swing): influence height of JList in GridBagLayout I want to build a dialog in Java with a List and a couple of buttons underneath it. The list ends up with the same height as the buttons (about one line) and the whole dialog is about two lines of height. However, I'd like the dialog to be taller (maybe 10 line...
{ "language": "en", "url": "https://stackoverflow.com/questions/408989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tinyMCE - source code editing in a textarea I'm playing around with MCE, I was wondering if there was the possibility of letting the user enter source code into a post, much like the 101010 button in this form. A: The option exists. One of the optional buttons has 'html' written on it and can be used to go into HTM...
{ "language": "en", "url": "https://stackoverflow.com/questions/408998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Delphi: Limiting TCP connections I'm using the TServerSocket component in my Delphi application. I would like to limit client connections, let's say to one thousand. Unfortunately i don't know how to do that. The component does not provide any properties like 'MaxConnections' or any other like this one. I create ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/409003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: asp.net web stats - google analytics i want to add tracking to my website. I saw google analytics which seems to track what i need. So do i stick the google analytics snippet in each page, in a master page, just in my default page? what is the best practice here to get the best metrics. A: The google analytics c...
{ "language": "en", "url": "https://stackoverflow.com/questions/409012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating WordML Reports Using Templates and XPath using ASP.Net I need to know how we can Generate WordML Reports Using Templates and XPath using ASP.Net. What are its advantages. A Simple How To Tutorial is what I require. A: I need to know how we can Generate WordML Reports Using Templates and XPath using ASP....
{ "language": "en", "url": "https://stackoverflow.com/questions/409020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change container width to more than 32767 with jquery in Opera I want to make a mini timeline with jquery and for this timeline to have a width more than 32767 px. When I change it with jquery $(".timelinecontainer").width(32767); in Opera does not change it, but in others browsers it works. Can you give me advice ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NetBeans web services client producing invalid request for eBay API I'm trying to make my first web service client for the eBay API using the NetBeans 'new Web Service Client' wizard and the WSDL found here. My understanding is that this is using JAX-WS to generate class files, and my requests are all SOAP. Everyth...
{ "language": "en", "url": "https://stackoverflow.com/questions/409045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to do incremental backups in MySQL? We are using MySQL version 5.0 and most of the tables are InnoDB. We run replication to a slave server. We are thinking of backing up the MySQL log files on a daily basis. Questions * *Is there any other way of doing an incremental backup without using the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/409046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: .NET MVC - Call a controller Action from another controller action I have a controller action which I would like to call another controller action. Is this a valid thing to do. Is it possible? A: As @Justice says you can use RedirectToAction. Also, you can use TempData to pass model (and other) data between contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/409049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to structure a Java EE system? How is the term application and thus the content of an EAR defined? I am in the process of designing a build system and the directory structure for a large software system developed with Java EE 5. The build system will be implemented using ant. We have multiple different services,...
{ "language": "en", "url": "https://stackoverflow.com/questions/409050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Time Calendar Data Structure We are looking at updating (rewriting) our system which stores information about when people can reserve rooms etc. during the day. Right now we store the start and time and the date the room is available in one table, and in another we store the individual appointment times. On the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/409053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: nhibernate burrow and ASP.Net MVC I using nhibernate burrow for long conversation. I am preparing to migrate project to ASP.NET MVC, but burrow doesn't support MVC. I trying to change Burrow to work via MVC. But I have no idea what is the best way to do this. I am not sure that HTTP Module is a good way. I think abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/409059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove whitespace before a field using AWK (Almost exact duplicate of Keeping original format POST passing through AWK submitted by same person.) I have a simple question pertaining to gawk, illustrated below: 1 int blah (void) 2 { 3 if (foo) { 4 printf ("blah\n"); 5 } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting the size (free, total) of a Windows Mobile phone drive using C# How do I get the size (free, total) of any drive on a Windows Mobile phone using C#? I need to do this with code running on the device (not on a connected PC). A: I've rewritten the answer based on a better understanding of the question, but wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/409069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing a Class that is NOT declared in App_Code in ASP.NET I sometimes define Business Logic classes to "help" my ASPX code-behind classes. It makes the most sense to me to include them both in the code-behind file since they work together. However, I'd occasionally like to access the Business Logic classes fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/409070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .net mvc and editing data with forms I have a form for editing gigs. The initial controller action is called "Edit". The form posts to a second controller action called "Update" So, once the form has posted, I use a bespoke ModelBinder which uses bindingContext.ModelState.AddModelError to add validation messages to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Looping through an array to create Active Directory OUs I'm trying to create nested Organizational Units in Active Directory and I'm close to having this working. I have a problem line below that I need help with. I'm checking if an OU exists and if not I need to create it, strOUArray contains OU=Test OU=Test2 an...
{ "language": "en", "url": "https://stackoverflow.com/questions/409076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I change colors in the Solution Explorer? How do I change the background text and other colors in Solution Explorer of Visual Studio (IDE)? A: Control Panel - Display Properties - Appearance The solution explorer can't be configured like the text editor.
{ "language": "en", "url": "https://stackoverflow.com/questions/409079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: If I'm a solo dev, should I bother with VS Team System? I have an MSDN subscription and I'm wondering what edition of Visual Studio 2008 to get. I recall reading that Team System has a lot of bonus features like doing high-level system architecture stuff, and specialized things related for doing database work. As ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: gcc -Wall but suppress -Wunknown-pragmas -Wall enables a warning I do not want, specifically -Wunknown-pragmas. How to tell GCC to suppress these warnings after it is enabled by -Wall? A: gcc -Wall -Wno-unknown-pragmas should work.
{ "language": "en", "url": "https://stackoverflow.com/questions/409123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Google Sketchup API - to a Windows App? How can one interface with Google Sketchup, via the API, from a Windows App? I was looking at something written in C#/VB.NET but its seems like the only available Google Sketchup API is for Ruby. Any ideas on how to use that Ruby API from .NET? Is Ruby only serverside or can i...
{ "language": "en", "url": "https://stackoverflow.com/questions/409129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a timer in asp.net I have a page where when some operation goes wrong i want to start the timer, wait 30 second, stop the timer and retry the operation. Every time the timer starts I need to inform the user about it by changing some label's text. How can I do it? A: If I understand correctly, the I thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/409151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C#, can you make a windows form application start as a service? I have a GUI C# Windows form program that I would like to start as a service when the computer starts and perhaps have an icon in the system tray that when clicked maximizes the program. Is this possible without major rework? Thanks A: Windows Servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/409152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best function to use when grabbing a body content What is the best function to use in php when grabbing the contents of a file. Currently Im using fopen but when I try to get the headers it uses roughly 2-3 seconds to get the headers. Would HTTPRequest be a better option? A: Using the cURL functions gives you contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/409153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How important is it to write functional specs? I've never written functional specs, I prefer to jump into the code and design things as I go. So far its worked fine, but for a recent personal project I'm writing out some specs which describe all the features of the product, and how it should 'work' without going int...
{ "language": "en", "url": "https://stackoverflow.com/questions/409156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is String.IndexOf(char) really slower than manual searching? When doing a simple performance measurement, I was astonished to see that calling String.IndexOf(char) was actually slower than doing it manually! Is this really true?! Here is my test code: const string str = @"91023m lkajsdfl;jkasdf;piou-09324\\adf \asdf...
{ "language": "en", "url": "https://stackoverflow.com/questions/409162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: OpenOffice.org import csv with Java How do I import a CSV file using OpenOffice.org APIs? I want to do this using the same functionality that is also provided when I open the same file using "CVS text" filter. A: Here's the solution using OO.org macro language, but it should be a good place to start: http://user.se...
{ "language": "en", "url": "https://stackoverflow.com/questions/409173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To delete or to not delete (call func)? I remember someone saying if you create a class through a lib you should destroy it through the library. So, does this mean I shouldn't call delete? I should call myclass.deleteMe() instead? Would overloading delete solve the problem? A: I remember someone saying if you crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/409198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can Microsoft Sync framework for ado.net work with Java? I am planning to use the following architecture for one of the applications: Client: Java based application, which will use a MySQL database Server: Will be C# based and the database will be SQL Server Now is it possible to use Microsoft Sync Framework in Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/409209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I create a view that has different displays according to the role the user is in? I want to create a view that has different displays according to the role the user is in. Should I create a different view for different roles or should I check the roles on the Veiw page itself rather than in the actions? How...
{ "language": "en", "url": "https://stackoverflow.com/questions/409213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Python mailbox encoding errors First, let me say that I'm a complete beginner at Python. I've never learned the language, I just thought "how hard can it be" when Google turned up nothing but Python snippets to solve my problem. :) I have a bunch of mailboxes in Maildir format (a backup from the mail server on my ol...
{ "language": "en", "url": "https://stackoverflow.com/questions/409217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Generics and locking on collections is there any difference between: lock((IDictionary) _collection).SyncRoot) or lock(_collection) A: Yes, the Monitor is take out on a different object in each, so the two are not functional equivalents. The SyncRoot is exposed so you can lock on it for collection member access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fastest way to do a contains with string[] I am getting back a "string[]" from a 3rd party library. I want to do a contains on it. what is the most efficient way of doing this? A: Array.IndexOf: bool contains = Array.IndexOf(arr, value) >= 0; Or just use LINQ: bool contains = arr.Contains(value); LINQ should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/409236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do safety requirements like to discourage use of AI? Seems that requirements on safety do not seem to like systems that use AI for safety-related requirements (particularly where large potential risks of destruction/death are involved). Can anyone suggest why? I always thought that, provided you program your log...
{ "language": "en", "url": "https://stackoverflow.com/questions/409252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Working with byte arrays in C# I have a byte array that represents a complete TCP/IP packet. For clarification, the byte array is ordered like this: (IP Header - 20 bytes)(TCP Header - 20 bytes)(Payload - X bytes) I have a Parse function that accepts a byte array and returns a TCPHeader object. It looks like this:...
{ "language": "en", "url": "https://stackoverflow.com/questions/409256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Database design for sports meeting(in MySQL) I'm trying to design a database for a sports meeting. I think I've got something good but I'm not quite sure. The situation is as follows. There is the meeting, several sportsclubs will each send a number of athletes: 1 or more. The athletes can enter in more then one eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/409258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having a UITextField in a UITableViewCell I'm trying to do that for a couple of days now, and after reading tons of messages of people trying to do that too, I'm still unable to have a fully working UITextField in some of my UITableViewCells, just like in this example: Either I have the form working but the text i...
{ "language": "en", "url": "https://stackoverflow.com/questions/409259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "180" }
Q: Should I use the datetime or timestamp data type in MySQL? Would you recommend using a datetime or a timestamp field, and why (using MySQL)? I'm working with PHP on the server side. A: Another difference between Timestamp and Datetime is in Timestamp you can't default value to NULL. A: I prefer using timestamp so...
{ "language": "en", "url": "https://stackoverflow.com/questions/409286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3103" }
Q: String search: has Eclipse IDE got a modern "find" UI (a la Firefox) One thing really really annoys me about the Eclipse ide: its find UI is so old style. I would much prefer something like Firefox or Safari, that doesn't clutter my screen real estate with a useless window. (source: eclipse-blog.org) A: you can a...
{ "language": "en", "url": "https://stackoverflow.com/questions/409287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Anybody using .netTiers? I'm considering adopting .nettiers for a new project as it seems to provide a lot of functionality I could use. Is anybody using it in anger (I'm getting the feeling it hasn't got the following it once had) and if so, what are your perceptions of it? Also, I can't find any comparative perfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/409290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: P/Invoke GetDiskFreeSpaceEx Exact Duplicate of: Getting the size (free,total) of a Windows Mobile phone drive using c# dear all; i know my problem took alot of time and many of u helped me but i'm new in C# and this is my first application.. now i read an article: C# Signature: [DllImport("coredll.dll", SetLastE...
{ "language": "en", "url": "https://stackoverflow.com/questions/409293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript order of execution - How come it does this? I am quite on lost on why Javascript does certain things in this way, or maybe I coded something wrong. But how come the code after $.getJSON gets executed before the callback is complete? window.ratingCallback = function(data){ if(data[0].code == 3){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to vectorize with gcc? The v4 series of the gcc compiler can automatically vectorize loops using the SIMD processor on some modern CPUs, such as the AMD Athlon or Intel Pentium/Core chips. How is this done? A: The original page offers details on getting gcc to automatically vectorize loops, including a few exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/409300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What compilers besides gcc can vectorize code? GCC can vectorize loops automatically when certain options are specified and given the right conditions. Are there other compilers widely available that can do the same? A: ICC A: llvm can also do it and vector pascal too and one that is not free VectorC. These are j...
{ "language": "en", "url": "https://stackoverflow.com/questions/409309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Buying Cluster/Grid/Cloud Time? I've used clusters in industrial and academic settings, but they were owned by the organizations I worked for. I've never purchased time from a company that sells cluster/cloud/grid time. Suppose I want to run some compute intensive program like as a large simulation or a data mining ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL Simple Forum So I'm trying to build a simple forum. It'll be a list of topics in descending order by the date of either the topic (if no replies) or latest reply. Here's the DB structure: forum_topic id, name, email, body, date forum_reply id, email, body, date, topic_id The forum itself will consist of an...
{ "language": "en", "url": "https://stackoverflow.com/questions/409321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check if a file is open from another process How do I check if a file is already used by another process from Powerscript ? A: The best way that I found is to call the WinAPI CreateFile to open a given file in exclusive mode. First, declare the following Local External Function (PB10) FUNCTION Long CreateFile(ref ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Practical use of automatic vectorization? Has anyone taken advantage of the automatic vectorization that gcc can do? In the real world (as opposed to example code)? Does it take restructuring of existing code to take advantage? Are there a significant number of cases in any production code that can be vectorized ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them? At my company we're starting to branch into web APIs to access and update our data; initially for partners but then likely to the public in future. At the moment the way the API will look (e.g. SOAP, REST, RPC) is comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/409338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Is it OK to have more than one role in a SCRUM process Do you think it may be OK for a person to have more than one role in a software development company that wants to use SCRUM? E.g. is it ok/possible if a person is * *SCRUM master and team member *Product owner and team member *SCRUM master and product owner...
{ "language": "en", "url": "https://stackoverflow.com/questions/409342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Iteration over std::vector: unsigned vs signed index variable What is the correct way of iterating over a vector in C++? Consider these two code fragments, this one works fine: for (unsigned i=0; i < polygon.size(); i++) { sum += polygon[i]; } and this one: for (int i=0; i < polygon.size(); i++) { sum += po...
{ "language": "en", "url": "https://stackoverflow.com/questions/409348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "490" }
Q: $_POST vs. $_SERVER['REQUEST_METHOD'] == 'POST' Some guy called one of my Snipplr submissions "crap" because I used if ($_SERVER['REQUEST_METHOD'] == 'POST') instead of if ($_POST) Checking the request method seems more correct to me because that's what I really want to do. Is there some operational difference betwe...
{ "language": "en", "url": "https://stackoverflow.com/questions/409351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "138" }
Q: Cocoa client/server application Is there a way in Cocoa that is currently considered best practice for creating a multi-tier or client server application? I'm an experienced web developer and I really love Python. I'm new to Cocoa though. The application I'm toying with writing is a patient management system for a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/409354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Sorting and Grouping Nested Lists in Python I have the following data structure (a list of lists) [ ['4', '21', '1', '14', '2008-10-24 15:42:58'], ['3', '22', '4', '2somename', '2008-10-24 15:22:03'], ['5', '21', '3', '19', '2008-10-24 15:45:45'], ['6', '21', '1', '1somename', '2008-10-24 15:45:49'], ['7', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: html static page position after refresh I have a page where I would like it to remain static after refresh and does not default back to the top page again as it will disrupt the position I was viewing it last. Hence I have all the time to scroll down again to find the area I was viewing last. Is there a way of elimi...
{ "language": "en", "url": "https://stackoverflow.com/questions/409372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Communicate between 2 WCF services How to communicate between 2 WCF services hosted on 2 different machines. A: Easy! With WCF! Add a service reference to each of them pointing to the other and you're done. A: The question is a little vague, because it really depends on what you're looking to communicate between t...
{ "language": "en", "url": "https://stackoverflow.com/questions/409373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert persisted ADO 2.8 COM recordset to ADO.Net DataSet I have a VB6 application that I am converting to .net. I am doing this in phases so clients will have both VB6 and .net applications at the same. Part of the application caches ADO 2.8 COM recordsets to a table in SQL Server and retrieves them as needed. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/409385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running a Socket Server in Cocoa I'm trying to write a program that uses sockets to connect with other instances of itself over the network. Since eventually I'd like to write a Windows version as well, I'm currently using BSD sockets on the OS X side so that I can ensure that it will be compatible with the (eventua...
{ "language": "en", "url": "https://stackoverflow.com/questions/409418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Editable NSTableView with Bindings won't set values in model Here is my setup. In my application delegate, I have a property called currentFoo. The currentFoo property is set to the currently selected Foo instance. The Foo instances each have a property which is a NSMutableArray called results. The objects in resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/409424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: automatically execute an Excel macro on a cell change How can I automatically execute an Excel macro each time a value in a particular cell changes? Right now, my working code is: Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("H5")) Is Nothing Then Macro End Sub where "H5" i...
{ "language": "en", "url": "https://stackoverflow.com/questions/409434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Loop function parameters for sanity check I have a Python function in which I am doing some sanitisation of the input parameters: def func(param1, param2, param3): param1 = param1 or '' param2 = param2 or '' param3 = param3 or '' This caters for the arguments being passed as None rather than empty strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/409449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Generic Wrapper Class possible? On C# 3.0 and .NET 3.5, imagine there's an interface: public interface INameable { string Name {get;} } and many immutable classes that implement the interface. I would like to have a single extension method public static T Rename<T>(this T obj) where T : INameable { ... } that...
{ "language": "en", "url": "https://stackoverflow.com/questions/409454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find out all files that my browser loads while accessing a webpage? I can use Firebug and it will show lots of info about files that are loaded and even http return codes but it doesn't seem to show all of them. For example i visit a page that loads a flash file. In firebug it will show that the file is loade...
{ "language": "en", "url": "https://stackoverflow.com/questions/409456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF Databinding not calling ! I have UserControl which contains a TextBox and a Button control. The Button opens a FileDialog and the user selects the file. The selected file is transferred into the FileName property which is a dependency property. For some reason the TextBox is not binding to this property. Here is...
{ "language": "en", "url": "https://stackoverflow.com/questions/409457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I take eclipse out of MDI mode? Does anyone know of a way to make Eclipse an SDI application rather than an MDI one? SDI - Single document interface, each pane is its own window MDI - Multiple document interface, all of the panes are stuck inside one "master" window. Eclipse is an MDI application. All of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/409465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Running an OpenID organization I wrote an application recently, which relies on OpenID for authentication. A lot of web applications these days are moving to OpenID, insofar that they already have userid/password authentication scheme, and OpenID is just an add-on. Since my application is a new one, I decided that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/409480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best approach for learning Java after C++? I've been using C++ for about 6 or 7 years now, and I consider myself fluent in it. I've never bothered with Java until now, but I find myself out of the job (company went under) and I need to expand my skill set. Someone recommended Java, so I am wondering if there is an...
{ "language": "en", "url": "https://stackoverflow.com/questions/409483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get the size (free,total) of phone drive using Nokia API? I want to get the size of the phone drive. I'm using "Nokia-PC-Connectivity"., and with respect to File System API I found on CONADifinition function called CONA_Folder_Info but this function doens't support FreeSize and Total Size but there is CONA_Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/409487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best Method to SFTP or FTPS Files via SSIS This question originally asked which is the best method for uploading files via SFTP or FTPS in SSIS. It now just lists the pros and cons of each solution. I personally use CozyRoc's SFTP library these days, but I've used each of the below solutions at one point or anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/409491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: how to passing value from a external page to inside a frame? I have a files inside a page , this page named (mainframe.php) is a frameset contain two subframes files (file 1 : topframe.php , file 2 bottom frame.php) and i need to pass a value from an external page(file:extarnalpage.php) to inside the frmams(topfra...
{ "language": "en", "url": "https://stackoverflow.com/questions/409492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to separate data validation from my simple domain objects (POCOs)? This question is language agnostic but I am a C# guy so I use the term POCO to mean an object that only preforms data storage, usually using getter and setter fields. I just reworked my Domain Model to be super-duper POCO and am left with a coupl...
{ "language": "en", "url": "https://stackoverflow.com/questions/409495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Prevent direct access to a php include file I have a php file which I will be using as exclusively as an include. Therefore I would like to throw an error instead of executing it when it's accessed directly by typing in the URL instead of being included. Basically I need to do a check as follows in the php file: if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: Can PowerShell script out SQL Server Reporting Services RDL files? Is it possible to use PowerShell to script out SQL Server Reporting Services rdl files in SQL Server 2008? If so, can someone provide a code example of doing this? This would be a useful replacement for using a 3rd party tool to script out RDL file...
{ "language": "en", "url": "https://stackoverflow.com/questions/409507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Call a custom VBA function from a query Is is possible to call a custom VB function, saved in the same Access Db, from a query written in that db, and if so, how? A: Yes, you can call a macro or function from an Access query. Make your function public. Then call it inside your SQL like so: CustomFunction([field]...
{ "language": "en", "url": "https://stackoverflow.com/questions/409512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Avoid exceptions? This particular example relates to Django in Python, but should apply to any language supporting exceptions: try: object = ModelClass.objects.get(search=value) except DoesNotExist: pass if object: # do stuff The Django model class provides a simple method get which allows me to search...
{ "language": "en", "url": "https://stackoverflow.com/questions/409529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Patterns and more for clean and easy gui code every time i code a gui (in my case with GWT, never touched gui programming before), i notice that my code becomes a big mess, when the applications becomes more complex. It's really frustrating to look over my code and get a headache of all these setters in object const...
{ "language": "en", "url": "https://stackoverflow.com/questions/409541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: jquery & php: saving some data without reload I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like: $("#mySpecifikButton").click(function() { ....some code here... }); but then Im stuck. For examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/409555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auto-vectorizing vs. vectorized code by hand Is it better in some sense to vectorize code by hand, using explicit pragmas or to rely on or use auto-vectorization? For optimum performance using auto-vectorization, one would have to monitor the compiler output to ensure that loops are being vectorized or modify them ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best practices for exception management in Java or C# I'm stuck deciding how to handle exceptions in my application. Much if my issues with exceptions comes from 1) accessing data via a remote service or 2) deserializing a JSON object. Unfortunately I can't guarantee success for either of these tasks (cut network c...
{ "language": "en", "url": "https://stackoverflow.com/questions/409563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: Is there a Perl equivalent for Emacs' ido-completion? I've built a number of work-specific helper functions that could be useful for other members of my team&mdash. But I've written them all in Emacs' Elisp, and getting them to convert from Notepad++ is NOT going to happen. So, I'm thinking convert the functions to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/409587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I prevent a subversion update with no changes from causing IIS from recompiling the website? For my staging site I have a subversion repository that I update when I need to view the changes on the staging server. Instead of manually updating the staging server subversion folder every few minutes when I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/409589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }