text
stringlengths
8
267k
meta
dict
Q: Entity Framework projection into class is faster than selecting EF POCO objects, WHY? This one confounds me. I am using EF 4.1 and have applied a T4 template to the model to use POCO's and POCO proxies (public paramaterless ctor, all properties are virtual, all navigation properties are ICollection). I have a table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to listen or poll for an event I have an Android app in which I'd like to display a fullscreen ad as soon as it becomes available. The ad network's SDK allows me to call a "ready" method to determine whether the ad is ready to display; it returns a boolean. How do I listen for this? Should I be polling this meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: render multiple HTML tables I have a Rails Table, called Sales, that I would like to render in a sequence of HTML tables on a single HTML page. The Sales Table contains a list of sales transactions made by SalesPeople (salesperson_id is a field within each Sales record), and I would like to list each of their Sales ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XNA and FBX Coloring Problem My problem is that, if I use BasicEffect (and setup VertexColorEnabled = true) or my own shader, and use only colored (not textured!) models, it gives the error that Color0 is missing...Isn't it weird that .fbx models do not come with COLOR0 channel ? A: Here is what I found..... (Marsh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you make a Caption Less Window in Gtk? I want to make a Window in Gtk (Gtk# to be specific, but GTK+ or any other binding will do, the functions are generally the same) without a caption. Kind of like Mozilla Firefox 4 and Google Chrome. I don't know what to call it, caption less or widget on caption? Any Hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are nested types? I quote from the JLS 9.1.1.2 strictfp Interfaces "The effect of the strictfp modifier is to make all float or double expressions within the interface declaration be explicitly FP-strict. This implies that all nested types declared in the interface are implicitly strictfp." So, what are nested ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq query for grouping I have to generate say Customers Report. there is condition for grouping records like grouped and/or filtered by CustomerFirstName\CustomerCity or CustomerLastName\CustomerCity What would this Linq query look like? A: Simple image representation of group by might help you Full ari...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Do not match if within tag I have this regex which detects url formatted text: /(http|ftp)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/ so it would detect something like http://google.com My problem is that I do not want it to detect the links when the links are inside tags such as <a href="http://google.com">http://www.googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIButton changes his background color for a while from white to gray I have an UIButton with an image made with a white background and a figure in the center. On click this image must be changed with another. The problem born when i click on button his background become light gray while it change the image. It happe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does it affect site performance and SEO to use onclick handler instead of links? To call new windows, JavaScript functions and other internal stuff I've been using onclick along with cursor: pointer rather than using links with JavaScript in the href attribute. This prevents # from appearing in the URL in the stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache Shiro & Java Security for Novices I know next-to-nothing about Java's security model, including XML configuration, policy-setting, any security framework components, tools (such as keystore, etc.) and everything in between. Although I understand it will eventually become essential for me to roll up my sleeves...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using jgGrid with API(providing local data) for search/paging We are developing a javascript application. This application will be using jqGrid for its grid rendering purpose. We have javascript "API" available which provides functionality to bring in the data from the server. The API provides data in JSON format,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blame on an earlier version of a file in a different location At one point my git repository had its paths reorganized. I often want to do a blame on a file at a revision before the move. What's the git blame incantation to blame a file that doesn't exist in the current repository? I tried: > git blame new/path/to/f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: C# WriteAttributeString - Multiple Elements I'm using System.Xml to create an XML document. I need to create something similar to the following: <Communication primary="N" value="heisenburg@albuquerquecarwash.com" purpose="PERSONAL" type="EMAIL"/> I can use 'WriteAttributeString' to get as far as this: <Communicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: entity data framework - 101 I am used to using datasets for my projects in terms of data access. I now set myself an easy app to work on in order to learn the entity data framework and how to retrieve & manipulate data. All the tutorials and samples I have found on the internet are too advanced for me. Can anyone g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable localParams.put(name, values); I have got 2 warning: -- The First is : HELPDESKGESTION2\src\java\glpi\filter\LoginFilter.java:289: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Has...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Validation Hint on Controls in Asp.Net I want implement Validation Hint on my Form Fields Same as Hotmail.com See the Below Screenshot. Can Any Tell me What should i do for that ? Jquery, Javascript or CSS Please Post Some tutorial that will be Great. regards, A: jQuery has a great plugin: http://bassistance.de/jq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "error:ReferenceError: Security error: attempted to read protected variable: write" with Opera 11.5 and window.open and document.write I am having an issue with window.open that only occurs with Opera (version 11.5). function openpageopera() { var w = window.open("","_blank"); try { w.document.write("<p>he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the fastest way to skip unicode characters I am trying to get to certain charcters in a file that is in UTF-16 format. I know how many characters I want to skip. I am currently using the TextReader.ReadBlock command to read a temporary array of all of the characters I want to skip, but I believe that settin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paper size setting won't save for Snow Leopard I am using a Zebra LP 2844 to print barcode labels out of the Chrome browser, as it has good printing support for this purpose. The one problem that I cannot seem to solve is that the paper size is never maintained after a label has printed. This is true of other appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I bind latexmk to one key in Emacs and have it show errors if there are any I'm using AUCTeX and I would like to bind a key, e.g. C-0, that does the following: * *Saves the active file without prompting me. *Runs latexmk on the active file without prompting me. *Shows me errors if latexmk encounters any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Queuing multiple task_struct structures? I would like to queue up multiple struct task_structs in my block device driver. Here, each task_struct would correspond to a userlevel thread which uses the ioctl() system call to send a userspace buffer to my block device driver. Once I queue up multiple task_structs, I wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run selenium on a remote server I am writing integration test for one of my project, using the following gems for the same, rspec, capybara and selenium. I face the following challenges in the same, * *I want to run the test on an existing database, i don't want to clear the existing data before or after executin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't create External Files Dir in Android. WRITE_EXTERNAL_STORAGE is present I tried using both my ApplicationContext and my calling Service's Context to access the external directory. Unfortunately, it keeps returning null, and LogCat reports it was unable to create the external directory. I'm sure I have the WRIT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: MVC 3 finds same controller twice? I am working on an application in C# using MVC 3 that has areas in it, and when I attempt to debug, I get the following error: Multiple types were found that match the controller named 'Access'. This can happen if the route that services this request ('{controller}/{action}/{id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: goMap with MarkerClusterer does not take any effect on the current map I'm using the jQuery Google Maps v3 plugin, I want to add the MarkerClusterer with the goMap plugin, however I have this what it was intended to do: $('#world-map').goMap( { markers: mapMarkers, zoom: 2, icon: 'http://localhost/eproj/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Transaction in Stored Proc + Client Code I have a SQL Server Stored Procedure that creates a TRANSACTION like this: BEGIN TRY BEGIN TRANSACTION INSERT INTO Table1 ... INSERT INTO Table2 ... COMMIT END TRY BEGIN CATCH IF @@TRANCOUNT > 0 ROLLBACK END CATCH This stored procedure will inse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android- multi onClick listener in one button I have made a custom component like Mybutton.java and I have set an onclick listener in Mybutton.java. Now, in my new activity, I have to call a Mybutton and add content in onclick listener. However, if I use OnClickListener mClickListener = new OnClickListener(){........
{ "language": "en", "url": "https://stackoverflow.com/questions/7587299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Yii Async jsonp request I am new to the Yii PHP Framework so bear with me. I need to make a cross-domain JSONP request(from a non-yii app) to create a record in the Yii apps DB. Upon creating it should return Application/json content via getVisit The Controllers: public function actionGetVisit($id) { header('Conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql Puzzle : Conditions in ON vs. WHERE The following two queries do not return the same result. Why ? Note : I found this question as a Mysql puzzle, I don't have more data on this question? SELECT table1.* FROM table1 LEFT JOIN table2 ON table2.table1_id = table1.id AND table2.val < 5 SELECT table1.* FROM ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery UI Tabs - Next and Previous Buttons I'm looking at Chris Coyier's tutorial for creating dynamic Next and Previous buttons for Jquery UI tabs. The buttons show/hide themselves according to if they are pointing at the first or last tab. It works perfectly on his example, which is from 2009. Fastforward to 2011,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Browser tab change notification like when you get a new gmail e-mail or a new tweet in Twitter In Chrome and Firefox, whenever I get a new email the inactive tab displays a very subtle notification. Basically, it just shines a little. In Chrome is shines from left to right as if someone is shining a flashlight on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to replace while read LINE I wrote a script to print specific days of a log file ! the script work properly , but I wrote the loop part with while read line and the log file contains more than 150000 items ! the script wants to read it line by line and it takes hours !so, the while should be changed in some way...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Search mySql and Add Results Into Form I wonder whether someone may be able to help me please. I'm trying to use the script below to return data from a mySQL into a HTML form. <?php require("phpfile.php"); // Opens a connection to a MySQL server $connection=mysql_connect ("host", $username, $password); if (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I write my own plugin loader in java? How can I implement a plugin facility in my java program? I am working with Java. My current project is something related to a general purpose electronics hardware, which have a custom command set. Now there is a general GUI through which one can access the hardware. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenCV 2.3 in Embarcadero C++ Builder When compiling a OpenCV 2.3 project in Builder I get multiple errors starting with "_fm_atan2l is not a member of 'std'" and continuing with other math related errors in that form. I also get "Multiple declaration of '_Ctraits::_Isnan(double)' and other similar errors. This ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unit testing restful webservices I am wondering if anyone knows the proper way to unit test a restful webservice. I have a set of webservices built using recess, and I would like to write test code for them. Unfortunately, since my webservices are tied to a database, my tests end up populating the database which see...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: on e.keycode == 9 (tab), add 12 spaces, and prevent default behavior Have a slight problem with this code : jQuery.fn.markCursor = function(e){ $(this).focus(); $(this).keyup(function(e) { $cursorStart.enterText(e); }); }; jQuery.fn.enterText = function(e){ if (e.keyCode == 9){ $cursor.val(""); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Posting to a facebook user's wall using their offline token Hello guys i have an apps which goes by all the rules etc... and I want to post to a user's facebook wall once a day. I have stored there facebook id and their offline token in the database. Lets say i have 5 results i want to post to all there walls not ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Continue to read iPhone accelerometer data while screen is locked (manually) I know this issue has been discussed before as in: Enable iPhone accelerometer while screen is locked I tried the solution mentioned in the post, including adding the DeepSleepPreventer module, as well as enabling proximity sensor as sugg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Post: Appending data to post I'm using jQuery's post on a WordPress page. var thename = jQuery("input#name").val(); jQuery.post(the_ajax_script.ajaxurl, jQuery("#theForm").serialize(), function(response_from_the_action_function){ jQuery("#response_area").html(response_from_the_action_function); }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When drawing a square inside a circle, can you assume the width of the square is 4/3 of the circle radius? I want to draw a square inside a circle. My circle has a radius of between 0.5 and 3. is it safe to assume my square will always be 0.66 * 2 * radius wide/high? I am making a function to calculate if a certain...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subset dataframe by an unusual relation between columns I want to subset a dataframe which has an ID column (v1, all unique) and a "linked" ID column (v2). The expectation of v2 is that it may contain NAs, but where it does, the corresponsing element of v1 does not appear elsewhere in v2. Also, it is expected that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it foolish not to use DirectShow as the basis of a CUDA video processing pipeline for Windows? When building a CUDA oriented video processing pipeline to run exclusively on windows,there are two approaches. You either use DirectShow or you don't. The decision not to use directshow is also the decision to code e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create custom iterator for Range I'd like to create a subclass of Range in order to specify a step size other than 1 so I can do things like: >> a = RangeWithStepSize.new(-1, 2, 0.5).each {|x| puts(x)} -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 => -1..2 My first attempt at an implementation doesn't work: class RangeWith...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What actually happens when objects are dealloc'd in Objective-c? I'd like to understand Objective-c's memory management at a lower level. Say I have 100 bytes allocated on the heap to some Objective-c object. What happens to this 100 byte block when the object is dealloc'd? I'm curious about how the runtime knows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: audio in internet explorer and cross-browser I have an audio element in a webpage for a client and i have coded it as well as i can but i still can't get it to work on All browsers. I know cross browser and browser editions (i.e. internet explorer 6,7,8,9 ) with audio is tricky but there has to be an answer here. Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to retrieve content passed back from remote server when the server reponds with a System.Net.WebException 422 I am working with an api that also returns a valid xml string containing the error that was encountered on their system. <?xml version="1.0" encoding="UTF-8"?> <error> <request>Request made to server<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Notepad++ HTML Tidy Unknown Exception Windows 7 x64 When I attempt to run HTML Tidy from the TextFX menu in NotePad++ (v5.9.3) I get the following error: Config file "C:\Program Files(x86)\Notepad++\plugins\Config\tidy\HTMLTIDY.CFG" not found! I'll pick whatever defaults I want to! After I click OK I get: "Unknown ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android app does not run on emulator I'm trying to run the Hello World tutorial code using Eclipse. I've set up an AVD but when I try and run the code, the emulator loads to the home screen and the app does not appear. No errors are shown in the console, and the logcat is completely empty (I've also left it running ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pluck a Backbone collection's attribute I want to create an array of specific attribute values from a Backbone collection. var days = _.select( this.collection.models, function(model) { return model.attributes.type === 'session'; } ); days = _.pluck(days, 'attributes'), days = _.pluck(day...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What is this code in Javascript? On some JS code on some sites I see Javascript code such as this: SomeName.init = (function () { // some stuff })(); I mean, this is not a jQuery plugin code such as this: (function( $ ){ $.fn.myPlugin = function() { // Do your awesome plugin stuff here }; })( jQue...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dynamic Languages on / off the Java JVM I'm interested in learning a dynamic language after at least 10 years on the Java platform. There are two choices that I was considering. One, learning one such as Clojure / Groovy that ride on top of the Java JVM. Secondly, a language off the JVM, which would include Ruby ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dojox FloatingPane is growing every time I update the content I've created a simple mapping widget using Dojo and Google Maps. The map is displayed in a dijit.layout.ContentPane set as the center panel of a dijit.layout.BorderContainer (which has the address field and a BusyButton in its top panel); the BorderContai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation Rule not working in cakePHP I have a registration page and within this registration page the user will be required to fill in some interest, the interests values is called from a model with the name interest.php, all values are pulling through and saves as expected. The relationship to the user model is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Displaying decimals as fractions using SQL I need to write a SELECT query for some users that will return a ratio. The math involved would just be the simple division of two numbers. However, they would like to have the ratio presented as a fraction rather than as a decimal. What is the best way to do that in SQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List all system certificate stores I'm looking for a way to get all system certificate stores, in any location (CurrentUser or LocalMachine). The StoreLocation enumeration clearly won't include user-defined certificate stores created with X509Store(String) or X509Store(String, StoreLocation). Also this doesn't defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tumblr API2: Create A Photo Post with several Images Hi I have read the docs here: http://www.tumblr.com/docs/en/api/v2#posting I know how to upload one pic via the The photo 'source' URL parameter. like: source: 'http://www.example.com/example.jpg' How can I upload several pics in one photo post? Thanks a lot! A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including a postscript file into another one? I wonder if there a standard way to include a postscript file into another. For example, say I have got one file of data generated by a 3rd party program: %!PS \mydata [ 1 2 3 4 5 6 (...) 1098098 1098099 ] def and I would like to include it into a main PS documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: add line break in mobile sms I am working with an API of a certain sms service and I just want to know how to add a line break from php code in a plain text format to mobile? Can someone help me? A: $text = "This is line 1.\nThis is line 2."; Be sure to use double quotes around the string, not single quotes. If th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is a good approach to bind an entityproxy to a UI component? I'm currently working on a GWT project. The thing is, I find very hard to believe that I need to repeat some boilerplate over and over to bind the data from an EntityProxy (say a getSomeData() method) to a UI component (say a TextBox). How do you guys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: uiActivityindicatorView in splashscreen creates memory leakage problem? I want to display UIActivityIndicatorView over splash screen. I'm just creating a splashView and activityindicator over splashview in AppDelegate. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)lau...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 2.3.5 collection_select: how to grab attributes from selected object and send to javascript function I have a collection_select with the following code: <%= collection_select(:address, :id, current_user.addresses, :id, :address1, options ={:prompt => "Select an address"}, html_options={:onchange =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best approach to handling multiple file uploads in rails? I'm trying to attach multiple files to a comment model (currently with a has_many :attachments) using paperclip. It seems to be quite a lot of work and a bit fiddly for something that should be trivial. What's the modern rails way of doing this, wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deal with namespaces in XML in XmlDocument c# I have several XML documents, all of which have the same structure (element names, attribute names and hierarchy). However, some of the elements and attribute have custom namespaces in each XML document which are not known at design time. They change, don't ask......
{ "language": "en", "url": "https://stackoverflow.com/questions/7587428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does cygwin's "-mwindows" switch work in windows 7? I am building an FLTK application in Windows XP under cygwin. When I pass "-mwindows" to the linker, it behaves as advertized, and I don't get the command window popping up. However, when i run the same application under windows 7, a black console window pops ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Publishing on facebook using open graph This is Sasikumar A, I created the app for Galatta and i added the following details in web page head section <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml"> <head> <meta property="fb:app_id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActionScript 2.0 - Matching Traces Don't Actually Match (lord help me for programming in AS2) i'm itterating thru an array of text field objects and tracing the selected focus field when pressing tab, as well as each object. i'm trying to equate these object, but while they trace the exact same they are not. m_Input...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting timezone to UTC (0) in PHP Why does this work? date_default_timezone_set('Australia/Currie'); But this doesn't seem to take any effect at all? date_default_timezone_set('UTC'); This value doesn't change when setting the timezone to UTC: echo date('Y-m-d H:i:s', time()); I'm using php 5.2.13, and the timez...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: pragmatic cross platform (and very fast to make it - actually - work) "throwaway" code: which language/tools? my development style brings me to write a lot of throw-away "assisting" code, whether for automatic generation of code parts, semi-automated testing, and generally to build dummies, prototypes or temporary ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arg.Do() is not firing when expected in a When..Do for void method I have the below structure in a test of mine, intended to test that a certain log is being called with the right complex argument object, even when it throws an exception which is then wrapped and generally manipulated further. The logThing has a met...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The simplest way to create a set of jquery object s Yeah, the way I was doing is A.add(B).add(C).add(D).show() While A,B,C,D are jQuery objects. I wonder if there's such a simpler way to do this out there? I've tried all the following approaches, but no results: $(A,B,C,D).show() A.add(B,C,D).show() All suggest...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is this a valid sitemap URL? I have thousands of uique urls that look like this: <url> <loc>http://my_site_url/view_profile=1577</loc> <changefreq>daily</changefreq> </url> are these urls that google or any other SE will crawl? A: Yes, those links will definitely be crawled, but you should ensure that in addit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net text calculator (formula parser) I am going to implement custom server side validation of numeric user input. All is what I nee is to be able to feed a formula to the calculator, feed parameters and get the result back. The formula consist of basic arithmetical operation, for example like this ([name1] + [name2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Telerik MVC Grid: Getting Parent Row Client-Side I am trying to get the value of a column in the parent row of a child row's onEdit event for a Telerik MVC Grid. How would I achieve that? e.target.parentNode.parentNode.parentNode.innerHTML gives me table row of the parent row. I now need to parse this to get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best-Practice for adding an empty row to a databound Listbox using Linq2SQL & Winforms what is the most robust method for adding a empty row (to select "nothing") to a ListBox? Sofar i used: Dim List = Enumerable.Repeat(New TABLE With {.Text = "", .ID = -1}, 1).AsQueryable().Union(From t In mainctx.TABLEs) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ImportError: No module named - Python I have a python application with the following directory structure: src | +---- main | +---- util | +---- gen_py | +---- lib In the package main, I have a python module named MyServer.py which has an import statement like: from gen_py.lib import MyServi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: C# TimeSpan two days equal the same time span? So I have a situation where I need to trigger certain events on a specific day, I thought I would use TimeSpan to get that specific day, the idea here is when the TimeSpan.Days == 0 I trigger my event, if its Less then or Greater then 0 do nothing... but I thought this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery dialog dissappearing act? I'm using jQuery / jQueryUI to do some simple cookie checking on certain link types.. I want to check the cookie value on certain links and fire a form dialog if that value is met. i.e. <p id="clickLowValueAsset"><a href="page2.html" id="basic">go to page 2</a></p> effectively firin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zend_Navigation and module specific layout I am developing a web site using the Zend Framework. I was using this site to get my navigation working: http://www.rvdavid.net/zend_navigation-makes-writing-navigation-for-zf-sites-very-easy/. However, the $this->layout()->menu returns NULL. I have a modular structure, wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql php create extra colulmn in rs using as I have a question to which I have been unable to find the answer. I can create an extra column in a PHP recordset by using an existing column and duplicating it: SELECT id_tst, name_tst, age_tst, price_tst, price_tst AS newprice_tst FROM test_ts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cocoa How to know if a file was edited/closed I open a file programmatically with the default application taking into account the file extension. When the file is open, I need to know when the file is modified and when is no longer in use. I used FSEventStreamCreate to create the event. How can I know if the file w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which is better performance-wise: stored procedure or executing a query with dataadapter? I am reworking a .NET application that so far has been running slowly. Our databases are Oracle, and the code is written in VB. When writing queries, I typically pass the parameters to a middle tier function which builds the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the factors i should consider to select any MVC Framework I have worked on struts 1.2 and DWR as front end MVC framework.Now i have two projects to develop one is simple web application and another is complex.Which one i should select from most prevalent MVC Framework Spring mvc, Struts 2, DWR,JSF and bri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: More help needed with farbtastic color picker Possible Duplicate: Help needed with farbtastic color picker. Simple example html included I need a bit more help with the farbtastic color picker. I've got it working, and I can get it to change ONE ITEM on my page. But I need to get it to change the background col...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to refresh "Tasks" in Eclipse? I inherited a program with a lot of //TODO: messages, which i expected would show up under Tasks. Unfortunately, that pane is empty. Is there a way to refresh it for the current project? A: The tasks tags in *.java files are scanned automatically by Eclipse compiler. You can simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: keeping track of a moving shell script I hope someone can help me out. For the past month or so I have be learning the Bash... I have a program ( a simple language study program ) that I want to be able to install and run from a script. I have a script that will create a new folder and move itself into it. The way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting Numpy Array to OpenCV Array I'm trying to convert a 2D Numpy array, representing a black-and-white image, into a 3-channel OpenCV array (i.e. an RGB image). Based on code samples and the docs I'm attempting to do this via Python like: import numpy as np, cv vis = np.zeros((384, 836), np.uint32) h,w = vis....
{ "language": "en", "url": "https://stackoverflow.com/questions/7587490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Style input type="text" I have an <input>, which is the body of a email form. <input name="bodyEmail" style="width: 460px; height: 500px; " type="text" /> I would like to have a big input, and start writting from the top-left part. Whid this piece of code I start just in the centre, but the width and height are t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Print the output of a shell command in Perl I would like to turn the outut of a shell command into a variable e.g. $result and then print it out on screen e.g. print $result df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' A: Just use backticks, and careful with the quoting: my $result = `df ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Possible to prevent accidental bitwise operators on non-bitmask field? In C# you are recommended to add the [Flags] attribute to bitmask enumerations, like so: [Flags] public enum Condiments { None = 0, Ketchup = 1, Mustard = 2, Mayo = 4, Pickle = 8, AllTheWay = 15 } I discovered I had code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: GROUP_CONCAT Question So I am trying to do multiple GROUP_CONCAT()s in a query on the same column with if statements. Even though the data is there, it is not giving me accurate info. I tried upping the group_concat_max_len, but I still get the same incorrect data. Here is an example: SELECT field1, field2,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Warning: max() [function.max]: Array must contain at least one element - whats is this? So, im trying to do a poll, when i run mysql gives me this error, and i dont know what it means. Warning: max() [function.max]: Array must contain at least one element in .... in line 18. Could anyone please guide me of whats th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to bind to the submit event when HTML5 validation is used? Using HTML5 validation... In HTML5 browsers, validation occurs before the submit event. So if the form is invalid, the submit event never fires. I would like to hook an event into the form submit, to fire whether the form validates or not. Here's a small...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: jQuery - Run jQuery script each time a ".load" function is called? I am developing a control panel for a project, and I am having a bit of a conflict with some of my code. I am running some jQuery so that every link will insert the content of the requested page into a DIV. This code is located in the index.php page,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get values in a report, like in a form? here is my situation: I have a report that is displaying several values like the expected value and the obtained value. I would like to display an alert when the expected is over the obtained. This kind of manipulation is straightforward in a form: If expectedCtrl > obt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wpf dual monitor application? I'm very new to WPF. I want to create a dual monitor/projector application. What I want to do is have the "presenters screen" on one monitor and another panel on the secondary monitor, similar to how powerpoint works. I'm struggling to wrap my mind around the panels and XAML. So what I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django. Pre-processing data from DB I need to add some additional information for data returned from DB. For example there is 'name' field in DB for Person and I need to add '{', '}' to it when it is showed on form. I thought that method bound_data of 'Field' class from 'django.forms.fields' module is what I need. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails how to touch Active Record Object without locking? In my photos class I have this association. belongs_to :user, :touch => true One day I got this exception. A ActiveRecord::StatementInvalid occurred in photos#update: Mysql::Error: Deadlock found when trying to get lock; try restarting transaction: UPDATE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: cancelPreviousPerformRequest from background thread issue I have the following code, which is executed when a button is pressed: [self performSelector:@selector(timeout:) withObject:nil afterDelay:30.0]; The issue comes in when I wanted to cancel this from a background thread: [NSObject cancelPreviousPerformReques...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }