text
stringlengths
8
267k
meta
dict
Q: Is it possible to center an inline-block element and if so, how? I have an element of initially unknown width, specifically a MathJax equation supplied by the user. I have the element set as inline-block to ensure that the width of the element fits its contents and so that it has a defined width. However, this pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: How to preserve conditional comments in element in a Diazo theme? I have a Diazo theme file which is based on the html5boilerplate. The theme uses conditional comments on the <html> element to identify particular versions of Internet Explorer, e.g. <!doctype html> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual Studio Setup Project Remove install for all users I am creating a setup project and want to remove the option to install for "everyone" or "just me" and have it default to just me. A: View->Editor->User Interface. Click on Installation folder. In the properties window there is a key InstallAllUsersVisible. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I use an action filter in ASP.NET MVC to route to a different view but using the same URL? Is it possible to make a filter that, after a controller action has been (mostly) processed, checks for a certain test condition and routes to a different view transparently to the user (i.e., no change in the URL)? He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .mo and .po files for wordpress theme internationalization Ok, so I feel like a complete idiot asking this, but I've been looking around and I haven't found a decent answer. I am using qTranslate as i18n plugin to create a multilingual website. I have a localized framework/theme with a default.po file. I have built ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel VBA Macro to query Amazon Web Services for Book data I have an .xcl with 500 books, title in one column, author in another. I want to query amazon web services with a vba macro to pull back amazon's listing with title, author, isbn, and most importantly publisher and year. Book list - getting book details from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove item from dropdown list on page load (no jquery) I have the following dropdown list: <select name="DD1" id="DD1"> <option value="B">B</option> <option value="D">D</option> <option value="E">E</option> <option value="F">F</option> <option value="R">R</option> </select> On page load I need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Script to read in line, select from value, and print to file So I have a php script, I want to read in a file line by line, each line only contains one id. I want to select using sql for each id in the file, then print the result for each selection in the same file. so far i have: while (!feof($file)) { // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: glutIdleFunc not calling idle function I'm creating a maze program, that randomly generates a path. I'm using an idle function to calculate the next direction and shape of the path, but for some reason the idle function is not being called by glutIdleFunc. I checked this with visual studio's debugger and having it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex 3: is it possible to add an event listender to a boolean variable? I have a boolean variable, projectsLoaded that is set to false when my application loads. As i'm sure you can imagine, when the final project module loads, I set the variable to be true. Is there a way I can trigger a series of functions to ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: protobuf-net v2 and Monotouch : How does it mix? I have been trying to use protobuf-net with MonoTouch but I have no idea how, and despite having heard that it is possible, I haven't been able to find any tutorial or any example that actually work. It was confirmed by Marc Gravell on his blog that it does work on Mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Javascript order execution of prompt and document.writeln statements I am trying to write a program that iteratively solves a problem with user input. It is something like trying to guess a user's number between 0 and 100 using binary search. So the program spits something out (in the form of document.writeln stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to edit html (tags), before being executed by CppWebBrowser I can't solve my problem, and I hope somebody knows how... I have a component on my form TCppWebBrowser, and when I navigate to a URL, after the document was downloaded, in method OnDocumentComplete() , I'm trying to check and change html source of load...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can we use .xml file to truncate a table when server(JBOSS) started? How can I truncate table when jboss server started ? Can we use mysql-ds.xml ? HOw can we use xml to truncate a table ? HINT :- I saw jboss creates timer table automatically when server started using .xml file. But I want to truncate a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android ImageView: How to prevent scaling with ScaleType.CENTER? According to the docs, using the CENTER attribute will not perform any scaling on the image. Yet, when loading a PNG via XML like shown below, it appears significantly larger than it should be. What's going on? I figure the image is being scaled when i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Session variable not taking effect in asp.net I have a session variable in my asp.net application. The session variable holds a value from the database, that reflects a customized HTML color value. In my application, I have an asp button with server side code btnContinue.BackColor = System.Drawing.Color.FromName(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to retrieve textbox value and subtract from it Ive a textbox with id fnlprce I want to retrieve its value on an event, subtract 50 from it and update it to the latest value, ive this piece of code to work over: function updateDiscount() { var iniprce = parseInt($("#fnlprce").text()); var fnlprce = ini...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does one safely static_cast between unsigned int and int? I have an 8-character string representing a hexadecimal number and I need to convert it to an int. This conversion has to preserve the bit pattern for strings "80000000" and higher, i.e., those numbers should come out negative. Unfortunately, the naive ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Wonky Start-Process errors after the script has been running a while I have a PowerShell 2.0 script that works on large file shares from the top down, correcting permissions and such by launching another executable via Start-Process and waiting for the results and exit codes, with code like this: Start-Process -File...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to measure how long the function works I am trying to compare the performance of several different algorithms. So created several functions each of them implementing different approach of solving the same task. What was thinking to do is to create 2 Date objects before and after the function runs, and to compa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Do I Attach a SQL Server Express Database to a Visual Studio 2010 project? How do I do this? * *Attach an SQL Server Express Database to a Visual Studio project so that... * *my source control contains the most resent schema for the database including stored procedures (can' t use SQL Compact Ed. because ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Weak reference related exception I started getting the exception below after starting to use a class from an open source MVVM framework that uses weak references to prevent memory leaks. This class is called PropertyObserver and is "A standardized way to handle the INotifyPropertyChanged.PropertyChanged event of oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using a A: Using Font Extensions should solve this problem. Once you use font extensions, then you can set the font in the text element or in the style. You will not specify pdfFontName, pdfEncoding, or isPdfEmbedded in the report. That gets specified in the font extension. Note: In a strict interpretation, this do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# - Add XML Namespace (xmlns) tag to document I'm creating an XML document using System.XML in C#. I'm almost done, but I need to add some similar to the following to the top of my document: <ABC xmlns="http://www.acme.com/ABC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" fileName="acmeth.xml" date="2011-0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I dynamically load the jQuery Colorbox plugin? When I try to load it runtime I keep getting the error: Erro: uncaught exception: [Exception... "Index or size is negative or greater than the allowed amount" code: "1" nsresult: "0x80530001 (NS_ERROR_DOM_INDEX_SIZE_ERR)" Erro: b.data(this, r) is undefine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CAlayer transform on sublayers flickers with gestures (ipad) I have a CALayer that contains few other subLayers (CATextLayer actually) I want to apply some transformation on that layer when user do usual gesture on the ipad but it doesn't seem to be working properly. The goal of using the CALayer was to apply the tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Out-of-band OAuth authentication with Facebook TL;DR version: Can you authenticate with Facebook without having a callback URL for a web application since the web application isn't actually running on a server. Full explanation: I'm working on building a connectedTV platform application where the "app" itself is a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: table sorter with combined two rows jQuery table sorter with combined rows Every second row contains detail data for the first row. By default, it is hidden with CSS, but I can slide it open with jQuery. What I would like to achieve: Table sorting similar to this jQuery plugin: http://tablesorter.com/docs/ The probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get value of nth item in an un-ordered list For this code, <ul id="date-list" hidden="hidden"> <% foreach (string item in (List<string>)Model.OpenCloseTime) {%> <li value="<%= item %>"><%= item %></li> <% }%> </ul> How could i get the value of nth item in the list. It is an MVC project and we are using jquer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looping through annotate query Initially I asked this question, and I wanted to give credit to Daniel. Here is the new issue I have however. I have this which works great, but I'm having a minor issue. total_list = plan.investment_set.filter(maturity_date__gte= '%s-1-1' % current_year).values('financial_institution...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python: difference of two timedate strings I have two date strings (taken from user input and can vary greatly) s1 = '2011:10:01:10:30:00' s2 = '2011:10:01:11:15:00' I wish to find the difference between the two as minutes. How should I proceed to tackle this ? A: import datetime d1 = datetime.datetime.strptime(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Style BasedOn a user-defined style I have a DefaultStyle and then another Style defined like this <Style TargetType="{x:Type my:CustomButton}" BasedOn="{StaticResource DefaultStyle}" x:Key="DefaultCustomButton"> ... Then, having defined this style, I have <Style TargetType="{x:Type my:CustomButton}" BasedOn="{Stati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Threading a shell script I have a small shell script that executes ~30 Java commands consecutively. Each one pulls data from a MySQL db then jams it into a BI tool. Is there any way to execute >1 of these commands from within said shell script? Unfortunately, I only have access to the script itself, I cannot change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validating an XML NCName in Java I'm getting some values from Java annotations in an annotation processor to generate metadata. Some of these values are supposed to indicate XML element or attribute names. I'd like to validate the input to find out if the provided values are actually legal NCNames according to the X...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET MVC Exclude Namespaces from New View Model Dropdown Menu When you add a new view to an ASP.NET MVC project you can strongly type the view by selecting which model class it should work with in the dialog box. The problem is in that drop down menu it includes all the classes and interfaces from all referenced...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: TSAlertView not responding to delegate? TSAlertView is TomSwift's https://github.com/TomSwift/TSAlertView/ solution to present modal views that look like UIAlertView but fully customizable. Good work! However I fail to respond to button press in the modal dialog. I set up my viewcontroller as delegate, but there is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does ASP.NET load the wrong version of my web application assembly? I have a web application in Visual Studio 2008 with a web service and a couple web forms. When I try to debug, none of my breakpoints are available; if I mouse over them, I see: "The breakpoint will not be hit. The source code is different than ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where is the proper location to embed IV information for file encryption using Rijndael algorithm? I'm creating a Rijndael file encryption application. I will using a unique IV for each file encryption. My question: Where is the proper place to embed the IV info? My initial thought is to append it at the end of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Adding stuff to the navigation bar I want to add some stuff to the navigation bar (like Heading and some buttons like back or home, a shopping cart and a Youtube ENDO channel) at the top of the view. But navigation bar is not visible in the nib file. That can be done through some coding stuff. So, how can I add them...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Lightbox as Part of a Distributed Code Snippet I have been tasked with creating a code snippet that will be distributed to multiple websites for inclusion in their HTML. This code snippet will render a button, that when pressed will launch a lightbox that contains an iframe with content from a central web...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Search and Replace Strings in a Text File Using Wildcards Trying to do a search/replace in python using wildcards on the contents of a text file: If the contents of the text file looks like: "all_bcar_v0038.ma"; "all_bcar_v0002.ma"; "all_bcar_v0011.ma"; "all_bcar_v0011.ma"; Looking to replace all the version numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do chained assignments work? A quote from something: >>> x = y = somefunction() is the same as >>> y = somefunction() >>> x = y Question: Is x = y = somefunction() the same as x = somefunction() y = somefunction() ? Based on my understanding, they should be same because somefunction can only return exactly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: What is causing the bottleneck in this scenario? I'm looking for some help with a production issue we have encountered. We have an NServiceBus Handler that when it processes a message sends a request to an asmx (.net 2.0) webservice running on IIS 6.0, the web service then sends a second http request to a 3rd Party ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Implement chat functionality like words with friends on ios I want to add chat functionality to an iOS app similar to what Words With Friends has. Are there any libraries that I can piggy back on or do I need to write it from scratch? I got a couple of ideas, but all seem expensive: - Build simple chat client server...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to add 'show/hide content' option in a webpage in html? though there are many codes available, but i want the simplest and shortest code for an option for show/hide content.( it would be good if the text 'show/hide' can be replaced by an image for the same or by a button) A: If you have an element with id="myEl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't the maven-deploy-plugin resolve my custom system property? I'm using the gmaven-plugin to set a custom system property in my POM. This seems to work, as I'm able to successfully echo the property using the maven-antrun-plugin; however, the maven-deploy-plugin seems completely unaware of the property and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it any methods in GWT to get screenshot of page region? I am using GWT. I have a set of dragable widgets that can be placed on page as user wants. I need to get page region screenshot as a handler of some event and save it. Is any way to do this? Is it possible to get Widget view as an image in GWT? A: You will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swfobject.embedSWF doesn't do anything. What am i missing? I am experimenting with with swfObject to embed a flash video player on my site. here is some snippets of my code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: F# Create list of multiples of x? I want to create a list that is the multiples of a number. For example [2; 4; 6; 8; 10] would be the multiples of 2 between 0 and 10. How would I dynamically create such a list of the multiples of x? Is it possible to do it without setting an upper bound? One way to do it would be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android Eclipse library project and the library project's type resolution for project specific config files I've got several android projects that share one of my library projects. I want to have the library code depend on certain configuration classes that are defined differently in the project(s) that are dependin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: reading innerHTML of HTML form with VALUE attribute (& its value) of INPUT tags I have a html form with some input fields. Instead of reading and sending the values of input fields by document.ipForm.userName.value , I need to send the whole html content to html parser and extract the <name ,value> pair of each inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can VirtualBox be executed under Amazon EC2 instance? We have a test system where a VirtualBox VM snapshot is started before each major test. The snapshot contains a state of the tested system specific to the test. This is a memory-intensive testing. There is an idea to move the daily test run into Amazon EC2 Large ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Can I run an update query against my SQL db while in READ UNCOMMITTED isolation level? Currently I have with (nolock) specified after each table in all of the select statements within my stored procedure. If I add the following code to the top of my stored procedure, can I still run an update/insert/delete query i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Switching tabs breaks background images when using the CSS styling perspective Any ideas why? What steps will reproduce the problem? * *Load the following fiddle: http://jsfiddle.net/bhellman1/4fTeA/1/ *In the result box, scroll down a half way *Switch to another tab *Then go back to the fiddle, notice the bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails3 app failed to push to Heroku. "Unrecognized error" Things seem to go great, and then it chokes at the end. Observe: $ git push heroku master Counting objects: 12, done. Delta compression using up to 2 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 109.76 KiB, done. Total 7 (delta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: assign func(const void *) to func(void *) in C I have a function that takes a function pointer and apply it over a list. It's prototype is as follows: void applyList(List *, void applyFunc(void *)); Now I want to supply a function that prints the element in the list. Since I'm not modifying the list element, the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot resolve type runtime error after registering the Enterprise Library into the GAC I worked on registering the Enterprise Library assemblies into the Global Assembly Cache (GAC). I am using version 5.0 of the Enterprise Library that I signed with my own key, and I am using the assemblies in a number of .NET 4....
{ "language": "en", "url": "https://stackoverflow.com/questions/7601885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: httpapi: Why is HttpSendHttpResponse returning invalid parameter? I've tried to port http.h to Delphi, but my calls to HttpSendHttpResponse return 'invalid patameter', and I'm not sure why. I'm sticking to HTTPAPI_V1 for now, and am testing on WinXP. I have posted source-code I use to test with here: http://nldelph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio-> Find all references-> Looking for symbol in XAML files Is there a way to prevent "Find all references" from searching in XAML files? Searching the XAML files is painfully slow. A: Not to re-open an older post, but you could do a "find in files" and specify only the file types you want to search thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there a way of logging the browser a user submits a form from in MySQL database I have a PHP page which handles the submission of a form and adds the data to a MySQL table. I am wondering if there is a way of writing the browser and version that a user is submitting the form from into a column in the MySQL table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving a Object pointer in a vector to a different vector Right now I have two vectors of Object pointers std::vector<Object*> vec1; std::vector<Object*> vec2; Lets say vec1 has two objects and vec2 has none. How would I move one of the objects in vec1 to vec2 without destroying the actual object? So, in the end ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to enable several users to update the same database? I am currently on a mission and I'm facing a problem that I have never had to deal with before: A classic Access 2003 database contains several tables that have to be updated by people located at different places in the company. What is the be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: hex not evaluating correctly i tried hard to solve this one on my own but ive spent way to much time on something as simple as this so im hoping someone can give me the answer. see image below but basically im just trying to get a range built but my marker and my list never meet even though there are items that matc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Center Text align for labels I have a label exactly in center of a form with text "It is my Visual Studio application". Now, I have a button click event that changes the text to "My application". But the problem is the alignment gets disturbed as the length of changed text is different from previous one. I tried Tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: android SQLiteConstraintException: error code 19: constraint failed I got android SQLiteConstraintException: error code 19: constraint failed exception. I saw there are tons of question in this topic, I've read a bunch of them, but still cant figure out what I did wrong. Mere is my table schema. private static f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I validate the ? Is there a way to validate the tag? And I have two elements with OnMouseOver attribute, and the validator, too don't validate them. The only errors are these. So if you know a way, please share... A: There is no way to validate the <marquee> tag since it is not a standard html element. You wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I "re-group" a pig relation? Assume I have an input file input.dat that looks like this: apples 10 oranges 30 apples 6 pears 5 Now, when I load, group, and project the data: sources = LOAD 'input.dat' as { a:chararray, b:int }; grouped = GROUP sources BY a; projection = foreach sources generate flatten(group...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cocoa Bindings: Enable a button if multiple textfields have values I have 5 buttons and 5 text fields. I'd like to set up bindings so that button 1 is enabled only if textfields 2-5 have values..... button 2 is enabled only if textfield 1 & 3-5 have values, etc. I'm just starting to learn about cocoa bindings. I was...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set a (different) property based on a value in a variable? Possible Duplicate: Objective C Equivalent of PHP’s “Variable Variables” I have a UIButton action, that grabs the button sender This line gives me the sender tag which I'm using in a switch statement int senderTag = [sender tag]; I then have to do... swi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC 3 with Forms Authentication, need userid in data project, best practices? I just started an MVC 3 project using Forms Authentication. I have a web project (mvc project), and a data project. The data project handles all database interactions. I need to store the current user id in my database on every insert and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC3 Entity with ViewModel CRUD pages I'm using EF with ViewModel and AutoMapper design strategies for an MVC3 application. I'm wondering if there is a more efficient way of creating the CRUD pages then what I'm currently doing. My Current Process Involves: * *Create the Entity *Create the ViewModel via ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating tables with different sized cells I want to make my form to look neat and I want my cells to be different sizes depending on the information in the cell. How do I make a cell width different then the one above it? OK now i also want to know how to make 1 cell tall and have a lot of small cells to the right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SystemExit and NameError issues with exiting def main(): try: print "hardfart" return 0 except: return 1 if __name__ == '__main__': exit(main()) Can one kind programmer tell me why this spits out the following error on exit? Traceback (most recent call last): File "C:/Apps/exp_e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Msbuild Custom Task - For loop I would like to implement a Msbuild Custome task to loop a list of items and do something about each item. Basically I would liketo build a foreach or for loop in msbuild. I have searched around but didn't find much useful information about output a list of items and loop though each o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regular expression for number search I need a regular expression that will find a number(s) that is not inside parenthesis. Example abcd 1 (35) (df) It would only see the 1. Is this very complex? I've tried and had no luck. Thanks for any help A: An easy solution is to first remove the unwanted values: my $string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Leaks in UIPasteboard objects I see a lot of leaks in several UIPasteboard objects. Until today, I never heard of this class and (obviously) didn't use one myself in the program. Here's a screenshot: What can I do to get rid of these leaks? Am I even looking at this problem correctly? A: Without a stack trace, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Will XMPP work in a NAT environment? An XMMP server sends push notifications to a client behind a NAT using a public endpoint( IP + Port) supplied by NAT to client. But how long this endpoint is assigned to this specific client by NAT, what will happen if NAT assigns same endpoint to another client ? How this proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EVO 3d ( PG86100 ) - No logs in Logcat via sendlog? Trying to get some logs from a EVO 3D, but each time the logs are sent, they appear to contain no 3rd party app logs. Makes it quite difficult to try and debug an issue which appears only on this one device. Any thoughts/suggestions?
{ "language": "en", "url": "https://stackoverflow.com/questions/7601961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do the && and || operators convert their operands to booleans? Flanagan's O'Reilly JavaScript book states: Unlike the && and || operators, the ! operator converts its operand to a boolean value [...] before inverting the converted value. If those logical operators don't convert the operands to booleans, how can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Picassa Data Feed API I know it's old hat (relatively) but I can't seem to get the API to return rows passed 1,000, though the results from a query of show open search total results well exceeding that number. https://picasaweb.google.com/data/feed/api/all?q=elephants&start-index=1&max-results=11&v=2&prettyprint=tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to test a RedirectToAction? I have the following condition if (_ldapAuthentication.IsAuthenticated (Domain, login.username, login.PassWord)) { _ldapAuthentication.LogOn (indexViewModel.UserName, false); _authenticationService.LimpaTentativas (login.username); return RedirectToAction ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Possibilities of SQL Injection with EFCTP and .net mvc Just want to know from experts that is there any inbuilt security for SQL Injection in Entity Framework or .net MVC? Thanks A: It is only built in if you use it. Entity Framework provides strongly typed entity classes - if you only use Linq to Entities you will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Higher-order functions in C++, using std::wcout fails with error C2248 I'm playing around with implementing functional-style stuff in C++. At the moment, I'm looking at a continuation-passing style for enumerating files. I've got some code that looks like this: namespace directory { void find_files( std:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does a base class with the metadata [Bindable] keyword automatically extends EventDispatcher? I'm encountering something a bit bizarre, but maybe someone else came across this before. I've got a base class, that doesn't extend anything. Let's call it... public class FooBar { //... } But I want to bind EVERY sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Relationship between form and formset on same webpage I'm trying to relate all the objects created in a formset to an object created on the same webpage as the formset. So, an example of the code is this: def create_b(request): SpeciesFormSet = modelformset_factory(Species, fields=('common', 'scientific')) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to understand CakePHP cookies & authentication I'm trying to figure out CakePHP cookies and meet my slightly unusual authentication requirements. I have a CakePHP-based data collection system that is now being integrated with a reporting system built with COTS software. The reporting system needs to be access...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sort/order data? I've already experiences with MongoDB, CouchDB, Redis, Tokyo Cabinet, and other NoSQL Databases. Recently I stumbled upon Riak and it looks very interesting to me. To getting started with it, I decided to write a small Twitter clone, the "hello world" in the NoSQL World. To get a fully workin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Open Graph custom action that links to other user I have question about the beta Open Graph stuffs. The documentation I am looking at is this https://developers.facebook.com/docs/beta/opengraph/ I successfully define custom objects and actions. However, I cannot figure out how to link current user with other users. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Confused over function call in pre-ANSI C syntax I'm dealing with some pre-ANSI C syntax. See I have the following function call in one conditional BPNN *net; // Some more code double val; // Some more code, and then, if (evaluate_performance(net, &val, 0)) { But then the function evaluate_performance was defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: keeping dialog open on validation failure Trying to achieve this without Ajax.. javascript jQuery(function () { // Modal Login. jQuery(".ModalBoxLogin").dialog({ autoOpen: false, bgiframe: true, height: 155, resizable: false, draggable: fals...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I configure emacs to switch to a particular buffer when I click the mouse in it? I'm using iTerm2 on my mac to ssh into a Linux box and run emacs in the terminal. On a big monitor, I like to split the window to see multiple buffers side-by-side. I'd like to be able to switch to a particular buffer by clickin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to resize barcode generated by barbecue api? I have generated the barcode using barbecue and now I want to resize the barcode as per my need. I tried with BufferedImage and then I got barcode with different size but then I get an additional black line under the barcode. public class GenerateBarcode { p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: interacting with web services and android I want to make a request to a web services http://www.w3schools.com/webservices/tempconvert.asmx and I cannot get a OK respond and got 400 bad request instead. Here is my AsyncTask doInBackground protected String doInBackground(Void... params) { String s=null; try {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding attachEvents I mean the one in Ext.grid.feature.Feature; it is used for example in the grid Filters Plug in. I've been looking in the source code but I can't find where is it called from. I'd be very grateful if someone could answer me exactly how it works and which class or function calls it. It would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "maven-resources-plugin prior to 2.4 is not supported by m2e" I'm having problems with m2e (Maven plugin into Eclipse IDE). I see the following error: maven-resources-plugin prior to 2.4 is not supported by m2e. Use maven-resources-plugin version 2.4 or later. I have no idea how to resolve this error. I'm pretty su...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL - match records from one table to another table based on several columns I have two tables: tblhobby +-------+-------+-------+-------+ | name |hobby1 |hobby2 |hobby3 | +-------+-------+-------+-------+ | kris | ball | swim | dance | | james | eat | sing | sleep | | amy | s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change line nr color in folded line in vim line number for folded line has the same color as fold text and it differs from colors in other lines. Is there posibility to change line number color here? A: No. Folded line takes presedence because it is "made of" several lines.
{ "language": "en", "url": "https://stackoverflow.com/questions/7602037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Page-tab: show overlay in iframe depending on Like I wanna add an overlay (already built the HTML 'n jQuery) to a custom iframe tab, that only shows if people haven't liked my client's page yet. Is this possible with the JS SDK? How would I go about this? A: While this is better done server-side, you code use somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is Plan B for when heroku goes down on your production app? This question is inspired by this recent outage: https://status.heroku.com/incident/212 There doesn't seem to be much I can do here. I can't push at all, and pushing seemed to be what broke it in the first place. AFAIK, I can't switch over to a new ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I refresh a "form element" when it is changed through a webbrowser control? I am using VB6 (yes, I know it's 10 years old :), but it works). VB.NET answers may work as well, so if you know the answer, please answer too! I am "manually" setting a dropdown box in a form, yet the 'webbrowser' doesn't seem to upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }