text
stringlengths
8
267k
meta
dict
Q: Why am I getting these errors when trying to add a UIWebView to this ViewController header file? I was following the steps here: http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/ Here are the bare bones steps to turning a web app into a native app: * *Open XCode. *Create a new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Combining Razor, Ajax, JSON I try to make following parts run, but always failed. The objective is: if a target in combobox is selected, the mediaId's combobox should be filled with respective values. At this moment I just emulate the values of mediaId combobox. Can anyone show me how to combine them correctly? Thx ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search XmlNode by attribute I have XmlDocument. I don't know XPath, I only know that this xml document has node named "h3" with attribute id="PortalName" and this attribute is unique for all xml document. How to find this node? I try: XmlNode xnList = doc.SelectSingleNode("h3[@id='PortalName']"); but it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select columns from another table and create a column I have 2 tables ads: +------------+------------+-------------+ | id | width | height | +------------+------------+-------------+ | 1 | 300 | 250 | | 2 | 550 | 50 | | 3 | 300 | 25...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding missing rows in a multi-table MySQL database I've just started working on a MySQL database that somebody else put together, and I'm trying to clean it up. There are three relevant tables to my problem - a table listing auctions, a table listing the lots sold at each auction and a table listing the payment sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows transitions I am developing an iOS app using Appcelerator and I got a quick question. How can I choose the transition animation when opening a new window? I do not want to use the default slide to right. This is my code that I use (single context). tab['tab1'].open(Window.Contacts()); This works in a way, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: There is an error in XML document (2, 2) I have searched similar questions and still can't figure this out. Inner Exception: {"<xml xmlns=''> was not expected."} I am pulling the XML from an online source so cannot make changes to it. http://api.ustream.tv/xml/user/techcrunch/listAllVideos?key=devkey I generated th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: request.form for dropdownlist value i need to get value of selected item of dropdownlist using Post Method (request.form). request.form["DropDownList"]; how can i get selectedvalue ,selectedindex or selecteditem.text .... A: Try this (assuming the ID of your DropDownList is DropDownList1: Request.Form[DropDownList...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: GWT in IE8 - Exception thrown and not caught in file *cache.html & but after reloading the page it works I was reading some posts about this error but it looks like that none of them have the same error. My application runs perfectly in chrome and firefox but today I got shocked when I realized that it didn't work i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simulating Errors on the Amazon FPS sandbox I've set up my Amazon flexible payments sandbox account and have been using the PHP library to simulate accepting payments and what not. I was just wondering if anyone knew of a way to simulate realistic error conditions I would expect to encounter, such as what happens wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Tomcat 7: Filter access log I'd like to know if there is a way to filter/supress entries from getting logged in the access log in Tomcat 7. Our logfile is groing rapitly and we'd like to know if we can filter out entries so the file doesn't grow as fast as it is doing right now. We use the Access Log Valve as descri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Doc editor in JSP I'm developing a web application which has the need of a powerful .doc editor. The user has to select a document template (normally a .doc file) filled with placeholders, and through some macros fill the placeholders with the correct values (maybe picked from a db). I proposed my boss to let the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: Properties Map Is there a PropertiesMap in C# which exposes methods like GetDouble(string), GetDateTime(string), etc..? IDictionary<string,string> forces users to take care of type conversion. A: Yes there is ExpandoObject and it has a very clean syntax. dynamic propertyMap = new ExpandoObject(); var item = pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does my Perl script produce corrupted output with large files on Windows? I am new to Perl and am having a very weird print issue. The Perl program runs on Windows XP. It first executes a SQL then loops through the results and outputs to 5 files via 5 sub routines. The 5 files are to be loaded up to a database, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application symbols not showing up while time profiling iPhone app in XCode 4 I'm doing some time profiling XCode 4 but I can never seem to get the application symbols showin up in the call tree in Instruments. I'm only getting system calls. I thought this might be from doing something wrong like not generating d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a string out of array of arrays Sorry for asking probably a basic question, but I'm having a blackout. If I have an array of arrays: Array ( [appsversion] => Array ( [0] => appsversion='6.1.0.33' [1] => appsversion='6.1.0.40' ), [osversion] => Array ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails: Dates without Hyphens I'd like to accept date params without hyphens, such as 20110929. In Rails/Ruby, how can I convert this to a DateTime object? Do I need to edit the string manually, adding the appropriate hyphens, or is there some magic I'm not aware of? Thanks guys! EDIT: Answered my own question, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: view the changed values after an update statement just wondering if it is possible to view the changes of an update command on a table after it has happened? would the transaction log store this kind of information i.e this is the previous/current value this is the new/changed value not sure if this is possible. the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: windows phone 7.5 mango app size limit What is the size limit for an mango windows phone app? i know that the size limit for a NoDo app is 225 mb. Does the limit remain? A: As far as I know yes, there havent been any announcements I came across that addressed different limits for your App Sizes, http://msdn.microso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get horizontal edges between nodes of two or more clusters? I have to clusters A and B with 3 nodes each. I need to connect nodes between clusters in a bipartite way. This code: digraph G { subgraph cluster_A { style=filled; color=lightgrey; edge [style=invisible,dir=none]; node [style=filled...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overloading a Rails module's class method in .irbrc I have a Rails 3 app with a presenter that lives in lib. The relevant part looks like: lib/channels/channel.rb: module Channels class Channel def current_user ApplicationController.current_controller.try(:current_or_guest_user) end def self...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cocos2d. How to create a popup modal dialog (with CCLayer) I need to make a modal dialog(inherited from CCLayer) that is showing in the center of the main layer. While it is showing, you can not press any other button outside the dialog. Just like a normal modal window in MS Windows System. The problem is that I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django.contrib.auth Unit tests fail with AUTHENTICATION_BACKENDS enabled I'm having an issue getting the django.contrib.auth unit tests shipped with Django (1.2.3-3+squeeze1) to pass once an AUTHENTICATION_BACKENDS is set. There are other posts such as Unit testing with remote authentication and How to Unit test wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: End Conversation in Seam when the user leaves the page Is there some way to end a conversation in Seam 2 when the user leaves the page? I know, that I can of course end a conversation in the navigation rules( see this post), but I want to end a conversation when the user enters an url in the address bar of the brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Objective-C – Working with subviews I'm a bit confused. I'm subclassing a UITableViewCell to create my own design of a cell. In the -initWithStyle: method I'm setting up some UILabels like so: self.careerTitleLabel = [[UILabel alloc] init]; [self.contentView addSubview:careerTitleLabel]; [self.careerTitleLabel relea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intercept all current and future links Just wondering if there is a way with jquery to intercept a link when clicked. The problem is that some of the links on my page are not loaded when the page is first loaded. I have a vague recollection of hearing that jquery has a way of intercepting all current and future li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best solution for automated testing in a multiple application scenario I'm trying to choose automated UI testing tools for the following scenario, with 4 applications: * *app 1 one application with a WEB UI *app 2 one flex application *app 3 one html5 application *app 4 one application with a WPF UI So, idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get PHP to execute a function only following successful completion of a download? I have the feeling this should be quite basic, but I've failed to find a solution anywhere. I'm working on an application that sends out an email to admins when a file is downloaded. Currently the email is sent out when a downlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it correct to put a Winsocket connect() and send() in a loop? i'm trying to figure out if i'm doing something wrong with this application i'm coding. The goal of the app is to detect if an embedded devices connected on the same LAN disconnect. A common issue on which i read a lot here on stackoverflow. Since this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: list USB device with specified VID and PID without using Windows driver Kit is there a way to find a USB device with specified VID and PID on windows without involve calling to WDK functions? A: Here's a simplified version of Guo Yanchao's code: unsigned index; HDEVINFO hDevInfo; SP_DEVINFO_DATA DeviceInfoData; TC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Beginner Questions about Android 3D I am doing an academic project, which involves learning android and i needed to know the following details about android OS capabilities along with any good free and open-source 3D rendering API * *Can i display a sphere,cone, a sphere (divided into different positions) ... i w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript: replace string function not working in IE7-8 I've created a JSFiddle that shows my program: http://jsfiddle.net/8Fx3a/10/ As you'll see when a user types in the input field and clicks 'go' the program will try to find that value in the list of links and highlight the word in yellow (by adding a span elem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# opening unavailable network path with Process.Start() I'm opening directories over network using: System.Diagnostics.Process.Start(path); // path = UNC network path But having 2 network paths: \\This_PC_Does_Not_Exist\dir \\This_PC_Is_Turned_Off\dir How come first one takes very fast to verify that the network...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Design Pattern Nomenclature & Clarification: Provider, Service, Broker Can someone define for me the conceptual difference is between a Provider, Service and Broker? I regularly write MVC apps and offload much of the business logic to other classes. Nothing fancy, just pass in parameters and receive back POCO insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Parse e-mail addresses with PHP? Similar to this question, how could I parse e-mail addresses which are in this format, "Bob Smith" <bob@company.com>, joe@company.com, "John Doe"<john@company.com> And get the a result like this: array( 'bob@company.com'=>'Bob Smith' 'joe@company.com'=>'' 'john@company.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python trying to Refactor (DRY out) a long Control Flow I am grabbing a lot of data from and SQL query that takes a long time to run. Since the SQL query takes so long to run, I am grabbing the data from the database in its most granular form. I then cycle through this data once and aggregate it in the forms that ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding named item to named list - guaranteed to append to end of list? When adding a named item to a list, is it guaranteed that the item will be added to the end of the list? In practice it appears to be the case, but not sure if this is a dangerous assumption? test = list() test[[ "one" ]] = 1 test[[ "two" ]] = 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Efficient search algorithm for files with specifed extension C/C++ I want to implement faster directory search. Is there any algorithm in c/c++ is available for that ? A: Check boost::filesystem library on http://www.boost.org/doc/libs/1_47_0/libs/filesystem/v3/doc/index.htm, there you have a recursive_directory_it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Size of Unions in C How the union in C language allocate memory? For example union st { int i; char ch; }; A: An instance of that union will take up at least as much space as its biggest member, i.e. 1 word for the int. If you had a union with a char and a short int, you might end up with a word on the stack anywa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hard code 7 int positions? I am using this method to retrieve some images. The only problem is is where aURL = new URL(myRemoteImages[position]); Position is i dont know how to get the position for each image in order to set the tag in my code. i.setTag(mImageURLs[position]); As you see myRemoteimages has...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a jQuery and AJAX call from a url instead of a form I know how to make a jQuery AJAX call from a form, but how do I make it from a link? I have a list of items on a page and a link to delete each next to the item. How can I make the jQuery AJAX call from the link? Thanks! A: Bind to the click handler of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to replace particular substring using regular expression using java? I have a string as below. $Trap:com.oss.Event(description matches "abc") In the above string the generic portions is $Trap:com.oss.Event(<Any string>). when i encounter the above string i need to replace with the below string. $Trap:com.oss...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the title of a requested page using jQuery AJAX I have written the following to do AJAX requests in my app: $(document).ready(function () { $('ul#ui-ajax-tabs li:first').addClass('selected'); $('#ui-ajax-tabs li a').click(function (e) { e.preventDefault(); $("#ui-ajax-tabs li").remove...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: ReportServer, ReportServerTempDB I have MS SQL Server 2008 installed on my machine and also ‘Reporting Services Configuration Manager’. When I connect to (local) instance with Windows Authentication, I see following two DBs already available in this instance – - ReportServer - ReportServerTempDB Do they come as a pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery - Get HTML content of page and remove form elements I have a page which outputs HTML in ASP.NET webforms. I am making a request to this page via: $(document).ready(function () { $.get("Preview.aspx?ID=1", function (data) { alert("Data Loaded: " + data); }); });...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook app dynamic like I am developing a facebook app where users watch videos from a playlist and view images from galleries. The app itself is hosted on my server then set as a canvas page in facebook. What I want is for users to be able to "Like" individual videos and photos. I have currently set it so that th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP imap_search no search results $some = imap_search($mbox, "TEXT \"{$q}\" "); where $q - some sring query but I haven't results if $q string in body, but results are present if $q is in the subject. What may cause such behaviour? Server settings? A: I have never used the TEXT option. Try to use BODY and SUBJECT o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: javascript popup window and reload I have a slight variation on the window.opener.reload javascript. Normally, if I want to reload a page after closing a pop-up window I use window.opener.reload(true) But this time i want to load a different url into the opener window. So i tried this: window.opener.href('url...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django ManyToMany 'str' object has no attribute I am having an issue with what appears Django using the string name and not getting the "object" associated with that name. I'm trying to use a ManyToMany relationship, but I can't quite figure it out. The error I am getting is: AttributeError at <URL> 'str' object has...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to read a json decoded array with php? I have the following array and I can't figure out how to get any values out of it, this is the array: Array ( [0] => stdClass Object ( [aure] => test [menu] => stdClass Object ( [pizza] => stdClass Obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Remove all nodes after a specified node I'm grabbing a div of text from a url and would like to remove everything underneath a paragraph which has a backtotop class. I'd seen a traverse snippet of code here on stackoverflow which looks promising, but I can't figure out how to get it incorporated so @el only contains...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How would you make an iterator as a key of hash_map? How would you make an iterator as a key of hash_map? How would you define it under gcc, Microsoft c++? E.g. vector<string>::iterator i; hash_map<vector<string>::iterator, int> h; or list<string>::iterator i; hash_map<list<string>::iterator, int> h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC invoke model binder directly on a single object Is there a way that I can invoke the model binder for a single object? I don't want/need a custom model binder - I just want to do something like this: MyViewModel1 vModel1 = new MyViewModel1(); InvokeModelBinder(vModel1); MyViewModel2 vModel2= new MyViewModel2();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: understanding clicks behaviour I wrote this simple code to understand why if I click the "click me" text for the second time JQuery does not display the "second" text. <div id="clickme">Click me</div> <div id="sometext">This is text ZERO</div> <script type="text/javascript"> $(document).ready(function($) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.Drawing.Rectangle Cannot find property setter for "bottom" or "Left" or "Right" or "Top" In Delphi Prism, I am trying to set the Rectangle properties, left right top or bottom, and compiler keeps saying that it can't find a setter to set a value to these properties for Rectangle. I have looked at other stacko...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple post to db in php/mysql - edit Pretty simple stuff, I know, but am getting an error <?php session_start(); $dbhost = "###"; // this will ususally be 'localhost', but can sometimes differ $dbname = "###"; // the name of the database that you are going to use for this project $dbuser = "###"; // the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: JavaScript authentication with c# sdk. What happens on server? I have made a JS authentication on local server, and it also went fluently on server side. As I understood the sdk cached up with the JS auth and all went well. But When I have uploaded this on server, the IsAuthorized method returned false after the JS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want my text box to allow vb script code as text without getting an error in asp.net website I have a TextBox and I want to allow VB syntax, but when I run the site and try to save the VB code to the database, I am getting an error. I believe the error has something to do with the VB code. I have put the httpRunti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any java code samples for session management in OSWAP ESAPI? The documentation provided in ESAPI for Java is incomplete. Does anyone have operational code samples to share for session management? P.S.: Other code samples explaining where and how to start with ESAPI would be welcome too. Thanks. A: I think your bes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: update multiple svn projects in eclipse Is it possible to update multiple svn projects in eclipse in one action? Lets say they all in same folder and in same svn. I know how to do it using external tools. A: With Subclipse you can select those projects and invoke Team / Update to HEAD. Subversive has similar actio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $("input").focus is not working I seem to be having a strange jQuery issue. On my page I have a number of text fields and select boxes and this code: $('input').focus(function() { alert($(this).attr("name")); }); (this is a placeholder code to be completed later on). When the page loads, there are no errors. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't change text area style to field_with_error I'm dealing with this legacy form for creating a new conversation. It has two fields : Name and description (the first comment of a conversation) Here are the fields : _fields.haml .conversation_title= f.label :name, t('.name') .clear = f.text_field :name, :style => '...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: less-style markdown viewer for UNIX systems I have a Markdown string in JavaScript, and I'd like to display it (with bolding, etc) in a less (or, I suppose, more)-style viewer for the command line. For example, with a string "hello\n" + "_____\n" + "*world*!" I would like to have output pop up with scrollable co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Springframework PropertyPlaceholderConfigurer Have question on PropertyPlaceholderConfigurer. If properties file is changed, will spring loads it dynamically or do we have to start app for the changes to take effect? A: They're loaded on startup. But making them reloadable is completely doable. A: The properties ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Checkboxes and options don't persist in HTML 5 local storage I'm coming to an unexpected conclusion regarding HTML5 local storage persistence and inputs. When I use < input type="text" > or < input type="textarea" >, then the data persists in local storage and on page load loads back into fields at the push of a bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I pass a connection string to the constructor of a database-first DBContext with Entity Framework 4.1? For various reasons I would like to not store the connection string for my Entity Framework DB model in one of the various .config files. (I am using the latest and greatest DBContext API with the new Entit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CursorLoader with rawQuery I'm looking into implementing CursorLoader in my app but I'm having a small issue that it seems that there isn't a way to just a pass a raw query to the CursorLoader constructor. I maybe missing something in the documentation (and google), so if anybody can point me to a simple way to run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: why applied template is repeating twice hi i have applied a template data should to be populate only once, here issue was it was repeating twice can any one suggest to stop that repeatation find the below my sample code of xsl Here is my XSL: <xsl:param name="PackageId" /> <xsl:template match="/"> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Purposefully Corrupting a FAT File System? Is there a way to purposefully corrupt a FAT file system using only Win32 calls or must you do it at lower level? We're encountering FAT corruption on a WinCE 5.0 device and have written a utility to detect and attempt to correct it, but don't have a means to create FAT co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Printing stack traces I have a very short test file: let print_backtrace () = try raise Not_found with Not_found -> Printexc.print_backtrace stdout;; let f () = print_backtrace (); Printf.printf "this is to make f non-tail-recursive\n";; f (); I compile and run: % ocamlc -g test.ml % OCAMLRUNPARAM=b ./a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I extract data from XML columns into their own columns? I have 280,000 rows that contain a column called body. This column has xml data. A copy of one column value is shown below. I need to extract into new columns the data contained in the elements of the XML field esn, timestamp_utc, Latitude, Longitude, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the correct way to install Google Go and App Engine SDK? I've been playing with Go and GAE using GoClipse for a bit now on my Mac (since they won't run on Windows). Recently I noticed that when I goinstall a package from github it had some problems working. I figured I'd reinstall the whole thing and set it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Fibonacci Search Somebody please explain me the fibonacci search algorithm. I have tried numerous resources around and searched a lot, but the algorithm is still unclear. Most of the resources described it in link with binary search, but I didn't understand 'em. I know fibonacci search algorithm is an extension of b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Scroll View ignoring contentInset for large content areas I have an app which loads in a grid of images. I've used contentInset so that I have a nice 10pt margin at the top. When I load in an array of images that total less that the scrollView area, it works great. But when I load in an array of images that total mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement Mobile express checkout using php I have created one php page and upon click of "Checkpres checkout" just redirecting into paypal sandbox url, however it's not working. We are using the php url in android webview to do payment everything. So i need your help to solve the problem. What are the inform...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I know the server path for adding to an include_path I have everything working locally with php_value include_path "C:/wamp/www/project" in my htaccess file, but I don't know what to set this value to once it's uploaded to the server. I tried the actual url but it didn't work; I'm guessing this needs to be re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Showing MultiPle UserControl in a Window as ChildWindows I have developed a WPF ERP in which i have a single main window and rest windows i have created as UserControls... Currently I am displaying the user controls in a ContentFrame in the MainWindow but my problem is that i can only display a single user control i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenAL buffer update in real-time I'm working in iOS and have a simple OpenAL project running. The difference to most openAL projects i've seen is that im not loading in a sound file. Instead I load an array of raw data into the alBufferData. Using a couple of equations I can load in data to produce white noise, sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP mysql_db_query being deprecated. Can't fix it I'm getting the following error while connecting to my SQL database: function mysql_query($query) { $dbhost = "localhost"; $dbuser = "p39438_***"; $dbpass = "password"; $dbname = "p31417_***"; $conn = mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get an array size in a function without counting or passing the length as a parameter? I tried use sizeof(array)/sizeof(int), but it seems this doesn't work if I passed the array into another function. So is there any other way to know the size of the array? By the way: I know a char[] ends with '\0'; which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is SVN global ignore recursive? I am new to SVN, and I want to ignore a directory recursively, like in Git. I have a directory, sample, which I want to ignore recursively. >svn status sample/first/1.jpg sample/second/2.jpg sample/third/3.jpg I have tried: * *svn ps svn:ignore "*" . (under the sample directory) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to edit the commit message of a git merge I have merged with other branch, and there are few commits after merge, before pushing i want to change the message of the merge. git rebase -i is not displaying the merge commit. A: Not sure if there is a more elegant version, but what you can do is the following: git ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How can I delete the clicked item from my database... I am new entry for android lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { AlertDialog.Builder adb=new AlertDialog.Bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change table columns name's prefix? I have a table like this below, Field Type Collation Attributes Null Default cde_id int(10) No 0 cde_title varchar(255) utf8_general_ci Yes NULL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Confused about random.choice within join Here is my code: s = 'Hello world' c = ['a','b','c','d','e','f'] n = ['1','2','3','4','5','6'] l = [random.choice(c),random.choice(n)] return ''.join('%s%s' % (x, random.choice(l) if random.random() > 0.5 else '') for x in s) This will output: He5lloe w5o5rl5de But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change the underscore to input area in HTML <P class="p3"><FONT class="ft4">Full Names as in Passport /NRIC_____________________________________________________________________</FONT></P> As you can see, this is part of an HTML form. I want the long underscore to change to a text input area with the same length an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: libc++ vs VC++: Can non-UTF conversions be done with wstring_convert? The C++11's std::wstring_convert works great* for the standard UTF-8 <-> UTF-16/UCS2/UCS4 conversions. However, when I attempted to instantiate a wstring_convert or wbuffer_convert with a facet not from <codecvt>, it didn't work as expected: // wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: PHP undefined index error when clicking a url and invoking a php script I have a call to a PHP script from my home page which I do like this: echo '<a href="/problems/delete_problem.php?problem_id='.$problem_id.'">Delete</a>'; So it is pretty standard. Then in my PHP I have this code: <?php // delete_problem inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ALTER TABLE ADD COLUMN takes a long time I was just trying to add a column called "location" to a table (main_table) in a database. The command I run was ALTER TABLE main_table ADD COLUMN location varchar (256); The main_table contains > 2,000,000 rows. It keeps running for more than 2 hours and still not completed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: How to get the argument's type of a function? I want to guess the type of every argument from an anonymous function, something like mapping a class with reflection but just for a function, something like... public function guessMyArgumentType(f:Function):void { for each (argument:* in f.arguments) { tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS forces rounded corners and glare on inputs iOS devices add a lot of annoying styles on form inputs, particularly on input[type=submit]. Shown below are the same simple search form on a desktop browser, and on an iPad. Desktop: iPad: The input[type=text] uses a CSS box shadow inset and I even specified -webkit-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Python: - How to search SQLite3 DB for Blob type? Following on from; Python - Reading BLOB type from SQLite3 DB Python - Converting Hex to INT/CHAR I have a script that now queries a sqlite3 database with a given id. From this id it finds the IP of that device. This is all done within table1. It then takes this foun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: About Facebook AppID and URL Due to every AppID seems need a correspond URL, that means, every our device needs to apply one AppID with its URL. This is not suitable and not OK for our device goes into mass production due to we don't know the url of the end user. So, does anyone know how to solve this issue? A: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should multiple databases share the same DAL? We have applications that must reach into multiple databases. Previously, we had separate DALs that would reach into only a single database. A separate business layer would sit on top would reach only their particular DAL. Applications (different websites) that would sit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash CS5 won't execute AS3 code I am getting a strange issue in Flash CS5. I have a .fla file that was working fine up until recently. Now, when I Ctrl-Enter to Test Movie...nothing happens. I have a Document Class set up (and when I click the pencil button, it opens up the right script, so Flash knows where the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php send 404 header problems A quick question. I know how to send a 404 header in php but when I do the page still continues to load content. In this case must I kill the script also with die(). I have a custom home made cms which is very fast and well suited to my site. But for some reason google has indexed an imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove newlines from a JSMin minified file and parsing error on IF condition I'm trying to minify on the fly a javascript file with php and JSMin. Everything works fine, but when I try to remove newlines $jsMinifiedClean = str_replace( array("\r","\n"),"",$jsMinified); I get a javascript parse error. After a quick ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++/CLI calling Interop wrapper methods with out parameters I've got an Interop wrapper to some unmanaged DLL calls that return details through out paremeters. The functions appear like this: _myWrapper->My_Method( ... out UInt32 value ... ); So assuming the method is declared like this: void My_Method(out UInt32 v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Complex Oracle query involving max date I'm having trouble getting the data I want from an Oracle database. Any help would be greatly appreciated. Here's a sample of what my table looks like: Table: Vaccinations Patient_ID | Shot_ID | Series | Date_Taken ------------------------------------------- 123 | 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run a .dmg file through java code How can I mount a .dmg file through java code under OS X? A: This will work (but only on OS X): try { String[] command = {"/usr/bin/hdiutil", "attach", "/Users/path/to/your.dmg"}; String sendback = ""; Process proc = Runtime.getRuntime().exec(command...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }