text
stringlengths
8
267k
meta
dict
Q: Disabling specific cells on an NSTableView I have a tableview with 4 columns. The fist one has some text and the other 3 are checkboxes. I need to disable 2 of the 3 checkboxes in one particular row. I keep the row number on an NSInteger variable. I've implemented: - (void)tableView:(NSTableView *)aTableView willDis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Parsing a "rgb (x, x, x)" String Into a Color Object Is there an effecient way/existing solution for parsing the string "rgb (x, x, x)" [where x in this case is 0-255] into a color object? [I'm planning to use the color values to convert them into the hex color equivilience. I would prefer there to be a GWT option ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Kohana Database Configuration System I am trying to get the database configuration functionality working with kohana 3.2. I want to attach the Config_Database as source: Kohana::$config->attach(new Config_Database, False); Described here: http://kohanaframework.org/3.2/guide/kohana/config I attach the new source af...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET file download - detect if user cancelled download? I have an ASP.NET application which lets users download files from my web server. I track the downloads, and only allow so many downloads of a file. I have the following code to invoke the download for my users (on click of a button): string sURL = sExternal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS - Using NSMutableDictionary for grouping I have a method which is passed a dict (whose values themselves consist of nested dicts), and I am using recursion to traverse this dict, and I want to store only the information I need in another dict which is also passed to the method as the second argument. So, the met...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this good or bad practice to use non-nested classes in same source file under same name space Possible Duplicate: C# classes in separate files? I came to a new company and found that a C# project had in it a single source file.., that had within it two interfaces and two public classes. (Truth is this is how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I force Google Chrome to ignore built-in keystrokes and pass them to jquery I'm developing commerce system. I want the system to be as lightweight as possible. I develop it on linux, of course. I want to achieve this: I want to develop something like a desktop environment, just in HTML5/CSS3/jQuery. I'm in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable the JavaScript for current page by using JavaScript I have an unusual problem. I've made a page filled with some JS. Old browsers simply mess it up. A lot of it is included directly in the page, not in separate files and not inline. I wonder if there is a way to generate (using PHP) some JS that would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JNA GetExitCodeProcess() working strangely I have a very strange problem with JNA. I am checking if a process exists by using GetExitCodeProcess(). So for example, I know notepad is PID 2084. When I use my method to check if PID 2084 exists, it returns true for PIDs between 2084 and 2087 (even though I am completely...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: Every X weeks for Calendar, Recurring Events I'm trying to get every X days from a given date for a calendar. I think I have the logic down to an extent, but for a small window of dates I am getting unexpected results. My code below taken from my project: $start_time = 1345935600; //Sept 25th 2011; $end_time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while calling function from linq query Here the code which i have written, I am getting error as soon as i added the line to call the second function which is ValidCodes = GetValidCodes(bv.Variable_Id) public IQueryable<BvIndexRow> GetBenefitVariableIndex(int healthPlanId) { var q = from bv in Db.BenefitVa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: waiting for swfobject.js to load gives me an infinite loop I have a javascript script that uses SWFobject to embed a flash player. When i got to embed the flash player with swfobject.embedSWF(..) i get an error reading that swfobject is undefined. I believe this is happening because our website caches the javasc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Single Page loads all Reports from Reporting Services - Security and Performance issues? I am migrating an extensive set of reports from classic asp web application into Reporting Services, and I've hit an interesting design issue. My planned architecture consists of an IIS application server running a Classic ASP a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python, create a filtered list from a text document Every time I try to run this program, Python IDLE responds by telling me that it is not responding and has to close. Any suggestions on how to improve this code to make it work the way I want? #open text document #filter out words in the document by appending to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax multiple requests at the same time recently I developed a project were I send multiple ajax requests at a single aspx page. I also put a timer were this request is happening with interval 5 seconds. Everything seems to work fine until suddenly the responses mix up. I know that I could do the same thing with one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: iphone sqlite insert... EXC_BAD_ACCESS First of all, I'm fairly new to iPhone development, and brand new to incorporating sqlite3 in my app. I have used it in my Android and Blackberry apps, so I know basic commands and such. Here is my problem: I created a db and table programmatically (both were created correctly)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP | imagecopymerge() won't work $dest = imagecreatefromjpeg('image.jpg'); $src = imagecreatefrompng('image2.png'); // Copy and merge imagecopymerge($dest, $src, 50, 50, 0, 0, 30, 30, 75); imagepng($dest, '1.png'); imagedestroy($dest); imagedestroy($src); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Append variable to end of each result I am using Codeigniter for my framework and I have went over the documentation and I have not found a solution. Now that I have the the data selected from the database I need to get the distance to be displayed at the end of each record retrieved. Example of json: {"details":[{"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sending booleans over the internet (Windows & Linux) I'm sending information from my server to clients and back again using packed structs (obviously there are a lot more data in the structs) #pragma pack(push, 1) struct other_data_struct { int hp; int wp; char movetype; } struct PlayerStats { int playerID; other_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Redirect anything to a single php file with url rewriting I'm trying to redirect anything to my index.php file to do myself the redirection. If i use this: #RewriteRule ^(.+)$ index.php?path=$1%{QUERY_STRING} [L] but that's not working because it is "looping" on the rule. This works : <IfModule mod_rewrite.c> R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP XML: Illegal Offset, but it is in array? $dagen = array( 'Mon' => 'Maandag', 'Tue' => 'Dinsdag', 'Wed' => 'Woensdag', 'Thu' => 'Donderdag', 'Fri' => 'Vrijdag', 'Sat' => 'Zaterdag', 'Sun' => 'Zondag' ); foreach ($xml->verwachtingen->verwachting as $verwachting) { $graden = $verwac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails 3 scope undefined method `includes_values` My model has this scope scope :supported, order("name").collect {|m| m.name}.join(", ") and it throws an error NoMethodError: undefined method `includes_values' for "blah, blahblah":String I'm thinking that it's because I'm trying to return a string as an Active...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find whats the same in two arrays I have two arrays: 1) Array ( [0] => 162 [1] => 163 [2] => 98 [3] => 13 ) 2) Array ( [0] => 22 [1] => 45 [2] => 163 [3] => 80 ) I want to find which values are the same in the these two arrays: So that $thesame = 163 in this example Thanks. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Phone 7 Button Left-Top from Code How can i use android style gravity, and gavityTop=20px, Left=30px in Windows Phone 7? Button btn = new Button() { Content="newbutton "+i, Margin=new Thickness(20) }; id like something to control my button's left/top margin from the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A PHP math expression generator? I'm looking for a plugin or function or whatever that can take -sin 3t + xy' - (3t^2 - 5)/(18t) = 21 (negative sine of 3t plus x times y prime minus the quotient of the difference of 3 times t squared and 5 and 18t equals 21) or lim (x -> 0^-) ((3x+8)/x) = +inf (the limit as x appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I tell what are the ids and classes of a rail html.erb component? So in the tutorial example in Agile Web Development v.4, I was trying to change the css style of the table populated by line_items in the cart menu. So I thought the id should be #cart, but apparently the id should be #store? I don't know how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My vb.net code can not Call my VB6 DLL when deployed I have some code that creates a reference to a vb6 dll and Uses that reference to call the object. I am having a problem because in Debug and on my machine it works great. But when i deploy it to the server which is a windows 2008 64 Server it doesn't work. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the fatest way of getting the maximum values element-wised of "n" matrices in Python/Numpy? I had like to know the best fatest/optimized way of getting the maximum values element-wised of "n" matrices in Python/Numpy. For example: import numpy as np matrices=[np.random.random((5,5)) for i in range(10)] # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android No Break Space - how to? I have a bug, where only on HTC Evo 4g text in EditText shows up with underscores instead of spaces Jack_Johnson, instead of Jack Johnson. The data comes from a server. How do I incorporate \u00A0 or &nbsp into the code below? Will that even fix my problem? editName.setText(recipi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update information on a table through a query? I have phone information coming from multiple tables, colating into one query that lists all the pertinant phone information that I regularly need. Now most of this information is coming from a export from out very old phone system. Some of it is coming from tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Text overflow fades when longer than container and scrolls across on hover I had a jquery/css question. I was wondering if you knew how to make a link in a list item (one that is longer that its container) not wrap to a new line and instead stay on 1 single line and fade/cut off the overflowing rest of the link. Al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Caching Images, JS and CSS in Apache using deflate I am currently caching my CSS, JS and images using deflate in my Apache configuration. Here's my code: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java 1.5 Enum: Why can't I use 'findBy' with 1.5 enums? Given the code below, import java.util.Date; import java.util.HashMap; import java.util.Map; public enum SearchDataTypes { FIELD_DATATYPE_TEXT(String.class,"_t"), FIELD_DATATYPE_INT(Integer.class,"_i"), FIELD_DATATYPE_LONG(Long.class,"_l"), FIELD_DATA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the pow()-method in Java I am writing a program in Java in which the user is supposed input an integer, n. My program should then create an array where the entries are [1.25^0], [1.25^1], . . ., [1.25^n]. In order to make this work I have attempted to use the pow()-method. My code for creating the array is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to copy files to a Linux server from ASP.NET with permissions problems? My question is more about how to overcome a permissions problem. There is an Apache application that creates a new folder each time a new employee is added. I am working on an application that can copy files into each of these folders. Un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring LDAP Template Usage Please take a look at the test class below. I am trying to do an LDAP search with Spring LDAP Template. I am able to search and produce a list of entries corresponding to the search criteria without the Spring LDAP template by using the DirContext as shown in the method searchWithoutTempla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery livesearch and rails I'm trying to implement some live search function on my index view. I found this plugin http://www.mikemerritt.me/blog/livefilter-1-3-jquery-plugin/ but can't adapt to rails. I'm trying to reproduce the demo but can't make it work. can someone explain how to adapt the demo to rails (3.1) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: xmlbeans.xmlexception. illegal XML character 0x0 I create an xml document in C# by converting a string to bytes via System.Text.UTF8Encoding(). I then send this to my java program for xmlbeans to parse via a TCP connection. No matter what i try, i am getting this error: org.apache.xmlbeans.XmlException: error: Ill...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I place a variable into my array? Is it possible to have a variable in an array as a value in PHP. For example: 'arraykey' => "$varname", It does not seem to work and I can't find any info about this anywhere. Maybe because its just not possible? Any insight is appreciated. Thanks. A: Yes you can, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XSD to MySQL Schema I need to convert an XML to a MySQL DB Schema. I have been able to generate the XSD from the XML. Now i want to use the XSD to generate the DB schema in MySQL or PostgreSQL. Can anyone tell me how can i do this or point to any tools which i can use for this? A: There is a command-line tool calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: flex4 1195 error when calling a function (not get or set) I have a class called S3Uploader which extends Sprite, which has a private function init, which looks sometihng like this: private function init(signatureUrl:String, prefixPath:String, fileSizeLim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: doing a show() does not let gui update until resize window doing a show() does not let gui update until resize window. I have a window that I hide for a while,(has to be over 30 min. or maybe after screensaver kicks in) then when I try to do a show and the gui pops up but it does not update. I am making correct upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiling CUDA exampels with Visual Studio 2010 express I am trying to set up a CUDA dev env on a Windows 7 32bit computer with Visual Studio 2010 Express. But I keep getting the following error when I try to compile the bandwithTest project that follow with the CUDA SDK! 1>------ Build started: Project: cutil, Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery library include order causes error I have a problem with jQuery UI Dialog - it is not closing when I click the X button. I have detected that the problem goes away if I change the order of my javascript includes: If I include files in the following order then the problem appears: <script src="../../Scripts/jq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When using Phonegap, can we deploy our sqlite db with the application and access it from within the application? I am building out an app that will be used primarily by BB OS5. I am considering Phonegap, and I wanted to find out if we can deploy our sqlite db with the application and access it from within the applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mediaelement volume control is invisible on IE8 When using mediaelement.js on http://hanselminutes.com, the volume button is invisible on IE8. It seems that perhaps it's being covered up by the other audio controls being too wide? Oddly, if you click in the area that it should be, it's kind of there, although too fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to merge multiple dataviews into one? I have three dataviews (dataview1, dataview2, and dataview3). These are of type System.Data.DataView, and all three have the same columns. Is there an easy way to merge them into one, so I have one dataview with rows from dataview1, followed by dataview2, and then dataview3?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Convert iPhone unique identifier to integer I have made a web service that gets an integer as a unique identifier for a Phone. Later, i realised that an iPhone UID is an NSstring in that format: 5DE31FA12-XXXXX-XXXXX-XXXXXXX. So i would like to convert this value to an integer. Here is the way i get the UID in a NSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ReaderWriteLockSlim or Lock I m using ConcurrentBag to store object in run time. At some point I need to empty the bag and store the bag content to a list. This is what i do: IList<T> list = new List<T>(); lock (bag) { T pixel; while (bag.TryTake(out pixel)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JSF2 error [org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage] Error Rendering View[//WEB-INF/*.xhtml]: java.lang.NullPointerException I have an error in Jboss 7.0.2 Arc, JSP 2.1(Myfaces), Richfaces 4, this is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do ruby exceptions cause mutices to unlock? Recently, I have been working with Ruby's threads, and have uncovered a slightly unexpected behaviour. In a critical section, calling raise causes the mutex to release. I could expect this of the synchronize method, with its block, but it also seems to happen when lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MySQL query uses too much CPU I use the following query to find users that I need to send daily reminders based on their settings and timezone. It works but turned up that it uses about 50% CPU and its really heavy even when I add Limit 0,100. (It even causes phpMyAdmin to crash or something) Users table: 3000 reco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is jQuery.data() modifying the HTML5 data-x attribute value? I have just encountered some very disturbing behavior in jQuery 1.6.2 that I hope someone can explain. Given the following markup... <div id="test" data-test=" 01">Test</div> Can someone tell me why accessing the attribute through .data() causes i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: I am unable to add a reference to System.Windows.Media in my .net 3.5 project I'm using VS 2008, with .net 3.5. I need access to System.Windows.Media.Color, but when I try to "Add Reference...", System.Windows.Media is not listed. I'm not sure where to go next since the MSDN documentation seems to think I should hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can dates and random numbers be used for evil in Javascript? The ADsafe subset of Javascript prohibits the use of certain things that are not safe for guest code to have access to, such as eval, window, this, with, and so on. For some reason, it also prohibits the Date object and Math.random: Date and Math.ran...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to show a div with initial width equal min-width in IE but can expand as necessary? I want to have a div to have an initial width equal to a min-width say 800px and expand in width as elements inside grow in width. I did a <div style="min-width: 800px".. /> but in IE the div starts with a width less than 800px, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customizing the installation Wizard in .net My application involves lot of questions to be asked to the installer, the visual studio allows only a predefined set of controls for the installation wizard, Is there a way to add lot more controls to our Installation Wizard. can you help me out here? A: vdproj's are get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress and Zend Framework I can't get my head around integrating these two in the way I would like to. I have a wordpress installation running a website. I also include the ZF via a plugin so that I can use the codebase. However, I would like to also have the ability to utilise Zend Controllers in the same way I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't (&array)[i] take the address of the ith element? Consider the following code int tab2[2]; tab2[0]=5; tab2[1]=3; std::cout << tab2[1] << std::endl; std::cout << (&tab2)[1] << std::endl; As I have read in other topics, an array can decay to pointer at its first element. Then why doesn't the [] doesn't wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can JProfiler tell me how long queries are taking? Wouldn't it be nice if I could drill down into the JProfiler CPU View, and find a percentage of time running a certain query against the database? Does anyone know if this is possible? A: The call tree in JProfiler shows JDBC queries with the default settings: If...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: wp7: how to create image button and bind template to ImageSource dependency property I am trying to create a silverlight imagebutton control. the xaml and code-behind will follow, but my problem is that I get an 'unspecified error' when i try a TemplateBinding to the image's source property. I'm hoping that someon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pointer to Array of Strings Is Fine in Function but not outside I'm working with PCRE library for C on a linux x86_64 system, though I don't think the PCRE is to blame for the issue I'm having. Basically I have an array of character arrays that holds the result from the PCRE check. I used typedef to keep it clean ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linear gradients in SVG without defs I can use linear gradient in SVG with defs-section like: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <linearGradient id="myLinearGradient1" x1="0%" y1="0%" x2="0%" y2="100%" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Downloaded files disappearing on update I have an app that downloads several pdfs and images. It all work perfectly fine, I store information of those files in core data. My problem comes when I send out updates of the app, all the information in core data is transferred to the new version correctly but the files ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Managing conflict in schema.rb created by Git operation I created a migration, ran rake db:migrate, which bumped my db/schema.rb version number. Then I did a git fetch origin master and saw that there were changes from my team members. So I did a git stash and a git rebase FETCH_HEAD, followed by a git stash pop. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: JSON to Javascript object literal notation? The methods of the dynamic Google Graph API want Javascript object literals as their argument, but I only have the data as JSON. What do I do? Is there any way that I could convert my JSON to an object literal? The format they want is here: http://code.google.com/intl/sv-S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: webpage response using PHP I have a form structure webpage written in PHP. When information is submitted it gives a unique ID. Now I want this unique ID to be used in a file. For Example: $input = "man.id: ".$id; where $id is the response from the webpage. $input is present in the same PHP file. A: Here's an ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Is BID installed as part of SQL Server of Visual Studio or either? Does Busienss Intelligence Development Studio (BIDS), part of the Visual Studio IDE, come with both SQL Serevr 2008 R2 Developers Edition and also as part of Visual Studio 2008 Developer's Edition? A: BIDS is included with SQL Server. It is not part...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery Ajax Content Not loading I am pulling my hair out trying to figure this out. I am just doing a simple ajax load on some content however the content is not loading all other functions are working but the content does not show. Any help would be greatly appreciated. Its probably something super simple too but.....
{ "language": "en", "url": "https://stackoverflow.com/questions/7614226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Passing list/array between JSP pages I'm trying to pass a List between two JSP pages that I have. This is a list of objects that is of a class that I wrote. How do I pass this list between JSP pages? request.setAttribute seems to work for strings, but not anything else. And, if this cannot be easily done with a lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Give access to an Android service without giving the sources I am creating an Android service that my own app will use, but I also want it to be available to external apps. The service is declared using AIDL files. I have two separate projects, one for the service, one for the application. In Eclipse I reference the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thread.Start not working I am using the functions of the following class to invoke a messagebox. I am using thread.Start method to show the messagebox. The problem is it is not reaching to the respective function when thread.Start is called. Am i missing anything? class MessageManager { string _message; public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: preg_replace REGEX I wanted some help regarding REGEX. I have the following in a string variable after scraping from a website. 16:50 to 17:50 OOPS LAB : Scheduled Class : Shikha Jain : E1-0LA4&amp;nbsp;Download Course materials 15:45 to 16:45 OOPS LAB : Scheduled Class : Shikha Jain : E1-0LA4&amp;nbsp;Download Cour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert long to System.Int64 throws error? I got a strange error that got me buffeled: I have a function ..uhm... something like this: void someFunctionTakingALong( long ID) { var table = new DataTable(); table .Columns.Add(new DataColumn("RID", Type.GetType("System.Int64"))); table.Rows.Add(ID); //<-- t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get CMake to create a dll and its matching lib file? I'm using CMake to create a shared library via Visual Studio 2010. The solution outputs a dll file, but not a matching lib file. How do I tell CMake to generate the lib file so I can link other projects to the dll? A: First of all check that you have at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Hibernate: enforcing unique data members I am having an issue working with Hibernate and enforcing unique data members when inserting. Here are my abridged Entity objects: Workflow: @Entity public class Workflow { private long wfId; private Set<Service> services; /** Getter/Setter for wfId */ ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run a MATLAB script from Windows DOS prompt I am trying to run a Matlab script from Windows command prompt but I can't execute it sometimes. The script runs fine when manually launched. Matlab version is 2011a and Windows is Server 2003 SP2. Details: Script mytask.m is located inside say E:\Production\Project. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Find if an overlay exists on a google map Is there any way to know if an overlay already exist on a map, before we addOverlay to a map. The thing what I want is, I have an application which gets LatLng points from google server Asynchronously, using these points I create Markers and add them to the map. So is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pile of little functions that call each other. Better way to organize my code? I'm a beginner but I've written my first little project and something about it doesn't really feel right. I hope I can describe the problem clearly. My whole program is basically a pile of little functions that call each other, and then o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: django template for in for Any idea why this doesn't work? It gives me an error at {% if tab.title==foc %} {% for tab in menu %} {% for foc in focus %} <li>{{ tab.title }}</li> {% if tab.title==foc %} {% endif %} {% endfor %} {% endfor %} A: Try it with spaces around == Alternatively, use the ifq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript check multiple textbox for numeric I am checking numeric value for one textbox like this: function validateNumeric() { var old = document.getElementById("tbNum").value; var new = old_val.replace(/^\s+|\s+$/g,""); var validChars = '0123456789'; for(var i = 0; i < new.length; i++){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++:error C2440: '' : cannot convert from 'A' to 'B' I have a base class A and it has a subclass B. A overrides the + operator and B overrides it as well,calls the parent's +operator, and casts the result to B. Then I am getting the error message: error C2440: '' : cannot convert from 'A' to 'B' I thought polymo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Failing to Target Children Any idea why this isn't working? The children of the unordered list are not sliding up like I expect.. http://jsfiddle.net/SparrwHawk/vqUgw/3/ A: here you go bro this looks like what you want: http://jsfiddle.net/2x2fE/ A: I was able to fix this by using mouseover and mouseleave w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between native objects and host objects? I don't understand the difference between native objects and host objects in JavaScript. Does the latter simply refer to non-primitive function objects that were created by a custom constructor (e.g., var bird1 = new Bird();)? A: In addition to the oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "106" }
Q: How to find Port number of IP address? We can find out IP address of a domain name or URL. But how to find out Port number on which a domain name is hosted? A: DNS server usually have a standard of ports used. But if it's different, you could try nmap and do a port scan like so: > nmap 127.0.0.1 A: Unfortunately...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Simulate right click I am wondering how to make my Java program simulate a right click. So imagine your mouse cannot right click anymore. How do I make Java simulate the right click? Im planning to have a button that u press on a JFrame that simulates the right click after x seconds. Thanks and please try to include...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I set the footer of linear layout? I've got the following: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:layout_height="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting VS2005 Web Service Project to VS2010 I inherited a web service that was installed and forgotten about years ago. Now we need to change it, but it's built in VS2005, and all I have is vs2010. When I load the project, it automatically attempts to convert, but fails on these errors: The operation could not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: best practices, designing mac applications What is the ways/best practices when designing elements on the mac platform in objective-c? I looking on reading stuff for elements like * *NSButton *NSTextField *Gradient backgrounds *etc Should i really subclass all elements and draw it my self (corners, middle ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uninitialized Constant Mysql2 - Windows Here's my system specs: Windows 7 Ultimate 32bit Ruby 1.9.2 Rails 3.1 MySQL 5.5 I have created a new rails app using compass and when I do: rake db:create --trace I get the following results: ** Invoke db:create (first_time) ** Invoke db:load_config (first_time) ** Invoke rai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you read git config values on a push remotely? I have a centralized repository with a few developers pushing to it. I've installed ReviewBoard and I'd like to set up a hook to post each commit to review board so the peers can comment on it. I'd like this to be done automatically from the centralized repositor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Listen to multiple keydowns I'm trying to let a user move an element on the page using the arrow keys. So far, I have movement working for up/down/left/right, but not for diagonal (two arrow keys pressed simultaneously). My listener looks like this: addEventListener('keydown', function(e){ move = false; x = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Wordpress query_posts posts_per_page not working Can't figure out why this is not limiting the posts_per_page. It is displaying a very long list of posts, but I only want to show 4 query_posts('posts_per_page=4&post_type=page&pagename=media'); if(have_posts() ) : while(have_posts()) : the_post(); A: Please try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is this SQL SELECT statement not retrieving the row I just inserted? I am creating an in-memory SQLite database and inserting some a row into it. Unfortunately, I am unable to select the row I just inserted. <?php const CACHE_SCHEMA = <<<EOD CREATE TABLE test ( column1 TINYTEXT, column2 MED...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hide an element for three minutes of connectivity I have a chat application and I would like to display a "request supervisor" button to display after three minutes of the user being connected. This would include a user refreshing the page. Here is what I have, but it's really not sufficient at all; //shows the too...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically login to Facebook using username/password Ok, I've been looking for over an hour on this subject and can only find OAuth solutions, which I do not need or want. I need to authenticate as myself to Facebook from a location other than Facebook. I need my website (admin area) to authenticate to Faceboo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: history table and 2nf Users table and Group users table are history tables (they cannot be moved to archived tables cause that would mess up foreign keys related to those tables. If a group user made a post and left the group, the post should still exist etc) Users Username Start Date key (Username, Start Date) Grou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Standards for Date/Time addition? I'm looking for standards for Date/Time addition. I haven't been able to find any. In particular I'm hoping to find a spec that defines what should happen when you add a month to a date like January 31st. Is the right answer February 28th(/29th)? March 1st? March 2nd? I've seen inco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Can't find jsp on eclipse I am using the last version of Eclipse 3.7. I am working with the Google app engine and need to create some JSP, but on a new project. I can't find JSP. I don't have Tomcat. Can I just do new->file and then just end it with .jsp, like filename.jsp? Will it be okay? A: I'm not familiar with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript Code not working when on my site I recently installed a code on my website to insert text at the position of the cursor. It works perfectly when on its own: http://www.penpalparade.com/test.php It isn't however working with my site as a whole: http://www.penpalparade.com/jobs.php I've tried to fix it but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7614373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }