text
stringlengths
8
267k
meta
dict
Q: Why is os.path.expanduser misbehaving when the home directory has special characters? Currently, my user directory is located in "C:\Users\João", and I'm running the Python 2.7's 64-bit build under Windows 7. Normally, the Python interpreter runs with 'ascii' as the default encoding. However, for some reason, when E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to design a web application that developers can use to retrieve the crashdump/Logs from customer environment Hi I am c++ developer and my knowledge to web technologies is minimum. Right now i am trying to design a web application which the development team can use to connect to specific customer and collect any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TFS Build Error While Invoking custom build file via TFS Build definition I use TFS 2010, VS 2010. I wrote a custom msbuild proj file which I use locally to build my solution. I use MSBUILD.exe TFSBuild.proj and it does everything in my local machine. (I have a taregt called 'DoMyBuild' which kicks off the build and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to turn off web camera in IE using action script I am using flash professional for take photo from webcam. My requirement is that I want to start camera and after 2 sec it will take photo and turn off the camera. I did that and its working good in all browser except IE. Actually, I am display:none that flash obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert CGI REMOTE_ADDR to network byte order for use with MySql INET_NTOA I'm trying to log requests for a script and I want to store the client's IP Address in an int(4) column, using INET_NTOA() to return it in a readable function. However, in my Perl CGI script, $ENV{REMOTE_ADDR} contains an IP in host byte orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you track when an android application has been terminated? Looked at android documentation and it appears that we don't have the ability to know when an app shuts down. Whether it was explicitly by the user or automatically by the operating system. Below is the onTerminate() documentation which is only availabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Vim Regex Duplicate Lines Grouping I have a log file like this: 12 adsflljl 12 hgfahld 12 ash;al 13 a;jfda 13 asldfj 15 ;aljdf 16 a;dlfj 19 adads 19 adfasf 20 aaaadsf And I would like to "group" them like one of these two: 12 adsfllj, 12 hgfahld, 12 ash;al 13 a;jfda, 13 asldfj 15 ;aljdf 16 a;dlfj 19 adads, 19 adfas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I change a button from going to the next page to doing some code? I am new to perl/html. This is from a perl file. This button is in there right now: <button id = "button1" name = "submitButton" type="submit"> <span class="right">Submit</span> </button> I don't see any piece of code where submitButto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the line width of error bar caps How can the line width of the error bar caps in Matplotlib be changed? I tried the following code: (_, caplines, _) = matplotlib.pyplot.errorbar( data['distance'], data['energy'], yerr=data['energy sigma'], capsize=10, elinewidth=3) for capline in caplines: ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Debugging my downloader I have a downloader application in C# using .NET 2.0. For the most people it works well, but I saw that I have big error log from other people. The 99% of the exceptions are: * *Unable to connect to remote server *The remote name could not be resolved *Operation timed out Can this be f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get photos with graph api I've read a lot of tutorials/articles/questions here about this, as well as trying to find something useful in the fb documentation. So far I've made no progress at all myself so any input would be greatly appreciated, I'm simply trying to access a list of my photos but all I get is an empt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: group_concat only when more than one to group I'd like to perform a group-concat in SQLite only on those records where there is more than one row to concatenate. It seems like you could do this beforehand (count records using a group by then remove those singleton rows before proceeding with the group_concat); afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android app to search mp4 videos by metadata I have a set of mp4 files that I need to load onto an SD Card and read in my Android app. The app needs to be able to search the videos by category, so my plan was to add some category info in the mp4 metadata before loading them (probably in the "description" field) and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ELF format manipulation I have a requirement where I want to associate an index with a file(in a certain format). I was wondering if I can do any ELF manipulation and still ensure that, consistency is maintained so, the file works fine on linux. The idea here is to create a file format which can be queried by a cert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Multiple relationships of the same type but with different properties between the same two nodes Can I create multiple relationships of the same type between the same two nodes? I am trying to discover patterns in nodes connected with the same relationship type. For e.g., relation PERFORMED_BY could have a propert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: cgi waiting page how I can do something like that: http://online.vodafone.co.uk/en_GB/assets/static/ipi_please_wait.gif thanks A: Go to http://www.ajaxload.info/ and generate your own ajax loader :)
{ "language": "en", "url": "https://stackoverflow.com/questions/7601353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I make a drawable from multiple images? I have three 9-patch PNG's which together make up the background for a button (left side, middle, right side). I would like to combine these three images together in a drawable which I can specify as the background for a button in XML, something along the lines of: res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to keep focus in input element where Enter was pressed to submit form Form contains input elements and submit button. Pressing Submit button shows pdf file in new tab in browser. If enter is pressed to show report, focus moves to submit button. After selection report parameters tag again additional click in inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does dynamic work with IUnknown and Typelib Currently I'm experimenting with C#4's dynamic programming and I did not completely understand under which circumstances the keyword dynamic works. It is clear to me that it works with IDispatch, as it allows to inform the caller with type information automatically. But sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a link to an image Is there a way to add a link to an image using an input box, let say you have an image uploaded and you have an input, Image Link: <input type="text" id="image_link"/> in this box a user types in www.google.com and you want the link to append to the image. Is there a way to do this? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding Items to a ListBox I have a WPF main window, which contains a toolbar with buttons and a tabcontrol that is displaying a page with a listbox. The page is hosted on a frame, and the frame is set on the tab I selected. When I click on a button on my toolbar, a new window pops up with a textbox and a submit butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: clojure for loop, store the values in a set or map This one has been bothering me for a while now, How should we store a value in a set or map in a for loop? (let [s #{}] (for [ i (range 10) j (range 10) ] (into s [i j]))) i know this will not work, but i want a functionality similar to this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: delete multidimensional arrays In C++ FAQ, the [16.16] gives the following example, void manipulateArray(unsigned nrows, unsigned ncols[]) { typedef Fred* FredPtr; FredPtr* matrix = new FredPtr[nrows]; // Set each element to NULL in case there is an exception later. // (See comments at the top of the tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# foreach on a collection of an interface I'm wondering if there is any functionality built in to C#/LINQ to simplify the following: foreach(var item in collection) { if (item.GetType() == typeof(Type1) DoType1(item as Type1); else if (item.GetType() == typeof(Type2)) DoType2(item as Type2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I wrap text around a moveable image? I am trying to implement an interface where users can dynamically enter text and upload images. I wish for the interface to have these features: * *The images should be moveable i.e, ability to drag and drop the images around. *The text entered should automatically wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Inline-block span (inside an html td) text-ellipsis fails on long words My objective is to have a cell inside a HTML table with an expand button. This is the html I used: <td> <span class='outer'> <button>+</button> <span class='inner'>Sed eu nisi sit amet</span> </span> </td> The outer span is centered...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I measure the length of a long string in Ruby? SciTE and command prompt aren't working. I've written a program that measures my typing speed. As part of this, I need it to count how many characters I've typed. I did that with text = gets.chomp puts text.length.to_s Unfortunately, I can't get this working f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoMapper memory leak when querying an array of IDs I run this query in a rails console process that has a "5.3%" memory usage. (User is a MongoMapper::Document-included class) user_ids = ["4de409fc7813b4789d000001", "4de4efdc7813b410e9000007", "4de5297f7813b410e900023b", "4de4f8847813b410e9000037", "4de40eb17813b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Haar Cascade the only available technique for image recognition in OpenCV I know that there are many detection techniques in OpenCV, such as SURF, STAR, ORB etc...but those techniques are for feature detection of new video feed, not for dealing with specific instances of objects that require prior learning. OpenC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: local variable not accessed & 'this' context enforcement i have the following piece of code that is giving me trouble working [question(s) after code] var LIB = function(){}; (function(){ var JSExpert = function(lname){ if(!(this instanceof arguments.callee)){ return new JSExpert(lname); } this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITableView Animations I am attempting to create a animated cell when it is selected. Everything seems to be working really odd. If I send the ButtonView to the Self.contentView of the UITableView Cell it works like it is supposed to and adds the cell in desired row but I loose button functionality at index row. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any benefit of uses CHAR over VARCHAR? CHAR is stored as a fixed length string, VARCHAR is stored as a variable length string. I can use VARCHAR to store a fixed length string, but why people still want to use CHAR to store a fixed length string? Is there any benefit of using CHAR over VARCHAR? If none of benefit, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a way to use tortoise svn to backup my modified files? I have a bunch of files that I've changed that I don't really want to commit, but I would like to back them up locally in case I would like to use them again. (Then I'll revert them.) TortoiseSvn working status helps to view the modified files, but I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: get html and text of highlighted (selected) elements (spans) and store text in hidden textarea I want to know how to get the html and text of spans that are selected. Example html: <span>a</span> <span>b</span> <span>c</span> <span>d</span> so if I highlighted with my cursor (a-b)...I would get var storedHtml = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is default integer limit in PostrgreSQL database for Rails 3? What is default integer limit in PostrgreSQL database for Rails 3? That's the question. A: By default, Rails will use PostgreSQL's integer type, which has a range of -2147483648 to +2147483647.
{ "language": "en", "url": "https://stackoverflow.com/questions/7601430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: An automated algorithm tool for running time I am wondering if there is an open source project that can run the algorithm and tell us what the running time is (just need to know the Big-Oh running time). I know I can do this with hands, but a lot of algorithms are too long or too complex to actually trace the runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: my application crashes trying to call native method while woking on emulator? I am developing a program that uses native code and it works fine on the testing device Samsung galaxy S but when i try it on the emulator it doesn't work , the program just closes with no exceptions. while debugging i found that the progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JComboBox as a Custom TableCellEditor I have a table. Changes on that table update database. One column is edited by a JComboBox in that table. Clicks to any cell in that column fires a tableChanged event. However it needs to be fired after selecting an item of a JComboBox. How can i make tableChanged occur after se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: bluetooth project with Android. How to scan the piconet, master and slaves I have a big issue. I would want to create an app on Android (telephone) where should act as a master, and several devices (bluetooth modules) should act as slaves (only piconet, not scatternet). I need that everytime, the master wants to che...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML Emails - Empty Tables/TR/TD as spacers Has anyone had any experience with using empty tables, table rows or table cells as layout spacers? I've been testing out my HTML email in various email clients (Mail, Entourage, Gmail, etc.) and Gmail seems to react to empty table cells differently (not accounting for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to detect if a column is a computed column I'm working with SQL Server 2000 and Java. I am creating an application that, among other things, reads the metadata from the tables, recreates them at another server and carry the data. One of the tables was created this way: CREATE TABLE some_table ( Date datetime...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NUnit and NMock- ExpectAndReturn - How to tell NMock to expect CreateObjectSet I have the following var objSet = new DynamicMock(typeof(IObjectSet<Nationality>)); objSet.ExpectAndReturn("GetAll", new List<Nationality> { new Nationality { //obj init here }, new Nationality { //obj init here } }.AsQuer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP MVC 3 Telerikgrid sending Rowvesion(byte[]) to controller I have a telerik MVC 3 grid, that contains checkbox column. if the user select multiple items and clicks a button, i need to send the id and byte[] timestamp(for concurrency) to the controller. user can select any number of items, so i dont want to bring ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Orange box around links Recently orange boxes started appearing around links on my page and I don't know why. I didn't do anything to make that happen and I can't find anything in the CSS indicating that that should be happening. On my homepage: http://ultimatemmo.webege.com/index.html notice how when you click on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective C: Sharing an object with another class I'm still new at this Objective C stuff and I'm trying to clean up my code using Object Oriented Programming (OOP). I'm having trouble sharing an object to my second class that was created in my first class: Class1.h @interface Class1ViewController : UIViewController...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested model form: one subclass isn't saving its changes I'm working with a nested model form that appears to be working from the browser experience. When I submit the form, however, only one subclass gets updated properly. Here are the models: User: class User < ActiveRecord::Base has_many :ducks has_many :plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Position div ontop of active select box I have a dropdown menu which I want to position ontop of everything else. However if I click on a select and then hover over my dropdown menu the select options appear ontop of the menu. How can I get the hovered menu to appear ontop of the select? Sample code http://jsfiddle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Wordpress - Thematic Custom Post Type Loop - Child Theme I'm new to Thematic, and I really like it, I want to know what I'm doing wrong, I got this custom post type (CPT) called "Intranet" and in a page I want to load a custom template to run the loop with the query for showing these. But when I try to change the lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: App Engine memcache async operation get_multi_async Ho to use memcache get_multi_async. Doc says it returns "dictionary" of values. http://code.google.com/appengine/docs/python/memcache/clientclass.html#Client_get_multi_async I was expecting it to return some kind of "async object" on which i can do get_result() lat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OCaml shebang syntax error $ cat hello.ml #!/usr/bin/env ocamlrun ocaml let rec main = print_string "Hello World!\n" $ ./hello.ml Hello World! $ ocaml hello.ml Hello World! $ ocamlc -o hello hello.ml File "hello.ml", line 1, characters 0-1: Error: Syntax error $ ocamlopt -o hello hello.ml File "hello.ml", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieving iframe contents after a form submitted to it I have a form with an iframe as its target, and I want to retrieve its contents after the form has been submitted. The problem is if I do something like: $('form').submit(function (e) { e.preventDefault(); var content = $('iframe').contents(); }); I g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Webview Rendering Issue - Android I have a WebView within a FrameLayout. The height and width attributes of both the views have been set to 'fill_parent'. However, when I retrieve content from a site and display it via the WebView, the site occupies only 3/4th of the height of the screen. The width of the view is fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Cycle Plugin For Loop I have been stumped trying to figure out how to integrate a simple for loop to work with the jQuery Cycle plugin. In my basic example I am trying to create 15 cycle functions using jquery .hover() and .cycle(). for(i=1;i<15;i++){ $(".t"+ i).hover(function() { $('.projectTitle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Strange request timeout on Heroku First of all I'm quite familiar with the H12 timeouts on Heroku. I use Delayed Job for long running tasks, etc. The issue I'm seeing is that a rails 3 request that takes 2 seconds locally, is timing out on Heroku. I've added logging for the entirety of the controller action, and b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hungarian notation in Intellij IDEA I have to do some maintenance on legacy code that uses Hungarian notation (and Systems Hungarian at that). Unfortunately, it's not practical for me to just clean it all out of the codebase. Local Eclipse users claim that Eclipse can be configured so that auto-generated accessors a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How should I create relative paths in javascript using MVC3? I am having some difficulty aligning my paths without a hardcode in javascript. I am running an asp.net MVC3 web application. If my path is of the form var url = 'http://serverNameHardcode/websiteNameHardcode/service/service?param1=' + param; Then things...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSUnknownKeyException Causing Crash on Button Click So I'm not sure what is going on. I haven't really changed much. Nothing having to do with this class anyways. It was working fine just a bit before and now I'm getting this crash. -(IBAction)mphButton:(id)sender{ if(self.mphVC == nil){ MphViewControll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening a word document on clients PC, through a PHP application I am developing a web application in PHP as a replacement of Microsoft Access based application for a company. In old access application in their database they were storing a link to a word document, which further links to other documents. Now in acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Null Processing in MS SQL Server 2008 I’m not a SQL DBA and I’m having an issue. We run MS SQL 2008 server and just upgraded it from MS SQL 2000. I’m trying to run a query created for the DB in MS SQL 2000 and use the results for our mailing list. The query is: SELECT DISTINCT Title, FirstName, MiddleInitial, Las...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Azure Service Configuration seem backwards to anyone else? I've just migrated and deployed my first Azure Web Role this week and now that the pressure is off to get it deployed I'm reading "Azure in Action" and after reading about configuration settings the whole thing rubs me the wrong way. This seems fine fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a better approach to prototype for multiple types Ignoring the fact that this is implemented by many frameworks.. What is the best way to prototype for multiple object types. For example, Should I write: Element.prototype.bind = function(eventType, fn) { this.addEventListener(eventType, fn, false); }; No...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get all facebook app request for a user of my apps without storing them We are building a apps and we want to clear all the apps request for our user when he log into our apps. I know we could store the request when we send them and clear them when the user log to the apps. But is there anyway to get all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Choosing between reference (T&) and const pointer (T* const) Is there any reasonable use case, where one should use const pointer over reference? T obj; T &r = obj; // style-1 T* const p = &obj; // style-2 Both the style can be used for the same purpose. I always prefer the 1st style in the code and consider the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: how can i create reports in a java web project? I need to have a preview&print option on some of my pages in order to print some tables containing information. Is it possible to create a template page containing headers and footers and the information contained in the html table? It's the first time i'm doing this....
{ "language": "en", "url": "https://stackoverflow.com/questions/7601527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient implementation of mutual information in Java I'm looking to calculate mutual information between two features, using Java. I've read Calculating Mutual Information For Selecting a Training Set in Java already, but that was a discussion of if mutual information was appropriate for the poster, with only some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Print types of arbitrary C++ expressions I'm interested in writing a tool for teaching purposes that evaluates C++ expressions and prints their types. Essentially, my thinking is that my students could type in any expression, and the program would echo back the type of the expression. Is there an existing tool that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Dynamic Columns into ui:define I have a data table in an xhtml with "ui:insert" space... In another xhtml i use ui:define to add some columns... the problem is that i have dynamic columns to insert.. i've already tryed with a4j:repeat, ui:repeat, c:foreach and rich:columns... <rich:columns value="#{entity.dadosAdici...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve x random elements from an array I am struggling to write a clean method which when passed an array of strings and x returns a randomised list of array elements totalling x, eg. def getrandomarrayelements(thearray, howmany) return [something] end Yes I should submit my existing code, which whilst works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Where does "it" come from in this example of ObjectSet.SelectValue? productQuery1.SelectValue<Int32>("it.ProductID"); How would I know what "it" means here? Whole example from MSDN docs using (AdventureWorksEntities context = new AdventureWorksEntities()) { string queryString = @"SELECT VALUE produc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Where should I go from here? (Cocos2D+UIKit) Currently I have this code in my UIViewController: //Cocos2D methods -(id) init { if((self=[super init])) { CCScene *scene = [CCScene node]; CCLayer *layer = [CCLayer node]; [scene addChild:layer]; [[CCDirector sharedDirector] runWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Double-Ended Queue: is this a sound "add to front" implementation? I'm working on an implementation of the Double-Ended Queue as a Doubly-Linked List (for personal enrichment), and I was wondering if anyone minded taking a look at my PushFront function to see if I'm on the right track. It should be self-explanatory...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding rich text in localizable.strings Is it possible to add some sort of styling to my localizable.strings file. For example "HELLO_WORLD" = "Hello \bold WORLD \bold"; A: No, it is not possible. Localized strings can be used in many places in your code and UI, only some of which may support display of rich text...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Starting an Application from Windows Service I am building a Windows service that will watch for specific occurrences of events and disk activity. When such an event occurs my plan is to alert the user to the event via a client app, and provide remediation if necessary. I have (mostly) completed both the client an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GCC proper visibility for shared object written in C++ I have a huge project written in C++. It's all split into multiple static libraries that are eventually linked into one final shared library which has to export only a few simple functions. If I do objdump of that final .so I see all my internal names etc. Becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is singleton stateful? Hi I got this asked in an interview question paper. Singleton and Prototype (non-singleton) which is stateful and which is stateless I am not sure if prototype is stateless ? Is there any problem with the question ? A: The question itself is poorly worded. You can have state in both Singl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: why 'gst.Element.get_request_pad(self.filter, 'filter')' returns 'None' (gstreamer | python) I am new to gstreamer and its development. I am trying to mix RTP streams using Gstreamer Python. The client sends the different videotest sources and the mixing of these streams should happen on the receiver side using RTP....
{ "language": "en", "url": "https://stackoverflow.com/questions/7601573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I pass objects to descendant activities in WF4? I'm new to Workflow Foundation 4, and I've been struggling for days to do something that seems like it should be completely trivial. Note that I'm mostly coding C# activities here, not really all that experienced with XAML. To summarize my question, I am trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to express a Serializable Blob type in a hibernate mapping file I have a legacy application that uses hibernate for mapping objects into a database. It uses the Hibernate Mapping XML file to do so. The java class contains two properties abc and def that implement java Serializable. The mapping is defined this wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to properly fire a callback after an animation and ajax calls have been successfully completed? Well I have a AJAX calls being performed while I animate some content. I want to fire a callback after both are finished successfully? Any idea? EDIT: fix typos in the title A: This sounds like a good candidate for j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: URL rewriting: addon domains, subdomains, and directories Say I have domain.com and addon.com. My hosting provider is Bluehost. domain.com is the primary domain (hosted in public_html) and addon.com is an addon domain (hosted in public_html/addon). I'd like to make the following redirects: * *http://domain.com/ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC3 Changes to models For anyone familiar with Python/Django and the South migration module, I'm trying to find the asp.net MVC3 version if it exists. What I'm trying to accomplish is create an entity, insert data, and in the future change my model and have the database incorporate the new data appropriatel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: tinymce - how to set the focus to the first editor on a page with multiple editors? if I have more than one tinymce editor on a page, every action I do goes to the last editor unless I explicitly click on the editor I want to edit. For example, I made a plugin, which displays a dialog box, I type something in the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Provide DLL path to System.loadLibrary on export I want to export my Java application which uses JNI interface, and loads a DLL via System.loadLibrary("dllName"). The DLL file is present inside Java Project folder as well as in C drive, one of places where JVM will search for DLL at runtime. Problem: When I export...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Style Text Input As Inline Element (Webkit Only) I am developing on a webkit javascript application, and trying to find a way to style a text input as if it were a inline span. The trick is getting the width to only be as large as the text value of the input. Tried using webkit appearance, no luck. A: You'll have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find out if IIS is installed by examining the Registry I have an innosetup installer that needs to create an IIS Virtual Directory. In order to create the virtual directory, IIS Management Service must be enabled. How do I check which Windows Features are enabled? The best solution would be to check a registry sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What happens if/when DllImport is invoked multiple times? I am loading a .dll written in Delphi 7 using DllImport within a Windows service written in C# .NET 4. Before deploying this service, I just want to make sure that I don't have to do anything special to handle the unmanaged .dll. My C# code looks something l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to improve efficiency in this numpy iterating? I'm working on an assignment about converting a grayscale image to 1-bit binary image by dithering. I'm trying a simple 4x4 matrix that will make the image 16 times larger than original. dithering_matrix = array([[ 0, 8, 2, 10], [12, 4, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using unique constraints with Grails Datasources plugin causes NullPointerException I am using the Datasources grails plugin (version 0.5), so that I can use multiple databases with my application. However I am running into a problem with unique constraints, even if they are defined in the original DataSource.groovy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I show an "&" (ampersand) in button or label text? I would like to show the & character, not the keyboard shortcut in the text property of a button or label. Is there a way to do this? A: Try double & (&&). It works with VBA code. A: If you are trying to display & in button text, use &&. A single & is used...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Distinguish request from main window or popup window in struts action class We have a regular struts based web application which opens pop up when clicked on specific links. Certain links on main windows and popup window calls the same struts action class. Is there a way to identify in the action class whether that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Save items in IIS application cache In my C# web application I need to save some items in the application cache and then retrieve those items by key. To save those items I'm using the following code: HttpContext.Current.Items["urlname"] = "something"; That saves the item fine in the Items hashtable. However I'm not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Generate twitter oauth_signature in Ruby How to Generate twitter oauth_signature in Ruby, I am not using any library like(Oauth, Twitter, twitter_oauth) A: Your question is quite ambiguos. You should start by reading Twitter dev's documentation on OAuth. There's even an example there with the OAuth gem. I us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL PIVOT oddity: Why do the result columns show same data? I've set up a PIVOT in SQL and despite following the syntax to a 't', my output is oriented oddly. Specifically, I have 36 'pivoted' columns and one additional date column. I'd like to show entries for each column for a given date but instead I'm seeing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display an alertdialog on top of other alertdialog? And when one in foreground is closed, then the one in background should be visible This is my code to edit/update which I am doing throgh a custom alertdialog which contains the data fetched frm database. Now when the inputs provided are incorrect I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Translucent UITableViewCell for grouped UITableView? I would like to create a TRANSLUCENT grouped table view cell. In other words I want to see the grouped table view background pattern, but i don't want completely clear cells. I've seen a lot of questions about transparent cells but none address making translucent ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ImageView within RelativeLayout has top and bottom padding I have a 640px wide, 208px tall PNG that I've placed in my /drawable folder and I'm having a very hard time properly placing it in an ImageView. I want to scale the image so that it maxes out the horizontal resolution, and I want it to scale vertically only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to open comments from disqus in my iOS app I have RSS reader, and it's using disqus.com to comment stories, but I can't open only comments from my webpage. I've tried to remove text from HTML, but it is removing comments too. I've tried to use api, but I can't make response from server visible. Thank you for hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add To Timeline button not requesting publish_actions permission I'm using the xfbml Add To Timeline social plugin (https://developers.facebook.com/docs/reference/plugins/add-to-timeline/), but when I click it the permissions dialog I get just says "Access my basic information" and sure enough it isn't actually gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JQuery Accordion issues in IE8, works great locally but not on the server We are working on: http://www.ftj.com/carrier-information If you choose "Transamerica Corporation" in IE8 you will see some height issues. However, when you resize your IE window the page seems to auto correct without a refresh. When we run t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'd like to remove the filename from a path using JavaScript Using Javascript I'd like to remove the filename from the end of a string (path+filename), leaving me just the directory path. Would regular expressions be ideal? Or, is there a simpler means of doing this using the string object? Thanks for any help! ----...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }