text
stringlengths
8
267k
meta
dict
Q: How to pass SQL Server Extended Events Activity Id from C#? I have been looking into using Extended Events in a full end-to-end tracing scenario. I am especially interested in the XEvent's activity id that helps follow event execution sequence for a given activity. You will have guessed, my event session in SQL Serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Generics: How does method inference work when wildcard is being used in the method parameters? Supposedy i have the following: class x { public static void main(String [] args) { List <?> a = new LinkedList<Object>(); List <? extends Object> b = new LinkedList<Object>(); List <? super Object> c =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I add a foreword or a preface before the TOC in a (pdflatex) sphinx document? How can I use Sphinx to generate a pdflatex document in which there is some text before the table of contents? The generated LaTeX file always seems to have \tableofcontents before any document-body text. I have been unable to find...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MGTwitterEngine with update_with_media Wondering if anyone has found a MGTwitterEngine that has implemented update_with_media? I am using it with OAuth / SAOAuthTwitterEngine Thanks A: I'm working on it but having a lot of problems. Check http://github.com/rmd6502/Twitter-OAuth-iPhone
{ "language": "en", "url": "https://stackoverflow.com/questions/7557320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to see the resource files after localization is true I have localized a Form say BanksForm into two languages by setting the Localizable property to true and setting the Language from Default to French. Visual Studio generated the resource files and compiles them into the application. This is what I expected,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dojo, how destroy a custom widget? I have created a custom dijit widget which contains a grid and some buttons. What is the right way to destroy it? override uninitialize, destroy, destroyRecursive? which method and in which order? Thanks. A: Generally uninitialize is the best place to do this, since it is an exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How fixed tag value for text field of custom cell in table view? I am implementing a tab;e in which i have created a custom cell for cell of tableview. On custom cell i am displaying two text field , one button and one image view. Now i want implement an event on text field. That is when i click on text field then a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django foreign key admin interface and models structure (All code is some kind of pseudocode, just for better reading I have an Invoice model: class Invoice(models.Model): // many fields here I need to attach some products (with price for unit, and quantity fields) to this invoice, so I made additional ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to programmatically fire ondblclick event in javascript? I am trying the following simple code (in html, using js on IE8): <input type="image" src="pic.jpg" id="aa" ondblclick="alert('aa');"/> <script> document.getElementById('aa').dblclick(); </script> and I get an error that: object doesn't support this prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: a Cufon problem on a nested menu I'm building a nested navigation bar, here is the jsFiddle: http://jsfiddle.net/3Y8vB/1/ the nested menus are on the third item, "Collezioni": so far so good. But adding Cufon triggers a strange problem: "hovering" the nested menus and going away from them all the way down, the "Coll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preparations for Icecream sandwich and ACL usage There was a post about preparations for Andoid Icecream Sandwich release on Android Dev blog and in particular adopting your tablet UI for handsets. What if I do want to make additional resources for handsets (now I have my app for xlarge screen sizes only) and follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Perl: Constructing an array of objects Partially related to this question but different, as this is about constructor calls... I would like to create an array of a fixed number of objects. I could do this: my @objects; push( @objects, new MyPackage::MyObject() ); push( @objects, new MyPackage::MyObject() ); push( @o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: NSFetchedResultsController - when are delegate methods fired? I have a model with a many-to-many relationship between the following entities: Meeting >---< Person I'm using an NSFetchedResultsController to return all the people for a meeting (these are displayed in a custom view). The NSFetchRequest is created so: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Scrollview in a RelativeLayout Shows Blank i'm trying to make that all the content i have in a view can be scroll-able and what i'm doing is adding a Scrollview to the entire relative layout but when i do this anything is shown in the view. Below is the layout code i have with the Scrollview. <Scrollview xm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: R boxplot with which function I have data from 2 field sampling campaigns. I have organised the data severeal columns and rows: * *Data = sample points *Columns = elements (1,...,n) , season, Sampletype and some others. Add. info on Columns: * *season = 1,2 (discriminating between seasons) *sampletype = 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Packing Node.js-Scripts + node.exe into a single Executable Because Node.js now also available on Windows, I would like to share my scripts without including node.exe. Is it possible to pack the script (no more files) together with the node.exe into a single executable file? A: You absolutely can, and it's pretty ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is GOTO a good practice? (in this php particular case?) Im having some problems in the way a present an error mensage to my users. I "solved" the problem using two Goto instructions. Please take a look of the code: <?php require_once("registration/include/membersite_config.php"); ?> <!DOCTYPE html> <html lan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Out of Memory Exception for String, StringBuffer and StringBuilder in Android I'm facing an Out of Memory Exception while converting a 1.8MB image to bytes and then encrypt, finally converting into a string (length printed in log is 1652328). And then, I'm appending this string to some XML format to post, where the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Axi2 client made with wsdl2Java uses UTF-8 instead of UTF-16 I'm using Axis2 1.6.1 to create a webservice, both the server and the client. The webservice is pretty simple: it receives two strings and returns an array of bytes. The issue I'm finding is that the client is sending the request encoded as UTF-8, so when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TYPO3: extension with both backend module and frontend plugin I am trying to create an extension ('XML Uploader') with a backend module and a frontend plugin also. The backend module will be used for managing xml files (upload, validate against a DTD), and the frontend plugin should be used for displaying the upload...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Socket.bind to all ips - An invalid argument was supplied I want to bind the socket to all the IP addresses available on the machine using: mainSocket.Bind(new IPEndPoint(IPAddress.Parse("0.0.0.0"), 0)); //or IPAddress.Any but I get an An invalid argument was supplied on mainSocket.IOControl(IOControlCode.Recei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we confgure filters only for a subset of servlets I have various different categories of servlets. Can I configure the filters in my web.xml such that each filter only applies for one of the categories of servlet. A: You can map them on <servlet-name> instead of <url-pattern>. <filter-mapping> <filter-name>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding ruby splat in ranges and arrays I'm trying to understand the difference between *(1..9) and [*1..9] If I assign them to variables they work the same way splat1 = *(1..9) # splat1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] splat2 = [*1..9] # splat2 = [1, 2, 3, 4, 5, 6, 7, 8, 9] But things get weird when I try to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Serializing a complex object ORM Entity dealing with relational entities In ColdFusion 9 I am serializing an ORM entity. When doing this, though, it's missing relational entities. The serializeJSON() method ColdFusion uses to convert complex objects into JSON notation doesn’t seem to work correctly on ORM objects. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to load an external page into the current one with Webkit/jQuery I would like to load a complete HTML page into the current one using standard web technologies on an iPad web app (no framework like Sencha, etc.) I have a content page, and an article page. I want to load the article page (including javascrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Taking a stack and printing it in reverse order in UART So basically I have a class where the teachers designed the program that we use, and they basically said "Do these labs with no background information". Right now I have to make a RPN calculator using assembly and I have gotten all of it coded except i have to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inline expressions in HQL What is the most effective way to write this sql query in HQL select uar.*, (a.default_user_asset_role_id is not null) as is_default from User_asset_role uar left outer join account a on a.default_user_asset_role_id = uar.id where uar.account_id = 3 example results 1 role_read Role Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jackson JSON java class - fields are serialized multiple times I have a following class defined @JsonTypeName("PhotoSetUpdater") public class PhotoSetUpdater { @JsonProperty("Title") private String title; @JsonProperty("Caption") private String caption; @JsonProperty("Keywords") private String[] keywords; @JsonPrope...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should i use index when using where clause in mysql? i have a table that stores about 50k rows and here's my query : select * from video where status = 1 and filter = 1 and category = 4 these columns are tinyint and i wonder should i do index on these columns ? A: No! You should always consider index selectivity! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails 3.1 on Heroku Bamboo Can someone point out to some nice guide for deploying a Rails 3.1 on Heroku Bamboo stack? A: Just turn off the asset pipeline for your Rails 3.1 app and it should work. A: If you use capistrano add load deploy/assets to your Capfile
{ "language": "en", "url": "https://stackoverflow.com/questions/7557400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET memory problem I have an ASP.NET application that communicates with another API and processes a lot on Page_Load. If in my browser I hold F5 and hit the site, the server shoots from 120mb to 1.5GB. I can't find any memory leaks or unclosed objects. Is there any way or extra things I can do to help? Thank yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle job alert notification I am running oracle 11g. I try to setup an email notification for a job. BEGIN DBMS_SCHEDULER.add_job_email_notification ( job_name => 'JOB_COLLECT_SESS_DATA', recipients => 'kaushik.guha@bmo.com', events => 'job_failed'/*, filter_condition => ':event...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why was "this" used as a non const deprecated in C++ Why was this deprecated in C++? How is the this pointer in C++ different than this in Java? Or is Wikipedia just wrong Early versions of C++ would let the this pointer be changed; by doing so a programmer could change which object a method was working on. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Proper Context Usage of this keyword within a method callback I am trying to get the correct context of "this" when calling a method inside a prototype. It appears that the this keyword is referencing the callback method and not the prototype object that that $.getJSON is being used on. How do I correctly call the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android 3.x emulator app launcher not working I'm trying to check how a web page is displayed in the Android emulator browser, but seems that I'm out of luck today. I just installed the new API 13 AVD, launched it with WXGA resolution and realised that it was unusable (it hanged). Then I edited the configuration and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autofac resolve question about keyed registration via IIndex This is a follow-up question to Configuring an Autofac delegate factory that's defined on an abstract class. I've implemented the suggestion of using IIndex<K,V> that @Aren made in his answer, but I'm unable to overcome the following error: Test method Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How many successive calls is too many? I'm debugging some code and see a loop where an event is dispatched and a remote call is made for every record. Everything was working fine until there were several hundred records (700) to be a exact. Is that going to make the flash player chug? Should I move to a queued syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: moving an appended input after clicked span. Im working on a text editor simulation that appends an input to a div, and extracts its values to create spans, here is the initial click() function: var $cursorStart= $("#cursor-start"); $("#main-edit").click( function() { var cursorExists = $("#cursor").length; if (!c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove magic quotes if php.ini/.htaccess are not editable? For some reason, all my quotes are being escaped and displayed as \". Previously, it was okay. Then I looked at phpinfo() and saw that my magic_quotes_gpc is turned on. However, I cannot find the directory /usr/local/lib/ where php.ini file is and I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble with String.split in F# I am having trouble with the following code, I am trying to build a lexer. Again I am using the examples from F# for Scientists. let lines_of_file filename = seq { use stream = File.OpenRead filename use reader = new StreamReader(stream) while not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hadoop streaming example failed Type mismatch in key from map Possible Duplicate: hadoop-streaming example failed to run - Type mismatch in key from map When I ran Hadoop streaming example, it failed with Type mismatch in key from map Hadoop version 0.21.0 input file content: adfad adfasdflkjlj Command line: $HAD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excluding elements in XQuery I have an XML element such as: <items> <item> <size>360</size> <quantity>400</quantity> <item> <item> <size>540</size> <quantity>1200</quantity> <item> <item> <size>360</size> <quantity>600</quantity> <item> <item> <size>800<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WIA's ShowAcquireImage only saves in BMP? I am using the WIA 2.0 library within Delphi XE to automate scanning. I am using the "ShowAcquireImage" function to provide an image to be saved to disc. I want to save the image in a compressed format such as png or jpg, but the library only seems to save in bitmap. Has any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: xml xslt transform I’ve been trying to transform some simple XML into another simple XML using XSLT. I am new to XSLT, so if someone could give me an example I will expand on it. I have arbitrary XML files: e.g <element> <child_element> <grandchild_element> only one </grandchild_element> </child_element>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: KeyEventArgs.Handled vs KeyEventArgs.SupressKeyPress What's the difference between using e.Handled = true and e.SuppressKeyPress = true I've read that SuppressKeyPress calls e.Handled but else does it do? A: It simply prevents user input for all pending button hits. i.e. in a TextBox, not only event Handled is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Java: Call a method from a "contained" class I have a class hierarchy like this: public class A { private B obj = new B(); // Inside this object // do I need a reference to here? // (In order to call method1()) public A(){ ... } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MS Access SQL Syntax Error I'm trying to update a microsoft access database table field from a similar field in a linked table. Here are my table names: Raw data sectionroster And here's my query so far: UPDATE [raw data].[current supervisor] FROM [raw data] INNER JOIN [sectionroster] ON [raw data].[associate id]=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Workaround for "undeclared prefix" error on XElement.Load() I'm pulling the source of a website. I then want to extract a specific part of it. My intention is to do this with LINQ-to-XML. However, I get errors when I parse the source: XElement source = XElement.Load(reader); The problem seems to be references to na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Improving algorithm and syntax for c# linq expression I've been doing a bit of linq in c# .net 3.5 and feel like I should be able to do the following a little neater. Is there a way to combine this into a single linq statement. The conditions are as follows * *If the list contains an element where count is grea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Removing after appending isn't removing I've got a funny bit of code which doesn't seem to want to listen to me. Essentially, I'm trying to affect when some zoom buttons appear on a map depending on which map is going to be used. While starting with the zoom buttons not being appended works as it should, and later a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing a program that can handle a Heap that has K amount of children I have researched binary Heaps and I am still very confused about what to do for this program If I could get some guidance I would really appreciate it I'm still learning java and having a lot of trouble doing so. A k-ary heap is like a binary ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Set images in ListView I have a listActivity. In each row of the list a name of a category is placed. I download the activities from the web, so they may change occasionally. But I would like to set a image to each category. I have a list of categories that may occur. And I have graphics for all categories. How can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update two different tables with DetailsView Update Command I am developing an ASP.NET application in C#. I have two Database tables Food(Id, Name, Description) and FoodLog(Id, FoodId, FoodName, FoodDescription, ChangedFields, Date). As the name indicates, FoodLog stores the modification history made by the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check a checkbox inside Gridview I want to check a check-box which is inside Gridview programmatic on click of a button A: If you know the location of the cell then you can set it as datagridview1[0,2].Value = true;// this should be a checkboxcolumn OR datagridview1["chkboxcolumnName",2].Value = true; This will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 8bit YUV, 10bit YUV, 10bit RGB all ends up in color space such as RGB. Why YUV exist? Why should i use it? I am writing a medical application, where i have packets coming in IP interface. Which has following definition for pixel skeleton decoding. I can decide what i pick in the main frame to have different pixel al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hosting Serving Web Pages on Windows In Process I am currently writing a web based front end for some proprietary server software. The server is based loosely around MEF components written as seaparate assemblies which serve as modules. The web based front end will have its pages served up as a part of one of the mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why I get Access Denied Error using WMI Connection? this is a similar error all around the internet but I am not able to reason out why this can happen in my case. I am trying to use WMI for remotely installing windwos services from my XP client machine. I use, ConnectionOptions options = new ConnectionOptions(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement such style UI? I want to write some shareware and I love the GUI style in the following image: (source: batchimageconverter.com) Who knows how to imp such style? I think maybe it uses some UI library, who knows whas is the UI library? I want to use C++ to write the program. A: It's almdev's Busin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authentication for a Vaadin app using OpenID - difficulty handling redirects I'm trying to authenticate my Vaadin app with OpenID and I'm having difficulties with handling redirects in the app. * *On loading the app, users are presented with an OpenID login utility which is a simple Vaadin window with some button...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wildcard in Generics doesn't work Looking at the following code, why doesn't the second invocation of dump get compiled? And how can I fix it without removing the wildcard? import java.util.ArrayList; import java.util.List; class Column<A, T extends Object> { } public class Generics { static void main(String[] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Decimal precision - C# All, For a decimal value of 1 billion being retrieved from SQL Server where the associated datatype is Numeric (28,10), I am running into Conversion overflow exception. From MSDN: The .NET Framework decimal data type allows a maximum of 28 significant digits I need to clarify if the digits ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to call a pig script within another pig script I have a file in hdfs with 100 columns, which i want to proces using pig. I want to load this file into a tuple with columns names in a separate pig script, and reuse this script from other pig scripts. How do I do this? Say this 100 column pig script is - 100col....
{ "language": "en", "url": "https://stackoverflow.com/questions/7557528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Password encryption methods in classic ASP I am looking for a method to encrypt/decrypt password in classic ASP. Can someone please suggest to me which method is good to go and what are the possible ways to do this in classic ASP. A: I've created a class of functions for hashing passwords in Classic ASP. As well as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Display tooltip for invisible series in Highcharts I am trying to display a custom tooltip using Highcharts. You can find an example of the code here: http://jsfiddle.net/jalbertbowdenii/fDNh9/188/ When you hover over the chart, you can see that the tooltip only contains values from Series 2, but not from Series 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Oracle: using impdp from a full DB expdp I’ve got a full Dump of an Database (all schema, system etc...) Now I want to import just one schema of this file, is this even possible? As far I got this command: impdp sysadm/sysadm@sysadm schemas=sysadm directory=dp_dir dumpfile=export.dmp logfile=export.log Would thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: erlang, what's difference between 'catch 1=0' and '(catch 1=0)'? What's differenct between 'catch 1=0' and '(catch 1=0)'? Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.8.4 (abort with ^G) 1> 1=0. ** exception error: no match of right hand side ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: android phone number is null for sim contacts The following code returns Phone number as null for the contacts in SIM. Whereas for the contacts in Phone, it returns the correct value. Please let me know, whether the URI should be different to read the phone number from SIM. Below is my code, almost a copy from Andro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL REGEXP repeating characters How can I find strings with individual repeating characters (for example 3 times)? This works but I don't want rewrite every alpha characters (a,b,c,d,e...): ... REGEXP '(a){3}|(b){3}|(c){3}|(d){3}|(e){3}|(f){3}...' ... Thank you very much A: r = '(\w)\1{2}` finds any alphanumeric...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: custom vim syntax highlighting scripts-- why do they work in Windows but not Linux? I have written a vim script for highlighting the syntax of a proprietary query language. It works fine on my Windows 7 machine running gvim 7.3, but it refuses to work on Linux (my test box is CentOS 6). I have gotten the built-in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XBee origin address in Arduino I am trying to find a way to get the origin address of an XBee radio in Arduino. Basically, I want my XBee chip to send a string that also contains its origin address (or id) so that I can identify where the message is coming from without having to run different code on every different...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why doesn't just a variable name display the variable in a script, like in the interpreter? I want to display a string which is returned by a function in a Python script, without using print: def myfunc(mystring): return "Converting to lowercase :{0}".format(mystring.lower()) result=myfunc("LOWER") result But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do I get the MSBuild task to show up in the Visual Studio project output? I'm trying to printf debug my Visual Studio project file by spewing messages to the console like this: <Target Name="BeforeBuild"> <Message Text="+++++++++++++++++++++++ Justin Dearing ++++++++++++++++++++++++++++++++++++" /> </Target> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: SPARQL query to find all sub classes and a super class of a given class I need to write a SPARQL query to find a superclass/subclasses of a given class. For example, given http://139.91.183.30:9090/RDF/VRP/Examples/Phenomenon.rdf RDFS vocabulary file, I want to find the superclass of 'AcousticWave' (which is 'Wave'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Project asking for a config setting that's there already Here is the code that I am calling: try { using (var client = new WCFServiceChannelFactory<IFxCurveService>()) { guid = client.Call(svc => svc.ReserveSnapshot(fxCurveKey)); DiscountFactorNew[] dfs = client.Call(svc => svc.GetDiscountFac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RestKit - POST response object mapping I have method "getBuses" on my RESTful webservice (Rails). That method needs to return me list of buses in JSON. But, when I sending request for "/getBuses.json" I need to send params = [NSDictionary dictionaryWithObjectsAndKeys: @"2011-08-16", @"datum", @"TRUE", @"fromSer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: problem with url being submitted to facebook comment count hit a small problem and wondering if their is a quick easy fix im missing. im wanting to use facebooks, comment count, but for some reason the url gets changed. should have &id=9 for example at the end of the url but facebook is removing everything from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can a program such as AutoHotkey be implemented in a browser(as an add-on) using JavaScript The main use of AutoHotkey I'm thinking of is to let you define phrase-shortcuts, like typing "tyvm" would yield "thank you very much" - is JavaScript fast enough and capable enough to do this? A: Your question wasn't exactl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google visualization p property from JSON I wonder how the p-property is supposed to work when sending JSON table row and column data to render. I try to send {"p":{"title":"This is the title"}} but I can't get it to work. Is it possible to set graph configuration options from JSON response? Best regards, Niclas A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript applications and empty HTML elements JavaScript application often use one of the following methods: * *They use empty HTML elements (which exist in markup but are invisible because of display:none) *They generate markup dynamically *A combination of both What is the best case for each of these meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Returning the input stream of the object that the caller already has an instance of I have a design question. I'm using the HttpURLConnection class to navigate a website. In order to obtain an HttpURLConnection instance, I have a local getter method. This is responsible for setting all the request properties, inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run Jquery on click of an ActionLink How do I run jquery when an MVC ActionLink is clicked? I have an action that takes some time. I want to show a 'processing' image until it returns. Is there a better way to do this? A: Give the actionlink a class: @Html.ActionLink("","", new { @class:"delete" }) Then you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Declaring vector as global variable in C++ Is it a good practice to declare a vector as global in C++? This is what I did. #include <vector> std::vector<int> vec; My program compiles successfully, but I am not sure whether this could lead to a runtime error under certain circumstances. According to my understandin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to control casting of null int field to varchar in sql server? First of all I would like to know how does CAST work with NULL fields and how does it behave when the value is NULL? For example in the expression: (CAST(INT_FIELD as nvarchar(100)) what happens if the value INT_FIELD is NULL? The reason is that whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: timing practices for multiple html5 canvas elements on web page I have found some articles on using request animation frames for animating html5 canvas elements. http://paulirish.com/2011/requestanimationframe-for-smart-animating/ If I were to have multiple elements, should I have a timing system for each of them in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make my QThread block and wait for a function called from the main thread to return a value? I am doing some work in a QThread reimplementation. Every now and then, I'd like to ask the user a Yes/No question, so I was planning on using QMessageBox::question(). Problem is, I can't call it from the thread. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Resizing GridView columns after making it visible The setup: ListView with GridView that is initially hidden when the window is loaded, and then made visible upon a certain user action. The aim: Be able to set relative width of GridView's columns. The problem: What I need can be achieved either by using a converter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Magento getting a products rewritten URL If you look at this thread; http://www.magentocommerce.com/boards/viewthread/10807/ It adds a products rewritten url to the collection using; $collection->addUrlRewrite($categoryId); I am not getting products this way, I am using this method to get an individual product: $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Separate Data by Comma I am learning RegEx. completely a newbie :P I wanted to separate numbers from the below data, which are separated by comma only test t,b 45,49 31,34,38,34,56,23,,,,3,23,23653,3875,3.7,8.5,2.5,7.8,2., 6 6 6 6 , , . .,/;,jm.m.,,n ,sdsd, 3,2m54,2 4,2m,ar ,SSD A,,B,4D,CE,S4,D,2343ES,SD Suppose I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python: simple way to input python data from file In a shell script one might do something like: myvar='default_value' source myfile.sh echo $myvar where myfile.sh is something like: echo "myvar='special_value'" > myfile.sh I know several "safe" ways of doing this in python, but the only way I can think of getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resharper shortcut for closing Find Usages window? What's the Resharper shortcut for closing Find Usages or similar type of window? A: I use Ctrl+F4. Shift + Esc doesn't work for me even though "Options... Keyboard" "Window.CloseWindow" shows Shift + Esc. (VS 2013, R# 8.2) A: Ctrl+Shift+F4 will close most recentl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Jenkins Database and Authentication Does Jenkins store build status information into a database on its own? Does it have a plugin to talk to an Oracle database? If yes, can the slaves running on remote sites do this on their own, without master having to do the database interaction? I will be running Jenkins on remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Membership.GetUser().UserName; (.net 4, mvc 3) i log users into .net using straightforward .net authentication: if ( Membership.ValidateUser( user, passwd ) ) works fine. hot on the heels of that, i try to get the user name: Membership.GetUser().UserName sometimes this will return an invalid object. sometimes not....
{ "language": "en", "url": "https://stackoverflow.com/questions/7557614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make header of a table "draggable" I have a table. The top row has 2 columns - "header" and "close" button. I can make the entire table "draggable". How can I make the "header" to be the only element that user can drag in order to move the entire table around? UPDATED: As tagged, I need to use jQuery. This is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use for loop variable as dictionary key in Django template I am trying to get the following working. The count loop needs to loop through for all values, and there may not be a user associated with each count, but the count value i needs to be used in each loop to pass to the JavaScript. python part: users = {} user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL need to return data even if specific where statement isnt matched I've built an extension to a employment application where we can easily add new questions to the form. I need to query to match on both which job they applied to and what application ID it is. I need to return both the answer and the question, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoid: before_destroy and Paranoia Is there some callbacks for soft deleting in Mongoid? Because before_destory won't be triggered. Now I thought I can use before_update but it looks not so clear solution as I want and it is not triggered as well class Message include Mongoid::Document include Mongoid::Timesta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get the following error when trying to run rails server Just shifted from rails 3.0.0 to 3.1.0 When I try to run rails s, I get the following error: `alias_method': undefined method `method_missing_with_paginate' for class `ActiveSupport::Deprecation::DeprecatedConstantProxy' (NameError) A: Probably a problem wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LESS.JS Redundancy in CSS, Use of Mixins instead of selector inheritance? I am using less.js with some regular use of mixins. E.g. I do have a basic class 'gradientBlack' like this. .gradientBlack { background: #333333; background: -moz-linear-gradient(top, #5a5a5a 0%, #333333 60%, #000000 100%); backgro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Padding-Right or Padding-Left problem when direction change between RTL and LTR in a table I'm developing a project in two languages (RTL and LTR) so when I design my tables some TDs must have right or left padding and I when I changes page direction to other, left padding means right and vies-versa and it is my pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run an rspec "before" block before rails initializers run I would like to run an rspec before block to set some stuff up before the Rails initializers run, so I can test what an initializer should be doing. Is this possible? A: If the logic in your initializers is complex enough it should be tested, you should ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/7557636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }