text
stringlengths
8
267k
meta
dict
Q: Phonegap-plugin-facebook-connect doesn't work I got some problems when I try to integrate the plugin "Phonegap-plugin-facebook-connect" in to my application. I'm new with android developement and phonegap so i think it's some form of newbie mistake :) I have followed the readme that's in the plugin but not getting i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Terminal emulator that allows dynamically change of background color I'm currently trying to find a terminal emulator, for a Linux-based system, that allows me to change the background depending on what application I'm running. I'm thinking that this should be pretty easy to do with some OSC escape-sequence, but I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exiting application iOS When my application loads, using the didFinishLaunchingWithOptionsi parse data from the internet to nsarrays. My question is, when the user exists the application by using the 'home' button, and then loads the application again how can the data be re-loaded? (because if the data does not relo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the days number of the week I would like to get the days of the week compared to the present day. Example : Today it's sunday 25, i would like to have an array with : 19, 20, 21, 22, 23, 24, 25 (monday, tuesday, etc) If we were in the middle of the week, for example Wednesday 21, i should have the same array bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SML/NJ while loop I am really new to SML and I can't figure out how to get answer for the same; It goes something like: 3^4 < 32 but 3^5 > 32 so my answer is 4 (power of 3), similarly if I have numbers 4 and 63 then 4^2<63 but 4^3>63 so my answer is 2(power of 4). I have come up with the following code val log (b, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Postscript: how to convert a integer to string? In postscript , the cvs *operator* is said to convert a number to a string. How should I use it ? I tried : 100 100 moveto 3.14159 cvs show or 100 100 moveto 3.14159 cvs string show but it didn't work. Any help ? A: Try 3.14159 20 string cvs show. string needs a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: ANDROID - creating users/accounts for server/service login privileges Hello everyone on here, I have an application I am working on that requires the user to be able to login to an account in order to gain access to privileges and other services they would otherwise be denied. They will be able to use the basic app ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is it that I need not convert int to string in this case? (.Net) private void button2_Click(object sender, EventArgs e) { int i = 5; MessageBox.Show(i); } Fails.. private void button2_Click(object sender, EventArgs e) { int i = 5; MessageBox.Show("hoo" + i); } Works. Why is that?? A: MessageBo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Collision Detection Using AABB or OBB doubts I have readed something about it i wanna to do some implementation using this. But i have a few doubts. The problem with de AABB is that the objects must be axis aligned, otherwise you have to be recalculating the bbox every frame, is that right? Is that recalculation exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Having Trouble Switching Github accounts on terminal It's been a while since I pushed anything to GitHub. I had initially set up my account on my computer, and everything worked great. Then I changed my account to a client's account (so I could push code to their private repository). It's been a while and now I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Anonymous types object creation and passed into MVC# razor view? Q1: What is better shorthand version of the following? Q2: How can I pass anonymous types to my view in mvc3? public ViewResult Index3() { List<T1> ls = new List<T1>(); ls.Add(new T1 { id = 1, title = "t1", val1 = 1, val2 = 2});...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP program is negating a function? So basically what I have set up here is a very simple and generic log in. I have the entire code copy and pasted because maybe its important somehow. However- $user = mysql_real_escape_string($_POST['User']); $pass = mysql_real_escape_string(md5($_POST['Pass'])); $conn = mysql_con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript not working in Android Webview? I'm trying to make an Android version of a relativly simple iOS app that uses a webview, some buttons and then relies on javascript calls to a CMS. But I'm stuck at a pretty early point of development: The webview doesn't function with javascript.I've read a lot of posts ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "102" }
Q: Issue with control chars - PHP does not print \t (tab character) i'm sending an XLS file with the header. Everything is working fine. But when i tell it to print the tab to separate the cells in the XLS by print \t. It does not prints the tab. It just prints the '\t' in the file and when i download the XLS file ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add a % sign and color it I have a datagrid column with numbers in it. How do I: 1. add a '%' sign at the end of each number in the column AND 2. make the color either red or green depending on if the number is less than or greater than 0, respectively. I've been able to do 1 or the other but not both. Here is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I break down a view in a flex application? I've written a flex (mobile) application, that ended up bigger than I expected. I'm pretty happy with all my classes and everything on my AS files. However, the view turned out really big, as I'm using MXML to layout my app. I was thinking about creating external co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS to keep div to the size of content I have code like this: <div class='outer'> <div class='imgwrapper'><img /></div> <div class='caption'>This is a long caption that should wrap...</div> </div> What I want is for the outer div to be the width of the image so that the caption under it wraps to the width of the im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find current position I have the following situation which I can't figure out. I have a menu as follows: <ul id="top"> <li><a href="" title="">Link 1</a> <ul id="sub1"> <li><a href="" title="">Sub 1.1</a></li> <li><a href="" title="">Sub 1.2</a></li> </ul> </li> <li><a href="" title="">Link...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Simulating Fiddler requests in buffering mode in C# I am building a web scraping or crawler C# .NET application that keeps sending requests to a server to collect some information. The problem is that for certain web pages for this specific server that web response is always a 404 not found. However surprisingly eno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why isn't z-index working in IE? I've created a top level menu with dropdowns but the drop down isn't coming to the front in IE. Chrome, FF, and Safari work great. My code looks like this: <li id="search"><a href="#search" class="drop" >Search</a> <div class="drop2columns dropcontent"> <div class="col_2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I stop authentication of my paypal account using adaptive payments? Using the Adaptive Payments with the Pay method I managed to get a script working where a user can deposit money from my account to theirs through php but I have to enter my password even though it is using my api credentials. How can I stop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make my .NET or Crystal Reports editable? Is there any way to print the custom positioned text? I want to make a report, in which I want that user must be able to reposition the labels, text or images with his own choice. I am actually making a cheque maker software in Windows Forms .NET 4, and for differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JSON format problem when using Factual geo data I'm using Factual api to fetch location data. Their restful service return data in JSON format as follow, but they are not using "usual" JSON format. There's no attribute key, instead, there's a “fields” that explains all the field keys. So the question is how to retr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Macro with zero arguments - with or without parentheses When defining macro with zero arguments we can define it with parentheses, thus looking more like function or without parentheses. What is preferable (probably there's no right answer) way of doing it? A: If you intend to create a macro that mimics a function,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refactoring of many if statements for params[...], inside controller action I have such code, for making chain selects in my form View for index action: <%= form_tag do %> <%= collection_select(*@brands_select_params) %> <%= collection_select(*@car_models_select_params) %> <%= collection_select(*@product...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read .arff file with R? Is there any way to do that? Yes, i'm new to R. A: If you only care about the data and not the relations, you can just use: read.csv("data.arff", header=FALSE, comment.char = "@") A: The easiest way to do it is using the "RWeka" library which has read.arff() function that reads .arf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: encoding PHP array to Javascript (JSON) how do I get [{}] in JSON? If I encode array() in PHP, the JSON result is []. What is [{}] in JS anyway? Thanks A: you can use: array(new stdClass) which when json_encoded, should end up to be [{}] To answer your second question of "what is [{}] anyway?", well it is simple: i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: retrieving URL in iOS app I need to display a homepage in my iPad application. I have been reading the URL Loading information on the Apple Developer site and am confused. In the sample code for SimpleURLConnections, they have a Python server. A colleague mentioned that it should be just a couple lines of code, so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: openssl error : implicit declaration of MD5Init First of all I am showing the code for my c file .. #include <stdlib.h> #include <sys/types.h> #include <netinet/in.h> #include <memory.h> #include <string.h> #include <ctype.h> #include "sendip_module.h" #include "ipv6ext.h" #include "../ipv6.h" #include "../ipv4.h" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firefox calling jquery val throws "NS_ERROR_DOM_SECURITY_ERR" Calling following code in Firebug console in firefox throws 1000 "NS_ERROR_DOM_SECURITY_ERR" exception, dont know why and how. tried putting code in the file in the server to avoid different domain issue, But that also did not work . $("input[type='fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Non alpha-numeric characters in URL If I visit http://†.com in Chrome or Internet Explorer, it will bring me to http://xn--lvg.com. I know it doesn't work in Opera, Safari, and Firefox. Why does † gets translated to xn--lvg? What's the relation between them? Is there a list that maps these weird characters to their ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Swingworker instances not running concurrently My computer has 4 cores and I am running a Java swing gui program. When I run my application it only uses two cores and about 30% CPU utilization. I have a large number of files to process and want to split them up into two threads to get this task done faster using mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is there a CSS workaround for Firefox' bug: inline-block + first-letter with changed size It's better to see a bug for yourself in Firefox: http://jsfiddle.net/kizu/btdVd/ The picture, showing the bug: And the bug filled in 2007 on bugzilla. The bug appears when you're adding ::first-letter pseudo-element with disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: IE8 moves content on mouseover This is one of the strangest bugs I've ever encountered. Feel free to check it out here. Basically the issue ONLY exists in IE8/Windows (not IE7 or 9 however). The problem happens when you mouse over the What's Hot image, or any image below that on subsequent rows. Upon mousing over,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress merge multiple sites into one multi user site I have about 15 standalone instances of Wordpress. Each using a different woo theme that has been customized and some plugins. Is there an easy way to retain all plugin and theme settings when migrating to wordpress multisite? A: Try to follow Migrating mult...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the idea behind creating Event Reminder app in android I want to create Event Reminder App, I search and found that I need to use a service and broadcast receiver. But it is not clear for me what is the role of each components ? As I understand-but I am not sure- that the App needs an Activity that when star...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fat Model Skinny Controller in CodeIgniter I've been using CodeIgniter for a while, and have a decent knowledge of MVC, PHP etc. However, I'm finding it hard to adhere to the Fat Model Skinny Controller ethos. I've seen a lot about it; including what pseudo code to include in each file, but no actual examples. (Plea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tool for creating DBManager classes in Java? Is there a tool for creating DBManager class for simple databases in SQL? I want to use it along with netbeans. I am working on a simple homework datamining project. But I am fed up of writing DBManagers on my own. I am very well aware of Hibernate, but I am not using it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: for remembering passwords, sessions or cookies or both? If a user decides to remember their password based on a checkbox when logging in, is it good practice to set both session and cookies? or would it be better to just do cookies? I think I understand to do sessions when user logs in and DOES NOT like to remember...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'onmousedown' not being called in JavaScript In Javascript, I want to create a handler for a mouse click. Then, I want to be able to "busy-wait" for a few seconds before running the next line of code.* But in the "busy-wait", I want to still be able to process the mouse click events. Why will the following code run...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ACRA always disabled? Here is the code I use to have ACRA but its not working,. in the LogCat I keep getting "ACRA is disabled": Checkbox xml: <CheckBoxPreference android:key="acra.enable" android:title="@string/pref_disable_acra" android:summaryOn="@string/pref_acra_enabled" android:summaryOff="@s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS: Suppressing negative margins of child elements I have a parent element (e.g. a div) which surrounds some dynamic content. I would like the parent div to fully contain the child elements in as many circumstances as possible. One problem is child elements with negative margin settings, which cause the child ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hide UIView on device rotation - doesn't work when device is horizontal I'm trying to hide an image in a view controller when the device is rotated. I'm posting a notification in PlayerViewController and am listening for it in the app delegate, which is responsible for the bannerView: - (void)orientationChanged:(NS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get all defined ClassificationTypeDefinitions? So I just tried creating a new classification type, [Export(typeof(ClassificationTypeDefinition))] [Name("String")] internal static ClassificationTypeDefinition _stringClassType; But then I got a duplicate ClassificationTypeDefinition error telling me that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't NSWorkspace's openURL open for more than one URL? I have an action for a menu item that is supposed to open a URL base on the value of the 'lyricLink' property. It will work the first time (and all subsequent times where the value of 'lyricLink' is the same). But if the value of 'lyricLink' changes and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get all functions of an object in JavaScript For example, Math.mymfunc = function (x) { return x+1; } will be treated as a property and when I write for(var p in Math.__proto__) console.log(p) it will be shown. But the rest of Math functions will not. How can I get all functions of a Math object? A: var f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Return a query from a function? I am using PostgreSQL 8.4 and I want to create a function that returns a query with many rows. The following function does not work: create function get_names(varchar) returns setof record AS $$ declare tname alias for $1; res setof record; begin select * into res from myt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Entity framework: How to reduce database hits? So I have this query in my repository (also using Unit of Work pattern) which uses eager loading to make one hit to the database: from g in _context.Games.Include(pg => pg.PreviousGame).Include(go => go.GameObjects) where EntityFunctions.DiffMilliseconds(DateTime.Now, g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeMirror save itself onBlur I want to save all CodeMirrors generated by PHP itself onBlur. Here is what I am talking about: while ($db_field = mysql_fetch_assoc($result)) { ... var editor = CodeMirror.fromTextArea(document.getElementById("id'.$db_field['id'].'"), { lineNu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Testing postgres database accessibility from django I am using the django ORM with a postgres database. A small group of users interact with it using import and export scripts. The database is only available on our intranet. If someone tries to use the database when postgres is unavailable the scripts hang. I would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running a query using ADODB Connection randomly takes a long time to execute I have come across an issue that seems to be somehow connected to a web server configuration, and resulting in queries randomly taking a long time to execute. The application is created using old plain Classic ASP and ADODB Connection is us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Switch Multi UITableViews in a UITableViewController I have a UITableViewController contains two UITableViews appsTableView and gameTableView, first I set : self.tableView = appsTableView; [self.view addSubview:self.tableView]; then when I click switch page button to do page switch: -(void) switchPage:(id) send...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to further optimize this MySQL table for a single Query I have a InnoDB MySql Geo ID table that has ~ 1 million rows. The table structure is this: CREATE TABLE `geoid` ( `start_ip` int(11) NOT NULL, `end_ip` int(11) NOT NULL, `city` varchar(64) NOT NULL, `region` char(2) NOT NULL, PRIMARY KEY (`st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Pointer questions regarding linked lists Alright guys, so I've been working on a linked list program and I've run into a problem. I'm trying to place a piece of data into an already sorted linked list in a sorted fashion. Right now, I'm comparing the pointer data the user gives (Data * newData) to the head (LinkNo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing output from subprocess.Popen to a if elif statement Im creating a python script to check for suPHP i'm trying to create an if else statement to declare if suPHP is on the server using output from subprocess.Popen I've tested the output of the variable with print before i created this post and it pass's the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ContentControl two way binding within DataTemplate not working? I've setup a reusable datatemplate "DataGridCheckBoxEdit" for a datagrid column. Binding to it one way works like a charm through ContentControl. Binding directly works two way correctly. However, binding two way within that DataTemplate, from a Content...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't find logic behind png file sizes I'm saving a large number of small png files for use in a game on a phone, so space is at a premium. I'm trying to figure out the logic behind the file sizes so I can save things most efficiently, but even after using pngcrush the sizes are totally inconsistent. I saved a 1x1 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Snake Game - Collision Error So I am making a snake game, but if I move from one direction to the other really fast then it says I made a collision with the body and ends the game (for example, if I am going left and I hit down and then left again really fast or down and right really fast, etc.) I've tried a few thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: An error occurred while signing: SignTool.exe not found While I was trying to Update my Project I was making - I got an error for the first time I've seen: 'An error occurred while signing: SignTool.exe not found.' I've never seen this before, So I looked up that SignTool.exe is what signs my project for ClickOnce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: Motif programming and UTF-8 I'm new to Motif programming and I want to use UTF-8 encoding. I've tried XtSetLanguageProc (NULL, NULL, NULL); but when I read a file in Motif (editor text-like in 6A volume motif programming), I've got problems with accented characters. I had to use setlocale()? thanks! A: With Motif,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML5 drag and drop question I'm trying to implement HTML5 drag and drop to upload a file. When the file is dropped, I want to call the php file to handle the dropped file. How can I call the php file and access the dragged file in php file. Also, I want to send the success or error message back from php file. I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery animation glitch for each item of a div container I want to loop through each slider and animate each of them seperate and not all together. With my current code, I'm doing the animation all together, which I don't get it since I used .each and .delay to wait for the next animation. Here is my jquery code: $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: similar tables looking different in opera and IE7 I'm trying to achieve a basic fixed table header effect. For this I'm using two tables with the exact same markup and CSS. The "content" table is in a div with overflow-y set. Everything looks fine except IE7 and Opera where the "header" table has different column wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dropdownlist event I have been searching all around for a guide on event handling in flash builder 4.5. I have a dropdownlist that I'd like to activate preferably a action script function. similar to asp.net/js. cheers! A: right out of as3 docs with some comments... import fl.controls.ComboBox; import fl.controls.L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CUDA Maximum Reduction Algorithm Not Working A previous question asked how to find to find the maximum value of an array in CUDA efficiently: Finding max value in CUDA, the top response provided a link to a NVIDIA presentation on optimizing reduction kernels. If you are using Visual Studio, simply remove the header...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unicode SQL Query W/ Parameter instead N Prefix I have an insert query to execute from within a C# against a SQL Server database. The column I am inserting to is of type nvarchar. the data I am inserting to that column is non-english. Is it sufficient for me to use AddWithValue in order to pass the non-english data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Performing data error correction on Byte level, to video stream Does anyone has an idea for efficient error correction algorithm? Suppose all the operations and manipulation on the stream is on the Byte level. A: Maybe Reed-Solomon error correction? A: Depends on what are requirements. Have a look at Raptor wiki....
{ "language": "en", "url": "https://stackoverflow.com/questions/7548375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Simple Arrays I'm making this array where the first number in the array should be 15 and the third as well. Then I need to print the array on the screen but I get an error when I do this, I've read that I got to write a loop when printing an array. How's that possible? This is my current code. int[] i = {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I add a variable to $(this)? I have two functions: function animateOpen(){ var originalPosition = $(this).css("left"); var distance = $(this).getHorzontalDistanceToCenter(); $(this).animate("left", "+="+distance); $('#button').click( function (){ $(this).animate("left", originalPosition+"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get "close friends" list of a Facebook user, using the Graph API? The graph Api gives me the user's friends. But I want to know who its close friends are (SmartLists). How can I do that using the Graph API? A: You can call /me/friendlists to get the friends list. One of them should be close friends. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: what is the semantically correct way to create an accordion widget? taking into account the semantic web and HTML5, what is the semantically correct way to create an accordion widget? example: jQueryUI proposes the following example: <div id="accordion"> <h3><a href="#">First header</a></h3> <div>First conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why is COM interface name replaced by coclass name in VB6? I am developing a C++ COM library to use it from a VB6 application. The .IDL file defines a few interfaces and a class library with some component classes that implement these interfaces: [ local, object, uuid(....), version(1.0) ] interface ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Entity Framework 4.1 Fluent mapping Foreign Key and the Foreign object with a string key I am moving from an EDMX mapping to the EF 4.1 DbContext and Fluent mapping and I am wanting to map both a string foreign key and the foreign object using the fluent API. I have an Employee with an Optional Office. I would like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving user images - reaching maximum folder limit I'm using ext3 and according to Wikipedia, the maximum sub directories allowed is around 32000. Currently, each user is given their own directory to upload images on the filesystem. This makes it simple to retrieve images and ease of access. the folder structure is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In eclipse, is it possible to change what the default package is without changing the source folder? I'm working with some people on a java project. Problem is, I'm the only one using eclipse. The source files are located in svn in trunk/src/*.java. However, if I import that as a project directory, the default packa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting omnicppcomplete and ctags to work in VIM Here's my .vimrc syntax on set number set nowrap set autoindent " configure tags - add additional tags here or comment out not-used ones set tags+=~/.vim/tags/cpp_files set tags+=~/.vim/tags/cpp_src/ set tags+=~/.vim/tags/qt " build tags of your own project with Ctrl-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: problems with char array = char array I have: char message1[100]; char message2[100]; When I try to do message1 = message2, I get error: incompatible types when assigning to type ‘char[100]’ from type ‘char *’ I have functions like if(send(clntSocket, echoBuffer, recvMsgSize, 0) != recvMsgSize){ DieWithError(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Magento: Get simple product color from custom table I'm really struggling with this in Magento 1.10 Enterprise. I have a array of simple products color ids and I want to use this id to query the atb_color table. Raw query: SELECT description FROM atb_colors WHERE option_id = 'my_color_id' Here is a method I was try...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does this menu navigation not centre align? I have a website with a drop down navigation bar at the top, I would like to centre the navigation bar, but I can't get it to work, it seems to be stuck to the left side. You can view the website here and I've pasted the code below. I've been trying to get this to wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to grab all words that start with capital letters? I want to create a Java regular expression to grab all words that start with a capital letter then capital or small letters, but those letters may contain accents. Examples : Where Àdónde Rápido Àste Can you please help me with that ? A: Regex: \b\p{Lu}\p{L}*...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: International Phone Number Regex for Scraping Possible Duplicate: A comprehensive regex for phone number validation I've spent about two days searching for a regex that will find international phone numbers (using in scraping script), but I've run into a few problems.. * *I don't know the format(s), if they ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple threads with locks vs single threads? I am designing a client and server socket program. I have a file to be transferred to the server from the client using UDP, I repeat I am using UDP..... I am sending through UDP so, the sending rate is too fast then the receiver, so I have created 3 threads listening o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chargify vs Amazon's, Google's and PayPal's payment service? I wanna build a web store for selling people's second hand products. * *A customer adds the products into a shopping cart. *He/she pays (credit card, bank account) for it and I get the money. *The seller sends the bought products to the customer. *I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JIT / AOT problems when running montouch app I have been developing a monotouch opengl iphone game for some weeks now. As recently as yesterday, it was building and running properly on my test hardware (an iPhone 4). But when I loaded the project yesterday, it gave me the compiler error: Framework 'Mono for iPhone' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: solr: multivalued dateranges (representing opening hours) Consider a bar which might have multiple openinghours, depending on the day of week (+ some special days when it might be closed) I want to be able to lookup all bars that are currently open and that will be open for the next, say, 3 hours. (or be able to as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to remove subversion repository for a specified project from netbeans? I imported a project into subversion from netbeans now I simply want to undo that action and want the file stored in repository for that specified project alone be removed. How do I have to proceed? A: * *Delete all .svn folders inside your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VS08-WIN7-What account does ASP.NET web server run as? VS08-WIN7-What account does VS08's ASP.NET development web server run as? I am trying to write to a log file. protected void Page_Load(object sender, EventArgs e) { System.Diagnostics.Trace.WriteLineIf(lifecycleSwitch.TraceInfo, string.Format("{0:yyyy-M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show alert after postback I have a button which calls stored procedure and binds gridview. I found a code on stackoverflow for top alert bar like this: function topBar(message) { var alert = $('<div id="alert">' + message + '</div>'); $(document.body).append(alert); var $alert = $('#alert'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking if the UNIX timestamp stored in MySQL DB is this weeks or this months? I have a MySQL DB, and in one of the tables I have stored the time in which the content was submitted its in the form of a UNIX timestamp, the column is called content_time. Below are two pseudo examples of queries to demonstrate what I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to cache only the content page I've got a master page with a content page loaded on to it, the content page is cached <%@ OutputCache Duration="360" VaryByParam="none" %> in the master page iv'e got a login control above the content , now if i attempt to use the control nothing happens since the content and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql query optimisation - 50k+ Rows I'm querying 50k+ rows with this query and it is taking 1.2759 seconds. What do you think is the best way to optimise it. The data updates every second or so but I could cache it for say 20 seconds. I've been looking into memcached for this, but is there a way to optimize this qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Statistical method for grading a set of exponential data I have a PHP application that allows the user to specify a list of countries and a list of products. It tells them which retailer is the closest match. It does this using a formula similar to this: ( (number of countries matched / number of countries selected...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem Binding array of Processes to WPF ListBox Ok, so I am trying to implement a fairly straightforward feature in my app. I want to have a list of processes running (listed by their process name, ID, whatever) and when I click on a process in the list, update a few labels with information on that process (again,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery filter toggler function to show/hide images I'm trying to create a "filter toggler" with jQuery, to use for showing/hiding images on a page that has different categories applied to them (using a rel attribute). The filter is outside the list of images, so I need to address them by comparison (I think?) of val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting adjectives and adverbs to their noun forms I am experimenting with word sense disambiguation using wordnet for my project. As a part of the project, I would like to convert a derived adjective or an adverb form to it's root noun form. For example beautiful ==> beauty wonderful ==> wonder * *How can I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I create a packaged_task with parameters? Following this excellent tutorial for futures, promises and packaged tasks I got to the the point where I wanted to prepare my own task #include <iostream> #include <future> using namespace std; int ackermann(int m, int n) { // might take a while if(m==0) retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Injecting properties into a QuartzJobObject Am I right in thinking that my QuartzJobObject can't have any DAO's or other Spring-managed objects injected into it? Was hoping I could do something like this (orderService is what I want to inject): <object name="checkPendingOrdersJob" type="Spring.Scheduling.Quartz.JobD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting 404 error page content with Http WebRequest? I use Http WebRequest with Vb.Net to download content. Everything is working fine, but now I have a problem: I want to download this website which is an example for a 404 Error page with content: http://www.boris-koch.de/404seiteyeah But then I get this Error: "We...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: cyanogenmod lockscreen music controls I am looking for the png's of the music controls that appear on the lockscreen of CyanogenMOD roms, can anybody help me? I was also looking for the source code of those controls, but couldn't find it. Thanks in advance A: All the Cyanogen source code can be found at their githu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modifying httpd.conf to serve over the internet in EasyPHP I'm running EasyPHP on Windows. The default install just opens port 80 on the loopback interface, 127.0.0.1. I want my sites to be accessible over the local network too. There are no simple EasyPHP settings for enabling my other interface, like the one that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7548487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }