text
stringlengths
8
267k
meta
dict
Q: Bookmark with date in the URL I use Google Analytics, and the first thing I want to check every day is the current day's statistics. But there's no way to bookmark the current day. The URL for any given day is: https://www.google.com/analytics/reporting/dashboard?id=XXXXXXX&pdr=20110921-20110921 You can see a date r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UTF-8 characters display differently after import to mySQL I have a mySQL database full of accented characters. The DB is populated periodically from MS Access 2010. In Access you'll see é è à Ü. In the export process in Access UTF-8 encoding is specified. Open the resulting text file in UltraEdit on my PC and you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hooking Python standard library modules Question I've written a replacement threading module for Python. What's the best method to go about hooking all uses of the usual threading module from the standard library with my own? The hooking should be opt-in, and on a per project, or per executable basis. When this stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Limitations on sending through UDP sockets I have a big 1GB file, which I am trying to send to another node. After the sender sends 200 packets (before sending the complete file) the code jumps out. Saying "Sendto no send space available". What can be the problem and how to take care of it. Apart from this, we need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iphone sdk Localizable.strings files displaying incorrecting in xcode 4.1 after upgrading After upgrading to iphone xcode 4.1 build 4B110F all of my localizable.strings files are showing up as gibberish in the xcode editor. I created these files using UTF-16. I can not find a way to tell the editor that they are U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: two or more dots in a django template after the variable In a django template, is it possible to have two (or more) dots after a variable? For example, say I have a list of objects that I first want to use a list-index lookup for and then once I have the object, I want to call its method for getting the absolute ur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Cell with Button Memory Problems I have a custom cell that contains a button in a table view. The button is used as a toggle to essentially serve as a "checkbox" for a user to check off certain items in the list. I was having the issue in which the buttons in these table cells seemed to be sharing memory loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implmenet the receive-response pattern in custom WCF LOB adapter So in the TryReceive() method construct the message object and return it to the engine which will be submitted to the message box. My scenario requires the receive-response message exchange pattern, in a way that adapter will send a reply back t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Div positioning fixed at margin-top:20px when scrolling up I have a div which I want to become fixed at 20px from the top of the window when you scroll up and 40px from the footer when you get the bottom. My code seems inconstant, there must be a better way? Page Link $(document).scroll(function () { if($(wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to hide the home controller path in action links Using the out of the box MVC application the action links under the Home controller are rendered as follows @Html.ActionLink("Home", "Index", "Home") > / @Html.ActionLink("About", "About", "Home") > /Home/About How do i make all action links that falls into the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: google chart vertical text not showing in JQuery UI Dialog I am using Google Chart API to display a graph. If I display the graph in a DIV on a page it works fine. However, when I display the exact same graph in a DIV in a Dialog Box created using JQuery UI, the vertical text does not display. Everything else is fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing a class containing overridden virtual methods to a dll I have an application and a dll, both written in Delphi 2006. I have an class that descends from a base class and overrides several virtual methods. The class is passed to the DLL via an exported method, the exported method only knows about the base clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Output friends list to json (include ID) with Mogli I'd like to convert the friends list to json (include both names and id's). Here is what I have... But it results in only a list of names. @client = Mogli::Client.new(session[:at]) @app = Mogli::Application.find(ENV["FACEBOOK_APP_ID"], @client) @user = Mogli::User...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vec3f class in Objective C just a quick question. I want to make a 3d game in OpenGL on a Mac but I'm not sure how to make a Vec3f class in objective c. I would really like to be able to set the class like, Vec3f *point = {1,2,3}; but still be able to treat it like a class. The only I things can think of is use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql fetch value transfer to an array Is it possible to transfer a fetch value to an array? For example in my database table I have a column named vehicle, and inside that column, it contains: vehicle1 vehicle2 vehicle3 All of that in one array. Now is it possible to transfer it to an array? (array())? Another que...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How browser's "suggestion list" works? Many websites use <input type='text'> element to get simple text data from their customers. You can configure your browser to remember the values you enter into these fields, so that it can suggest you back a list of values, to speed up your data entry experience. However, I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using NInject to find a class, but constructing the class with your own parameters I know this is not good practice. Here is some code that sort of demonstrates the problem (but doesn't actually work): public interface IBar {} public interface Bar : IBar {} public interface IFoo {} public class Foo : IFoo { p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The difference between type casting and using std::move()? I am just a bit curious about the new function std::move() that has just been added into the newest C++ standard. Finished reading an article about it and found out that the function's definition is namespace std { template <class T> inline type...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it safe to have a hidden display of mysql query on your live site I am doing a project with a team and some of my team make a hidden display to view the mysql query.Is it safe to do this on live?It's been a month that the site has it.Is it safe to use this kind of technique? <div style="display: none;"> SELECT * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Edit the nodes in a binary tree in Java Okay. I have a binary tree, and this is what I want to do with it: For each node in original tree: If it's not a leaf, replace it with a leaf node. Do a calculation on the original tree updated with the removed branch. Revert the node back to how it was (so now the tree is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add new row into listview? i have a listview with column ID and Barcode.. how to insert a new row into the listview when 'Add' button is click? The new data that we insert will also be saved into my database. btw, i am using Visual Studio 2008 C# A: Insert in Listview ListViewItem lstview = new ListView...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to Set Breakpoint in WinDbg My workflow follows. * *Configure the symbol file path and source code file path for WinDbg. *Open one source code file to be debugged later. *Press F9 and try to set breakpoint in the source code. *WinDbg pops up an error dialog, saying 'Debuggee must be stopped before break...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: use of mathematical annotation as factor in R I refer to my previous question, and want to know more about characteristics of factor in R. Let say I have a dataset like this: temp <- data.frame(x=letters[1:5], y=1:5) plot(temp) I can change the label of x easily to another character: levels(temp[...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replace the default MessageBox When I use Ext.MessageBox.show({...}) it show the box like IMG2 default. I want to use the box like IMG1 and how could I replace it. Thanks!!! A: you should use loadMask for your extjs component. // Basic mask: var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."}); m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Linq for files user has read access to How would I use Linq on list.Items = directoryInfo.GetFiles("\\server\share\folder\"); to include only the files the user has read access to? ... So far only suggestions are using try/catches, or APIs that are obsolete in .NET 4.0? I'd prefer something to read the ACL's and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Google Plus Application Dev Language Does anyone know what language the google plus apps need to be written in? A: The APIs, themselves, are REST-ful web-based APIs that simply use standard protocols such as OAuth that are built on top of HTTP, HTTPS, JSON, XML, and other web standards. Code written in a variety of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing defaults in Rails ActionMailer How are you testing these lines in your ActionMailer specs? default 'HEADER' => Proc.new { "information" }, :cc => "asdf@asdf.com", :from => "asdf@asdf.com", :to => "asdf@asdf.com" A: Something like that: # notifier_spec.rb require "spec_helper" describe Notifier do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CSS for setting overflow to scroll not working I have a div using the following class: div.textStatement { height: 70px; overflow: hidden; } When the user clicks a link ('Show More'), the div expands to show more text and the 'overflow' should get set to 'scroll' so that the user can read all the text, in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tab requirement using CSS and Javascript I have the below requirement: Front end for a big database which stores details about the sports students are in a school. For example student xyz plays cricket so database will store cricket details for him, student pqr plays soccer so database will store soccer details for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create certificate object using PKCS 11 I am currently working on a project using PKCS#11 to interact with an USB Token. I have read PKCS #11 v2.20: Cryptographic Token Interface Standard and I can create other objects using the C_CreateObject function, but when I create a Certificate with this code then the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: License of fonts included with Windows? I'm wondering what is the license of the fonts included with Windows. Does anybody know where I could find the EULA for them? In general, can I freely use these fonts in my open source software? In general, I know I cannot distribute the font file itself, but how about simply ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Set selected row for a given value in UIPickerView iPhone In my app, I ask a worker to choose a letter from the alphabet (for example A) and the alphabet will have some explications that will appear in a UIPickerView with 3 # rows. I want my UIPickerView to be display contents based on the indicator that has been ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animate the number change in UILabel I have placed a Cocoa Touch UILabel, which displays numbers. What I want is to animate the text in UILabel when number changed. So that the user can be easier to notice the number is changing. The animation can be very simple, for example, when the text is changed, it first zoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Only some png images display, others don't for no apparent reason I have some code which randomly displays a given .png image and its title.The title logic is working fine. However, for some reason, only two of the four images display. I've tried changing the order just in case, but only those two images, pic_c and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to set download speed limit for concurent downloads (using cURL) or they will take equal shares? My website (run under ubuntu 10,04) enables users to grab files from web links .. Do I need to set a download rate limit per single file , so all can download at the same time ? And also , do I need to set a g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cython & Hadoopy compiling error.. any ideas on a fix? I'm trying to run Hadoopy, but am getting a compiling error on OS X: ImportError: Building module failed: ["CompileError: command 'llvm-gcc-4.2' failed with exit status 1\n" I have /Developer/usr/bin in my $PATH, and am running latest version of XCode on OS X L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I force the rerun of the app's initial rule? I have an app that has a login/logout functionality. Upon logout, I am clearing the entity variable. How do I force the app to rerun the initial rule and display the login form? A: You can have the initial rule run again by carefully crafting the select statemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL: Using a reference id, see if data matches across that id I have the following table id | data | reference_id 1 Jacob 3 2 Apples 3 3 Henry 4 4 Pie 4 5 Jacob 5 6 Pears 5 What I'm trying to do is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In XAML is it possible to set a ResourceDictionary and Style in UserControl.Resources side-by-side? Is it possible to set an inline style when I've already set a ResourceDictionary? Here is what I've already set... <UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any sure fire way to check file existence on Linux NFS? I am working on a Java program that requires to check the existence of files. Well, simple enough, the code make use calls to File.exists() for checking file existence. And the problem I have is, it reports false positive. That means the file does not actually ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do/Undo using command pattern in Python I have read that using command pattern is one of the most popular ways to accomplish do/undo functionality. In fact, I have seen that it's possible to stack a bunch of actions and reverse them in order to reach a given state. However, I'm not quite sure how that can be done in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: logout not working in IPAD Really weird think happening with my site! I have a "welcome {{user.email}}" in the top of my base.html page! So far was working fine, but when I tested the site in a IPAD2 and Iphone4, I saw that, the login part wasnt working right!What I mean by that is, if I am logged in the welcome me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does this program end in an infinite loop? How can I tell? I run the program and all I see is white space below Netbeans. At first I thought it did not run then I ran four of the programs by accident and Netbeans crashed. So my first question: is it an infinite loop, and if so why? From what I can see it is int = 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server query optimisation I inherited this hellish query designed for pagination in SQL Server. It's only getting 25 records, but according to SQL Profiler, it does 8091 reads, 208 writes and takes 74 milliseconds. Would prefer it to be a bit faster. There is an index on the ORDER BY column deployDate. Anyone h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I register for an event on an object without the need for an anonymous class? I'm creating an android app. I have a Dialog, and I want to handle the onCancel() event without using an anonymous class because it's cleaner and there are class variables I need access to from the main Activity class. I'm looking...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PlaceRequest with parameters to Popup Presenter I trying to pass a parameter in the placerequest to a presenter that will be a popup, but, the i receive empty parameters in the popup presenter.. am i forgot anything? AddProjetoPresenter public class AddProjetoPresenter extends Presenter<AddProjetoPresenter.AddProjet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make a navigation bar's color any color I want? I created a navigation bar programmatically, and as far as I know, you can only make it "UIColor BlackColor" or "WhiteColor" or whatever. So the options are limited. Is there a way to be able to choose from a color palette or something, or use RGB sliders or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help setting up simple Virtual Directory in IIS7 Noobie question... Using IIS7, I am trying to create a virtual directory for the folder that contains my video files, but can't get my head around how it is done. For example... The existing address is http://www.mydomain.com/members which points to C:\wwwroot\my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import third partiy control to own assembly in c# I have a bunch of winform control libraries in my visual studio 2008 after I installed a third party. How can I import those controls to my own custom library? For example Instead of using ThirdPartyAssembly.ControlName I can use MyAssembly.CotrolName (all controls ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems in php to add products in a shop cart I have these 3 classes: shopping cart->orders->products. First I add a product, when I add the second, I compare with other products in the array products in the object orders. if count($product)==0, then add the firs product if count>0, I compare the id´s of the produc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing table info with Rails migration In my original migration, I had this: create_table :credit_purchases do |t| t.column :amount, :decimal, :precision => 8, :scale => 2, :null => false t.column :time, :datetime, :null => false end Which produced the following MySQL table definition: CREATE TABLE `credit_pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Catching SocketTimeOut error and responding I have an activity that will require jsoup to connect to a url. The problem is every now and again i will get 09-21 23:11:56.140: WARN/System.err(5725): java.net.SocketTimeoutException: Connection timed out 09-21 23:11:56.140: WARN/System.err(5725): at org.apache.harm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET displaying fixed DIV on top of page I'm using VS2010,C# to develop my ASP.NET web app, I'm going to insert a fixed header on top of my pages so that my content area has a smaller width and these fixed DIVs are always on top of my page, in this way contents should start displaying from bottom of DIVs and not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UPDATED: cannot pass NSDictionary to UITableViewCell textlabel Updating this Thread as I have had some other help solving why I was not able to access the NSDictionarys values outside the method... I was initalizing it wrong thus autorelease was being called at the end of the method so when I was calling it outside ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS: How to ascertain the CPU type, e.g. A4 or A5, or instruction set architecture arm6 or arm7? Does Apple provide an API that gives access to this information? Does the ARM have an equivalent to the x86 CPUID instruction that I could use in an asm block? Thanks. A: Erica Sadun has written a number of useful queri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Which is the better way of validating user input, DB Constraints or Javascript? I want to validate user input on a Web Form, like valid numbers, date etc. Which one is the better way to validate, using Javascript functions or using Constraints in SQL Server? I want to reduce the code as much as possible and want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Twitter Equivalent to Facebook Comments? My site needs the Twitter equivalent of the Facebook Comments plugin... You may be aware of the fact that Twitter only searches back about a week, so comments would be lost just a few days after being made! Is there a service that would allow me to show the tweets that conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Caching data in hidden & dynamic tabs of tabview In my application, I have groups & the list of groups specific to a user are shown to him through a left column list, in a similar fashion as google groups(shown in image below). I want that as the user moves on with switching to different groups shown in the list, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I add bookmarks in Xcode 4? Can I add bookmarks at certain code lines in Xcode 4? I'm currently using breakpoints for this purpose, but when I add/delete some code before the positions of the breakpoints, they don't shift accordingly, and therefore no longer point to the original lines. I have to manually adjust...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using update in a firebird stored procedure but data not changing I have the following stored procedure. I found a bug in my code that had resulted in bad data. I wrote this procedure to fix the data. CREATE OR ALTER PROCEDURE RESET_DISABLED_COUNT returns ( person integer, game integer, disabled integ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android: Get and Open Email and remove Bluetooth i want to choice a app to send email:only email app to send my email,i have read How to open Email program via Intents (but only an Email program) i used intent.setType("message/rfc822") ,it very well,but Bluetooth and email give me to choice,i want to remove Bluet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom UINavigation image disappears when app comes back from multi-tasking I have a category to display a custom image in an app's UINavigationBar. When the app comes back from the background the image sometimes disappears and all I am left with is a white navigation bar with buttons. The category I'm using is belo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate first start Make application slow I use Hibernate for my desktop swing applications.The first database access makes the application slow,not responding.I think it is because the hibernate's libraries takes time to load.This problem occurs specially at the loging.it takes time to go from loging page to home...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can not active click event after animation of the view this is the structure of my view linearlayout orientate = horizontal listview1 listview2 listview3 and I set listview1.start(animation) but, after animation the click event can not work.but it will effect on its origin position. I also animation.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to break out of the loop only if a certain case is met, but then continue the iteration? I realize that the title may be somewhat confusing, so I apologize. Basically, this is my code: while i < 5: do stuff if i == 3: print "i is 3" break Now all that sounds pretty simple, right? Except I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: LINQ: When to use Compiled Queries? I'd like some expert advice on this. I've used compiled queries before, but for this particular case, i'm not sure whether it's appropriate. It's a search form where the query changes and is dependent on what is being searched on. static Func<DBContext, int, IQueryable<Foo>> Sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Weighted win percentage by number of games played Im looking to create a ranking system for users on a gaming site. The system should be based of a weighted win percentage with the weighted element being the number of games played. For instance: 55 wins and 2 losses = 96% win percentage 1 win and 0 losses = 100% win...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Removing/renaming files in python I am trying to figure out how I could remove certain words from a file name. So if my file name was lolipop-three-fun-sand,i would input three and fun in and they would get removed. Renaming the file to lolipop--sand. Any ideas on how to start this? A: Use string.replace() to remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my mux not producing an output in Verilog? I've written what I thought would be a working MUX, but my output is stubbornly staying at high-impedance. Can someone please provide me with guidance? module mux_in #(parameter WIDTH = 1, parameter LOG_CHOICES = 1) ( input [LOG_CHOICES - 1 : 0] choice, inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using modulus in for loop I am trying to understand how to repeat loops using the mod operator. If you have two strings, "abc" and "defgh", how can % be used to loop through abc, repeating it until the end of defgh is reached? Namely, what is the mod relationship of the length of abc and defgh? I don't really under...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: change schema from indexed field to stored field without re-index in Solr We want to change schema from indexed field to stored field, for example orig one : <field name="cat" type="string" indexed="true" stored="false"> new one: <field name="cat" type="string" indexed="false" stored="true"> The tool or commands to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Special box -activated when clicked, deactivated when clicked another places I wonder how can i do div box, which when it is clicked then something will happen to the time when we click in some other place. Notice that when we click more than one time in our box nothing special will heppen. A: $('#theDiv').one('cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple AudioTracks, Single Thread or Multiple? In my application, I will be creating multiple Audio Tracks, some of which will need to play simultaneously. I'm going to use MODE_STREAM and write data in as the app runs. Sounds are going to be dynamically generated, which is why I use Audio Track as opposed to anyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I have two R generated classes. How do I fix? I originally had my app all in one project. I decided to rearrange things so I could have multiple projects referencing the same code, so I moved a package to a plain java library, and some others to an android library. The main app originally had two packages; com.stuf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vertical menu in css not formatting correctly I am trying to show the menu as follows | HOME | | GAMES | | PLAYERS| |SCHEDULE| The problem is that my menu is showing like this | HOME || GAMES | |PLAYERS||SCHEDULE| and also.. how can I set the width of it to be consistent?, right now it takes only the length o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting day value of last 7day from sqllite even if there is no record in database i need some help in getting the day value of last 7 days from SQLite. i currently able to get day value from the SQLite if there is a records. wat i need is to show the last 7 days if the guy did something. example, if the guys only d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recognizing route with regex? Let's say that I have a postback url that comes in as http://domain/merkin_postback.cgi?id=987654321&new=25&total=1000&uid=3040&oid=123 and other times as: http://domain/merkin_postback.php?id=987654321&new=25&total=1000&uid=3040&oid=123 If my route definition is map.purchase '/merki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About java Runtime self-written public API compatibility I just encounter a real problem about changed API. And i want to know more about this topic. Using the following example as a demo. There are 4 simple classes, Child class extends Parent. PubAPI is the class which provides public method for cient use. Clie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How is this memoized DP table too slow for SPOJ? SPOILERS: I'm working on http://www.spoj.pl/problems/KNAPSACK/ so don't peek if you don't want a possible solution spoiled for you. The boilerplate: import Data.Sequence (index, fromList) import Data.MemoCombinators (memo2, integral) main = interact knapsackStr knap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: photo gallery using Composite c1 cms I just started using composite C1 CMS. And I have built one sample site where I need to build the photo gallery. I was able to upload single single picture but confused to create gallery. I also need to upload multiple pictures one at a time. So,I will be very thankful to the sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get stream from absolute Uri I'm working with Windows Phone 7 and I have a very difficult problem. Please help me ! I want to get a stream form an absolute uri (from web) of a png image. But GetResourceStream method work only with relative uri. Then I found imagetool form http://imagetools.codeplex.com/ but to now m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORA-01427: single-row subquery returns more than one row update...?? Help? My Query returns this error ORA-01427: single-row subquery returns more than one row update, This is my query Update Table_b B Set B.Material_Desc = (Select A.Material_Desc From Table_a A Where A.PartNo = B.PartNo) I have two different table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Encoding a binary tree structure to json format I have a python binary tree class like this: class BinaryTree: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right def __unicode__(self): return '%s' % self.data and I have tree...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: did javascript or jquery has method as Server.UrlEncode() in asp.net did javascript or jquery has method as Server.UrlEncode() in asp.net eg:when using $.get("a.aspx?pk=1&k="+kvale, function(data) { dosth(data); }); url must encode A: You can convert any string to a URL-encoded str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setting MIME type in asp.net I have a site and in the Chrome inspector, I get this: Resource interpreted as Font but transferred with MIME type application/octet-stream. Where do I setup the MIME types in the asp.net framework (not through the IIS console) so that I remove this warning? I'm using a font I downloade...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Getting NSDecimalNumberOverflowException Error I'm getting an error at line: if (! [self.event.managedObjectContext save:&error]). It only happens when the user does not enter another number into the textField, so it is 0. - (void)viewWillAppear:(BOOL)animated { self.textField.text = 0; [super viewWillAp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What can I do to Makefile.PL so that when I run make test it runs the test suite with dancer environment set to 'test'? I would like to be able to just type "make test" in a dancer app toplevel source directory (the one that was generated by "dancer -a appname") and have it run the tests with the environment set to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: getting checked checkbox display name I have a set of checkboxes: <input type="checkbox" value="111" name="checkbox" id="1">india <input type="checkbox" value="121" name="checkbox" id="21">pak <input type="checkbox" value="131" name="checkbox" id="31">china <!-- ... --> <input type="checkbox" value="141" name="chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set proper file permission to developer in this setup? I am using Arch Linux on a web development machine, and have a multi-vhost setup with the root directories of each vhost under: /var/www/vhosts Apache2 is using the user/group: http/http If I setup the files to be owned by my user and the http group ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: (Non-interactive/Line-oriented) command line email inbox viewer tool, configurable for any imap? After using Taskwarrior to manage my todo list from the command line, I'd like to do something similar with email. A program that behaves like the below. Am I imagining something that doesn't exist, or can existing tools...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ui datepicker not working as expected on click I have the following piece if code: $(".ui-datepicker-calendar tbody tr").live('click', function(){ $(".ui-datepicker-calendar tbody tr:nth-child(" + ($(this).index() + 1) + ")").css("border", "1px solid Green"); }); but when I click on a date, the green box isn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NoClassDefFoundError: wrong name I wrote a java program to test RESTful web services by using Netbeans7.0.1 and it works fine there. Now I wrote the build.xml file to compile the code and when I try to run the generated .class file I always got this exception: Exception in thread "main" java.lang.NoClassDefFoundErro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: window.openDatabase throws SECURITY_ERR in a WebKit-based OSX App I'm writing a webkit-based osx application with a bundle of javascript files. I setup the webView like that: webview = [[WebView alloc] init]; [webview setPolicyDelegate:self]; [webview setFrameLoadDelegate:self]; [webview setUIDelegate:self]; [webvi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set base language other than English in iPhone app? I am implementing an app which is going to have localization. But in this case I need to set base language as Portuguese and not English While implementation my app is going to be in English and after that when i change settings to language Portuguese it wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Form not Posting in Django I'm trying to do some pretty basic form posts with Django, but whenever I try to click on the button to submit the information nothing happens. No errors or messages of any kind show up in terminal or in developer in Chrome. There is no JS on this page just straight html: <form method="p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When loading view tab-bar not displayed - noob question I Have a TabView control, and when the user clicks on the tab item, the view will load. When the view is loaded, there is a button on the view, and when i click on the button, another view gets loaded, i used the following code to load the view: NextView *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the reason for this Valgrind error? Valgrind is complaining with a substr invocation. string Message::nextField(string& input) { int posSeparator = input.find_first_of(SEPARATOR); string temp; temp = input.substr(0, posSeparator); //Error points to this line input.erase(0, posSeparator + 1); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: incorrect mysql syntax uploading form information into database This is the error i am receiving and this is my code. I am not sure what the error is since line one is only my ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: new vs. new (featuring malloc!) In C++, it's standard to always use new over malloc(). However, in this question, the most portable way of overloading the new operator while avoiding platform specific code is to place a call to malloc() within it to do the actual allocation. When overloaded, constructors are called...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I/O C++ Reading from a text file In my program I'm inputting a file and inside the file is something like this: 11267 2 500.00 2.00 ...that is one line. There are more lines set up in that same order. I need to input the first number, 11267, into actnum. After that, 2 into choice, etc. I simply lack the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }