text
stringlengths
8
267k
meta
dict
Q: How to print or echo rows when using COUNT(*) and SUM() I generated the below query for php using PHP-MYADMIN, My question is how to print the 30 rows it generates? when i use "see quote" it just errors out. i am trying to echo the rows with search term and count in < div >< /div > tags each in its own. * *Fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The program compiler won't let me use "else" in the last 2 cases and I can't see why I can't find why cases 2,3 wont let me use else for the category selection but it lets me use it in case 1. Where is it falling apart? What code needs editing? I fixed the elses I think but I got a new error that I've never seen bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How can I set the duration of this jQuery animation proportionally? I've created a quick test to show what I'm trying to do: http://jsfiddle.net/zY3HH/ If you click the "Toggle Width" button once, a square will take one second to grow to full width. Click it again, and it will take one second to shrink down to zero ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Prevent colorbox instance from closing Is it possible to prevent colorbox from being closed? I am using as a loading screen for a server side processing script and don't want it to be closed until finished. $(function(){ $("#songPayBtn").click(function() { $("#ccResultDiv").show(); $.fn.colorbox({wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CXX0030: Error: expression cannot be evaluated The short question: Why am I see this in the Locals window for my IWICImagingFactory object while in my destructor? The long explanation: I am creating a IWICImagingFactory object in my CreateDeviceIndependentResources() function: if (SUCCEEDED(hr)) { hr = CoCreate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Very new to jquery - why doesn't this work I simply want to shift the .icon to the right. trying to animate .icon by the amount of position().left My code isn't working and I don't know why. I bet its very simple!! <script> $("li.menu-item").hover(function(){ var pos = $(this).position().left; $(".icon").ani...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: why does this cause :show to get no layout at all: layout 'admin', :except => [:show] why does this cause :show to get no layout at all: layout 'admin', :except => [:show] Is this the intended behavior? I'm forced to put a render :layout => 'application' in an otherwise empty def show end. Shouldn't the show action...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why my images are taking too much time to load? I've read about the LowProfileImageLoader. It will only load the image when the user can see it and will avoid blocking the UI thread. I added it and tested on my application. All 25 images are from the exact same URL. With the default image it took a little to load bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Cannot generate a Pages controller in the Rails 3 tutorial I am working through the Michael Hartl Rails 3 tutorial, and I am currently on Chapter 3. The tutorial asks me to generate a Pages controller with actions for a Home page and a Contact page using the command line: "$ rails generate controller Pages home cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print a variable in Xcode I am new to Xcode. I have variables x and y as random numbers from 1 to 100. I want the screen to print x and y when a button is pressed. How do I do that? my code is: - (IBAction)printtwonumbers:(id)sender; { x = arc4random() %100; y = arc4random() %100; label1 setText: [x]; label2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Continuously scrolling Gallery? I have a Gallery object that scrolls from left to right and back again. However, I would like to make this Gallery circle back on itself, that way when I get to my last View, the very first one is next and I can just keep scrolling. Any ideas? Thanks. A: Galleries use an Adapter t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I manage a website with Xcode? I'm starting a new web project, and I'm looking to learn more about Xcode at the same time, so I'm wondering if there's a good way to manage the project through Xcode? In an ideal world, I would like the "Run" button to upload the final product files to the web server (or copy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Securing the Identity of the Source Alice wants to know from Bob the location of a sensitive resource. Bob Kindly tells Alice the location, but how can Alice be sure of the identity of Bob? Bob is a OpenBSD server, and the source of data is a Python/C++ App. My Idea was: Alice Knows Bob's public Key. Alice encrypt ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What alternative syntaxes are there for expressing XML? What human-readable and human-editable syntaxes exist that can be automatically converted to and from XML with no loss of expressivity. In other words, an updated version of this list. The three syntaxes mentioned there are: * *SOX *PYX *SLiP Are there o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Copy data from MS Access to MS Excel using Python I've been spending the better part of the weekend trying to figure out the best way to transfer data from an MS Access table into an Excel sheet using Python. I've found a few modules that may help (execsql, python-excel), but with my limited knowledge and the module...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add google chrome omnibox-search support for your site? When I enter some of URLs in Google Chrome omnibox, I see message in it "Press TAB to search in $URL". For example, there are some russian sites habrahabr.ru or yandex.ru. When you press TAB you'll be able to search in that site, not in your search engin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "172" }
Q: PDF Reader/editor in Ajax/ASP.Net I am working on project that allows to read document within the browser without the need to install software , It's a part of a management application for companies. I tried out to work with iTextSharp ,PDFSharp , but these labrories don't allows you to do what I want to do.It's jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dereferencing type-punned pointer will break strict-aliasing rules I have a unsigned char pointer which contains a structure.Now I want to do the following unsigned char buffer[24]; //code to fill the buffer with the relevant information. int len = ntohs((record_t*)buffer->len); where record_t structure contains ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Avoid regenerating files that won't change I have a Makefile with several rules of this form protolist.c: $(PROTOCOLS) Makefile src/genmodtable.sh $(SHELL) $(srcdir)/src/genmodtable.sh \ $@ $(filter-out %Makefile %genmodtable.sh, $^) As the name implies, protolist.c winds up containing a list of all the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I get tooltip to hover on top of texboxes? Hello again dearest Experts, I am still having issues getting tooltips to work correctly. The code below works correctly as far displaying the tooltips. The big issue is that it expands the textbox, making other textboxes lose alignment. What we would like to is to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jsp tag confusions i am new to jsp, I am currently studying an example i got from online. some tags confused me. <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <html> <head> <link href="<s:url value="/resources/main.css"/>" rel="stylesheet" type="text/css"/> <ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need a Way to Disable IE9 Browser Caching I have a Flash application that sends a getURL request for an image file every 60 seconds. This works fine in all browsers except IE9 with Internet Option set to automatically check for newer versions of stored pages. I setup Charles proxy (http://xk72.com) to watch the req...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: error message for test_ifinteger I keep on getting this error message: "Microsoft JScript runtime error: The value of the property 'test_ifinteger' is null or undefined, not a Function object" <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <asp:Content I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to set the click event for 2 images in jQuery I have two images with the title "Show Options" it looks like this: <a class="io-content-pane-header-button-right" style="right: 41px;"><img class="io-content-pane-header-button" src="/document/c947bf0e-0144-4fc8-8a33-ce0d0d698384/latest" title="Show Options"></a>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax loaded div with autopostback I have a page that runs a jquery onclick event. The event loads an an external .aspx file into a div. The page that's being loaded has a drop down list with an autopostback attribute that passes the selected item to a label. Everything works fine except that the .aspx file that's b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: -[UINavigationController pushViewController:animated:] crashes with no error in console Update I swapped out completely different code for pushViewController, and it is still crashing... seems like pushViewController is not the culprit. Here is what I added instead: NSString *videoURL = [[NSString alloc] initWithFor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate Data Table in any wpf control The reason why I am having a hard time populating this table is because the table get's created dynamically: MySql.Data.MySqlClient.MySqlDataReader selection = mySql.QuerySelect(textBox1.Text); //textBox1.Text containts the text of the query to be executed DataTable table = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does NSNumberFormatter not accept plus number if(![myNumberFormatter numberFromString:[tempColumn objectAtIndex:j]]) { numericalColumns[j] = NO; if(j == 8) { NSLog(@" non numerical value in column 8 i = %d object = %@ ", i , [tempColumn objectAtIndex:j]); } } What I find: 0 g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSDecimalNumberPlaceHolder Leak I have an iPad app that I am testing in Instruments before beta testing. I have gotten rid of all memory leaks except one, and I can't find any information on it. I am baffled as to what to do, since my code never mentions the leaking object which is an instance of NSDecimalNumberPlac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 32bit MAPI-based app running under 64bit Outlook? I have an app using 32bit MAPI. Now I want to run it under a target system with 64bit Outlook installed. I know the app cannot work with the 64bit MAPI system. So I wonder if there is a way to install a 32bit MAPI subsystem, or some hotfix on the target system so tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does JavaScript hook WinRT events? Suppose I'm writing a WinRT app with both JavaScript and C# code, and I want my JavaScript code to hook an event on my C# object. I know that's supposed to be possible, but what would that JavaScript code look like? How are events (however the concept of a CLR event is represen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Represent QTabWidget's tab text in Qt StyleSheet file? How can i set the font size of the tab text for a QTabWidget , with Qt's StyleSheet file ? I just don't know "what" widget is that QTabWidget { font: 10pt; } wasn't helping. A: It's QTabBar. Have a look at the Customizing QTabWidget and QTabBar docs for info....
{ "language": "en", "url": "https://stackoverflow.com/questions/7630198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining XML Parent Style of Gradient / Shape / Corners How can I define an easily reusable base shape (or gradient, or corners) in XML? I have a dozen or so drawable gradients that will be the same other than the start and end colors. I was hoping to define the identical stuff somewhere else and have an XML file fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to use Selenium to store values between tests Selenium has the ability to temporarily store data items and then later retrieve them in subsequent tests, e.g. storeText | @id='ctl00_ContentPlaceHolder1_FormView1' | someValue This works well within a single test and also between tests in the same Test Suite when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Create multiple arrays based on frequency of coordinates in an array Using JavaScript, I'd like to split one big array of coordinates into smaller arrays based on coinciding points. I am not 100% sure how to write the following in code but it describes what I'm attempting to achieve: * *Iterate through the array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows Phone 7 Stock Pivot Control Slow? I have a stock unedited version of Mango's Pivot Application and when I goto run it the control it really slow, is there a way to speed this up? By slow I mean, when I am running my finger across the screen multiple times fast - as I would do on the iPhone it's really slow I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting with Regex in Yahoo pipes I am trying to use Yahoo pipes and remove everything from "Article" till the end of the page. If I use Regex exp Article.+ I can extract everything till the end of line which is till "2011" . But I need to extract till the end of the page which is till "url.replace" What am I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django OneToOne Field Now I'm working one url mapping. Let's say I have three classes, company, user, and store, and my goal is that their urls will be in the same hierarchy. Since they are the same hierarchy in urls, I have to create a class url_mapping to ensure there is no duplicate name. Let's me give a more con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: multiprocessing and BaseHTTPServer I am trying to develop a HTTPServer using Python's BaseHTTPServer and multiprocessing. I am multiprocessing in order to execute multiple Python scripts simultaneously. Please note that the Script1 is just a simple script having a while loop printing time.asctime() for 5 seconds The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Printing out values of a dictionary line by line in Python I have the following code here: tel = {2: [[0, 0, 1, 1], [0, 1, 0, 1]], 3: [[1, 0, 1, 1], [1, 0, 1, 1], [1, 0, 0, 0], [1, 0, 1, 1], [1, 0, 1, 1]]} for i in tel.values(): a = ''.join(map(str,i)) print a The dictionary tel consists of keys which ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appending Bytes puts spaces I'm trying to loop through an array of byte and copy the contents to a new list of bytes, and display them back. please see the code below. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myByte() As Byte = New Byte() {65...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does DataOutputStream.writeUTF() add additional 2 bytes at the beginning? When I was trying to parse xml using sax over sockets I came across a strange occurence. Upon analysing I noticed that DataOutputStream adds 2 bytes in front of my data. Message send by DataOutputStream: 0020 50 18 00 20 0f df 00 00 00 9...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: CSS webkit radial + iPad (Safari Mobile) not working I'm puzzled at the moment. I got this gradient background-image: -webkit-radial-gradient(50% 65%, ellipse cover, #f2f2f4, #201935 55%); It works on Safari, works on Safari changing the User Agent to Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Explaination of while(false !== ($f=readdir($d))){ I have just started practicing OOP in php through the book Concepts, Techniques and Codes. Unluckily I have never worked with directories and files in PHP and feeling difficulty to understand this condition here is the full code function DirectoryItems($directory){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Escape regex in .NET? Essentially what i am doing is finding a piece of text in a textfile. The text is user specified so before i stick it into my regex expression i need to escape it all so . are \. and that something like {0, 3} is the string literal instead of part of the regex expression. Is there a function i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Play audio and video with gnonlin I've been messing around with Gstreamer and Gnonlin lately, I've been concatenating segments of video files but when I dynamically connect the src pad on the composition, I can choose either the audio or video portion of the files, producing silent playback or videoless audio. How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting up OGRE with Eclipse on Ubuntu I've just begun to wade in the waters of OGRE to introduce myself to game programming with C++ (I had done some Unity prior). I'm having a bit of difficulty setting up the tutorial application as specified here: http://ogre3d.org/tikiwiki/Setting+Up+An+Application+-+Eclipse+-+L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lazy Expiration in Memcached I read this - How does the lazy expiration mechanism in memcached operate? So I have a question. Is it possible/recommended to make a program myself that periodically checks for all items in memcached, sending GET requests for each item so that expired items are removed? The reason I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: xslt sort output xml I'm trying to find a solution to the following problem. I'm developing XSLT transformation (which is now about 40KB big) that is transforming quite complex XMLs into a quite simple structure which would like this: <Records> <Record key="XX"> </Record> <Record key="XX1"> </Record> <Record key="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: java.lang.NoSuchMethodError for method on the build path I have a basic Android project created in Eclipse Indigo. I have a third-party library on my build path, and it is called is used when I instantiate a class from that library in my initial activity. Although the app build just fine, I encounter the following e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error Uncaught out off memory when I use persisten object to save data on Blackberry? I use Persisten Object to save data but when I run my application on Simulator, have an error dialog Uncaught out off memory and run on real device, it take very long time to load and run. What did I do wrong? Please help me A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple instances of JQueryUI Autocomplete on same Pyramid page I have a working JQueryUI Autocomplete input widget working nicely with my Pyramid backend. The autocomplete posts its request.params['term'] to the same URL as the page its on, and Pyramid uses request_param='term' as a route predicate to send the te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting XML feed and outputting Hello I would like to get the XML feed for my site: http://buildworx-mc.com/forum/syndication.php?fid=4&limit=5 And display them in this format: <ul> <li><a href="linktothread"> Topic 1 </a> </li> <li><a href="linktothread"> Topic 2 </a> </li> <li><a href="linktothread"> Top...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Advancing slideshow in jQuery I use this piece of code from tutorialzine: $(window).load(function(){ // The window.load event guarantees that all the images are loaded before the auto-advance begins. var timeOut = null; $('#slider_navigator .arrow, #slider_navigator .dot').click(function(e,simulated){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 template not loading in jQuery UI Tabs I have a Profile in my Rails 3 app. When the Profile is viewed, the Profile's about information shows in a div container by default. What I want to do is replace the "about" information in the div with messages from the User when a "messages" link is clicked. (The messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Global Java Servlet Filter, is it possible? I'm writing a project for academic purposes which among other irrelevant stuff, includes writing a filter which monitors servlet/jsp response times. The thing is that the filter should work on every deployed web application in the server and not only over a specific one, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Add Change Item order ribbon in Sharepoint 2010 I want to add Change item order ribbon into ribbon panel. I have created feature and activated, however i still cant see the item order ribbon. Can anyone help me with this? below is my code <?xml version="1.0" encoding="utf-8" ?> <Elements xmlns="http://schemas.micros...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert Multiline into list I have extracted a set of data from HTML page and copied to a variable. The variable looks like names=''' Apple Ball Cat''' Now I like to join each line into a list so that I can access any line I want. Is there any way to do that in Python A: Using splitlines() to sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Including in c++ program in Ubuntu OS I have a small program that uses "trying to use" #include <queue>. I use Ubuntu OS but it says: fatal error: queue: No such file or directory Any ideas why, or what I need to do to make it work? #include <queue> using namespace std; int main() { queue<int> Q; Q.push...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having problems linking with v8 on windows I'm using Visual Studio 2010 on a 64-bit Windows 7 machine. I've pulled v8 source from SVN, built it with no problems (wich arch=x64), but I still can't compile my project that tries to use v8. Here is a sample code that produces that same error : #include <v8.h> int main...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AFNetworking Post Request with json feedback I am using AFNetworking and creating a post request for which I require json feedback. The code below works however I have two main questions; where do I release the ActivityIndicator Manager? The second question is this code correct, being new I get confused with blocks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: shouldStartLoadwithRequest not getting called in subclass I have a view controlled app. On my xib I have no webviews but I do have buttons that bring up classes that have webviews. So hit button one and a uiwebview pops up so on and so forth. Now in one of my classes I pull up a remote webpage that has a link on i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP class method called by jQuery I'm fairly new to jQuery and OOP in PHP, but what I have is a PHP Object that has an array $array[0] = "a" $array[1] = "b" $array[2] = "c" $array[3] = "d" and a select box in my HTML <select class="box"> <option value="1">First Letter</option> <option value="2">Second Letter</optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: E4X Parsing with HTTP Request Response XML I put together a simple XML schema for a directory (address-book) markup system. The basic structure is as follows: <?xml version="1.0" encoding="UTF-8"> <directory xmlns="http://example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: Send $_POST data to my Class? I'm trying to send my $_POST data to a class of mine for processing... but it doesn't seem to matter how I send it, PHP is telling me: Trying to get property of non-object Class method: public function test_me_out($postdata) { if(isset($postdata->price)) { return "t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some good methods for hashing passwords in an Android app? I am creating an app that requires the user to register with a remote server, but I want to hash their password before sending it off to be stored in my database. I tried using the jBCrypt library, but it created a long hang time while hashing. Are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL & PHP leaderboard query I have a set of players and I want to select the top 5 scores from the tables and print out the username and scores in descending order, what's the SQL statement for that? and How to output the result? A: SELECT * FROM yourtable ORDER BY score DESC LIMIT 5 Explanations: SELECT * FROM y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross-Compile of Boost for GCC ARM (Linux) from Windows building .o but not .a I'm cross-compiling Boost for a Linux distro on an ARM board. I'm using windows with Boost 1.47. My project-config.jam contains the following: import option ; using gcc : arm : "C:/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I load a external QML file in Qt Quick? Ok like if I'm trying to make something like a menu for a simple game. How can I make it so that when the start button is clicked it loads a different QML file? A: You can use Qt.createComponent() or Loader. For example: import QtQuick 1.0 Item { MyButton { onC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Genexus: Sort a Top10 list (grid) using a variable I have the following issue: I'm generating a Top10 list of items, based on how many times each item has been sold. I can calculate that number and store it in a variable correctly, but when I try to sort the grid by that variable programatically, Genexus won't let m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSDateformatter (seems to) throwing an exception. But process does not exit with an error message and call stack Unfortunately, the Mac I'm working on does not allow us to attach a debugger, so I have no idea what the cause it. Talk about a baptism by fire. The tutorial program finds four placeholders and replaces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using QBuffer for binary data I am writing a Qt (4.6) application that is responsible for reading from a usb acm modem device. A mix of raw binary and (ascii) character data is read in from the device. I have a thread that is responsible for constantly reading data from the device into shared memory as it becomes a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I inject custom audio buffers into a DirectX filter graph using DSPACK? I am using Delphi 6 with DSPACK to do several operations involving audio and DirectX. I have the "input" side figured out where I assign one of the enumerated audio input devices to a TFilter object and connect that filter to a TSampleGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiple toString() Methods with Generics I have an object which will be stored in two different data structures. I am using generics, and each structure has to print out the object in a different way. Is there a way to have multiple toString() methods that will invoke accordingly? I can't create two different meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up a Thread and Handler for a SAX parser? I've been trying to set up a UI Thread and Handler for a SAX parser. This is my parser without a UI Thread and Handler implemented: public class AndroidXMLReader extends ListActivity { private XMLFeed myXMLFeed = null; /** Called when the activity is fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using javascript to find position of DOM elements I want to inspect spatial organization of elements on a web page. Could I get sample code and pointers to resources. Thanks. A: Here you go: function position( elem ) { var left = 0, top = 0; do { left += elem.offsetLeft; top += elem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: About add Customized View I want add customized View to ScrollView. In customized View, Only two methods are described, constructor and onDraw(). But the image that drew in onDraw(), isn't show on ScrollView. What's wrong in my program? A: You might need to override onMeasure() so the view can be sized appropriatel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery size() and find if class is applied I'm trying to count the li's of a ul. I am using jQuery size() method. Here is a sample of my HTML: <ul id="show-items" class="ui-sortable"> <li id="todo-2"> <label class="editable done">fasdfasdf</label> </li> <li id="todo-3"> <label class="edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sorting Silverstripe SiteTree by depth I want to get all of the SiteTree pages of a Silverstripe website and then sort them by depth descending. By depth I mean the number of parents they have. This is already done to some extent by the Google Sitemaps Module. Except it doesn't go past a depth of 10 and doesn't calc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use a YUI DataSource to populate a HighCharts line chart I want to convert my YUI2 Flash-based charts to a pure javascript implementation. I already have a data source defined using YUI DataSource, but I have been unable to extract the data I need from it to populate my chart. My code looks like this: function setu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Improving performance by having a global array or file for all visitors? In my application I have two pages. Index and engine. Index has mostly jQuery scripts and the basic two of them is an autoload function for the engine.php file that happens every 3 mins, and the other one is a "show more" button that shows 10 m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writer vs WriterT in Haskell What is the difference between Writer and WriterT in Haskell? Is one preferred over the other? A: To add to the excellent explanations above, I'd like to also point to this paper. Has helped me quite a bit: Monad Transformers Step By Step A: The difference is that Writer is a monad, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Single login, multiple application authentication Is there a Codeigniter authentication server that's available for use? Trying to get a multi-application service going similar to Basecamp and I don't want to reinvent the wheel. Alternatively, are there any respectable resources that deal with this kind of authentic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Silverlight Binding to commands Sometimes when I bind to commands to a ViewModel, my CanExecute code does not always get called and hence my buttons are not disabled when they should be. Any ideas? Thanks A: When canExecute is not called the first time, that's a binding problem. If it's not 'automatically' called s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google TV emulator in bridge network mode I want to connect to my app running in the emulator from another machine on my local network. The ip assigned to emulator is 10.0.2.15 while my host machine has ip 192.168.1.* . Is there any way to run the emulator in bridge mode such that it gets an ip in the range 192.168....
{ "language": "en", "url": "https://stackoverflow.com/questions/7630367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: var's I keep declaring the same things over again Not sure if there is away to do what I want, I basically need to store the following information in a global var, and if they are being requested, then be able to fetch them from any public function without having to re-send it to the function that needs the informat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Join only for specific rows where value matches a variable I have multiple MySQL tables containing varying numbers of columns. After joining three of the tables, I have a resulting table that's structured as follows: +------------+------------+-----------+-------+------+ | student_id | first_name | last_name | class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending Data to Website From iPhone I'm creating an iPhone Game where I want the user to get a unique numeric code when they first launch the app, that way when a friend of that user opens it, he/she can input that code and both users can get rewarded. I haven't encountered any issues regarding that, however what I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting an unsigned char* to readable string & whats this function doing I have googled alot to learn how to convert my unsigned char* to a printable hex string. So far I am slightly understanding how it all works & the difference between signed & unsigned chars. Can you tell me what this function I found does? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yii: Piggybacking on Session GC For Cart Cleanup? I am building a shopping cart using the Yii framework. I have created a cart model to store the items the user adds to the cart, and I'm keeping track of the products that guest shoppers are adding to the cart by using a session_id field that stores the current sessi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Controller / View to recognize different table I am using Devise in Rails to help authenticate users. I am trying to create users within the system. I created a scaffold (just for the auto-generated code) Employee, and I changed the table in the employees_controller.rb to User. When I list the employees, it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: generic linked list pointer access I am writing a generic linked list in C++ using templates, and am experiencing Segmentation Faults when accessing Node values. To make the test case simpler, I have implemented a fixed size, two node, linked list. I have two questions: 1a) Why isn't aList.headNodePtr->prevNodePtr s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Queues as global and working on its contents from main I am getting errors about the template arguments not being valid and it is not seeing that I declared my queue variables as global.., i tried putting them inside the function (but thats not what I want because i want to deque from main) and does not work e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I install the Python library 'gevent' on Mac OS X Lion Python library gevent, version 0.13.6 (the current version on PyPI) will not pip install on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard. How can I get this library installed? Bonus points if it can be done using pip install...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: How to capitalize first letters in each word of RichTextBox.Text? How can I switch the first letter of each word of RichTextBox.Text to upper case? For example, I need to switch this text: "This is a big and beautiful dog." To this text: "This is a Big And Beautiful Dog". That means I need to capitalize the first ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can LINQ ToArray return a strongly-typed array in this example? I've contrived this example because it's an easily digested version of the actual problem I'm trying to solve. Here are the classes and their relationships. First we have a Country class that contains a Dictionary of State objects indexed by a string (t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XPath select descendent of parents sibling with in limits My xpath: (//tr[td[contains(., 'Refine by Vehicle Types')]])[1] /following-sibling::tr /td/div/table /tr/td/font /ul/li/a My source: <tr><td><font color="White">Refine by Vehicle Types</font></td> </tr> <tr><td><div> <table> <tr> <td><font<ul><li><a> Auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pausing in game to display score I'm new to Android and I'm not sure how to tackle this one. I'm making a Pong like game, and after a score is made, I want to display the score for a few seconds while pausing the game. I'm using the onDraw() method like this: public void onDraw(Canvas canvas) { canvas.drawColor(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP how to remove the last part of a filename after underscore A filename looks like whatever_test_123234545.gif. What is the easiest way to remove the last underscore followed by all characters and numbers after it but not the the dot extension. In other words i want whatever_test_123234545.gif to look like what...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: node.js rename and AWS Possible Duplicate: Move file to a different partition using node.js I'm using fs.renameSync to rename a /tmp file to a file in a directory on a mounted EBS file-system on an AWS micro-instance. I get the error : Error: EXDEV, Invalid cross-device link '/tmp/55fb21262ba306f70e2d7ccaac5a59e0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7630403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }