text
stringlengths
8
267k
meta
dict
Q: Base64 - Exif metadata Is it possible to add EXIF metadata for "ImageDescription" to a base64 JPG image string? Could this one have a EXIF data "ImageDescription" that claims it's the Stack Overflow logo? http://pastebin.com/0vUsybJQ Thanks. A: You could add EXIF metadata by reading the text format jpg image, addi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7535990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActionScript 3.0 How to Save Data to Server When User Navigates New Page I have a Flash AS 3.0 swf-based browser game. It's hosted on my site and communicates with a MySQL database via PHP using Flash's URLVariables. Everything works fine. The problem is, I want to be able to save the player's game after he leaves t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7535991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find the maximum stack size? I am working on Ubuntu 11.04. How do I find out the maximum call stack size of a process and also the size of each frame of the stack? A: You can use getrlimit to see the stack size and setrlimit to change it. There's an example in the Increase stack size in Linux with setrlimi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7535994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Chrome Extension: Message passing confusion I'm trying to send the number of checked items on a page over to a popup. The add input button on the popup alerts or sends to the console the amount of checkboxes checked on the webpage. My script is not doing this and I thought there may be a confusion on how message pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7535997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using OpenCV in Xcode project gives linker errors After building and installing opencv via their cmake process, I took some suggested steps to integrate the libraries into an Xcode project. * *I use "Link Binary With Libraries" in Build Phases for both libopencv_core.dylib and libopencv_highgui.dylib *"Header Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: transactional open/write/replace in .NET? I am thinking maybe i should restrict it to 8k. I'd like to open a file and write from start to end everytime. However if for some reason (say power outage) it doesnt complete i do not want corrupt data. Is there a way i can do a transactional file open/write/close so it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problem having SQL statements that contain " or ' I am storing HTML in an SQLite3 database using python. When I go to insert some HTML into an SQL table I get an error/problem when I have '"' characters. The following example of my problem creates the incorrect SQL statement: INSERT INTO mytable(id, html, other)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using RubyMine receiving errors I am trying to learn Ruby on Rails. I purchased Ruby Mine and installed it on Ubuntu. I followed the installation instructions and when I tried to debug my first project in RubyMine, I get this: Error running Development: test001: Failed to install gems. Following gems were not inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: search and replace string on multiple files from unix terminal We are converting all the static html pages in our codebase into php pages. The first step would be to change all the .html file extension to .php (which I already did). The second step would be to update all the links within each of those html pages to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: IntelliJ IDEA forward-engineering with UML? From IntelliJ IDEA Help System on UML: Forward engineering, which enables you to design and create a visual model, and populate it with node elements, members and relationships. IntelliJ IDEA automatically generates source code and keeps it synchronized with the mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problems with pointers I have a Binary Search Tree that I'm making and I implemented the Insert node code as follows: BSTNode * BST::Insert(const std::string & v){ BSTNode * node = new BSTNode(v); if (root == NULL){ root = node; } else if (root->value.compare(v) > 0) { Insert(root->left, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSplitPane divider color affected by contents I'm working on an application that displays two JScrollPanes within a JSplitPane. Each of the JScrollPanes contains a JPanel that I'm drawing the content onto. The problem is that when I adjust the divider of the JScrollPane, the color of the divider is affected. It seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Requesting HTTPS and submitting forms in Java I got the following scenario: On my webserver I have a .do file with HTML code like this: <form name="login" action="someAction" method="post"> //some textboxes </form> <input type="submit" value="Submit" /> Now I'm trying to make an application, which connects to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question about syntax where in the define of a class I started to implement a repository pattern following this tutorial. Now In the definition of the class which implements the interface of Repository. The defines of the classes are made like this. public class Repository<E,C> : IRepository<E,C>, IDisposable w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JQuery - Find value of a dynamic ID OK so I'm using a CRM on demand system, and a URL needs to be updated when a form is updated. The form cannot be referenced by ID for some reason so I need another way of getting the value="THIS" out of it. No Ids allowed! (Unless you know why) Thanks :) The HTML concerned: <inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How does Entity Framework track updates? Inserts and Deletes are easy - they have dedicated methods. But what does it do to detect changes to loaded records? A: There are many articles describing the change tracking mechanism. Tracking Changes in POCO Entities Identity Resolution, State Management, and Change Track...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is Bitnami Lampstack ebs eligible for AWS free tier? I am considering installing the Bitnami Lampstack ebs on AWS, but I wanted to make sure that it is still free of charge to use if I don't go over the limits. There was no clear documentation of this online. If anyone knows please let me know. Thank you. A: Yes, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I also assure undefined in a jQuery plugin closure? I often see this described as the way to assure a safe environment for a jQuery plugin: (function($){ $.fn.myPlugin = function() { ... }; })(jQuery); Wouldn't it be better to also safeguard undefined, like so: (function($, undefined){ $.fn.myPlugi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make Linux kernel I navigated to the directory usr/src/linuex-headers-2.6.38-8 and type make. I got the following error message. No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s' How do I solve this problem? I am using ubuntu... A: This is copied from an answer on the Ubuntu forums: Inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help with .htaccess redirect I need to redirect all image requests from site.com/folder1/folder2/images/name.jpg to site.com/folder3/folder4/folder5/images/name.jpg Where name is dynamic A: This is pretty straightforward. RewriteEngine On RewriteRule folder1/folder2/images/(.*)\.(jpg|gif|png|jpeg)$ /folder3/fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Considerations when using more threads than hardware threads? I have a brand new laptop with a i7 2630qm CPU (4 cores, 8 threads) and I'm excited about tapping into the power of a multi-core processors. After reading about threads, I realized I had a few areas of confusion in regards to how one writes the most effic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you get an object from a string in Objective C? How can I get an object based from a string in Objective C? For example int carNumber=5; [@"car%i",carNumber].speed=10; //should be same as typing car5.speed=10; Oh course, those are just made up objects, but how could I get an object based on what is in a vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQlite3 to MySQL I am running Ubuntu 10.04, Rails 3.0.7, Ruby 1.9.2 I started with this link: Convert a Ruby on Rails app from sqlite to MySQL? I successfully installed 'mysql2' database.yml : # SQLite version 3.x # gem install sqlite3 development: adapter: mysql2 database: db/development.mysql2 pool: 5 ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Closing TabItem by clicking middle button I have a problem. In my WPF application, if i press a tabItem with middle mouse button, this tabItem should close. Just like in FireFox. But I try to do this using MVVM, and i need to use commands. Also my tabItems are created dynamically. Help me plz! Thank you! A: Create ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Forcing JavaScript return false to persist through functions Thanks for taking time to review this question. I've been trying to fix a problem for one or two hours with no success... I have a web page that sets a JavaScript variable based on the response from a function: grade = getScore(questionAnswer, userAnswer, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is this usage of condition variables ALWAYS subject to a lost-signal race? Suppose a condition variable is used in a situation where the signaling thread modifies the state affecting the truth value of the predicate and calls pthread_cond_signal without holding the mutex associated with the condition variable? Is it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Factory Girl + Mongoid embedded documents in fixtures Let’s say you have the following mongoid documents: class User include Mongoid::Document embeds_one :name end class UserName include Mongoid::Document field :first field :last_initial embedded_in :user end How do you create a factory gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Jquery load() and ui-widget I am using load() to grab a section of a .php page and replace content in a div dynamically. The index page has a jquery-ui tab widget on it that works fine upon initial load. When I use load() to change out the content, and then go back to the original home page with the ui-tabs on it (v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I find a Java Web Start app's cookies? I'm lost in redirection I'm fairly new to HTTP processing and I would like to retrieve cookies in a Java Web Start application using the CookieHandler class with cookieHandler.get(...). However, due to our authentication process, there are multiple redirects and I'm not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django template for loop iterating two item I try to implement a forloop in Django tempalte iterating two items per cycle such that {% for c in cList%} <ul class="ListTable"> <li> {{ c1.name }} </li> <li> {{ c2.name }} </li> </ul> {% endfor %} I know my code is not a proper way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does WebBrowser.Navigate returns null HttpDocument? I have tried: var browser1 = new WebBrowser(); browser1.Navigate("https://zikiti.co.il/"); HtmlDocument document = browser1.Document; But browser.Document is null. Why? What am I doing wrong ? public static void FillForm() { browser1 = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tracking full browser activity in VB.Net There's a website that contains some real time information. I want to have a VB.Net windows application that monitors the page, and when it detects certain events it triggers some actions based on the data in the page. I've been searching like crazy for some mechanism to "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 Action Mailer Gmail I am trying to understand how to properly configure Action Mailer for Rails 3 to work with Gmail. Read the article by Ryan Bates and also read the edge Rails page article. Ryan's article said to put the config details in /config/initializers/setup_mail.rb initializer file ActionMailer::Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: deactivate class with another event I'm trying to make a individual dropdown container like of that on the nopnav of the google, well everything runs ok, exept the fact that i would like to deactivate the activated class of the trigger event when i click on to hide the container! Inserted the page where are the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display list of times from 12PM to 5AM (Loop) What is good way display a list of times from 12PM to 5AM using Loop (PHP)? I don't think storing times in the array is good idea, there must be a better way. Like this as example: <select id="closetime"> <option value="12:00:00"> 12:00 PM</option> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find elements with given class and multiple attribute Jquery How do we do a each() with multiple attributes? Working: $(".divReplies[userId="+userIdTemp+"] ").each(function(index, element) { }); Not working: $(".divReplies[userId="+userIdTemp+" replyId="+replyId+"]").each(function(index, element) { }); Thanks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data type conversion of column in numpy record array I have a numpy recarray with several integer columns and some string columns. The data in the string columns is composed 99% of integers, but numpy things it's a string because "NA" is in the column. So I have two questions: * *How do I remove the NA's and chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Directory naming using Process ID and Thread ID I have an application with a few threads that manipulate data and save the output in different temporary files on a particular directory, in a Linux or a Windows machine. These files eventually need to be erased. What I want to do is to be able to better separate the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: White pure CSS triangle bug on Firefox 6 Windows http://jsfiddle.net/pixelfreak/Eq246/ Notice the gray border on the white triangle. This only happens on FF 6 Windows (I did not test on older FF version) Is there a fix to this? It looks like bad anti-aliasing or something. A: Give it a try with this: border-style: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Kohana 3 pagination renders incorrectly Edit I've added a github repostitory of my /application directory. https://github.com/ashleyconnor/Egotist I'm working through "Kohana 3: Beginner's Guide" from Packt Publishing and have just completed the 7th chapter. The problem I am having is on my homepage I render pagina...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cannot get info from error when trying to get JSON data via JQuery, For the life of me i can't figure out why i keep getting an error when making an AJAX request using the bit of bode below. When the page load, and the alerts pop up absolutely no useful information as to why the request failed, the response code is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Communicating between SERVICE and web/desktop application Whats the recommended way to communicate between a service and a desktop app or webpage ? I want the service to do all the work, but admin/management/reporting to be possible via web or desktop. (It will be written in C# with .Net 4.0) Is it named pipes ? soc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: php null is undefined value? Possible Duplicate: PHP: “Notice: Undefined variable” and “Notice: Undefined index” I got error: Notice: Undefined variable: null Line in code is: $input = new $class($company, null, $sablonas, $null, $value); Class constructor is: public function __construct($company, $document,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When putting an Outlet in Xcode into a variable, don't know what kind of pointer to use? So I was going through Cocoa Programming for Mac OS X for Dummies by Erick Tejkowski. After doing the calculator example, I got the basics of Objective-C in Xcode, since I know basic stuff. I got that to put what's in a text fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Model Real-World Relationships in a Graph Database (like Neo4j)? I have a general question about modeling in a graph database that I just can't seem to wrap my head around. How do you model this type of relationship: "Newton invented Calculus"? In a simple graph, you could model it like this: Newton (node) ->...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How would I redirect a non-php file's URL, without editing the .htaccess file? So basically I need a way to take an exe file on my server and make a php function to toggle it's availability. I do not want to just rename, move, or delete the file, but redirect to a page explaining the file is temporarily unavailable....
{ "language": "en", "url": "https://stackoverflow.com/questions/7536144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Convert javascript function to jQuery How do I convert this javascript selected to jQuery? I need to select a button class rather than an ID, and I understand the easiest way to do this is jQuery. var playButton1 = document.getElementById("playButton1"); playButton1.onclick = function() { var ta = document.get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with SQL query. Need to distinct my results I got table with my conversations, and i need to list alle conversation as topics. So if I'm the sender or the receiver, it should list it as one conversation. So between 2 users, it doesn't matter which role they got. So if I got: 1, me, mom, "hello mom, I'm goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: text formattation of "description" array variable in graph protocol On the website I am developing, I'm using a function that get information about events taken from a group on facebook. I noticed that using the graph protocol, the text contained in the "description" of the created array , there are strange characte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Byte-for-byte copies of types in C++11? The C++11 standard guarantees that byte-for-byte copies are always valid for POD types. But what about certain trivial types? Here's an example: struct trivial { int x; int y; trivial(int i) : x(2 * i) { std::cout << "Constructed." << std::endl; } }; If I were to copy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Remove brackets [] from a list set to a textview? I am parsing content using the following code with jsoup. try{ Elements divElements = jsDoc.getElementsByTag("div"); for(Element divElement : divElements){ if(divElement.attr("class").equals("article-content")){ textList.add(divElement.text()); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Closure Library or YUI 3 I'm architecting an enterprise web application using python, django. My final decision to make is which javascript library to use. I'm thinking about using Google's closure library or YUI3. Most of the development, I've used jQuery.I can code fast with jQuery but doesn't seem right for enter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can't load related entities on the client using RIA Services I am having trouble getting related entities to be loaded on the client using RIA Services and EF 4.1 with Silverlight. I'm currently using the Include() method on my DbDomainService with an Expression parameter and am finding that when stepping through my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NSTableView hit tab to jump from row to row while editing I've got an NSTableView. While editing, if I hit tab it automatically jumps me to the next column. This is fantastic, but when I'm editing the field in the last column and I hit tab, I'd like focus to jump to the first column of the NEXT row. Any suggestions?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Socket High CPU usage I did a client/server(android/pc) and it seems that network usage from client uses a lot of CPU. Like to receive only 4k-5k from network, the cpu rises to 33 milliseconds. The cpu can be higher than 90-100 milliseconds if data is higher like ~32k. First, I've tried the client(network pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FTP download is not secure enough - password shows up in fiddler My application is downloading a client from my server via FTP. I must use FTP in this case as I made the file on my server forbidden from public use; thus, the only way to download the file is as an administrator which I can do by supplying an username...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make wp7 map control zoom buttons easier to see with windows phone 7 i am using teh bing map control. i have it working just fine. however, the zoom buttons (+,-) are at the bottom of the page and difficult to see. The buttons have black border with black text. They are easy to see on a light map backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CakePHP: cakeError and exit Is it advisable to perform an exit; or return; after throwing a cakeError? if (//successful operation) { echo 'YAY'; } else { $this->cakeError('error404'); exit; // is it necessary? } A: Looking at the source code for ErrorHandler::error404(), at the end it calls Object::_st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL Query - Join troubles... again? I'm hoping somebody will be able to help me with a query I'm stuck on. I have multiple input search form for a photos database. One text box 'searchWords' is to search my 'photoSearch' table and the other text box 'specificPeople' searches the 'people' table, to search for spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AVAssestReader stop Audio Callbacks So I setup an Audio session AudioSessionInitialize(NULL, NULL, NULL, NULL); AudioSessionSetActive(true); UInt32 audioCategory = kAudioSessionCategory_MediaPlayback; //for output audio OSStatus tErr = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,sizeof(audioCategory...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to respond_to a json request with only the 20 recents objects? (rails) I wish to send to the client only the 20 recent Post objects. How do i that? I'm new to rails so ill appreciate your advice very much. thanks. A: Just do: @posts = Post.all(:order => 'created_at desc', :limit => 20) respond_to do |format| ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove an item from listbox with datasource set, using string in C# refferring to msdn link how can I remove an item using string??? (I don't want to remove it by using selected index) I want something like USStates.Remove("Alabama","AL"); A: You can't change Items collection but you can change the DataSour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP cake subdomains session link problem? i have problem with php cake session and subdomains. I have setted all successfully right. When i try to go from subdomain1.domain.com to subdomain2.domain.com all works nicely when i put these browser url... problem comes when i try to make this with <a href=""> tag, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do I render a specific view from an an urelated action? I need to render the view for controller=user action=profile from a controller = b action =c i.e. /b/c will render the same view as when I surf to /user/profile How can this be achieved (except using include inside the view file) in Yii? What code do I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: YUI DataTable Button events lost after filtering I'm using a YUI2 DataTable. Some of the rows of the tables have an icon button that when clicked on will popup additional details for the row. I'm doing the following to define the panel which gets displayed with the additional information: MyContainer.panel2 = new YA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Access: Query Browser-like Functionality? Is there any way to execute an SQL statement, and view the returned result set in MS Access without having to go through any wizards, the query design view, or creating a form? Kind of like the functionality of the MySQL Query Browser. I usually like to test my queries be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I take subsets of a data frame according to a grouping in R? I have an aggregation problem which I cannot figure out how to perform efficiently in R. Say I have the following data: group1 <- c("a","b","a","a","b","c","c","c","c", "c","a","a","a","b","b","b","b") group2 <- c(1,2,3,4,1,3,5,6,5,4,1,2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Core Data migration failure between NSPersistenceFrameworkVersions 251 and 358 I have what appears to be a bug with Core Data in OS X 10.7.1. My data store (NSSQLiteStoreType) is not being automatically migrated correctly. As a side note the exact same Core Data models are used by an iOS version of the app. -> Here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performance userscript injecting code I have a question about userscripts. Is it faster to have this in before or after of the main function initiateFlasher? if (typeof unsafeWindow !== 'undefined' && unsafeWindow.jQuery) { initiateFlasher(unsafeWindow.jQuery); } else { function addScript(callback) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax loader gif won't display in IE 8 I've read a lot of posts on this but nothing the solved the problem. I added an IMG tag (for an ajax loader gif) to the page with a style attribute (visibility:hidden), and added event handlers for 2 jQuery ajax events: ajaxStart (to show() the image) and ajaxStop (to hide() the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Possible FileChannel.map Bug So I'm trying to read in a very large file using a mapped FileChannel. The file exceeds 2GB. A snippet of code is: long fileSize = 0x8FFFFFFFL; FileChannel fc = new RandomAccessFile("blah.huge", "rw").getChannel(); fc.map(FileChannel.MapMode.READ_WRITE, 0, fileSize); This throws a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you programmatically create a System DSN using Powershell or .NET? How do you create a System DSN in the control panel on ones PC using Powershell or .NET? A: This can be done with some registry edit. Refer this link: http://derek858.blogspot.com/2010/02/create-32-bit-system-dsn-with.html Note that for 64-bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Android ArrayAdapter tell all other views to refresh themselves I need all of the other views in my arrayadapter to check their attributes and return to a default attribute at certain times use case: listview items (a)(b)(c)(d) , when you touch (a) it's background turns black. This is done in the ontouchListener. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing variables on the same page * *The user enters a number and clicks submit. The number now shows up on the page. *The user is then asked if they would like to double the number. They click yes. *The doubled number now appears on the page. I am having trouble with part 3. Is this possible using just PHP? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configuring Notepad++ to run php on localhost? I am trying to get the option Run->Launch With Firefox; to open the file I am currently viewing in Notepad++ at http://127.0.0.1:8080/currentfile.php, but instead it just opens to current file directory in Firefox.. I've tried to edit the shortcut xml file in the Notepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Global Facebook login session accessible for all activities Hello everyone! Im currently developing an Android Application for mobiles using the official Facebook SDK. The first screen on my application is the LoginActivity. That activity is bringing up an Facebook login dialog, were the user can enter his facebook ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I can't change the default Python version from Apple supplied 2.7.2 to 3.2.2 (OS10.7) in Lion, have installed python 3.2.2 from python.org. It comes with a terminal command that is supposed to move this version of python earlier by updating my shell profile. When i run it, and then check my default python in Termina...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding element before a div with title attribute containing content of the div using JQuery I have: <li class="ingredient"> <div> <span class="amount">1 lb</span> <span class="name">asparagus</span> </div> i want to use jQuery to get: <li class="ingredient"> <img class="myImage" title="Yes!!! asparagus" src="/white...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash CS5.5 Library & Flash Builder 4.5 workflow Because of intricate animations for an iOS project, I'm kinda forced to use Flash CS5.5 IDE, but I'm trying to use Flash Builder 4.5.1 to code library movieClips. For the most part this is working; I'm making movieClips in the library, giving them class names I then e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate Create Table Script MySQL Dynamically with PHP I do not think that this has been posted before - as this is a very specific problem. I have a script that generates a "create table" script with a custom number of columns with custom types and names. Here is a sample that should give you enough to work from -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phpQuery behaving weird, changing HTML I want to process a template with a Google plusone button in it through phpQuery and I run into the following problem: require_once( "phpQuery.php" ); $p = phpQuery( "<g:plusone></g:plusone>" ); echo $p->html(); the expected output would be: <g:plusone></g:plusone> But instea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++: Why does casting as a pointer and then dereferencing work? Recently I have been working on sockets in C++ and I have come across this: *(struct in_addr*)&serv_addr.sin_addr.s_addr = *(struct in_addr *)server->h_addr; While this does do what I want it to I am a little confused as to why I can't do this: (struct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .htaccess query string to folder format I have a query URL with query string and I want to convert it to folder structured URL. For example: http://localhost/index.php?page=about-us http://localhost/index.php?page=contact-us how would I covert it to http://localhost/index/page/about-us http://localhost/page/about-u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL Subselect Limit What im trying to do was to list all categories and their posts but only limit posts per category. And exclude a category without any posts. I did this with two queries though, get all the categories that have posts, loop the results and get X number of posts per category ID. How can I do this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Timespan in Java and SQL? I want to save time intervals in my SQL table but I'm not sure what type to use in Java for this. What I need to store are durations like 12:33:57 or just minutes and seconds like 02:19. Any ideas what type I could use for java and for sql? I don't really need to make any calculations with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java .bin url for cloud server installation I am trying to install java on a fedora core on cloud server by doing so: wget -O /java/jdk-6u6-linux-i586.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u6-linux-i586.bin?BundledLineItemUUID=ACBIBe.lcAEAAAEa0f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a unique sequence of dates Let's say that I want to generate a data frame which contains a column with is structured in the following format. 2011-08-01 2011-08-02 2011-08-03 2011-08-04 ... I want to know if it's possible to generate this data with the seq() command. Something like the following: (obvious...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Loading Obj files in Libgdx not working on android The following code shows a torus slowly revolving and coming into display: package com.objloader.example; import ... public class ObjLoaderProg implements ApplicationListener{ String torus; Mesh model; private PerspectiveCamera camera; @Override ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UIButton in UITableViewCell stops UITableView from scrolling I've two buttons in each row the buttons are in a custom UITableViewCell designed in IB The cell has UIButton -- UIImageView -- UILabel in this order for each of the two columns each of these two buttons recieve proper touchupInside events but I can't scro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help managing many-to-one results for lookup I didn't see this exactly asked, so I'm hoping it wasn't. I have a table that has multiple columns with code variables and a table that has all lookup codes and descriptions for the whole database. Is there a way to join the lookup values so that everything stays on one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Click button from method that is outside the oncreate in Android The following is a basic striped down overview of one of my projects. I would like for a method outside of the oncreate to be able to click a button that is declaired in the oncreate but i cannot figure out how. Here is my code: I would like to be able...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What jQuery was exposed? jQuery is exposed via: // Expose jQuery to the global object window.jQuery = window.$ = jQuery; But there are two jQuery: var jQuery = (function() { // Define a local copy of jQuery var jQuery = function( selector, context ) { // The jQuery object is actually just the init construc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: synchronous messaging with STOMP over HornetQ I am trying to figure out how to do syncronous messaging using stomp with hornetq, or if its even possible. I have an async stomp client working, but I can't see how I would implement a sync version. On the server side, my acceptor looks like this: <acceptor name="stomp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What free JIT compilers are there today, and which is easier to use? I will start writing a JIT/interpreter for a small language, and would like to use some of the free JIT tools/libraries available today. What are my options (I only know of libjit, LLVM and GNU lightning), and which would be the easier to use (but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Determine the Work Items Fixed in a particular TFS Build when using Branches? We have begun using the following branching structure in TFS 2010: All changes so far have been performed in the Development branch, and all check-ins have been associated with a Task work item. The Tasks are all children either of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: My c program to remove lines from a text file works on a small file, but has a stacksmash error with a large file I am working on a program to filter a list of craigslist results; I want to find a relatively cheap room for rent. The finished program will remove lines that have a price over $600, and create a new fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ManageBean method don't works anymore because of FacesValidator? I was having some problem with password validation, which @BalusC help me out, here. But after I insert the validation code in my form, when I call the controller method, nothing happens. Here goes my JSF page: Register.xhtml <!DOCTYPE html> <html lang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does the "keypress" event handler not fire consistently? I am having a problem with this function. I cannot get it to fire properly. It does work, but when I highlight the quantity in the form and change the value (the value is initially set to 1), my stock level is 20, when I type in 21 it won't display the me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to copy files from file system to IntelliJ IDEA 10.5 I have just started using IntelliJ IDEA.I am really novice to this IDE, so please bear if my question sounds silly. I am facing a problem regarding copying of files from OS's File explorer to IntelliJ Project. I am using following versions: Operating Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I do an ajax post and have a master page webmethod handle it? I am developing a set of new pages for an existing (and large) web app and am making them much more HTML and JQuery-centric than we've done before. For example, there are NO server controls and I am not using ViewState - everything is done in stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }