text
stringlengths
8
267k
meta
dict
Q: Wrap element with specific code using jQuery I'm trying to wrap div with specific html code but I'm having problem using jQuery's .before and .after because jQuery would automatically close div I added into .before. This is my html: <div class="navigation"> <a>first</a> <a>second</a> <a>third</a> </div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight StringFormat : remove format on focus (for edition) I have a textbox twoway bound : <TextBox Text="{Binding Path=Cost, StringFormat=\{0:N\}, Mode=TwoWay}" /> When I put an amount (like 1000.1), and then change the focus, the number is formatted like I want (i.e. 1,000.10). But when I focus on the textbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WebDeploy not taking changed files, only new files I'm using WebDeploy to push physical files to a target location when doing a publish from the SiteCore CMS. I'm having some problems though, * *WebDeploy only pushes newly created files, but not any files that have changed *It's using the admin agent service wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fully featured REST server with Ruby? Is possible to create a fully-featured REST server with Ruby (not Rails)? A: Yes, use sinatra. http://www.sinatrarb.com/ A: Yes, see Grape for a good example. A: Yes. You'll need to implement all the rest stuff yourself and there's no good reason to do all the hard work when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I cancel an edit in the Silverlight DataGrid when a validation error has occurred? I have DataGrid and during a cell edit, a validation error occurs (my binding throws an exception and the error is correctly displayed to the user). The user then chooses to just click somewhere (either to navigate to a differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to load injection lib in mac applications at application start? I have a dynamic library, I intent to inject in running application & newly launched applications. I can inject it in running applications with the help of a process running with root user permissions. Now I am trying that library should get loaded ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where have the Eclipse online javadocs gone? For as long as I've been working on Eclipse plug-ins when I have wanted to read some documentation I have always just googled it. This worked fine up until about a week ago when I started being met with this message: | Topic not found The topic that you have requested is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need to authenticate users through a WCF service that is connected to a database I'm getting increasingly frustrated with doing the authentication right. Usually I'm using terms that I'm not familiar with so answerers misunderstand my questions. Its not helped bu the fact that this is a case with many implementation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Regex - Finding two consecutive words with unknown number of spaces (" ") between them I am trying to create a PHP REGEX that will match if two words appear next to each other with ANY number of spaces between them. For example, match "Daniel   Baylis" (3 spaces between 'Daniel' and 'Baylis'). I tried with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Container in MS VISIO If someone knows how to place one figure inside another in Visio VDX (xml) format, please provide explanation (or link) and xml code sample. Thank you. A: I found something that helps but not too much: http://blogs.msdn.com/b/visio/archive/2010/01/12/custom-containers-lists-and-callouts-in-vis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: High-precedence application expressions as arguments A high precedence application expression is one in which an identifier is immediately following by a left paren without intervening whitespace, e.g., f(g). Parentheses are required when passing these as function arguments: func (f(g)). Section 15.2 of the spec sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sharepoint Activating a feature error: The resource object with key 'xxxxx' was not found After succesfully installing the SharePoint Administration Toolkit and activating the PermissionReporting.wsp, the following reports error out: Broken Inheritance Reports Jobs - "The resource object with key 'StatusPageTitle' w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auto-Launch JNLP on click How do I get a JNLP file to auto-launch on click? (as opposed to clicking save or open when clicked) Is this some type of MIME association that the browser must first recognize? A: I think the other answer is outdated as of today. Try changing your link from http:// or https:// to jnlp:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Using cURL to get Facebook Album jSON with PHP I found a script in Web Designer magazine that enables you to gather Album Data from a Facebook Fan Page, and put it on your site. The script utilizes PHP's file_get_contents() function, which works great on my personal server, but is not allowed on the Network Solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: While loop Repeats infinitely I have a while loop that populates a dropdown box with values from a mysql table. There are only two matching records and it is repeating them over and over. How do i only display each record once?: $query = "SELECT * FROM members, sportevents, dates, results, event, userlogin ". ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7556998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIWebView display problem I followed this tutorial http://bytedissident.theconspiracy5.com/2010/11/24/uiwebview-tutorial/ and when I run the simulation in Xcode, all that is displayed is a blank white screen. I'm wondering what could be wrong. Is there some sort of code connection to the internet that i'm missing? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change format of existing date I am trying to format a date to look like this 2011-09-19 If I do the following : leaveDate = "09/19/11" FormatTime, fileDate, leaveDate, yyyy-MM-dd MsgBox, %fileDate% It will just pick up the current date and time because my input date format is invalid. How can I take this 09/19/11 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Approximate string matching using backtracking I would like to use backtracking to search for all substrings in a long string allowing for variable length matches - that is matches allowing for a maximum given number of mismatches, insertions, and deletions. I have not been able to locate any useful examples. The cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript on submit button I have some question. I have the html form with one hidden input element. And I have an array in my javascript code. I want to catch pressing submit button event (by using jquery) and push the array data in the hidden input. The question is - what happens first: form date will flow to .ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble with javascript Replace() This code will replace the comma's no problem, but will leave the $ for some reason... Is it set up wrong? Trying to replace the $ also. function doValidate() { var valid = true; document.likeItemSearchForm.sup.value = document.likeItemSearchForm.sup.value.replace(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read a std::wstring written in linux into windows We have a program which runs on Windows and Linux. It writes out std::wstrings in binary to a file. We need to be able to read in files written from linux into windows. We write out strings as a list of wchar_t. On linux each wchar_t occupies 4 bytes. On Windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comparing Objects in Objective-C I am trying to compare objects in Objective-C and was just wandering how, for example, two objects (which are instances of UIView) are compared that hold two NSStrings like so: #import <Foundation/Foundation.h> @interface Notebook : UIView { NSString *nameOfBook;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Whats the difference between Exception's .ToString() and .Message? I'm looking through some code and I found e.ToString() and I was wondering if there is a difference to using the ToString() method instead of .Message ? Reading below, it sounds like it returns more info. From Microsoft's Docs ToString Supported by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Can Xcode Use "Folder References" for Code? Like many people, I would love to have Xcode use a folder structure that mirrors the folder-structure on disk. However, I cannot get the code in "folder references" (the cyan folders) to show up in my project targets under "Compile Sources." Is there any way to do this? I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Access file in App_Data I have stored a file HelloWorld.txt in App_Data. My application is running locally but not on Server. File Path is D:\MyProject\App_Data\HelloWorld.txt How can I access? Is this is the way? var file= File.ReadAllText(@"D:\MyProject\App_Data\HelloWorld.txt"); (File is on my disk but not o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter: Language file editor? I am looking to find a good way to create an http editor to manage CI language files ... ( for a custom made CMS ) I found following project but its a bit old and buggy : http://www.mrkirkland.com/codeigniter-language-file-translator/ also it doesnt support of adding new language f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: reading log files in Python and outputing specific text I have a piece of code that reads the last line of a log file as the log is being written to. I want to print errors which occur in the logs, basically start printing when line.startswith('Error') and finish printing when line.startwith('End of Error'). My code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to expand hash into argument list in function call in Perl? How to expand hash into argument list in function call in Perl? I am searching Perl equivalent of Python's syntax : somefunc(**somedict) or somefunc(*somelist). Is that possible in Perl? A: In Perl, all function arguments are passed as lists and stored...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3 and jQuery Datepicker i need advice about my problem, i use jquery ui DatePicker, this work really good in my rails problem, but in the form i use with this jquery, i have a white row appear at the end of the page. When i select the field with Datepicker and choose a date, the white row disappears. my jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery dialog always centered How can I implement, that a jQuery modal dialog with auto width & height is always centered in the browser. Also after resizing the window of the browser. The following code doesn't work. I think the problem is the auto width & height. jQuery - code $("<div class='popupDialog'>Loading.....
{ "language": "en", "url": "https://stackoverflow.com/questions/7557068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Not able to load Microsoft.Http dll in ASP.NET MVC3 application at runtime I created a WCF service and exposed it as REST service. I am trying to consume this service from ASP.Net MVC3 application. I added a reference to Microsoft.Http dll, to use HttpClient and get the response from a POST method of REST service, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to access my lan based postgresql db from my website We have lan based .Net application with Postgresql 8.1 , now i have task to provide interface on website to read and write two tables on LAN based database I don't know where to start Please help me to solve this problem. Lan: Windows NT 2003 .Net Postgresql ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure web.xml for multiple login in a Struts2 web application? I would like to develop a small test multi-login application using Struts2 and JSP. Basically: * *The application should have welcome page (i.e. index.jsp) anyone can access. *This welcome page would have two login boxes: one for users and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Suggest a text editor or IDE for chapel programming language I want to write some short numerical programs in chapel. Can somebody just tell an IDE, or text editor which supports code highlighting for chapel (chapel-aware), is there an elisp-file for emacs? I don't prefer vim, even if a script for vim exists. I trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to loop chained calls elegantly in JavaScript/CoffeeScript? I'm using Soda to write Selenium tests in Node.js and I have a situation where I have to press the down key several times. The code currently looks like this: browser ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: matplotlib interactive mode: determine if figure window is still displayed I am using matplotlib in interactive mode to show the user a plot that will help them enter a range of variables. They have the option of hitting "?" to show this plot, and the prompt for variables will then be repeated. How do I know to not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: how to create database in blackberry os 5.0 using javascript I need to create the database in blackberry os 5.0 using javascript for phonegap application. var mydb=false; function onLoad() { try { if (!window.openDatabase) { alert('not supported'); } else { var shortNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Possible hacking attempt. How to tell if my db has been compromised I have the following in my log file with seconds apart. I'm assuming something was trying to find my database or an admin page or something, but i'm not sure. Should I be worried about this and how can I tell if my db has been compromised? ERROR - ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MyBatis 3.0.5 and mappers loading problem I'm using MyBatis 3.0.5 and I have problems about the loading of mappers as resources. I'm on Windows 7 64, I use Eclipse Indigo 64bit and jdk7 64. MyBatis is initialized in a Grizzly Web Container (where are implemented rest services with jersey framework) standalone instan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: asp .net Application performance I have an asp .net 4.0 application. I have an mdf file in my app_data folder that i store some data. There is a "User" table with 15 fields and an "Answers" table with about 30 fields. In most of the scenarios in my website, the user retrieves some data from "User" table and writes s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help me optimize this query I have this query for an application that I am designing. There is a table of references, an authors table and a reference_authors table. There is a sub query to return all authors for a given reference which I then display formatted in php. The subquery and query run individually are bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server: calculate field data from fields in same table but different set of data I was looking around and found no solution to this. I´d be glad if someone could help me out here: I have a table, e.g. that has among others, following columns: Vehicle_No, Stop1_depTime, Segment_TravelTime, Stop_arrTime, Stop_Seq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do any of Apple's devices support iOS 4.0 but not multitasking? Do any of Apple's devices support iOS 4.0 but not multitasking? If not, I don't understand the [UIDevice isMultitaskingSupported] API (which was only introduced in iOS 4.0). Thanks A: Yes. * *Iphone 3G *Ipod Touch 2 Due to hardware limitations, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using One-to-Many associations with H2, JPA annotations and Hibernate Problem We're using a combination of H2, JPA annotations, Spring and Hibernate to develop our webapp. We're using H2 in compatiability mode with MODE=Oracle. We have an ItSystem class that has an one-to-many association with an ItSystemAka class a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVN Change a file during branch Let's say I have script.py. When I'm branching this using svn copy I want to append a line to the top of the file. Is this possible to do? Or can it not be done? So svn copy -rHEAD file:///svn/repo/trunk/script.py file:///svn/repo/branches/script.py (Add line to the top of the branc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ExceptionHandler shared by multiple controllers Is it possible to declare ExceptionHandlers in a class and use them in more than one controller, because copy-pasting the exception handlers in every controller would be redundant. -Class declaring the exception handlers: @ExceptionHandler(IdentifiersNotMatchingExcepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to convert integer to decimal point in PROLOG? How to convert integer to decimal point in PROLOG? Example, imagine I assign Integer = 10 How do I change integer's value to turn to 1.0 (1 decimal point) ? A: It's not an assignment but Integer is unified with 10 and can't be changed thereafter. You could write In...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to put the ID of Google Analytics on my Android App? I have this ID for my GA account: "UA 25832113-1" ok, but... how I have to put it on my app? Which format? A -> "UA 25832113-1" B -> "UA-25832113-1" C -> "25832113-1" A: B is correct. (ie. 'UA-10876-1') Official docs: http://code.google.com/apis/analytics/doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLite: Downsides of ANALYZE Does the ANALYZE command have any downsides (except a slighty larger db)? If not, why is not executed by default? A: There is another downside. The ANALYZE results may cause the query planner to ignore indexes that you really want to use. For example suppose you have a table with a bool...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Defining an object without calling its constructor in C++ In C++, I want to define an object as a member of a class like this: Object myObject; However doing this will try to call it's parameterless constructor, which doesn't exist. However I need the constructor to be called after the containing class has done som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: AtomicXXX.lazySet(...) in terms of happens before edges What does mean AtomicXXX.lazySet(value) method in terms of happens-before edges, used in most of JMM reasoning? The javadocs is pure on it, and Sun bug 6275329 states: The semantics are that the write is guaranteed not to be re-ordered with any previous write,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: JSF Controller Bean - Scoping WI have a question about the "Best Practice" Design for controller beans. I was reading this very good question and the linking article: Question "JSF backing bean structure (best practices)" Scoping Best Practice Online Article Distinctions between different kinds of JSF Managed-beans...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SharePoint 2007 onchange event not unbinding in ie6 Im confident that this isnt a sharepoint 2007 issue, but id rather cover all of my bases. I am consulting at a large company, developing a sharepoint solution for their intranet. One of my tasks is to switch the regular dropdownlist in the sharepoint 2007 listview ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Broadcast receiver registered from code I register receiver from the onCreate from my activity like this IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); BroadcastReceiver mReceiver = new ScreenOnOffReceiver(); registerReceiver(mReceiver, filter); And ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image instead of title in navigation bar of TTLauncherView I use the TTLauncherView in my project. To have a custom navigation bar background I have subclassed the UINavigationBar in my app delegate. This works fine and all navigation bar's now have this custom style. @implementation UINavigationBar (CustomNavBarBG)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: regex websphere file with php i'm trying to create a regular expression for this kind of log: [9/23/11 11:09:53:632 CEST] 0000005b FormLoginExte 3 Form based login: userid/password present in the form. User is: user1 i've created this: preg_match("/^[\d+/\d+/\d+\ \d+:\d+:\d+:\d+\ CEST]\ \w{8}\ \w+?\ +\w+?\ +.+?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: capture url in href tag I have an exit page that informs users that they are leaving my site. How do I capture the intended url from the referring page and send the user to it once they've acknowledged on the exit page that they're aware they're leaving my site and wish to continue to their destination? My current s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery issue in IE, Chrome but not in FF Having some problems with a piece of Jquery code, well that's where I think the problem is - On FF when the page loads after 2 seconds it animates panels from the left of the screen to the right. It looks fine without any issues but in Chrome and IE it jumps back and continue...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling method X from each parent what i'm trying to do is call each method "init" from current class's parents. I'm doing that to avoid programmers to have to call init method (parent::init()) each time they create an init method in a new controller. Example: class Aspic\Controller { } // main controller class Cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to shorten a java.security.MessageDigest generated value? If I generate a message digest (for a security feature in my app) using this Java code: java.security.MessageDigest saltDigest = MessageDigest.getInstance("SHA-256"); saltDigest.update(UUID.randomUUID().toString().getBytes("UTF-8")); String dig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS spacing problem. need fresh eyes.(should be easy) okay so this minor yet MASSIVE annoyace is that, i have a site im working on, and a panel in particular is behaving oddly. i have a generic box div which will hold 2 images, one ontop of the other and i want absolutely no spacing inbetween them. problem is that n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I toggle a calendar or datepicker in an overlay when clicking a link? I'm trying to attach the jQuery datepicker to a hyperlink vs the conventional input element. I know this has already been talked about here and there which led me to this implementation: $(document).ready(function() { var picker_link_id ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery form not being submitted. Firebug no errors This jQuery isn't working. When i click Vote nothing happens. The div ratecontainer should disappear and nothing is inserted into MySQL when i check. In Firebug i get no errors. What did i do wrong? echo "<div class='ratecontainer'> <form id='rateform' action...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Move constructor for std::mutex Many classes in the c++ standard library now have move constructors, for example - thread::thread(thread&& t) But it appears that std::mutex does not. I understand that they can't be copied, but it seems to make sense to be able to return one from a "make_mutex" function for example....
{ "language": "en", "url": "https://stackoverflow.com/questions/7557179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Validating Users Authenticated with Oauth I've got Oauth support in place for an app I'm working on. What I'm trying to work through is the logic for associating Oauth accounts. Example: Let's say a user has logged in before. They authenticated using Facebook. I now have an email address which I can safely assume...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get most active users in a facebook page How do I get the most active users in a facebook page for a certain time period? Is is possible to do it with the graph api? Thank you! A: There is no built in way but you could pull down all posts via the Graph API and loop through the posts, comments, and likes and make yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can SQL Server Report Services Designer be rehosted? I would like to be able to edit and create at run time reports based on SQL Server Reporting Services from my application. Can SQL Server Report Services Designer control be rehosted in a custom .Net application outside Visual Studio, in a similar manner to how th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RegEx - HTML between two values I am looking to get the html that is included between the following text: <ul type="square"> </ul> What's the most efficient way? A: I always use XPath to do things like that. Use an XPath that will extract the node and then you can fetch the InnerHTML from that node. Very clean...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to rewrite a form action on the "Help Page" of an ASP.NET web service For normal .aspx pages I can just put a Form.browser file into the App_Browsers directory like the following. <browsers> <browser refID="Default"> <controlAdapters> <adapter controlType="System.Web.UI.HtmlControls.Htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WYSIWYG editor component for GWT I'm looking for a WYSIWYG editor component for GWT or which is easy to use in a GWT generated page. Any clue? I took a look at CKEditor, but I don't know if it's easy to integrate with GWT. If you have done something like this, I'm interested in your feedback. A: CKEditor has been i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change datatype from xs:string to strongly types in Biztalk schema? I need to have a datatype of Amount (reference) for my Amount field. How to change that? Now I just get the normal datatypes (xs:string, xs:double, etc), but the existing fields are strongly typed like this - Datatype : Amount (Reference). Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLITE: PRAGMA temp_store = MEMORY In all optimization guides people talk about pragma's like JOURNAL_MODE or SYNCHRONOUS, but I never read anything about the TEMP_STORE pragma? I would expect it has a large impact, so why is it never mentioned? It's purpose is to move all SQLite's internal temporary tables from dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Image upload doesnt work in IE? But it's fine in other browsers So I'm facing this issue, one I've never had before in over 4 years of development, HTML code <fieldset id="step_3" style="display:none;"> <legend>3. Add Photos</legend> <ol> <li> <label for="main_image">Main Image..</label> <input t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I handle multiple CheckBoxes in the MVVM pattern? Binding checkbox in WPF is common issue, but I am still not finding example code which is easy to follow for beginners. I have check box list in WPF to select favorite sports’ name. The number of checkboxes is static in my case. Can anyone show me how to impl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual studio for c++? I have installed visual studio express 2010 c++. However when trying to follow a beginners book and make the hello world program, visual studio opens up a project with this in it: #include "stdafx.h" using namespace System; int main(array<System::String ^> ^args) { Console::WriteLine(L"Hello...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ nested preprocessor directions I'm using preprocessor directives to de-bloat some templated operator definitions. E.g. #define BINARY_VECTOR_RETURN_OPERATOR(optype) \ template <typename T, typename U> \ vector<decltype(T() optype U())> operator optype (const vector<T>& A, const vector<U>& B){ \ vector<declty...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass parameters to HXT arrows and how to use -<< my question is the following. I have this xml file to parse : <DATAS LANG="en"> <SCENARIO ID="19864"> <ORIGIN ID="329"> <SCENARIO_S ERR="0"></SCENARIO_S> <SCENARIO_S ERR="2"></SCENARIO_S> </ORIGIN> </SCENARIO> <ERRORS> <ERROR ID="0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Style TextAppearance.Holo not found I have been building this app for a while now and have not had any trouble with the themes until I updated to the latest platform tools today. Now it's telling me error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Webinject - Parse content of a cookie I have a Webinject testcase that needs to set an additional header with the content of a previously received cookie. My first testcase logs into a web application and gets a token for identification. Parts of the content of the cookie need to be set as additional header. How can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: example to build groovy json and with groovy builder needed empData1.groovy def empMap[] = [1:2, 2:2, 3:[1:2,3:3,4:890,A:B], //Map inside Map 4:4, 6:7 ] empData2.groovy def empMap1[] = [91:21, 92:22, 93:[81:82,83:3,84:890,A:B], ////Map inside M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R.string.value showing up as a number For the below code I intended to get the system date and display it as per the formatting of the current locale, it's just that for the R.string.date. In emulator it always shows up as a long number (something like 821302314) instead of "Date: " which I has already externalized ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: get xml root attribute as String in JSP Anyone have a quick and simple way to get an attribute from the root node of an xml document as a String? I want to then be able to use this string to run through an if statement.
{ "language": "en", "url": "https://stackoverflow.com/questions/7557230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select * from n tables Is there a way to write a query like: select * from <some number of tables> ...where the number of tables is unknown? I would like to avoid using dynamic SQL. I would like to select all rows from all the tables that (the tables) have a specific prefix: select * from t1 select * from t2 select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Migrate a repo not always using the trunk/branches/tags structure from SVN to GIT I'm looking for a way to permanently (i.e. no git-svn will be used after the import and the repo will be cloned again to get rid of all git-svn remainders) migrate one of my SVN repositories to git. Usually this would be an easy thing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running shell script command after executing an application I have written a shell script to execute a series of commands. One of the commands in the shell script is to launch an application. However, I do not know how to continue running the shell script after I have launched the application. For example: ... cp so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jsoncpp formatting problems I'm using jsoncpp and I'm having a problem with how the json messages are formatted when they are written using one of the Writers. For example: root["name"] = "monkey"; std::cout << writer.write(root) << "\n"; Gives me something formatted like this { "name" : "monkey" } While I ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: convert images from python to c# - Image sizes are way too different I am trying to convert images from python to c#, the images which python has created are much smaller in size and images which .net is creating are much larger in size. I do not want to reduce the quality of images, not sure why it is happening. he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent dialog dismissal on screen rotation in Android I am trying to prevent dialogs built with Alert builder from being dismissed when the Activity is restarted. If I overload the onConfigurationChanged method I can successfully do this and reset the layout to correct orientation but I lose sticky text feature of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "102" }
Q: Tutorial or Guide for Scripting Xcode Build Phases I would like to add some files to the Compile Sources build phase using a script in Xcode, which pulls from some folder references. I haven't been able to find much documentation so far. * *Where is the general documentation (or a good tutorial) for scripting Xcod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What should I do when a standard is made private and only accessible for a fee? I have some software which we added an open common file format (.iwb) to. The government organisation that initiated that work has been cut in the cutbacks. Now a not for profit organisation has taken up the mantle, however its going to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can an element of a array know who is the owner of that array in JS? This probably seems a little bit strange but let me elaborate... I have an instance of an object (z is the instance of Bla in this case), and it has a list of other objects (Bla2's), something like this: Bla = function() { this.array = [new Bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I easily package libraries needed to analyze a core dump (i.e. packcore) The version of GDB that is available on HPUX has a command called "packcore", which creates a tarball containing the core dump, the executable and all libraries. I've found this extremely useful when trying to debug core dumps on a diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Building subscription based application with Ruby on Rails I am planning to write a subscription based application which will allow users to do the following: * *Subscribe/Sign-up to a plan (will select from multiple plans available) *Will use subscription based billing solution e.g. Recurly, Chargify. *Each cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: django queryset filter question I have a model I want to filter with a search term, which is usually a name. However in my database first_name and last_name are two separate fields. e.g. search_term = 'Will Sm' db_persons record: first_name = 'Will', last_name = 'Smith' the search term would be able to retrieve this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MSDOS command(s) to copy files matching pattern in directory structure to local directory I have a job that periodically runs and archives files into a folder structure that looks like this: ArchiveFolder TimestampFolder JobnameFolder job<timestamp>.xml For a given job, I'd like to collect a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How many numbers are in the Fibonacci sequence Assuming I'm asked to generate Fibonacci numbers up to N, how many numbers will I generate? I'm looking for the count of Fibonacci numbers up to N, not the Nth number. So, as an example, if I generate Fibonacci numbers up to 25, I will generate: * *1, 1, 2, 3, 5, 8, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep a secured DB of network passwords and access it programatically I need a solution to store all my network passords in a secure database. For that, I was thinking of Keepass. Now once the kdb (keepass DB) or something similar has been created, I would like to access it programatically preferably via Java....
{ "language": "en", "url": "https://stackoverflow.com/questions/7557297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Insert date only into database I am trying to save only date (ex: 2011/09/26 00:00:00) from getdate(). I am using sql server 2005. My sql query is going to be like this: Insert into Merchant(startdate) values **today's date only** How is it possible? A: INSERT INTO Merchant (startdate) VALUES (DATEADD(DAY,0,DATE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: dispose serial port I am using using class System.IO.Ports. In some cases this component still runs even when the program is closed. As a result I can not open the new serial port with the same port name, cause it is already opened. Please, is there any way how to dispose System.IO.Ports in c#? A: When you say "thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ERROR 1136: Column count doesn't match value count at row 1 I get the Error: Column count doesn't match value count at row 1. But I've checked and rechecked my query and everything seems ok: UPDATE table SET col = 'enum(''FOO'',''BAR'')' WHERE col1 = '' AND col2 = 'val2' AND col3 = 3; I though...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }