text
stringlengths
8
267k
meta
dict
Q: jQuery Form Plugin & jQuery DatePicker Not Working Together I'm trying to use jQuery's Form Plugin. I'm using the JSON example here. For some reason the datepickers are not showing on the page, when I use the jQuery Form Plugin. In my jquery file I've got: jQuery.noConflict(); jQuery(document).ready(function($) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How come I get ClassNotFoundException when backupAgent tries to start I use the BackupAgentHelper to backup the SharedPreferences in my Android app. I have tested it in the emulator (Android 1.6 and 2.2) and on my own phone (Android 2.3.3) and it all works well. However, today I got a crash report in the Developer C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to push a user to another page? I am using jQuery 1.6.2. I have a function in a page that needs to direct the user to another page within the site and pass some variables along with it. The function will post some data, then retrieve some data and then make a decision on where to take the user n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax Submit problem I have this code that works ok when search button is pressed, but if one hits the enter button, it does not return any value from the database. function showDetails(str){ if (str==""){ document.getElementById("searchDiv").innerHTML=""; return; } if (window.XMLHtt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot run C program compiled with MinGW Dev-C++ on 64bit Vista A few days ago I started programming with C after programming with C++, however, my Windows Vista 64bit machine was unable to create a C project. I recompiled the code with the MinGW Dev-C++ compiler without issue. However, when I ran the code I receive...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SystemEvent.TimeChange showing same time even timezone changes I have wrote this simple console app to test when we change the timezone manually on windows 7 using set date time window whether timechange event is triggered or not? The answer is YES it triggered but i am printing current time which is not showing pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What's fastest way to re-test iPhone core data migration to a new version? What's fastest way to re-test iPhone core data migration to a new version? That is, how would one set up an easy/quick way to: * *set up older version of app on simulator *run the new version of the app from Xcode which will as part of ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: integrate jquery validation engine with mvc3 I pretty new with MVC3 but i'm already learning how handle custom validation, and client-server. But what happens if instead of using jquery-validate for the validations on client side I want to use another plugin called jquery-validation engine. How to start? A: Well yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the -mso- prefix for in CSS? I understand what other browser specific code names such as -moz- and -webkit- are used, the former for mozilla and the later for chrome and safari, but what is -mso- exactly? It stands for Microsoft Office, but a web page is never brought up in that program, is it? A: Mso- attr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Objective-C: help me convert a timestamp to a formatted date/time I'm really struggling to convert this timestamp to a nice formatted date string. Here's the timestamp: "1316625985" And here's the function I've made: -(NSString*)timestamp2date:(NSString*)timestamp{ NSString * timeStampString =timestamp; //[t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What machine learning algorithm should I use for Connect 4? I have an AI that is good at playing Connect 4 (using minimax). Now I want to use some machine learning algorithm to learn from this AI that I have, and I would like to do that by just letting them play against each other. What algorithm would be good for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Beautiful Soup - how to parse table's columns and insert them into two lists I am trying to parse a table with two columns and insert the text from each column into two lists. I need some ideas how to do it. from BeautifulSoup import BeautifulSoup s = """<table><tr><td valign="top" width="25%"><b>Text1</b><a href="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Selector Question -- How to find all HREF's with a target = _blank? My "JQuery Selector Foo" stinks. I need to find all HREF's with a target attr of _blank and replace them with a common window/target. Assistance is greatly appreciated! A: try $("a[target=_blank]").each(function () { va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: CUDA: Is it OK to pass a pointer to struct to a device function? Inside of a kernel, is it OK to pass the address of a struct, which is declared inside the kernel, to a device function? The device function's argument is a pointer to a struct. A: Yes, as the following program demonstrates: #include <stdio.h> struc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Supporting Single Sign-On with Active Directory We have a SaaS app written on .NET and we need to offer various methods of SSO to our customers. A while ago we standardized on OpenID, hoping that this would become a universal standard and liberate us from having to support different standards. Unfortunately, enterpr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get hostname of current request in node.js Express So, I may be missing something simple here, but I can't seem to find a way to get the hostname that a request object I'm sending a response to was requested from. Is it possible to figure out what hostname the user is currently visiting from node.js? A: If you need...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "219" }
Q: PHP session cookie seems to gone when URL does not have WWW in front of it I put this on my index file: session_set_cookie_params(31536000); session_start(); It keeps users logged in even when the browser is closed and re-opened. However, it only works when a WWW in front of my URL. Is there a way to make it work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Excluding Documents From UITableView Somehow on the simulator, it has gotten the data from a file that doesn't exist, yet persists in the simulator's memory. Because apps are sandboxed, it must be from an early method that I neglected to delete, but searching through my app's methods, none of them CREATE files, jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preferring non-member non-friend functions to member functions This question title is taken from the title of item #23 in Effective C++ 3rd Edition by Scott Meyers. He uses the following code: class WebBrowser { public: void clearCache(); void clearHistory(); void removeCookies(); //This is the fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Interpreter: Can't assign to literal I wrote a program with this code in it: ('<') = raw_input(v1), ('>') = raw_input(v2) and recieve the message syntax error: can't assign to literal. What am I doing wrong? A: What am I doing wrong? You're attempting to assign something the user enters to an instance of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: memory of a process in Lua How can I get the meomory of any Process in Lua? Is it possible in Lua? Is C# it is possible but I am not sure. In C# we can use PerformanceCounter class to get the PerformanceCounter WorkingSetMemoryCounter = new PerformanceCounter("Process", "Working Set", ReqProcess.ProcessName); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Semicolons superfluous at the end of a line in shell scripts? I have a shell script which contains the following: case $1 in 0 ) echo $1 = 0; OUTPUT=3;; 1 ) echo $1 = 1; OUTPUT=4;; 2 ) echo $1 = 2; OUTPUT=4;; esac HID=$2; BUNCH=16; LR=.008; Are semicolons completely superfluous ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "124" }
Q: How to store int in Core Data with NSTableView binding NSArrayController? I'm developing a core data a application and I have a attribute of an entity that have type "integer16" (int). I would to set it through a NSTableView, that is bind to core data through a NSArrayController. I put a NSDateFormatter in the NSTab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Custom windows control attachment issue Let me preface with a Joe Dirt quote... "I'm new, I'm new. And I don't know what to do" I have a custom user control comprised of 2 picture boxes (one on top of the other) and 3 labels. The top picture box has an image that repeats, and the bottom one has a static image. Thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: select midi device in java In my program it is necessary to be able to select the midi device in java. I have tried using another sequencer that i got from MidiSystem.getDevice(). Simply using setSequence() and starting the sequencer were without success however (i.e no sound). I'm guessing that I somehow need to co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: hudson and jenkins parameterized trigger plugin - running the same job multiple times with different parameters I'm trying to run the same job multiple times with different parameters via a parent job. However, only the first of the triggered jobs runs. The parent job has the checkbox "Trigger parameterized build on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java equals and hashCode methods - technical constraints I've got question about java's equals(Object o) and hashCode() methods. What are the technical constraints of implementation this both methods? Is there something that I can't do during implement this methods? A: None. It's just two methods in Object class. Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Facebook saving user creds? is it possible to save the user details (the Signed request that facebook sends after validation) to a database for future use? NOTE: i DO NOT mean adding a random signed request, i merely mean the signed request that facebook sends AFTER user has successfully added your app + signed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assigning RootViewController to UIViewController gives warning - why? I want to access the RootViewController of my App in one of its classes in order to present a modal view controller. I do this by getting the ApplicationDelegate and asking it for the RootViewController and store it in a UIViewController AppDelega...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Posting to controller with jQuery After reading some information I thought this should work. The JS function is called and jQuery animation is spinning, but the action is not posted to. As well I will want the startDate and endDate to be provided from text inputs but for now even hard-coded is not working. Thanks ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt framework OK for this Windows and Mac GUI? Some background. I'm writing a program that needs to monitor the default audio buffer and write to a virtual COM port. Both those operations are platform specific, and are driven via an GUI. My question is, would the Qt framework suffice? I'm heard great things about it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java DOM Parser XML I need to extract attribute values from <Item Name="CanonicalSmiles"> from following XML file (part is shown) ? I tried getElementsByTagName("Item").item(12).getTextContent()); But for different <DocSum>s item(i) is different (ie not 12 always!) How do I do this?? <?xml version="1.0"?> <!...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to extend the User.Identity structure (ASP.Net/MVC) somehow? Is it possible to store additional data specific to the currently logged on user somehow? A: Certainly! If you are not familiar with writing an extension, there are the VB.NET and C# guides on the subject. You will need to extend the System...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MVC3, ASP.NET 4 - The resource cannot be found. I have VS2010, MVC3 and ASP.NET 4.0 with a simple test mvc application. The problem is that I am still keep getting error: Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to extract rows from matrix based on value in first entry? This is another simple 'matrix' question in Mathematica. I want to show how I did this, and ask if there is a better answer. I want to select all 'rows' from matrix based on value in the first column (or any column, I used first column here just as an ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you remove a button's active state with jQuery Mobile? In my mobile app, using jQuery Mobile... * *I would like to make a simple button execute a simple javascript function on click. No page transitions, nothing special like that. *I understood I can eliminate the page transitions by doing return false or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Emacs yanking (pasting) from website always yields character code 160 instead of SPC When copying code from the web (usually using Chrome in Ubuntu) I am frustrated by the fact that Emacs inserts blank spaces of Char:   (160, #o240, #xa0) wherever there should be a space character, Char: SPC (32, #o40, #x20). This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does one make jQuery Mobile load pages into the DOM when going through a JSP servlet? jQuery Mobile will background-load additional 'pages' into the DOM, then transition to them. This works well sometimes, but in the example where one uses a JSP servlet, it seems to break. I wondered what the best way to do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework - A 'GetAll' function using a View Model I've created the following view model: public class PropertyViewModel { public PropertyViewModel(Property property, IList<PropertyImage> images) { this.property = property; this.images = images; } public Property property { ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create plugin for mpg in a digital library using perl? I am looking for creating a plugin for greenstone digital library for extracting metadata from mpg file.Can anyone help me with any documentation?I am totally new in perl,so I am also looking for good reference book for learning perl. A: Image::ExifTool ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query on Jython with Web Start I am looking at creating a jython application and deploying it as a java web start. My query is related to a concern that for web start deployment, we have to distribute the jython standard jar package also along with our application jar. From all the web resources , this is what I hea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Referencing a related object in Pyramids/Python/SQLAlchemy I'm not sure how to title this question. I've also simplified my code so it's easier to ask. Say I have the following code in myproject.models in Pyramid: class Links(Base): __tablename__ = 'links' id = Column(Integer, primary_key=True) link = Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Global variables vs. passing a value into a function? I'm new to JavaScript, and have a simple (I presume) question regarding best practices for accessing variables in functions: When should I declare a global variable, as opposed to simple passing a value into a function? A: Declaring a global variable should only...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Asp.net HttpCookie Read/Write problem I've been searching a solution for this problem but i couldn't have one. By the way i can't understand the reason of my problem. The problem is: My web application has a login page and gets logged user id from cookie. It worked before but 5-6 days ago because of something chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What would be the right fcntl flags? What would be the right fcntl flags when reading from a disk and writing to a file over the network for best speed? perhaps the issues is with the fcntl flags set on the file descriptor? A: I don't think fcntl offers you anything that would affect performance. Perhaps you're loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot convert to a pointer type : C error I have a function that I need to call int (*trytoprint_f)(int val, void *param); but when I call this function, and put str name = {"jack", 4}; int age = 2; client->trytoprint(age, (void *)name)); it gives me an error of "cannot convert to a pointer type : C error" I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to separate images out from Resources in iOS I'm displaying a set of images in my app. I've got the code working when I load the image from the Resources folder, like so: - (void)viewDidLoad { NSMutableArray *array = [[NSMutableArray alloc] init]; [array addObject:[NSString s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient way to Handle ResultSet in Java I'm using a ResultSet in Java, and am not sure how to properly close it. I'm considering using the ResultSet to construct a HashMap and then closing the ResultSet after that. Is this HashMap technique efficient, or are there more efficient ways of handling this situation? I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Redirecting mysite.com/somepage/thispage.php to www.mysite.com/somepage/thispage.php I tried doing this RewriteEngine On rewritecond %{http_host} ^mysite.com rewriteRule ^(.*) http://www.mysite.com/$1 [R=301,L] but when i go to mysite.com, it took me to http://www.mysite.com/mysite. So I removed the $1 and that see...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to test tsql variable contents as expression Possible Duplicate: How to execute mathematical expression stored in a varchar variable Using pure TSQL, is it possible to evaluate an expression defined to a variable? Here is a simple example, its only for proof in concept: DECLARE @TestValue AS VARCHAR (2) = '7'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic size, two column layout with one column vertically and horizontally aligned, legacy browser support I am trying to create a two column layout, with content in column 1 both horizontally and vertically aligned in the middle, whereby the content of column 2 will vary in size. The width of both columns is fixe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Twitter.com - How is the login screen background image rendered? On the twitter.com login screen, there is a background which features a world map behind the text. I've had a look and I'm not sure how it's being rendered. I found this one background image (http://a2.twimg.com/a/1316626057/phoenix/img/front/bg.png) w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unions between pointers and data, possible pitfalls? I'm programming a system which has a massive amount of redundant data that needs to be kept in memory, and accessible with as little latency as possible. (uncompressed, the data is guaranteed to absorb 1GB of memory, minimum). One such method I thought of is crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails 3.1 attr_accessible verification receives an array of roles I would like to use rails new dynamic attr_accessible feature. However each of my user has many roles (i am using declarative authorization). So i have the following in my model: class Student < ActiveRecord::Base attr_accessible :first_name, :as=> :...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: No P2P in Windows Metro applications? In the "A .NET developer's view of Windows 8 app development" session at BUILD, the lecturer mentions that only the client-side WCF features are exposed in the Metro profile, we cannot create a server. ( http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C?format=progressiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: java.net.MalformedURLException: unknown protocol: rsrc I get this; java.net.MalformedURLException: unknown protocol: rsrc I'm not entirely sure what to do about this unknown protocol. I am using simple RMI to communicate between two JVMs. Is it a jar that I am missing that contains this protocol and, if so, which o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I embed a Schema within a Schema in Mongoose? SocialProfileSchema = new mongoose.Schema source: String user_id: String profile_url: String UserProfileSchema = new mongoose.Schema socialProfiles: [SocialProfileSchema] That's my code. Is it valid? A: Yes! This is valid it turns out! A: That code wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Help with building object model Help me with building object model, please. I need abstract class Unit representing each military unit in a game. There is Soldier, Tank, Jet and Bunker (children of Unit). Each of them has int properties Count and Defense, constructor with single int count parameter and one method Ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JConsole times out when trying to connect I'm trying to use jconsole to connect to jetty. I can see that the relevant port is open with nmap, but when I try to connect to it using jconsole, the connection times out. (When I run jconsole with -debug it shows that the underlying problem is a timeout on read.) It doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Avoid creation of thread when entering method the second time say we declare and run a thread in a method which has a while(1) loop. How can one avoid to create and run a second thread when the method is called again? I only want one thread to start in this method and every time the method is called again, there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Unwanted Margin in Layout <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainRlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:src="@drawable/moflow_main_screen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: drop down onchange new fields I'm trying to have a dropdown menu that when the user chooses a specific value, it can produce an additional input box or checkbox or any other type of input. each value could can show different results, or none at all. and when the values change, so do the options. Anyone have a sugges...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ String Compare I have 2 strings: in, which contains a link originally entered by the user (assume it to be "http://google.com/test"), and found, which has already been found by an extraneous part of this program. The goal of this function is to compare the section of string between http:// and /test, ie: "google...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Expand Child When Parent IsExpanded in a TreeView I am attempting to expand a Child Node when its parent is expanded. Otherwise stated: (Child.IsExpanded == Parent.IsExpanded) This appears right, but does not seem to work: <TreeView ItemsSource="{Binding}"> <TreeView.ItemContainerStyle> <Style TargetType...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing last image via jQuery I would like to add an image at the end of each "booklist" within the "genre" div, but remove it for the last "booklist" within each genre. The following code is it adding just fine, but I'm messing something up when it comes to the removal. It's only removing the last image from the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone UILocalNotification load specific view I have my local notification working, but when I click View to come back to the app, in the app delegate I am trying to load a specific view, but it wont take. Is this possible or not? It always just comes back to the last view viewed. A: When you tap "View" on the no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: multiple vars via url question I have a method function checkin($var1){ $newVar1 = $var1; .... ... } I am calling it via Restful and I am passing it like this $url = 'http://mydomain.com/controller/checkin/'.$var1; Now i want to pass two variables but I am not sure how would it pick the second one I guess I can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to establish a secure page transfer using a form? I have index.php and I have a login form: <form method=post action="login.php" id="login"> <input type="text" size="16" maxlength="30" name="login" id="login_user" /> <input type="password" name="pass" id="login_pass"/> <input name="msubmit" type="submit" valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Only the text in a ListBox item is selectable, the space outside of the text is not selectable I have a WPF ListBox whose items are TextBlocks. When I click on the text the SelectionChanged handler is called as expected. However, if I click inside the item, but not directly over the text the handler is not called. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open URL Into a View(MVC 3) Hi I have a problem with my Application I am using the MVC 3 with C# and VS 2010. I have a old desktop application where in one form I added a control browser_Navigated for show one page where the user could add the credentials of yahoo for use one API. Now my problem is that I don't know...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trying to curl get image, but i get weird results this is my curl function: function curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.370...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mp3 uploaded to Facebook isn't showing in Facebook app on iPhone or Android I'm developing an app that allows the user to upload an mp3 file to a facebook friend's wall. It's all working well. If I look at the friend's profile page in facebook using IE or Safari, I can see the expected text and the play icon for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort HashTable according to values(numeric) preferably descending order and maintain the key-value I have the following key-value pairs in my HashTable. KEY : VALUES 12345:45; 23456:23; 23445:34; 12367:101; Output should be: 12367:101; 12345:45; 23445:34; 23456:23; i.e. the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to change the UI at runtime and save changes in android application? It is possible to bind android UI dynamically at run-time and keep the changes saved to be visible in the next time I have run the application on the device !? A: You can change the UI diagrammatically. Save the chances (there is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binding WPF TextBlock to custom object in application In MainWindow.xaml I have ... <TextBlock x:Name="tbCpu" Text="{Binding Path=activeTower.cpuTotal}" /> ... and in MainWindow.xaml.cs I have public partial class MainWindow : Window { Tower activeTower public MainWindow() { activeTower = Tower...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't get access token for a facebook page for an application that has all the right permissions SO community, I am stuck in my attempt to have an application post automatically to my Facebook page. These are the steps I took: A) I authorized my application for all my facebook pages and granted permissions offline_a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bufferedimage bitmask operations - apply a color to an image using another image as a mask I have two BufferedImage objects, src and dest. Both are grayscale, src is 1bpc (B&W basically), and dest could really be any sort of color space/bpc/etc. I need to be able to draw some color onto dest using src as a bitmask....
{ "language": "en", "url": "https://stackoverflow.com/questions/7507237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How ConcurrentDictionary is accessed and how to serialize it? I've never used the ConcurrentDictionary object before and have a couple questions about it: * *Am I correct that multiple threads can read from the dictionary at the same time, but if it's being written to, no other thread can access it? *Can this ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Applications that use Node.js Does someone knows several apps that currently use Node.js?, I'm trying to create a Node.js community with some friends at my campus but I need some good real life examples to show and attract more people. A: A lot. http://techcrunch.com/2010/09/01/nodejs-knockout/ https://github.com/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cross Browser check mobile devices Short of buying the full compliment of: iPad, iPhone, android tablet and android phone(s) .... and the rest ... is there any reliable way to browser test some of these for how a website looks, particularly the ipad? I read somewhere, csstricks I think, that the ipad doesnt generall...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Horizontal columns chart (bars chart) using Chart Tools API Library for GWT I need to draw an horizontal bar chart using GWT. The ColumnChart class from the Chart Tools API Library for GWT supports only vertical bars. Any suggestions? A: BarChart is the horizontal counterpart of ColumnChart. Their configurations ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the DotNetOpenAuth in-memory store sufficient for web farms with a load balancer that has sticky sessions? I am implementing DoNetOpenAuth as an Relying Party in an web farm environment. Is the default in-memory store sufficient for environments with sticky sessions? I have read a few post alluding that it does w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting 405 Method Not Allowed on a GET Clicking the following link in my webapp produces a 405: <a href="/unsubscribe/confirm?emailUid=<%= ViewData["emailUid"] %>&hash=<%= ViewData["hash"] %>" class="button">Yes, unsubscribe me.</a> Here's the Confirm Action being called from the Unsubscribe Controller: [HttpG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding Chrome's basic call stack structure The following code reveals some of Chrome's internal call stack workings: (function revealCallStack() { var fn = arguments.callee; console.log('**Bottom of stack**:\n\n', fn); while (fn = fn.caller) console.log('**Next on stack**:\n\n', fn); })(); Please...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Dropdown Scrollbar? So I'm trying to change the scrollbar when I click on a link. First, let me show you my current code. jQuery: $(document).ready(function() { $("div.panel_button").click(function(){ $("div#panel").animate({ height: "100%" }) }); $("div#hide_butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what happends with the memory of the objects used in NSMutableDictionary when releasing the array? I'm curious what happens with the memory of the objects that I push with [array addObject:object] when I use [array release] * *does addObject copy the pointers? *do I have to retain the objects ? *do I have to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mercurial - why doesn't diff work? I have just started to use mercurial (for windows). According to the tutorial http://hginit.com/01.html I made repository, etc. But diff command doesn't show any changes that I made in files. Do you have any ideas what is wrong? Thanks in advance! A: Basic steps are as follows: hg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting if code is being run as a Chrome Extension I am working with some code that needs to be run as a page, and if it's being run as a Chrome Extension, I want to be able to do additional things. What I'm using is: <script> if (chrome && chrome.extension) { // extension stuff } </script> This seems like a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Convert string to hebrew I have the following string: המרכז ×”×‘×™× ×ª×—×•×ž×™ הרצליה How can I convert it to Hebrew using PHP? I try ut8_decode and utf8_encode and it doesn't work. A: You have a UTF-8 byte sequence that you are displaying using the Windows code page 1252 (Western European) encoding in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP + SQL Query: Selecting Enum Values I'm running into a weird situation with a PHP execution of a SQL query that maybe someone can shed a little light on: I have a query that says: "SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = $table AND COLUMN_NAME = $column" The query should retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected Behavior of Extend with a list in Python I am trying to understand how extend works in Python and it is not quite doing what I would expect. For instance: >>> a = [1, 2, 3] >>> b = [4, 5, 6].extend(a) >>> b >>> But I would have expected: [4, 5, 6, 1, 2, 3] Why is that returning a None instead of exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Which element do I change so as to add a border image between posts? The template I am using for my site (under development) is identical to this one. I'd like to add a border image between posts (In this case between "Let You Know Music video" and "Land of Hope") but not after the last post. Which element do I edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery: how to get file name from fileupload control? What I want to implement is by clicking "attach a file", a file browser will be open to let user choose a file. I use jQuery to set onclick function of "attach a file", and set the opacity of a fileuload control to be 0. So it is like display:none. But I don't kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Improvements for a Map merge function I'm writing a function to merge two Map's together. This is what I have so far: def merge[K, V1, V2, V3](left: Map[K, V1], right: Map[K, V2]) (fn: (Option[V1], Option[V2]) => V3): Map[K, V3] = { val r = (left.keySet ++ right.keySet) map { key => (key -> fn(left....
{ "language": "en", "url": "https://stackoverflow.com/questions/7507309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Function composition failure I'm working on the solution to this koan. I'm stumped as to why my solution does not work, but using the definition of comp does work. When I look at the definition of comp, I see: (defn comp "Takes a set of functions and returns a fn that is the composition of those fns. The retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Producing a read-only copy of a class, howto Given the following UML representation, how can i get an instance of a BullDog , that only has getter methods exposed? * *Instance of the BullDog should not have any of the setter methods available. *Instance of the BullDog should only have getter methods (3 of them) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: do PHPUnit tests need to be inside a "/test" directory? when using PHPUnit, is it required for tests to be inside of a /tests directory? How does PHPUnit know that a test is a "test"? Does it parse the file and look for method names, or use some sort of naming convention of files? A: it required for tests to be i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: One time salts and server password comparison I've read that one of the more secure ways to authenticate a user is to use one time salts when hashing the password. What I don't get is: If the client generates a new salt every session, won't the resulting salt+password hash be different every session? If so, how will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Crashes normally, but not with GDB? My program crashes with a segmentation fault when ran normally. So I run it with gdb, but it won't crash when I do that. Does anyone know why this might occur? I know that Valgrind's faq mentions this (not crashing under valgrind), but I couldn't really find anything about this re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Ming SWF markup and swfrender not giving correct output I'm working on an application that uses Ming through the PHP extension to generate SWF files. This works great until someone needs to print something, so we create a PDF that uses a static image instead of flash. Currently we're using a custom solution that tur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7507342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }