text
stringlengths
8
267k
meta
dict
Q: Resizing an Image using Imagemagick convert I have a YUV420 image of size 1280x720. I am trying to resize it to 720x576 using convert (Imagemagick) using below commandline options. But the generated output file doesnot seem to be a proper resized YUV420 image(I want the resized output also to be in YUV420 format): c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: own ORM: database records in case of JOIN? We are doing our own framework with ORM capability. The database tables are classes now, but how about records? Lets imagine two tables: Users ID,USERNAME Emails USER_ID,ADDRESS so, a record object will have getID(), getUSERNAME() methods, etc but if the two tables are JO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating unique id with jquery to use in bxslider I guess this is pretty simple but I have no experience with jquery whatsoever. I'm using bxslider in every post I post in my wordpress theme and need the jquery to point to numerous unique id's, not only to work1, but work2, work3 and so on. The markup is this: <ul i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ImportError: No module named paramiko I have installed "python-paramiko" and "python-pycrypto" in Red hat linux. But still when i run the sample program i get "ImportError: No module named paramiko". I checked the installed packages using below command and got confirmed. ncmdvstk:~/pdem $ rpm -qa | grep python-p py...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Know user's twitter applications installed first of all, I'm spanish so sorry about my English. It's my first question, so I hope do it correctly. I have been looking for in the searcher and google but I didn't find solution about my problem. I need to know who of my friends have installed one app via API (I have tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retriving a setting in a Web.Config I have this code in my Web.Config file: <configSections> <section name="myWebAppSettings" type="System.Configuration.SingleTagSectionHandler" /> </configSections> <myWebAppSettings isTestEnvironment="true"/> I need retrieve my value isTestEviroment from Global...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Evicting eager associations without cascade="evict" Is there any way to make Hibernate evict both an entity and all of its eager or one-to-one associations without having to evict associations manually one by one? (And without setting cascade="evict" on the association). I usually find these kind of needs once the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: With facebook offline acces token send friend request I am playing around all the different apis for facebook friend request.. I want to have any method which can send request for friendship with app_id ,user_id and offline access token of user . Using no java script and no fbml methods.. I want just request to be s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problemswith DropDownList in customized ASP.NET CreateUserWizard I am using a customized ASP.NET CreateUserWizard in my web application. Here I used a dropdownlist to populate the countries when user registering. In the page load its populate the countries as expected. var query = GetNationality(); var national = (D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read custom action from the Open Graph beta Is it possible to read the actions & objects created with the new Open Graph? A: I might be wrong (did not test) but according to these docs you'd need the following extended permissions user_actions.{vertical_name} friends_actions.{vertical_name} or user_actions:{app_n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: warning occurring following move from classic to integrated on IIS7 I have migrated my c# asp.net web application from .net 3.5 to .net 4.0 and also changed the IIS7 application pool it runs to be Integrated rather than classic. The site runs fine but I have found the following warning been recorded in the server ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using composition over inheritance when overriding If I have a class that I would like to customise by overriding one if its methods the only I can do this is by using inheritance (sub-classing and overriding method) ? Is it possible to use composition in some way to achieve same goal ? A: Yes, you can use delegati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setup of Pyramid on Google App Engine Following these steps produces the following: $ python2.5 ../appengine-monkey/appengine-homedir.py --gae $GAE_PATH pyramidapp New python executable in pyramidapp/bin/python2.5 Also creating executable in pyramidapp/bin/python ERROR: The executable pyramidapp/bin/python2.5 is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When should I not use regular expressions? After some research I figured that it is not possible to parse recursive structures (such as HTML or XML) using regular expressions. Is it possible to comprehensively list out day to day coding scenarios where I should avoid using regular expressions because it is just impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Issues with dropdown navigation menu using jquery in IE I am having some problems with the jquery drop down navigation menu , its working fine with all the browsers apart from IE 7,8. Below I have attached the 2 images and have included the css and markup for it , Any assistance will be highly appreciated, regards D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Index out of bounds I am trying to get the bold text next to the hour scheldule ( from http://golfnews.no/golfpaatv.php )put it in a String array , then , show it on my device's screen. I've put the Internet Access permission , so that is not the problem.The application crashes on my device . Reason : index ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: blender: how to export shape keys using python? I want to export shape keys for some object. How can i get access to a shape key's mesh ? I'm using blender 2.59. Thanks A: i did it. Here is the script. maybe it would be helpful for someone: import bpy import xml.dom.minidom path = "/Users/x/Documents/y/game_projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best strategy to read file only once at launch? I am reading a file datafile at the launch of my application.This is just self learning drill. On apple developers website under the heading Minimize File Access at Launch Time it says If you must read a file at launch time, do so only once. So my question is that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java:How to call Implemented method from interface name I don't know how interface works for my problem but I have read that its possible by interface here Problem: I have created an interface which has All the declaration of the methods its around 3000+ I am implementing these methods in 3 different classes, now I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGL ES OBJ Loading Transparency Issues Hi I am working on an OBJ loader for use in iOS programming, I have managed to load the vertices and the faces but I have an issue with the transparency of the faces. For the colours of the vertices I have just made them for now, vary from 0 - 1. So each vertex will gradual...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Count the all nodes(inside )of my current Node using XSLT 2.0? This is my Xml File <w:body> <w:p><w:r><w:t>para1</w:t></w:r></w:p> <w:p><w:r><w:t>para2</w:t></w:r></w:p> <w:p><w:r><w:t>para3</w:t></w:r></w:p> <w:p><w:r><w:t>para4</w:t></w:r></w:p> <w:p><w:r><w:t>para5</w:t></w:r></w:p> <w:tbl><w:tr><w:t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net auto generated textboxes ID on webform I am using C# on Visual Studio. I want to generate a webform with auto numbered Textboxes depending on the input from the previous page. What is the best way to do this loop? For example: Input is 4 The next page should generate textboxes with ID of * *"name1" *"na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Different color for code comments and XML comments in VB.NET I've noticed that in C# XML comments and code comments can have different colors by changing the settings in Tools > Options > Environment > Fonts and Colors > Display Items: - Comment: controls code comments - XML comment: controls XML comments This works...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Changing the Nhibernate entity to point to new table I am using FLH and recently I changed the name of the table. I dont want to propagate the changes all the way across my layers. Is there a way, where I can retain the same entity name and just change the mapping. For example, my current entity name is Issuer and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is an opaque pointer in C? May I know the usage and logic behind the opaque pointer concept in C? A: Opaque as the name suggests is something we can’t see through. E.g. wood is opaque. Opaque pointer is a pointer which points to a data structure whose contents are not exposed at the time of its definition. Exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: problem of using ssh_connect API in windows I have tested a simple code using libssh on OS X and it worked simply find. But when I port this code on Windows7 using vc10 it doesn't work correctly. The ssh_connect API blocks and not progress any more. The following code is part of the my test program. #include <libss...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript Communication I was reading about Flex- JavaScript communication via ExternalInterface. But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MX...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exclude one JS file for a particular page I have two JS files: mail.js and prototype.js prototype.js is from Lightbox plug-in and mail.js is validator and ajax for the contact us page. the problem is mail.js won't work when prototype.js is load before or after it. However I want to remove the prototype.js for co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom WordPress Options Function What is in my functions: $var = get_option('to_twitter_feed'); array( "name" => "Twitter Username", "desc" => "Enter your Twitter username for the Twitter feed", "id" => $shortname."_twitter_feed", "type" => "text", "std" => ""), In my WordPress options I have a cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MessageDigest digest() method Shouldn't the digest() method in MessageDigest always give the same hash value for the same input? I tried this and I am getting different set of hashvalues for the same input everytime md5 = MessageDigest.getInstance("MD5"); System.out.println(md5.digest("stringtodigest".getBytes())); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Check if Windows imaging components is installed (wic registry) How to check whether windows imaging component is installed or not on 64 bit XP machine. A: Windows imaging component gets installed along with the MSOFFICE. if not check in registry >> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Imaging Component C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery ui-effects-wrapper is chopping off the bottom of a divs content whilst using .show("slide", I am using $('#account-slide').show("slide", {direction: "right"}, 1000); to display a div when a button is clicked. The problem is the ui-effects-wrapper class that is applied to the div when the button is clicked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to replace text in a makefile in a way that works with make AND dmake? I've got this makefile: ALL = ../lib/Mo.pm \ ../lib/Mo/builder.pm \ ../lib/Mo/default.pm \ ../lib/Mo/has.pm \ all: $(ALL) $(ALL): Mo.pm compress.pl Makefile perl compress.pl $(@:../lib/%=%) > $@ What it's meant to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to show popover on selecting an image I am trying to show a popover on selection of a image in my iPad.So how can i do it? A: Put a transparent button on the image and of the size of the image and then use the UIPopoverController to launch a pop over view... hope this helps. A: - (void)touchesBegan:(NSSet *)t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to sort dates by some particular order from the data [iphone] I have got some dates for some events and their ascending order from the database . Now , I want want some buttons .. in this structure ... --######## Last Week #####---- --######## yesterday #####---- --######## today #####---- --######## tomorrow ##...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove case from code config.php define('DB_TYPE', 'MYSQL'); dbManager.php incude_once('config.php'); switch ( DB_TYPE ) { case 'MYSQL': $this->_dataObject = MySqlDB::_getInstance(); break; case 'PGSQL': $this->_dataObject = PostgreDB::_getInstance(); break; case 'SQLITE': $this->_dataObject = Sq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing pow rack server from source on 32bit CPU Found out about pow just now and trying to install it on a laptop with a 32bit processor. I am running into (hopefully) a minor error. During the installation from source I get the following error: *** Installing local configuration files... mkdir: /Users/username/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple validators on one field with JSF bean validation i am trying to make multiple validation one one field @NotBlank(message = "{name.required}") @Max(value = 25, message = "{long.value}") public String name; JSF: <h:inputText id="name" value="#{person.name}" size="20"> </h:inputText> <h:message fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: I have got a problem in evaluation of a code I have something like this "This" + " " + "is" + " " + "the" + " " + row["Message"].ToString() + " " + "test" + " " + "sms" + " " + "to" + " " + row["Name"].ToString(); which is constructed when the code executes A: Not really sure what your question is but might...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: django 1.3 upgrade problem I recently updgraded to django 1.3. After the upgrade, I get the following error whenever I used request.POST: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 86, in get_response response = None File "/public/gdp/trunk/src/uk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webkit @font-face not working properly fonts.css: @font-face { font-family: 'ubuntu'; src: url('../fonts/Ubuntu-Regular.ttf') format('truetype'); } @font-face { font-family: 'ubuntu-bold'; src: url('../fonts/Ubuntu-Bold.ttf') format('truetype'); } @font-face { font-family: 'ubuntu-medium'; sr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling the 'Save' and 'Save and continue editing' buttons for a model in the Django admin I'm writing the admin view for the model in my Django application. This admin view should a be a read-only view. I don't want anyone creating or deleting records either. I've managed to prevent user's from creating and delet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ListView onItemClick area is different on phone & tablet I have a ListView which has been constructed, styled and had an adapter set from code which is common across both devices. Curiously however, on my phone (2.3.4) only the text is clickable. On the Tablet (3.1) the entire ListView item is clickable. On the tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: None jquery placeholder fallback? I'm looking for a javascript project that provide fallback for the html5 placeholder, but all projects I found are in the form of a jquery plugin, are there any pure JavaScript implement out there? A: I wrote one myself, and put it on Google Code: http://code.google.com/p/place...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting specific data from a Mutable Dictionary I have a Mutable Dictionary which allows people to choose a selection of days of the week. Once a day has been selected the state is updated using numberWithBool. When I NSLog the output it looks something like this: { day = Monday; isSelected = 1; }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC non-area route problems (alongside areas) How should I configure the following non area routes? /foo/{controller}/{action}/{id} maps to controllers in namespace myapp.foo. /{controller}/{action}/{id} maps to controllers in namespace myapp. I also have 2 areas, bar and baz, they are registered with registeraAllAr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add task to run parallel selenium tests in build.gradle In our project we are using gradle to nuke the DB and also using gradle to run the selenium test cases in different suites. I am trying to run selenium test casses parallely. How to add task for that.
{ "language": "en", "url": "https://stackoverflow.com/questions/7553831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In MVC how to debug what the database doesn't like when it breaks on db.SaveChanges(); I've always wondering about this as from time to time I've encountered it with no clear indication where the problem lies. Typically I've solved this by a process of elimination but I was hoping someone could help me with a better...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does hh23 mean on oracle I read a lot of tutorial which uses hh23 and hh24 interchangeably. to do to_char on oracle. Is the hh23 a legacy syntax? I tried doing it on simple query and it causes an error. select to_char(sysdate, 'hh23'), to_char(sysdate, 'hh24') from dual I'm trying to find a reference to this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Would that be possible to add a JavaScript file to the page conditionally without using Server side code? I have 2 javascript files; Project.js and Project-debug.js. When my ASP.NET is running in DEBUG mode the later should be loaded and when in RELEASE mode, the former. Would that be possible to do something like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to embed javadb or hsqldb into java application with hibernate using netbeans? I successfuly embedded javadb in my application using the classpath ,but here's the problem : I want hibernate to be able to work with the database,but I always get an error in netbeans sayng "enable to establish connection ". AnyHelp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a Silverlight equivalent of ITypedList? I have a collection of objects, each of which holds a set of name-value pairs. The names are the same across all objects. I'd like to show these as columns in a data grid. In Winforms/WPF I'd use ITypedList with some PropertyDescriptor instances to provide some fake...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Blackberry Package Project for Multiple OS Targets/Versions I'm using the Eclipse plug-in and my app runs on the following simulators: 9800, 9700, 8900 ,i.e, it is compatible with OS versions 5 and 6. However , when I package the application to run it on a device, the .alx file is generated correctly but there is al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing forms from different locations in WPF Still getting used to WPF from a win forms programmer. I have multiple forms in an application that can be accessed from multiple locations, so I need to keep the forms "global" as I'm not sure of a better terminology. For instance "Details" can be opened from a "Main ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server - Stored procedure execution time issue Recently on our PRODUCTION SERVER - we have started to face issues - where query which use to take just 5 mins are taking more than 30 mins to complete. And sometimes they are back to normal. I have checked nothing change in Data volume but still query run sometimes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to assign multiple UIButtons to a UITextView I want to assign two UIButtons to UITextView so that when one of the buttons is pressed the textview content should change from what it had when the previous button was pressed. A: MyViewController.h: @interface MyViewController : UIViewController { NSString* sav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Addressbook + UITableView indexing iPhone I just want to retrieve all Address book contacts and display that in UITableView. Display that all contacts as shown in image. I don't know how to do this. Please suggest me to solve this problem. Thanks in advance... A: Your frined is ABAddressBook: http://developer.appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Haskell. MongoDB driver or Aeson charset problem Good day, i have mongodb database filled with some data, i ensured that data stored in correct charset, to fetch data i use following snippet: {-# LANGUAGE OverloadedStrings #-} import Network.Wai import Network.Wai.Handler.Warp (run) import Data.Enumerator (Iteratee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Algorithm for sum-up to 0 from 4 set I have 4 arrays A, B, C, D of size n. n is at most 4000. The elements of each array are 30 bit (positive/negative) numbers. I want to know the number of ways, A[i]+B[j]+C[k]+D[l] = 0 can be formed where 0 <= i,j,k,l < n. The best algorithm I derived is O(n^2 lg n), is there a fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ipad disable select options w/o jquery There is a way,plugin or code snippet that i could use to make <select><option disable="disable">....</option></select> options in safari on ipad to be disabled ? latter edit: here is the code: function getSelectedValues(ids) { var selectedValues = [] , $selected...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to move, resize and return to original position a subview present in the main view? In some of the applications, I have seen that we can drag a view outside of its position using two fingers(in smooth motion). We are also able to resize, rotate and move it further. And when I take my fingers off the screen it ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Instantiating an object in a background worker causes the UI to freeze up This is what i have at the moment, but when i call Dispatcher.BeginInvoke(), my UI freezes up: BackgroundWorker backgroundWorker = new BackgroundWorker(); backgroundWorker.WorkerSupportsCancellation = true; backgroundWo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tkinter Optionmenu callback not working For some reason I can't get this optionmenu so call the callback function. Is there some special treatment those widgets require? (The function itself works and I can call it from i.e. a button.) self.shapemenu=Tkinter.OptionMenu(self.frame,self.shape,"rectangle", "circular", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Submit form issue. Posted data is a collection My form keys are: Request.Form.AllKeys {string[9]} [0]: "__RequestVerificationToken" [1]: "stud.LastName[0]" [2]: "stud.FirstName[0]" [3]: "stud.Number[0]" [4]: "stud.LastName[1]" [5]: "stud.FirstName[1]" [6]: "stud.Number[1]" They all have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Define color of row checking two dates within same cell and text in other cell. Excel macros? I have the following problem..... ---------------------------------------------------------- Column1 | Column2 | Column3 | Column4 | Column5 ---------------------------------------------------------- Bla bla | 26/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backbone.js collection and sortedIndex always returning 0 I'm having trouble getting the sortedIndex underscore method to return a useful value. I have a collection with a comparator, and that's adding models correctly in order. I would just like to know the potential index of a new model, and the sortedIndex method...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET Service to monitor web page changes I want to create a service that will monitor changes to web pages i.e. the page content has been updated. I am trying to think of the best way to achieve this and at present I am considering a couple of options. Note that there could be hundreds of pages to monitor and the in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to create log in specific location when using log4j in java desktop application I am using log4j in Eclipse for logging messages in a java desktop application. I want that the log should be created in a specific folder (Specifically, in the folder which contains source folder 'src' and classes folder 'bin'). Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Declaring a variable and setting its value from a SELECT query in Oracle In SQL Server we can use this: DECLARE @variable INT; SELECT @variable= mycolumn from myTable; How can I do the same in Oracle? I'm currently attempting the following: DECLARE COMPID VARCHAR2(20); SELECT companyid INTO COMPID from app where ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Conflict when using ajaxStart & ajaxStop on 2 different text inputs I'm stuck a little with ajaxStart / ajaxSend and their end methods. I have 2 different AJAX calls using jQuery.post running on 2 text inputs. The first one is for getting certain names list from my database, and I'm using ajaxStart / ajaxStop to sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible for us to download a file to a sandboxed location using File API available in HTML 5? I wanted to ensure the documents I let user download are programmatically manipulated throughout program. I came to know that File API does give Apps the opportunity to manipulate them. But how can we store the File...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access function from every controller in codeigniter Hi friends hi have this function in one controller , how can i access it from every other controller ?pls help public function click_add($ads_id){ //some statement here redirect($ads_site['url']); } A: One solution would be to create your own libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can i convert this javascript function into java let say i have fallowing javascript function- function isDigit (c) { return ((c >= "0") && (c <= "9")) } function isAlphabet (c) { return ( (c >= "a" && c <= "z") || (c >= "A" && c <= "Z") ) } How can i write same thing in java. Thanks. A: Use java.lang.Chara...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clear hash and parameters from Redirect in aspnet mvc? Consider the following code within a controller: protected override void OnActionExecuting(System.Web.Mvc.ActionExecutingContext filterContext) { if (!this.IsAuthorized) { filterContext.Result = RedirectToAction("Index", "Hom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Push a view from a nib file using a right navigation bar button As described in the title, i would like to push a view, from a known NIB, using a button on the navigation bar. I'm working on a UINavigationController app. I already added the right button in IB and i linked it to the method that is in the RootViewCont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rspec with rails 3.1 gives DEPRECATION WARNING ActiveRecord::Associations::AssociationCollection is deprecated? I upgraded to rails 3.1 and I have some problems with my tests now that worked perfectly before. I get the following warning before the tests: DEPRECATION WARNING: ActiveRecord::Associations::AssociationCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Isn't got anyway to insert by descending? What I need to insert is by descending record. my code: mysql_query("INSERT INTO entertainment VALUES ('','$result','$date')"); result: id result date 1 a 26/9/2011 2 b 25/9/2011 3 c 24/9/2011 What I want is: id result date 1 c 24/9/201...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Is it safe to host a website outside public_html I am hosting a website where i host my main site in the /home/username/public_html while i host my blog in /home/username/blog is it safe that i host the blog in a different folder (/home/username/blog ) A: There is nothing special about a directory called "public_ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is exposing my DTO to the view considered incorrect? This question has been round my head the last weeks or months, and I don't really know what's the best solution. With the MVVM patter we use the View Models to expose data to a View. For example, if I want to show to a user the details of a product I will create c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to calculate sha1 hash for image Hi i am trying to calculate sha1 hash for image. Is there any function available to calulate hash of image directly? Sorry i forgot to mention .. its in c++ i am trying. A: Read the image file into memory, then call the SHA1 function on that. Python: from hashlib import sha1 h ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crystal report SetDatasource issue I am working on a Classic ASP page with VB6 code. We are in a process of converting the crystal report and iis server for migration. We are not able to generate the report. When i debugged till the point i call the "Database.SetDataSource CDOSet, 3,1" it works fine. When i comment ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The image becomes larger when it is added to a WPF page? I've got an image with 400 * 400 pixels. Now, when I add it to the WPF page: <Image Source="Resources\about.png" Stretch="None"/> its size become larger: Any idea why this behavior happens? A: Specify the width and height explicitly: <Image Source="Resource...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a PHP library that facilitates manipulating html elements in a similar fashion to jquery? PHP string manipulation functions are very counterintuitive and clunky, at least for me, and everytime I need to manipulate some html code before outputting it it takes too much time. I was wondering if there was any P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting a value from HttpServletRequest.getRemoteUser() in Tomcat without modifying application (Using Java 6 and Tomcat 6.) Is there a way for me to get HttpServletRequest.getRemoteUser() to return a value in my development environment (i.e. localhost) without needing to modify my application's web.xml file? The re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How i can change the uid and pid of my app? I was tryng to reboot my device with my app, but it throws an exception with Error message "The app with xxxx uid and with xxxx pid you can't reboot the device". So, if I can search what is the pid or uid that can, may be like a pid of alarm or other can do that, because a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Problem with Startup() SingleFrameApplication Warning: getApplicationResourceMap(): no Application class I created a project with NetBeans. I did a class that checkForUpdates. If there are it does the updgrade otherwise it starts main project class. The problem is when i Create object of MyClassApp and i launch with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using TransactionScope multiple times Is this the correct way to use a transaction scope: I have an object which represents part of a thing: public class ThingPart { private DbProviderFactory connectionFactory; public void SavePart() { using (TransactionScope ts = new TransactionScope() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MVC3 & EF. Interface for TDD Can somebody please explain: * *I am using MVC3/C#/Razor to build a project to get used to using MVC. *I am using the inbuilt account controller. *I am storing the account data in my local SQL database using Entity Framework to connect. How can I easily generate interfaces for EF? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: very specific java constructors and Object class problem I have an array at actionTable.get(state). When I go to add an onject to the array, namely the Reduce, the properties of the reduce don't seem to go with it. The array is of type Action[] where Action is the superclass of Reduce, could this be the reason? Addi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to implement an integration rule ? Suppose I've checked the identity below, how to implement it in Mathematica ? (* {\[Alpha] \[Element] Reals, \[Beta] \[Element] Reals, \[Mu] \[Element] Reals, \[Sigma] > 0} *) Integrate[CDF[NormalDistribution[0, 1], \[Alpha] + \[Beta] x] PDF[ NormalDistribution[\[Mu], \[Sigma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Avoid hardcoding in switch statement I have an object with has two properties: Text and Type. To avoid hard-coding the Types, I put them in the database, so they can be added to in future. At the moment the types are URL, Username and ID. However, I now want to run a Utility method to clean up the object's Text fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Login Failed for user Domain\MachineName$ on IIS 7.5 with an ApplicationPoolIdentity Actually I was expecting a SqlExcpetion like Login Failed for user IIS AppPool\My AppPool Name exception instead of Domain\MachineName$. I've created an Application Pool that is using * *Manged Pipeline Mode : Integrated *Identi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android -- wait for user input I'm creating a spades app with 1 human player and 3 computer players. The problem that I am having is, the play must happen sequentially (clockwise) and I need my program to wait on the player input. I can't use wait() and notify(). I have tried while loops to check whether the user ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set .as and .hx files to open with FDT Powerflasher Is it possible to set .as and .hx to open with FDT Powerflasher? Settings it to open with what seems to be a previously detected by Windows eclipse.exe (my Java one). A: Nothing special with as/hx files, same procedure as with any other file extension: *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does DateTimeOffset deal with daylight saving time? I am storing schedules in the database as a day of the week, hour and minute. When the data is read we create a DateTime object for the next occurrence of that day, hour and minute, but I need to modify this to be DST-aware. I am able to modify the database if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Facebook JS SDK: Displaying oAuth dialog in iframe I am trying to display a Facebook UI dialog inside my iframe app, so that I can get an extended permission that we don't presently have. This was easily achieved using the old SDK. However, using the new library, I get a Facebook iframe dialog that appears modally, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7553999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Keep focus on another control while selecting items in a ListBox I have TextBox which should always be in focus. At the same time I have as list box. When user clicks on certain item in this listobox the item clicked gets focus. I tried to set Focusable="false" for each ListBoxItem in my ListBox but in this case no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why do I get a DuplicateKeyException in Linq2Sql after I checked for the keys existence? I have a program that adds a lot of new data to a database using Linq2SQL. In order to avoid DuplicateKeyExceptions, I check for the existence of the key, before trying to add a new value into the database. As of now, I can't pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set default devices for sis creation An error occured during sis creation via command window. Which says: "To use new symbian OS tools specify a default device using devices -setdefault(otherwise unset EPOCROOT and specify a device explicitly)" A: Set your EPOCROOT variable. If your environment is at so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: retrieve the value of datagridview inside the panel in splitcontainer I have a split container control in c#. inside the right panel there is a datagridview. i have a button in panel outside the datagridview. when the button is clicked i want to get the datagridview's selected row value. how to do it? A: For exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }