text
stringlengths
8
267k
meta
dict
Q: Separate "hand-drawn" objects in Mathematica What is the simplest / most convenient way to separate hand-drawn objects in Mathematica from programmatically generated ones? The interactive drawing tools are convenient and useful. But if I draw something on top of the plot, it will get lost as soon as the plot is re-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sharepoint 2007 extensions for Visual studio 2005 I am using Visual Studio 2005 to work with Sharepoint 2007. I need sharepoint extension (VSSExtension for VS 2005).Tried in google but dint get any download link. Can anybody post the link here Thanks in advance A: I typed sharepoint extensions for visual studio 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript syntax to pass variables Still muddling my way through Javascript, I'm trying to pass the contents of variable playnoyes to the long line of code below to decide whether or not to autoplay the flash movie, but doing it as I have below, the resultant line of code has the variable in quotes and therefore th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Displaying hierarchical data in HTML.DropDownList Helper method in ASP.NET MVC I have a table in database that has a foreign key to itself. While adding product products I want the users to be able to select a category from DropDownList. Right now, I am able to show the result like following :: * *Electronics ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to generate unique ID field in module in sugarcrm Want to generate the unique ID field in the module which will automatically generate the unique IDs. Can anyone help help for this ? Thanks A: There is a function inside of SugarCRM called create_guid() which does this exact thing.
{ "language": "en", "url": "https://stackoverflow.com/questions/7635198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: potential advantages/disadvantages of window.location over a tag with href? I inherited some code with <img src="../...gif" onclick="aURL">. I was wondering the reason behind this choice so I would like to know any potential advantages/disadvantages of window.location over a tag with href? I am considering changing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ListViewItem not Selecting on Button Click I have a ListView in which the ListView Items have button and textblock.... Senario : I am able to click the button with out selecting the ListView Item i.e is the selection the last Item and then if i try to click the button of the first item the first time is not select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generate the MouseClick in MonkeyRunner I am new in android, Please tell me how we can generate the mouseclick event on the any application using monkeyrunner Jython script. Please give me some hint, how to write the code of mouseclick event. Thanks in advance...!!! A: There are no any such way to Generate the Mous...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the most efficient collection for accessing an object based on two key variants? I'm trying to implement a large cache of objects (up to 500000) and need to be able to access them in two different ways... The key for each item is made up of three different strings; ItemNumber, PubCode and SizeCode. In some c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JNDI - Glassfish JDBC, error when referencing data source On a glassfish server I have a JDBC Connection pool set up for my postgresql database. I have also create a JDBC Resource on my Glassfish server for this Connection pool If I create a web app that I deploy and run on this Glassfish server I get the following ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my json string have 28 unprintable characters in it? I am producing a JSON string from a database query in JSP but it always has unprintable characters in it and I don't understand why! The JSP to produce the JSON is below: String user = "username"; // set a username String password = "password"; // set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON Objects vs Spring Model Objects I am using standard Spring MVC 3x framework and have my model entities all built up with all the good relational stuff (javax.persistence API)... integrated with my DB. As the application evolved, we needed to support JSON calls. Given that I have various relationships mapped out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework - pessimistic locking What I am trying to do is basically what NHibernate does when you do something like: var instance = session.Get<Customer>(id, LockMode.Upgrade); I need to lock the entity row in the database. Why I need that? Imagine something like a workflow instance that can be updated by m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to collapse/expand a DIV within an email? What clients support this? I have an alerting system that sends out alerts by email. I would like to include diagnostic information but only make it visible if the end user clicks a [+] button. Is this possible to do in email? Can I do it without using Javas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: At some zoom levels, dropdown menu has transparent gaps in IE7 Please consider my stripped down code below that illustrates my issue. If I run it in Firefox 7 or IE8, it works fine. However, when pressing F12 and entering the wonderful world of IE7, I'm experiencing gaps in my orange list at some zoom levels (so p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bitmap Cache (SoftReference, Hard) on Lazy List does not seem to work properly - Android I have read several topics on lazy list loading in stackoverflow and I am trying to understand how to work on the different cache levels in android. As mentioned here: Lazy load of images in ListView I used the Multithreading F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NSMergeConflict with multiple threads A 1 <----> * B I'm using core data in an iOS application. A and B are entities that have a 1-to-many relationship between A and B. I have a background thread that updates and creates B. A is updated on the main thread, except when I add B to A on the background thread, becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delphi logging with multiple sinks and delayed classification? Imagine i want to parse a binary blob of data. If all comes okay, then all the logs are INFO, and user by default does not even see them. If there is an error, then user is presented with error and can view the log to see exact reason (i don't like progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: numpy: syntax/idiom to cast (n,) array to a (n, 1) array? I'd like to cast a numpy ndarray object of shape (n,) into one having shape (n, 1). The best I've come up with is to roll my own _to_col function: def _to_col(a): return a.reshape((a.size, 1)) But it is hard for me to believe that such a ubiquitous oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Passing params through nested user controls in Silverlight 4 I have a three level of nested user controls in my Silverlght 4 application. the most low level control fires an event with some parameter, then second user control takes the parameter and also fires an event sending parameter to up. Third user controls ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MongoDB C# Driver FindAndModify I'm trying to run a FindAndModify operation in MongoDB, but I'm getting an unusual exception var query = Query.EQ("_id", wiki.ID); var sortBy = SortBy.Descending("Version"); var update = Update.Set("Content", wiki.Content) .Set("CreatedBy", wiki.CreatedBy) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Having problems binding data using % wildcards Using sqlite and building queries, they all work fine until I try to bind certain data into a query such as - NSString *query = @"SELECT id, title FROM fields WHERE (staff LIKE '%?%'); sqlite3_prepare_v2(lessonPlansDatabase, [query UTF8String], -1, &stmt, nil); NSStrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is MouseEvent a class or an instance of a class or both? I'm having trouble getting the hang of as3 syntax (php is the only other coding language I know) mybutton.addEventListener(MouseEvent.CLICK, myListenerFunction); function myListenerFunction(e:MouseEvent):void { // function body } In this code it seems l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Piping into objects/properties/methods in PowerShell In PowerShell, you can pipe into Cmdlets and into scripted functions. But is it possible to pipe into objects, properties, or member functions? For example, if I have a database connection object $dbCon, I want to be able to so something like this: $dbCon.GetSomeR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Haskell - declare/use data It's my first time to use data types in Haskell. Got a problem and I don't know how to improve the code. Here is the problem: Declear a data type called "Consonant" which include some letters(string), and an textstring which got the information about if all the letters in that word are con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server - XML Validation: Invalid simple type value I'm trying to validate an XML input against an XML Schema in SQL Server 2005 and I get an error when validating the e-mail: Msg 6926, Level 16, State 1, Line 4 XML Validation: Invalid simple type value: 'john_doe@yahoo.com'. Location: /:xxx[1]/:yyy[1]/*:Email[1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I load flex components asynchronously? I have a flex application that shows information gathered from different external services by using rest api. Some of them are resource intensive, take longer to response. Is there any way I can load the different components asyncronously? A: ActionScript (Flex) executes a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to access private key from eToken with jsp It's my first time to here, so please forgive me at first time if I make mistake. I am new to RSA(Cryptography), My requirement is, accessing private key from eToken for decryption and store decrypted data in a file. I want to ask here that where to find private key & h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Magento vs. I have seen in at least one layout xml file the use of the <layoutUpdate> xml node in place of the typical <layout version="0.1.0"> node. I have scoured the interwebs as well as any Magento Layout books and documents I have but I can't find an explanation about this. I initially thought there was a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to detect if a click() is a mouse click or triggered by some code? How to detect if a click() is a mouse click or triggered by some code? A: Wait for some time and use event.isTrusted - its supported by IE9, Opera 12, and Firefox Nightly. Webkit will support it too, most probably. Currently, there is no guarant...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Should or can an iphone app have a like button I have just implemented FB login and status updates in my app following the sample app in the IOS SDK. I know it is common practice to have a like button for a page but is it also true for an app? I mean is it possible to have a like button in my app that when tapped ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to properly scroll an overflowing div based on mouse position within its container I am working on a small jQuery plugin that autoscrolls through a set of overflowing elements within a container div based on the mouse position within that container div. See the Demo Here The idea is for this plugin to be an imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get count of selected column out of DataGridView What do I have: * *Filled datagridview *Selected cells of this grid What do I want: * *Amount of unique columns of the selected cells *Names of these columns What I found: int selectedColumnsCount = dataGridView3.SelectedColumns.Count; Somehow this piece...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling C function from lua Can someone tell me is it possible to somehow call c function or simply wrap it into a lua function WITHOUT building a new module. A: If it works for you, try the FFI library. See also luaffi. A: Lua can't call arbitrary C functions - they have to be bound to something in the Lua namesp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to write an 8 bit grey scale tiff with Java? I am trying to write a grey scale image to an TIFF file using Sanselan. Obviously would like the save the data to be 8 bit grey scale file but somehow I always end up with a 24 bit colour file. I have searched for file formats in general and ExifTagConstants.EXIF_TAG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I let a user navigate and play a playlist using the HTML5 tag? I want to link a playlist with the <audio> element in HTML5, so that: * *When one song in the list ends, the next song starts automatically *The user can switch to the next or previous song in the playlist How can this be achieved through ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery replace text live doesn't works this is my js. $('.wysiwyg').live('keyup',function(){ wysiwyg_val = $(this).val(); wysiwyg_val = wysiwyg_val .replace(/\n/g, "<br />") .replace(/\n\n+/g, '<br /><br />') .replace("{code}","<pre><code>") .replace("{/code}","</code></pre>") .replace...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perl passing data to stdin and reading from stdout and stderr There might be many questions available here regarding the same, but none works for me as of now. I've a C program as follows: #include <stdio.h> #include <sys/stat.h> long size(FILE *st_in) { struct stat st; if (fstat(fileno(st_in), &st) == 0) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access: Min function error on report page header I am trying to get the min() and max() date of the current query to display on the Page Header section. My textbox is as follows ="Range date: " & Min([myDate]) & " to " & Max([myDate]) I am getting the #Error message on Access 2010 (MS Access 2003 file format, .mdb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding FileUpload control via code-behind Because of the environment I work in I need to add controls to a page via code-behind. I have done it dozens of times. For some reason the FileUpload control is giving me grief. here is my code: FileUpload fileUpload = new FileUpload(); fileUpload.ID = "FileUploadControl"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MySQL WebApp Architecture I'd like to know the best architecture. We have a web application running different domains. Each domain has its own MySQL database but the db structure is the same for all of them. * *We have a web application for the visible part of the application. *We have a dataLogic proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: changing property from another viewmodel Im trying to "connect" two viewModels, clicking a button in one, to trigger/change observable in another viewmodel. knockout v 1.3 something like this: http://jsfiddle.net/ffBDr/9/ thanks A: I think that you could choose to explicitly indicate which model to communicate with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No expected output for my performance testing I want to do a performance test for my rails 3 app and I did a try according to the rails online guide rake test:profile and it gave some output as: Specify ruby-prof as application's dependency in Gemfile to run benchmarks. Loaded suite /usr/local/lib/ruby/gems/1.9.1/g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Outlook Synchronization - Outlook 2010 and SP 2010 I'm using SharePoint 2010 and I want outlook to reflect whatever tasks I create/update/delete in my SharePoint site. How can I synchronize tasks from SharePoint to Outlook? A: Go to the tasks list and click on the "Connect to Outlook" button in the list ribbon. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Class Dynamically with Constructor parameter I have to create a class dynamically but I want to use class constructor passing parameter. Currently my code looks like Class<HsaInterface> _tempClass = (Class<HsaInterface>) Class.forName(hsaClass); _tempClass.getDeclaredConstructor(String.class); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get RSS date using Universal Feed Parser I have a RSS feed which have the data in the following format: <item> <title><![CDATA[à¨ç·à«çµàµÍÃì-JETSETER-»Å×éÁ-½Ñ¹à»ç¹¨ÃÔ§-¤Í¹àÊÔÃìµãË­è¤ÃÑé§áá㹪ÕÇÔµ-REDioactive-Presents-Jetseter-Music-Inspiration-Concert ]]></title> <link>http://www.thaiticketmajor.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Radio button I was wondering why this isn't working properly on IE, when you choose a radio button? <html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("input[name='crkbrd']").change(function(){ if ($("input[name='crkbr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby's variable swap: x,y = y,x -- seems to be slower with array references? I was just testing out some array operations and doing the ol'reverse-an-array problem (at high level) to see what the performance difference between Ruby's x,y = y,x swap and the typical use-a-temp-variable-to-swap method: # using Ruby's s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Odd date behaviour Using the following code, up until this week, the object was returning a drop-down with the "correct" weeks, i.e. week 36 as 5th september, 37 as 12th september, etc. Since the month has changed to October, the weeks are now being returned incorrectly. Code from LEAP.Schedule object: /* --- LE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django query not working Here's the thing. I have a model called User and an attribute counter that counts the number of page access. So, if a user already exists, I have to query up the db and for that user only to increase in counter. Otherwise, create a new user. I have an annoying error in the get method. How ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change DatePicker DisplayDate? How can i change DatePicker DisplayDate from mm/dd/yyyy to yyyy-mm-dd ? A: Change the SelectedDateFormat to 'yyyy-MM-dd' If you want to set the culture correctly for your entire app, look at this question: StringFormat Localization issues in wpf. You need this code somewhere th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what's the most efficient way to implement a returned calculated value in C++? With the advent of rvalue references on top of Return Value Optimization, what would be the most efficient way to implement a core function like this? How can I improve this implementation or should I leave it alone? template <typename T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android Database access from .NET application Hi we have an Android app that currently stores its data in xml files and are looking to move it to SQL Lite based database. The app is a consumer of data and data is added through a windows application after the phone is connected to the PC (Currently both are done thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I mock a protected superclass method call in Java? I have stumbled upon a testing problem of mocking a call of protected method from a super class. e.g. : public class A extends B { @Override protected int calculate(int x, int y) { int result = super.calculate(x, y); result += 10; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use ASP.NET Membership with Active Directory for a company I am new to the world of ASP.NET Web Forms and I was a Java developer for 3 years and I have a good knowledge of C# but I just used it for developing simple console applications. Now, I am having a project in ASP.NET and the first thing I am thinking...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: RackSpace Relative path to css/stylesheet images I m going to use Rack space cloud as CDN for Delivering Images and CSS/Stylesheets. The CSS files contains images as a relative path to the image location. My image folder contains sub folders like 1./images/home/banner.jpg 2./images/home/fb/like.png I dont want to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter routing with app ID's and entry ID's I'm new to CodeIgniter and going to be using it for building a sort of reusable application with multiple instances of an application. For example, each instance of the application will have an id "12345", and inside that instance, there will be entry IDs of 1,2,3,4,5...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Incorrectly display in Internet Explorer I have added to the site jquery content slider, but in IE it displays a wry, also displayed a wry header. This screenshot shows all Code my webpage: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Bitrix.UI.BXPublicPage, Main" Title="Социальный образ...
{ "language": "ru", "url": "https://stackoverflow.com/questions/7635373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xml base and relative query combination in qml I have the following xml : <response> <id>...</id> <category_id>...</category_id> <name>...</name> <detail> <resource> <label>...</label> <value>...</value> </resource> <resource> <label>...</label> <value>...</value> </re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apache, SSL Client certificate, LDAP authorizations I posted this question on serverfault.com, but I had no answer, so I'm trying here... Is it possible to mix mod_ssl and mod_auth_ldap so that the authentication is done with the client certificate and authorizations with mod_auth_ldap (Require ldap-group)? If so, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Real location of jquery in rails One day I've got jquery.js file corrupted (maybe because of my IDE, i don't really know), it has arbitrary number in the beginning. I can see this in the browser: 3/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * I'm under Rails 3.1, using Pipeline by default. So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent word wrap in error message I have weird situation that extjs 4 always puts last word of custom error message in new row, and effectively hides it. I tried shortening message, but always last word goes to new line. This happens in Firefox 7.0.1 (firebug turned off), not in Chrome, Opera, Safari. Default messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CKEditor text area is blank in rails 3.1 app I'm trying to embedd a ckeditor into a form and it just comes up blank. The text area is just an empty space where I expect to find an html editor window. I have a model where I want the "description" field to be html text. I thought it would be convenient to use ckeditor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yield to other threads/tasks in OpenMP I want to use OpenMP with CUDA to achieve overlapping kernel executions. Ther kernel calls are all asynchronous, but I have very little code between launches so the individual OpenMP threads tend to block as they try to launch another kernel, or do a mem copy (I don't always ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Position div using Jquery on doc load without seeing it move How do you position a div using Jquery without seeing it noticeably move from its original position? As I understand it, the Jquery selectors only work in the ready function, which means there is a slight delay between the DOM showing and the jquery functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Using Generic Class without Specifying Type I have a generic class I have created as so: public abstract class MyClass<T> { public T Model { get; protected set; } } And at some point in my code I want to do something with anything of MyClass type. Something like: private void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Using Google OAuthUtil in a desktop application I am building a Desktop application that interacts with Google Contacts. I have been trying to authenticate the application using google supplied OAuthUtil, but cant get it to work... it seems it is only suitable for webapplication because of the callback url you have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS Action, based on region in MapKit Basically what I'm trying to accomplish is a GPS tour guide app, where when you enter a certain region and a sound file is played. Let's say i've got 10 sound files and 10 regions. Is there a way to basically define a line on the map, and if the user crosses the line - the app c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery each function IE7 I have some links in a page that i'd like to change from <span id="lireArticle"> <a href="/Lists/ListeActualitesCarrousel/4_.000/DispForm.aspx?ID=4" class="action">Lire l'article</a> </span> <span id="lireArticle"> <a href="/Lists/ListeActualitesCarrousel/2_.000/DispForm.aspx?ID=4" class="a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to force JAXB marshaller to use xlink references? I use JAXB marshaller to store some java objects as XML files. Some of these objects reference each other, so I unsurprisingly obtain this error: [com.sun.istack.internal.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SpeechToText on Shake of phone not working properly In my application,i want to use TextToSpeech when users shakes the phone. I have handled shaking of phone successfully using- Android: I want to shake it But problem came when i intigrated TextToSpeech with this code. Tried this- http://developer.android.com/resou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is it possible to share session variables between servlets/jsp and javascript functions? I have a scenario where a form has to be filled in as easily as possible. The values to be filled in in the form, are asked from the user initially and stored in database. Afterwards, when user clicks on a button, a javascript f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: returning back to the android app, from the browser, without restarting the app I am using Phonegap to create an android application. The application has a feature that enables the user to visit a micro site by opening the android web browser. The micro site has a return button that will return the user back to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing XML to Popup window I'm using classic asp, and I would like to pass an xml to the popup window, change something on it and send it back to the parent. Is this possible? Also, is it possible from the popup to edit the xml on the parent window directly? Thanks.
{ "language": "en", "url": "https://stackoverflow.com/questions/7635426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP: Why is date made into an array? Why is this string being made into an array and how do I stop it please? Snippet: (to get date) public function setDate(){ $this->date = date("Y-m-d"); return $date; } public function getDate(){ return $this->date; } $date = getDate(); Snippet: (part...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: css container div not aligning to top of page I have a two-column layout. I have a #mainContainer div that contains all of the following (except the #footer): * *Across the top: a header div (#intro)(contains a small gradient image), and a #hero div (contains images) *To contain the two columns: a #content di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Images from a video show subtle differences when processed on different computers I have a small video clip that I've run through my video to image software and noticed that the images come out different. Both set of images are identical in which they are cut at 1 second segments. Where they vary is one of the image...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lion, RVM, Postgresql, and the PG Gem I'm attempting to upgrade me Rails 3.0.x application to 3.1 but I'm running into some problems: Heroku (which my app is hosted on) requires that I use their Cedar stack & include the "PG" gem in my gemfile. I've seen that people have quite a lot of problems when installing this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ERROR on accept: Resource temporarily unavailable I am trying to create single threaded server in linux (red-hut) in C that will listen to multiple sockets. I need to use non-blocking sockets, when I set the flags to non-blocking like this: int flagss = fcntl(socketfds[j],F_GETFL,0); flagss |= O_NONBLOCK; fcntl(soc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can I pre-compile a single modified page to an already preCompiled .Net Web Site? I have many usercontrols that i reuse in different projects. They are all in the web site project. Upon making extension for a new customer, I am precompiling the complete web site and deploy it (with around 600 items UserControls & Pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript not updating DOM immediately My question is very similar to the one described in this post: Javascript progress bar not updating 'on the fly', but all-at-once once process finished? I have a script that calls a few services, and processes some actions. I'm trying to create a progressbar that indicates the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to track an objects state in time? In my script I read messages from socket and change the state of some objects in memory depending on the content in message. Everything works fine. But I want to implement deletion of non-active objects: for example, if there's no message for specified object during some time, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Basic Mono installation wont work Am using a CentOS 5.3 box as prod server and am trying to get mono running there. after much sifting i managed to install version 2.10.2 via yum. i installed also xsp and mod_mono the same way and created a simple hello world web page. thing is its not running. iam guessing somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Magento preserve form/grid input values on error/exception at server side While submitting forms and grids in Magento, if some error/exception comes then how all user inputs can be preserved and reproduce same form so that user can easily correct the error and resubmit the form A: The Grid has a method for such: se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: label inside **NoRecordsTemplate** in **telerik radgrid** i have a label inside NoRecordsTemplate in telerik radgrid how can I find label id in .cs file in telerik radgrid control in NoRecordsTemplate?? <NoRecordsTemplate> <div><asp:Label ID="lblerror" runat="server"></asp:Label></div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: combinations for forest in disjoint datastructure The average-case analysis is quite hard to do for disjoint data structure. The least of the problems is that the answer depends on how to define average (with respect to the union operation). For instance, in the forest given below. For description purpose eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF REST is not returning a Vary response header when media type is negotiated I have a simple WCF REST service: [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] public class Servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Way to copy the values from column1(containing numbers) declared as varchar to another column2 declared as number in Mysql I am using a table say employee, which has two columns-mobileno and landlineno (both declared as varchar) contains the contact number of that employee. So now we are moving a step ahead by addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to dissmiss keybord when editing UITextField Possible Duplicate: How do you dismiss the keyboard when editing a UITextField I know that I need to tell my UITextField to resign first responder when I want to dismis the keyboard, but I'm not sure how to know when the user has pressed the "Done" key on the keybo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bitmap Size is wrong Hy! The size of the Bitmap in the imageview doesn't look like 10x10 My Code: iv = (ImageView) findViewById(R.id.imageViewPizza); iv.setMaxHeight(10); iv.setMaxWidth(10); Screenshot: The Image is lager than 10x10 Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xml...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flurry Analytics with iPhone and Website I have an iPhone application that is based on social networking. I have integrated flurry analytics into it. Now, there is a limitation to the information that my client can send to flurry and I want some other information also to be tracked and only my server can provide tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: nhibernate. Bag is null after creation in same session I have the object, which contain the list of objects. public class Product: IProduct { public virtual long Id { get; set; } public virtual string Name { get; set; } public virtual IList<IFunction> Functions { get; set; } } public class Func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I pass a value to a CSS function? I have a speedometer. I would like to show the speed depending on what value was entered in the textbox. Here is the demo. Here is the code, if you would like to browse. The main code where I need to update the value is. @-webkit-keyframes rotate { from {-webkit-transform:ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Runtime exception not terminating the programm As per my little-bit java knowledge Program supposed to be terminated after it throws runtime exception. But in my application after throwing runtime exception it is not terminating ,and as i am executing it on linux i have to use ctrl+c to terminate it, Otherwise it ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic extension in PHP I am new on SO, so I hope I make myself clear in the following question. I have been struggling myself recently trying to write a framework for a project. The problem is that I am new to PHP OOP and I am not sure how to extend an object that can be changed in the future and still keep the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check all fields in a dijit form Is there any way I can loop through all the dijit fields in a dijit form and print out whether they are valid. I only ask because my 'onValidStateChange' function disables my submit button and I don't know why it wont re-enable it. A: You get use the dijit.form.Form's getChildren()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set CAP_SYS_NICE capability to a Linux user? My program is using the Linux system call setpriority() to change the priorities of the threads it creates. It needs to set negative priorities (-10) but, as mentioned on the documentation, this fails when run as a normal user. The user needs the CAP_SYS_NICE capab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: iPad - Recognizing specified telephone number after globally disabling I'm have webpage optimizes for iPad, and I've noticed that sometimes it recognizes my random numbers as telephone numbers. I've dealt with that with this meta: <meta name = "format-detection" content = "telephone=no" /> and it works perfectly. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: g++ undefined reference in very simple example Please help with the following noob question about C++ and g++ compilation and linking. Essentially I have 2 classes in 2 different files, and can compile them but when I attempt to link, one class can't see the methods of the other, even though I am linking both. Ord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XmlSerializer saves null-file I have a problem with serializing my objects. I implemented IXmlSerializable interface and initialize object of XmlSerializer(for example, serializer). But sometimes after calling serializer.Serialize(writer, data) my output file looks like this: why do I have such behavior? public cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }