text
stringlengths
8
267k
meta
dict
Q: Search A For A Document Library or Document In a Document Library in Sharepoint I am new to Share Point. I created a Document Library and added a number of documents to that library. When I use the "Search" feature, I enter the exact name of a document in that document library, but I contiue to get no results. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding entity in the domain service insert method I have two entities, Parent and Child, at the client side i create Parent and then call context.submitChanges At the server side in the InsertParent(Parent parent) i do: InsertParent(Parent parent) { Child child = this.ObjectContext.Childs.CreateObject(); paren...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Button with no code reloads page in a new window when clicked I have a very simple ASP.NET project. It consists of two pages. The first page (FirstPage.htm) has the following markup: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Boost Concepts Deprecation Warning The top of this page warns about deprecated a API. Where can I find its replacement then? A: this code wasn't updated to newer model. here you can find all now supported functions.
{ "language": "en", "url": "https://stackoverflow.com/questions/7521551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle - Why is SELECT * FROM Foo; so slow? I'm working on some Oracle performance issues with our web app. One thing I've noticed that's seems to obfuscate any sort of tests is that simple queries that return a lot of results are still very slow. One example is: select * from TPM_PROJECTWORKGROUPS; When I run it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What does [webView loadRequest:[webView request]] do? I was assuming that it would refresh the page but I have hidden parameters within the page and after [webView loadRequest:[webView request]] these parameters are retained (which is not the case when I refresh the page on Safari; it resets everything to default)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7521561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apple - Suspend / refund in-app auto-renewable subscription I have an iPhone/iPad application that offers a monthly subscription to a service. Although, this service is totally useless during 2 months in the whole year. Is there any way to either suspend all my users subscription for 2 months, or give them a 2 mont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JQuery Custom Animation Issue using SetInterval & SetTimeout The problem I'm having is that IE and Safari (Mac OS X not Windows Version) are flickering the images during animation and sometimes not doing the animation at all. Google, Firefox, and Opera don't this issue after load. I think it's redownloading the imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a CLR data type to Sql data type translation method? I was going through the MVC material over at asp.net, and came across the 5 minute introduction video: http://www.asp.net/mvc/videos/5-minute-introduction-to-aspnet-mvc In this video, there was demonstration of creating a model, then having MVC generate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to show grouped value in Extjs 4 grid groupHeader? I have a grid like this var groupingFeature = Ext.create('Ext.grid.feature.Grouping', { groupHeaderTpl: 'Invoice: {invoice_number} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})' }); { xtype : 'grid', store : Ext.getStore('invoice_items'), co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: invalid \x escape Module has no __module_name__ defined when loading the following (or any python script for xchat version 2.8.9 on 64 bit windows 7): __module_name__ = "test.py" __module_version__ = "0.666" __module_description__ = "I AM AN EXPERT PROGRAMMER" import xchat, random, string, re def test(word, word_e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing distinct Multiple Parameters in SSRS I'm in a peculiar situation here. I have a report which takes @ProjectID as a parameter and shows all the info related to that project. Now I have to pass multiple project ids separately as parameters to the report and each report(ProjectID) should show in a distinct page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot access NSMutableDictionary outside method where values are passed into it I am trying to set up Index and sections for my uitableview, which I have managed to do.. However now that I am trying to pass my NSDictionary values over to my uitableviewcell my app is crashing when I try to access the NSDictionary ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GNU Binutils' Binary File Descriptor library - format example As in title. I tried reading the BFD's ELF's code, but it's rather not a light reading. I also tried to get something from the documentation, but I would need an example to see how it works. Could anyone point me some easier example for me, to know how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Salesforce.com - Custom mini page layout for new Line Item out of price book I need to programmatically select the fields or values that are shown when I add a line item to an opportunity. I.E. If I add a new item of type "A", in the mini page layout, I need to show Fields "X", "Y", "Z". If I add a new item of type...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adding xmlns:rim attribute to serialized class I would like to add a namespace and prefix attribute to my serialzed class so my child elements can reference by using the prefix. My class looks like this: [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "4.0.30319.1")] [System.SerializableAttribute(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Draw Network in Matlab I need to draw a network (not a neural network) with 5 nodes and 20 directed edges (an edge connecting each 2 nodes), and I need to be able to control the thickness of each edge. Is there a toolbox in Matlab offering this? Thanks in advance. A: Yes, Bioinformatics Toolbox will allow you to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Precedence of Logical Operators in C Possible Duplicate: why “++x || ++y && ++z” calculate “++x” firstly ? however,Operator “&&” is higher than “||” If you look at C's precedence table, you'll see that && has higher precedence than ||. But take a look at the following code: a=b=c=1; ++a || ++b && ++c; printf("%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Detect user touches on MKMapView in iOS 5 I have a MKMapView in a ViewController and would like to detect users' gestures when he/she touches the map with these methods: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touches...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MYSQL- How do I create individual tables for forum posts? For every forum post on my site, I'd like to create a MySQL table with the name of its id, in order to enable user commenting. The know-how will also come in handy when creating a table for each user registered, to enable friend tracking. There are multiple p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: script/server returns development database not configured? Rails 2.3.8 When trying to run server I get: => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active _record/connection_adapters/abstract/connection_specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with adding two double values in objective c I'm programming an app for iphone and ipad and my program requires adding two double values to get a single double value. The problems is when one of the double values is fairly large (eg: 2^100) and the other one is very small like 1 or 2, the result of adding th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++11 to_string() function, where? See the N3242 Working Draft of C++11, chapter 21.5 Numeric Conversions. There are some useful functions, such as string to_string(int val); mentioned but I don't understand how they're called. Can anyone give me an example please? A: Sure: std::string s = std::to_string(123); // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: VS 2010 Wcf client utility to my project? I have my own wcf program which is not WCF project , and i want to trun the built in client testing tool for my app. How do i do it ? A: Based on this article to launch WCF Test Client without running visual studio, do the following: You can also invoke the WCF Test Clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Admin route in custom modules All stock magento modules have URL path in backend which has 'admin' (by default) part. However I was not able to achieve that for a custom module. Is this not possible or done on a purpose? Thanks A: The first part of the URL is known as the "frontName". http://example.magento.com/f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Intercept the 'Expression' property of IQueryable Provider and gets its e-sql Normally I can query an entity context using linq in the typical way, IQueryable<Product> query = from p in db.Products where p.ProductID > 1 select query; Now say I wanted to get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: parse html tags, based on a class and href tag using beautiful soup I am trying to parse HTML with BeautifulSoup. The content I want is like this: <a class="yil-biz-ttl" id="yil_biz_ttl-2" href="http://some-web-url/" title="some title">Title</a> i tried and got the following error: maxx = soup.findAll("href", {"c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use smartGwt with playframework Please How can I integrate smartGwt 2.3 with play?, I'm using GWT2 [gwt2] module 1.8, but I don't know how to add smartgwt components A: Well it runs with this configuration require: - play - play -> gwt2 1.8 - com.google.gwt -> gwt-user 2.3.0 - com.google.gwt -> gwt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Syntax error near "COUNT (*)"? I'd like to do an interactive stored procedure I mean, after execution the user should type a word I wrote this but it doesn't work.. DELIMITER $$ DROP PROCEDURE IF EXISTS ric_forn$$ CREATE PROCEDURE ric_forn (IN nome_forn VARCHAR(100) , OUT msg VARCHAR(100)) BEGIN DECLARE num_rec ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does Yahoo BOSS (version 2) allow automated search queries? As far I know, Yahoo BOSS (version 1) didn't allow this. But with the new payed model, does it mean you're allowed to do automated search queries? A: With version 2 you're allowed to do an unlimited number of requests (if you pay for that).
{ "language": "en", "url": "https://stackoverflow.com/questions/7521635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHPUnit Version issue and Mock Builder I am facing a version issue with phpunit . When I execute pear install pear.phpunit.de/PHPUnit I get an error: phpunit/PHPUnit is already installed and is the same as the released version 3.5.15 install failed But when I execute phpunit --version, I get PHPUnit 3.4.5 by Sebas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I order core data fetched results from one datastore based on data in another datastore I'm building an iPhone application where I have two datastores, one for static data and one for dynamic data. I use two separate core data stacks for this. The dynamic data includes an entity and attribute for ID and ano...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Killing The Application In Android I have an application which shows a notification in the status bar for users to click to get resumed into the activity. In the application, I will also have a close application button which runs: android.os.Process.killProcess(android.os.Process.myPid()); When I click the close ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What can you use HTML5's local storage for? I was wondering what are some of the most creative and useful use cases of HTML5's local storage capabilities. Have you ever encountered any website that uses that feature in a cool way? In other words, what are some of the examples of places where storing user data in a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Need 12-h time formatting in Excel Consider an Excel sheet with one column of bad data. We have a table that can be used to correct the data. My code runs it by writing a new sheet containing the old sheet plus adding new columns of correct data for them to compare. This date is fine and works but it makes the date/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: friend function of std::make_shared() in Visual Studio 2010 (not Boost) how to make friend function of std::make_shared(). I tried: class MyClass{ public: friend std::shared_ptr<MyClass> std::make_shared<MyClass>(); //or //friend std::shared_ptr<MyClass> std::make_shared(); protected: MyClass(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding a filtering constraint programmatically to a Dojo Enhanced Grid I added the filtering plugin to my Dojox Enhanced Grid. Now I would like to create my own constraint that filters the grid without user input. The normal grid.filter is deactivated if I use the filtering plugin. Do subclasses like dojox.grid.enha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - dynamically using '.filter' on newly added DOM objects I'm using the jQuery template engine to add dynamic DOM elements (specifically DIVs). To control them I use the 'live' method (for 'click' events for example). At some point I need to find some newly created elements using the 'filter' method. It seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How many collections are possible in a MongoDB without losing performance? I saw that by default, a MongoDB has 24,000 collections available with a 16MB .ns file. If I increase that to 2GB (the max), can I then get 3,000,000 collections in a DB? Will there be any substantial performance decrease? A: According to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to edit my code to add (instead of replace) the content of a div to another div on toggle using jQuery Hello I have a jQuery example that a thepost-preview div is replaced with the full post. Because I am having some troubles with PHP, instead of replacing the two div, I need the full post to be added right afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to do FTP tunnel over SSH I am writing a JAVA program for work that at some point needs to transfer files from the machine it is running on to another machine. The requirements are such that it can be configured to either do the transfer over FTP, SFTP, or a connection where the authentication is secure but d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to query from a Directed Acyclic Graph with exclusive subsets Question in abstract terms: I have a directed acyclic graph (DAG) which contains subsets of vertices which are exclusive when queried (only one item per subset should be present in the query's results). When I query the graph structure I would like to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rails db:migrate fails with SQL error rake db:migrate is failing on my production server, the error is: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'String' at line 1: 'ALTER TABLE looks' ADD 'code' String My mig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The best way to send data to JavaScript functions from a Microsoft SQL Server Database I have a bunch of location data (longitude and latitude pairs) sitting in a Microsoft SQL Server DB. I need to plot those points on a Map (OpenLayers+OSM), and the only way to draw on the map is to use JavaScript. So far, I have n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSDictionary `description` formatting problem -- treats structure like char data I've got a custom class (which resembles an NSArray in concept and, hopefully, formatted appearance) which has a description formatter. When the output of the formatter is printed (NSLog) by itself it looks fine, but when it's include...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Emacs symbol-at-point with C++ scope Has anyone extended symbol-at-point to include, in my use case the C++ namespace, scope as well? Having the cursor on std::vector should preferably return ("std" "vector"). A: The CEDET toolset includes a set of local context parsers that will do what you want, but it doesn't ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: (Converting c# to Java JNA) - GetModuleFileName from hwnd I am trying to do exactly what is being done over here: How do I GetModuleFileName() if I only have a window handle (hWnd)? But in java instead of C#. So far I have managed to this: public static final int PROCESS_QUERY_INFORMATION = 0x0400; public interface...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows Workflow Custom Sequence Activity I'm working with Windows Workflow 4, and I need to create a C# activity that, basically, inherits from the Sequence activity. I want it to look just like the Sequence activity, so a user can drag and drop other activities onto it from the designer. But, it acts differently...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Include 3rd party dll in the Sharepoint project while packaging the wsp In one of my projects I am using a 3rd party dll which is from Codeplex. While I was developing my code in my development box I had used gacutil command to get it added into GAC. Now, I need to send the wsp for the project to teh Test Team for d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Email issue in hudson/Jenkins Some time I get failed notification email in jenkins even though build is passed? How to reslove this issue, I am using jenkins 1.430, using email ext 2.14 Thanks A: Has issue in the plugin. Had to downgrade it for now.
{ "language": "en", "url": "https://stackoverflow.com/questions/7521700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do you manage bdd features and scenarios? We are adopting BDD using specflow. The issue we have is that product owners and managers can not be expected to go into Visual studio / svn and edit features or scenarios. We can get the pm's to do it all in google docs, and then we can copy and paste them into feature ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best practices for dependent fields in a django model For database indexing purposes, the email field on a model needs to be stored in reverse. I end up needing access to both the reversed and forward version of the email field. I'm curious as to which of the following methods would be considered best practice. Me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fb:visible-to-connection not working? Hi i have created new iFrame APP. this is code part: <fb:visible-to-connection>Welcome, fans!<fb:else>Become fan</fb:else></fb:visible-to-connection> <script src="http://connect.facebook.net/en_US/all.js"></script> Can anyone help me out?? I also tried doing this with newest F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Layout with fixed height and variable width JButtons I look for a LayoutManager that has fixed height JButtons that expand in width to fit the size of their Container. Above the JButtons there should be a JLabel by itself on the line that says "Choose file:". This is intended to work as an accessory to a JFileChoose...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot cast java.lang.Float to float when using Class.cast? I already have a solution, but I don't like it. Also, it would be nice to know your thoughts about this. You see, elem.get gives back an Object, that is going to be a Float in the case of x and y. This code throws the Exception described in the title: Strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uncaught TypeError: Cannot set innerHTML to null Can somebody tell why I get this innerHTML error in the following code? <html> <head> <title> My Todo List </title> </head> <script type="text/javascript"> var html5rocks = {}; html5rocks.webdb = {}; html5rocks.webdb.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Declarative syntax, how do I define a relationship representing the latest object in a many-to-one collection? I'm using SQLAlchemy's declarative syntax and I'd like to specify a relationship that provides the latest (max primary id) element in a collection. I've found this post: How do I define a SQLAlchemy r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to open a new default browser window in Python when the default is Chrome I have been looking for a way to open a new default browser window from inside Python code. According to the documentation webbrowser.open_new(url) Should do that. Unfortunately in case Chrome is the default browser it only opens a new ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: events called from inside another function jQuery with underscore template doesn't work I have a function which i used to add elements to a list, I want to have events run on interaction with this list, e.g. click. If I do it using the document object it works well however if I use jQuery with underscore templates t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make Gridview read ConnectionString from Session? How can get my SQLDataSource to read the ConnectionString from a session variable? I know I can do it in code, like this: protected void Page_Load(object sender, EventArgs e) { uxDS.ConnectionString = Session["con"].ToString(); } But what I really want is someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle different account types in PHP? I have a 3 tables/models with the relationship illustrated below: Account | ---------- | | User Company They are all joined by the the Account's PRIMARY KEY, and the User and Company each have very different sets of methods and fields. Assum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unrecognized selector sent to instance (SIG_ABRT), adding NSString to NSArray I'm brainfarting here. So I have a method that looks through a NSMutableArray that is a property of another class. The objects are NSString. In the debugger I see it says NSCFString for the object I'm trying to add to an array. So I ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java ServerSocket required for UDP communication? I had following question on the exam: "Let us assume that you want to use UDP for a client. Do you need to create a new socket for managing parallel connections in UDP? Why or why not? What happens if multiple clients connect to that socket?" The question also refere...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generic JQuery Function? I'm using Jeditable to edit dozens of fields such as first_name, last_name, birthday, etc. My problem is that I'm drowning in detail: I keep having to create a new selector such as $('#edit_first_name').editable or $('#edit_birthday').editable to making the field editable as well as create a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can we connect iPad2 and iTouch using Gamekit? I have this doubt, can we connect iPad2 and iTouch using Gamekit ? I tried Apples GKTank example along with several others available tutorials regarding the same. But I did not have successful connection between them. Anyone knows why this happened ? A: Yes you can. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I know where this instance is deallocated? I got [NSArrayM release] message sent to deallocated instance error. However, the debugger hightlight a line in main source (retval line) instead of the line where this error actually happened. Any idea how to find this bug and fix it ? Thx for helping, Stephane A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Round array to nearest hundredth and seperate evenly I am pulling 10 integers from a MySQL DB: I want to be able to determine the largest value then round up to the nearest hundredth. With this I want to then be able to create a list of 10 numbers that are evenly separated down to zero. In Example : { 232, 10, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: domain class field not being displayed on view page I am unable to view all of the below fields when I run my grails app the " Cost" field is not being displayed on the view page, the fields are displayed on the add page. If I remove the "name" field the "cost" field is then displayed. Is there a field limit that im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I render @font-face in PhantomJS screen capture? The screen capture is great, but the custom @font-face fonts aren't being rendered. Is it possible to correct this? A: After doing some research for a bit I found this http://code.google.com/p/phantomjs/issues/detail?id=247 Looks like SVG works the best. One...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: On the surface, JPA Criteria Queries are a huge step back from Hibernate Criteria Queries. Is this really the case? How could such a colossal step back be justified!?! Am I missing something? The readability of the entity manager version is just awful. session().createCriteria(Entity.class).add(Restrictions.eq("id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I sum an entire field(no grouping)? I have a field called time_elapsed that stores a sql TIME value, a start_date and end_date that are sql DATETIMES, a unique id and a batch_id that is a reference to the batches table. I'm looking to SUM the total of the time_elapsed field for every record in a date range, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to do a SQL query without using a cursor So I've got a database which maintains all of the data in it in a history database, so that we can change the history date, and go back and look at old data. I need to write a query that adjusts the dates in these history tables for each table. Right now I've got it wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS 4-way rocker control I need to do some 2-axis adjustment on a web page. Can anyone point me at the CSS/Javascript for a 4-way rocker switch like the ones on TV remotes? Thanks! A: Didn't find anything in my searches of the web, and nobody here had a suggestion, so I wrote one. Live demo: Resizable 4-Way Rocker ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring InitBinder I'm having some trouble setting up an initBinder in Spring MVC. I have a ModelAttribute which has a field which will sometimes display. public class Model { private String strVal; private int intVal; private boolean boolVal; // Only shows in certain situations } How can I setup this initBin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unruly CSS Pseudo Element Box Shadow I am working on a new layout for a website, and I am extremely close to achieving the result I want. However, there is one problem. I am using an adaptation of the technique described here (http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/demo/backgrounds.ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: drupal optimization I am getting many 404 and 500 errors on my Drupal site, it is not very complex yet I am using Dreamhost and they are limiting my memory usage I think it is under 158MB, how do I find out what my memory limit is? I do not have access to php.ini. How do I optimize my database for performance or f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble with a form drop down list in Ruby on Rails This is my form: <table> <tbody> <% form_for :HhActiveCarrier, @carriers, :url => { :action => "update" } do |f| %> <% for carrier in @carriers %> <tr> <%= render :partial => "summary_detail", :locals => {:carrier => carrier, :f => f} %> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change Header on Masterpage depening on what page is being display Ok, I have read some really good suggestions. I have a car dealership website that has a page for each manufacturer. I have created a header for each manufacturer which I have currently in an html file. So when I click on Ford, It will call the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php login form - security basics again a simple but not very obvious question from me. This time is login in PHP and the session. AS far as I understand the security side of it: * *checking all the variables before sending to MySQL *using $_POST for hiding info *and logging the sessions Well I have some code 'l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to create an empty multidimensional array in javascript/jquery? I am trying to create a very basic Flickr gallery using the Flickr API. What I want to achieve is sorting my pictures by tag. What I am using is jQuery.getJSON() so that I can parse the API response of flickr.photosets.getPhotos. The da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: When should I choose SAX over StAX? Streaming xml-parsers like SAX and StAX are faster and more memory efficient than parsers building a tree-structure like DOM-parsers. SAX is a push parser, meaning that it's an instance of the observer pattern (also called listener pattern). SAX was there first, but then came StAX...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: implicitly converting lambda to boost::function I'm trying to make a implicit lambda convertible to lambda function by the following code: #include <boost/function.hpp> struct Bla { }; struct Foo { boost::function< void(Bla& )> f; template <typename FnType> Foo( FnType fn) : f(fn) {} }; #include <iostream>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing custom variables via paypal (IPN Question) I've been trying back and forth with this and I finally got PayPal working the way it should. However, i need to pass some variables (user_id, and some small details (numbers) about the product). Is there any way i can pass custom variables? or variable? I've been ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with Jquery, .getJSON in IE7-8 I have a jquery script that creates image rollovers for counties in a state. The script queries an XML document for county x/y coordinates and information, then displays this information when the county on the state image is hovered over. Additionally, a random county and coun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find the date for the upcoming weekend in Ruby? so I wanted to have an option called Weekend Delivery, but I can't seem to find any nifty Date#method that can help determine the date (like 2011-09-24) for Saturday, say. So far I come up with: today = Date.today sat = today + (6-today.wday) # 6 being the 6th d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle unique constraint and unique index Could someone clarify what is the purpose of having unique index without unique constraint (Oracle)? For example, create table test22(id int, id1 int, tmp varchar(20)); create unique index idx_test22 on test22(id); insert into test22(id, id1, tmp) values (1, 2, 'aaa'); // o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Deserialize google geocoding XML using Datacontract in C# I have the following Google geocoding XML <GeocodeResponse> <status>OK</status> <result> <type>street_address</type> <formatted_address>1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA</formatted_address> <address_component> <long_name>16...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jqplot highlighting stacked column chart I have a stacked column chart . For highlighting any of the individual slices, we can make use of the "highlightColors" option, but if I have to highlight the entire bar is there any option available for the same. My current code looks like this: seriesDefaults : { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to press a button with java-script event inside a web-page by code for iOS (iPhone)? I am writing an application for iOS (iPhone). How to press a button with java-script event inside a web-page? I need to write a code to press this button. Then the event will be executed. And I'll take result of it's work. Thank...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: javascript regular expression validator I have a text box named id. I need to form a text box validator where I want the id number in the text box to be of the format a letter, followed by 3 numbers (each in range 0-8), a separator "+" or "-", and another 4 numbers (each 0-9). Can anyone tell me how I could write t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a MonoTouch wrapper for UIImage-DSP library? I'm searching for a MonoTouch wrapper (or a complete port) of this library: https://github.com/gdawg/uiimage-dsp UIImage Image Processing extensions using the vDSP/Accelerate framework. Fast Image Blur/Sharpen/Emboss/Matrix operations for UIImage. REQUIRES IOS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use Panels + CTools Page Manager Node Template with Views Row Style Node I have used Panels + CTools Page Manager to configure the 'Node template' (node_view) for a particular content type. When viewing these nodes at /node/% the Page Manager's node template renders the nodes just fine. However, when trying to dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WMI causing memory leak(when run in multiple threads) My question is similar to Periodical WMI Query Causes Memory Leak? but with threads. I am writing a simple application to monitor process and memory information from a number of servers. However there is a memory leak. I have whittled down the problem to the fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apartment Fire- Time Machine did not back up XCode projects? My apartment burned down a few days ago and my beloved MacBook Pro was one of the many electronic casualties. While I of course back up (using Time Machine) and my backup drive managed to survive, much to my dismay many of the most important files seem to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Stretch Grid to window size I've just started learning C# WPF with a basic empty project and I want to make a grid, with a background image, which stretches exactly over the window. The way it is now, the grid stretches, but not the way I want it. For example my background image is 1000x1000px and my window size is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reading and writing files in Cyrillic in c++ I have to first read a file in Cyrillic, then randomly pick random number of lines and write modified text to a different file. No problem with Latin letter, but I run into a problem with Cyrillic text, because I get some rubbish. So this is how I tried to do the thing. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Class Library - References - Reusability with Copy Local? I have a class library project, lets call it CoreLib. CoreLib has two references to 3rd party DLL files 1.dll and 2.dll Because I love reusability so much, I want to be able to use CoreLib in as many places as possible/needed. So if I had a project called Big...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Transparent mouse emulation on iOS Safari Is there a (small) js module which can be included to make an existing (mouse-based) webapp (instantly) usable on the Mobile Safari?
{ "language": "en", "url": "https://stackoverflow.com/questions/7521857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Practice for Emailing Customer Address Book Contacts? A question I am sure has been asked before but as opposed to 'how do I...', I am curious what the best practice is for programmers looking to implement a 'mass email' option on our website when an existing customer authorizes (via gmail api, yahoo mail api, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: slideDown div inside a function not working For now I'm trying to slide down the msg_general div, I will later append a json response to it, however the problem is it will just show but not slidedown. The function: function createGeneralMsg(msg) { $('#msg_general').slideDown(200); } Where I call it (inside a .cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7521861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }