text
stringlengths
8
267k
meta
dict
Q: MS Access, How to pass parameter to subquery? i've got two tables. one contains all my customers, another one all their orders. i would like to create an sql query that looks like this: SELECT c.CustomerID, c.Firstname, c.Lastname, ( SELECT count(orderID) FROM tbl_orders o WHERE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: set table row height My lacking skills of CSS is giving me a headache. As presented in this picture below, captured from firebug: Using a GWT like framework called Vaadin I have given a Table component the class name m2m-modal-table and I want set a min-height to the four rows in that table. However, I can't seem t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Browser Update Script Browser-Update.org provides a nice piece of javascript which alerts users of out-of-date browsers to update them. Unfortunately (a) IE7 is not included in the default list of out-of-date browsers, and (b) the script doesn't work over SSL. The script they suggest is <script type="text/javascript...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to parse JSON in iOS App Im getting a response from twitter in the form of a string, What I need is to send the parts where is a comment to an array, here an example of the string [{"geo":null,"coordinates":null,"retweeted":false,... "text":"@KristinaKlp saluditos y besos d colores!"},{"geo":null,"coordinates....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: auto foo = ref new Foo(); What is "ref"? I was watching a video from, //build/ and several of the MS developers were using a syntax like this in their C++11 programs: auto foo = ref new Foo(); I understand what everything does in this line except "ref". What does that mean? A: "ref new" is a 2 token keyword. It i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: HTTP Error 500.19 - Internal Server Error in BlogEngine.NET I'm trying to install BlogEngine.NET in my Hosted Plan at arvixe.com I get this error when I try to navigate to the Blog : The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration 53: </system.servic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: query avoding subselect I have this query and it's very slow. Can i write this query in other way by avoiding subselects for example? Also i tried adding composite index on MyIndex(kategorije_id,izdvojen,izdvojen_kad,datum) but it doesent use it when i explain this query so is there another index that i can use to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting input for character arrays I was coding a program to find the longest common sub-sequence today and I was getting the elements of the each sequence into a character array. but I ran into a little problem. I used a for loop to get the elements but not matter how high I set the number of iterations the loop sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Mobile: Getting a cancelled Postback that's causing a page load error So, I've been trying to get this page working for a couple of days now, when I clicked the send button it would work, but if you tried to hit enter it would just do a postback to the same page. Yesterday I thought I finally got it so it wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HandlerThread should i override run()? I'm trying to use the HandlerThread class to manage thread in my application. The following code is working great : public class ThreadA extends HandlerThread { private void foo() { //do something } private void bar() { //Do something else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PlotLegends` default options I'm trying to redefine an option of the PlotLegends package after having loaded it, but I get for example Needs["PlotLegends`"] SetOptions[ListPlot,LegendPosition->{0,0.5}] => SetOptions::optnf: LegendPosition is not a known option for ListPlot. I expect such a thing as the options in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating dynamic XSL-FO table using XSLT I am creating a table in xsl-fo, with undefined number of elements (indtr). I wonder if there a smart way to do this? Here is my input xml file <pr-levels> <prs> <pr_nme><![CDATA[Level 1]]></pr_nme> <nt><![CDATA[standards:]]></nt> <b_is> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery parsing json This is the JSON output that I currently have: [{"pk": 1, "model": "system.employees", "fields": {"chi_name": "N/A", "eng_name": "Eli"}}] I want the output to be [{"label": "Eli", "value": "1"}] how can I take the values of pk and eng_name from the JSON data and output it like above? A: You c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print DIV content by JQuery suppose i have many div's in my page but i want to print the content of specific div using jquery. i found there is a plugin for that. jQuery Print Element using this plugin we can easily print div content like below. $('SelectorToPrint').printElement(); but what happen if my div is hidd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to call a method n times in Scala? I have a case where I want to call a method n times, where n is an Int. Is there a good way to do this in a "functional" way in Scala? case class Event(name: String, quantity: Int, value: Option[BigDecimal]) // a list of events val lst = List( Event("supply", 3, Some(new j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Instruments says I'm leaking a string, but I can't find it I used the leaks tool in Instruments to test the code, but the leaks tool cannot seem to find the leak. At the end of my code, the output of NSLog(@"str count:%d",[str retainCount]); is 3. Why? I don't override the dealloc. [a.name retainCount] is there ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does $_POST have a size limit? Possible Duplicate: What is the size limit of a post request? Does $_POST when used in conjunction with forms in PHP have a size limit? Obviously there must be some restrictions with $_GET seeing as most browsers will start to complain at ~250 characters (or something like that) and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Getting information if Topmost property is changed I have a class, deriving from Window, in which I want to be notified when the Topmost property is changed. I tried to override setter, but it's not marked as virtual. Changing metadata connected with this property made it not working (nothing happens after setting t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MSBUILD error where folder contains more than one solution file I'm trying to set up CCNET and I've run into a problem. My builds are failing and I'm getting this error MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. In my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Where to put images that are called by css file in Django? I have downloaded a template online that includes a base html file, images and a css file. Now I would like to implement all this in django. So far I tried like this but with no good results, the page gets rendered without css file or without images, or both...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NOLOCK with Linq to SQL without setting Transaction IsolationLevel Is there a way to use NOLOCK on a LIN2SQL single query without setting the Transaction IsolationLevel? I need to do this as the query part of a larger (distributed) transaction. For example: using (var txn = new TransactionScope()) { // query1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there an equivalent to Django's reverse URL lookup in Java Struts framework? I want to find out whether there is a Struts equivalent to Django's reverse URL lookup, where you can associate names to URL patterns and refer to these in your code. This allows you to change the URLs easily, since all of them are defin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to set column default to SQL Server's NewId()? In fluentMigrator, is it possible to set a column default to a function? Specifically, I'm adding a uniqueidentifier (Guid) column to a SQL Server 2008 table that already contains data, and it's going to be a required field - is it possible to set the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: HTML placeholder does not work for Android I have a mobile version of my site and on the login page I use "placeholder" to display: Email or Password (instead of using label). For iPhone it's working but not for Android, it disabled my field css (borders, colors etc...) Edit: I want to be able to use iPhone OS3, OS4...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: ExtJS Replace Gridpanel Store Is there anyway to remotely override/replace a GridPanel's store? I have a grid that has a dummy store as I get an error if I don't declare as store: this.ds is undefined When my form is submitted, it makes a GET REST call & loads a JSON store with the results. I want this store to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android alert dialog query I have been working on android application and I have got stuck at a point. I have a method which shows a progress dialog to the user. Then after the code has run I am showing an alert dialog. Here I have got stuck. The progress dialog is not showing when method calls. Code: progressDialog...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: os x alternative to Textmate (no Java or vim or xemacs) I am fed up with Textmate. It's great, but it's old and keeps crashing on me. No development in (what, 3+?) years, etc. So I'm looking for a viable alternative. However, I don't want a bloated and slow editor that runs on Java (so NetBeans, Komodo, Eclipse, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Convert ASCII and UTF-8 to non-special characters with one function So I'm building a website that is using a database feed that was already set up and has been used by the client for all their other websites for quite some time. They fill this database through an external program, and I have no way to change the wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: clearTimeout on multiple references I have a set of complex setTimeout() calls that trigger some jQuery animations. I would like to be able to clear them all without knowing their various refs. This code will not work - but should illustrate what I'm trying to do... window.ref = []; function doAnimation(i) { $('...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to remove the last two zero? I have a function called zen_get_products_discount_price_qty($new_products->fields['products_id']) which outputs this: $8.0000. I want to turn the $8.0000 into $8.00. How can I do this? A: use number_format function A: $output = zen_get_products_discount_price_qty($new_products...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add localized .strings files back to Xcode? I have a .strings file that is localized in a number of languages. I'd like to add it to my Xcode project. How do you get Xcode to correctly reference the files? I've tried * *dragging the english version of the .strings file (found in English.lproj) to Xcode an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Accessing fully developed dom through plugin in Firefox I need to see the fully loaded and devloped dom of a page, i.e after my client loads up my page I want them to be able to click a button on fire fox and then fire fox will send me the fully developed dom so I can look through and see what happened there. Can an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't add event listener after it was removing by "removeEventListener" only on mobile I'm newbie in js and jquery. I have the code: function dragEnd(){ OnDrag = false; wrapperHalfWidth = box.parent().width() * settings.animPartofScrennToSlide if (Math.abs(dragLengthX) > wrapperHalfWidth ){ this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Explain the steps for db2-cobol's execution process if both are db2 -cobol programs How to run two sub programs from a main program if both are db2-cobol programs? My main program named 'Mainpgm1', which is calling my subprograms named 'subpgm1' and 'subpgm2' which are a called programs and I preferred static call o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routing - Explanation for 404 page I use asp.net 4, c# and Routing for my web site. My Route result like A) http://mysite.com/article/58/mytitle (result my article all is fine) 58 and mytitle represent in Id and Title Column in DataBase for my Articles table. I notice that... if I request: http://mysite.com/artic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anyone that had the aol oauth api working? i'm developing an application with multiple login and information export options like yahoo, google contacts, live contacts etc. I tried to do the oauth wrapper for aol, followed the examples in the http://dev.aol.com/api/openauth page but it doesnt works. I just only wante...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET LINQ SQL get specific fields I am trying o set textboxes on an ASP.NET webpage using LINQ - SQL. Here is the code I have to perform the select statement: EQCN = Request.QueryString["EQCN"]; var equipment = from n in db.equipments where n.EQCN.ToString() == EQCN ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to stop the avplayer sending a range http header field If you load remote files with the AVPlayer it sends a http request with a range field in the request header, something like Range: bytes=0-8148096 I like to use the SevenDigital commercial API for streaming songs but they cannot handle this Rang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: org/codehaus/plexus/archiver/jar/JarArchiver (Unsupported major.minor version 49.0) - Maven build error Afternoon all, I am receiving the above error when trying to build my project. I'm pretty sure this has something to do with Maven's latest update being compiled using Java 1.6 and the project we are trying to bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I specify a specific branch on GitHub pull-only (read-only)? Is there a way to set a specific branch on GitHub to pull-only (read-only) or can I only set this for the whole repository? A: There is no way to do branch level permissions on Github, but the gitolite project supports what you're looking for. A: You...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Selecting a tag and class (jQuery) Say I the following: <div id = "thisOne"> <a href = "#" class="ui-state-highlight">abc</a> <a href = "#'>def</a> </div> If i do $(".thisOne a") I get both "a" elements. I just want the one that is highlighted, how do I do this? A: This two lines of code should help you, give them...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to encrypt my connection string in the web.config? I have a web site written in asp.net 4.0. Right now the connection stirng in the web.config is not encrytped. I pushed it to a host with a web farm. I'm tryign to determine the best way to handle encryption. I don't believe I have any authority ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Script, args not transferred to Script I have got a Python Script called "gcc_opt.pyw" and I included its directory to the Windows PATH environment variable. But not a single commandline argument is passed to the script. Printing out sys.argv tells me there is only the filename in the argv-list. This command:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: sftp connection When I' m trying to connect Sftp from my joomla site its not connecting: $c = ftp_connect('ftp.xyz.com') or die("Can't connect"); ftp_login($c, 'username' , 'pwd') or die("Can't login"); in this case msg showing Can't connect I also tried this code $connection = ssh2_connect('ftp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain the GPS position of the user and actualice a textview everytime the position has changed? I'm trying to make a simple activity that reads the GPS position of the user and actualices a simple textview everytime the position of the user changes. I find some examples en google but all of them are not nice...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to close all opened markers? I have this code : var markers = new Array(); markers[0] = new google.maps.Marker({ position: new google.maps.LatLng(45.910078, 10.838013), map: map, title: "Data 1" }); google.maps.event.addListener(markers[0], 'click', function() { var infowindow = new google.map...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parallel execution in cx-oracle I have recently joined a new company and am new to python (their preferred scripting language) and have been working with cx_oracle to create some ETL processes. The scripts I have built so far have been single-threaded jobs that select the subset of columns I need from an Oracle sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to delay .live() until UI has updated? I am using jQuery and jQuery UI and i am trying to read a checkbox state through the addition of the "aria-pressed" property that jQuery UI Button toggle between false and true. $('.slideButton').live('click', function() { alert($(this).attr('aria-pressed')); }); This co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how far can nfc on mobile phone read rfid tags I google on the internet and find that nfc on mobile phone is said to be able to read rfid tag (HF tag). Does anybody test how far it can read RFID tag, or what's reading range for RFID tag? Is it possbile to read RFID tags within 1 meters? A: My informal test just now...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange result when reading data from browser cache In an experimental extension I am working on I use a function to get the source of a webpage and assign it to a variable. It worked perfectly fine. However I want to change the way it works and get the content from a txt file. I am hosting a txt file like: http//1....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access URL with double slash with HttpClient I'm doing a request on another server like this: HttpGet req = new HttpGet("http://example.com//foo"); new DefaultHttpClient().execute(req); However, HttpClient changes example.com//foo to example.com/foo, so the other server (which is not mine) doesn't understand the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Setting different backgrounds for nsview I'm trying to set custom background for an NSView. I need different backgrounds to be set based on some action. So i created 2 CAlayers for this view and trying to fill it using colorWithPatternImage.Is this a right method? If not, how can i do it? Regards, LS Developer A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drop Down List Event failed to execute In my drop-down list, the SelectedIndexChanged event is not firing. I set AutoPostBack="True" but it's still not firing. Setting EnableViewState to True or False makes no difference either. Here's my code: <asp:DropDownList ID="ddlSheerName" runat="server" Width="250" AutoPostB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Specifying multiple Spring configuration files using ant style pattern in command line app I have a web application with mutiple Spring configuration files. These files are loaded using "contextConfigLocation" in web.xml. Like this: <context-param> <param-name>contextConfigLocation</param-name> <param-value>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ajax during javascript window.beforeunload: returning error I need to perform an ajax request to send some data server-side every time the user decides to leave the page. However I do not wish to disrupt them in leaving: I do not want popup messages to show up. Currently my code is thus: window.onbeforeunload=functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java arrays in Clojure's gen-interface I have this piece of code: (ns com.example.main) (gen-class :name com.example.main.CTest :methods [ [foo [] "[B"]]) (defn -foo [this] (byte-array [(byte 1) (byte 2)])) (gen-interface :name com.example.main.ITest :methods [ [foo [] "[B"]]) It creates the foo method...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In drupal 6, How to process uloaded file in more than one steps? I am writing custom module in drupal. Aim is to : 1. Upload a csv file 2. Display its content in a tabular layout. 3. On confirmation, save it in database. Problem I am facing: * *I am unable to upload any file. I am not getting any thing in $_FIL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirection in drupal 7 I am using Drupal 7 for developing a site called http://somesite.com. My requirement is to redirect the site to http://sub.somesite.com if a sub.somesite.com folder exists in my directory at the time of page request itself. I have a custom module which is linked to a JavaScript file which i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crystal Report's report loading forever I've some Crystal reports in a VS2010 application. They all work fine, but sometimes (happened at least twice), they will stay on the hourglass without ever loading. If I launch another instance of the application and generate the report (while the other instance still loads),...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: send parameter with jquery ajax I've a php page and I would to send a jquery ajax request to another page for sending email. This new page accept one parameter and then it executes query ecc... <div id="customer" name="customer" style="visibility: hidden;"><?php echo $customer; ?></div> <?php echo '<input id="pulsa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android context issues from imported package I have a twitter package that runs fine on its own. Now when I import it and try to use it in my main app I hit upon issues of nullpointerexceptions. The first I solved, but immediately ran into another. I now believe it is because I am handling the context incorrectly. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to localize a simple HTML website page in my case? I am NOT developing any web service application which contain client side and backend server side (like java EE application or Ruby on Rails). Instead, I am simply developing a HTML website page, on this page, there are two flag images(USA and China) which is u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to minimize whole application in android? I was developed android application. More over i have completed, but i want to minimize option. I have used tab bar. In that i want to minimize tab. When user click minimize tab to minimize whole application. my tabbar code as.. public class tabbar extends TabActivit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: A simple facebook app gets Method Post is not allowed error I tried a very simple helloworld example facebook app. Basically I have a webpage, only contains one file index.php, which only contains one line: echo "helloworld". I have registered this app as an facebook app, configured the setting, canvas url to http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What order does PHP read configuration from? PHP configuration can be made in a number of different places: * *php.ini *httpd.conf *.htaccess *within a php script via ini_set() *any more? Some configuration settings can only be set in certain places and there's certain Apache and PHP settings that would pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Make a custom Eclipse builder conditional on the success of another builder I've added a custom builder to my Flex Builder 3 (Eclipse 3.4) project that uploads the built files to a test server for remote debugging, and my custom builder appears after the "Flex" builder in my project properties, and works great after...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firemonkey float key animation, goto a particular key In a Firemonkey 2d application, I'm using a float key to attempt to move a TLine control around a clock. I've added 60 key frames for the minute hand and 12 key frames for the hour hand (actually it's a lot more keys because I added one on position x, position y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to express (5 x 5.4 10-3) in objective-c I am trying to convert from meter to nautical miles. I need to multiply meters by 5.4x10-3 but I am not sure how express this number in objective-c. Any help would be greatly appreciated, A: Like this: double factor = 5.4e-3; This means: 5.4 times 10 to the power -3.
{ "language": "en", "url": "https://stackoverflow.com/questions/7530425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optimizing a SQL Query for a Many to One Relationship I've got two tables with a many to one relationship which I'll call Parent_Table and Child_Table (i.e. a parent has zero or more children, but children have exactly one parent). I need to count the number of parents who have at least one child that fulfills some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Help building a list based on a enumeration I have an enumeration: public enum SomeEnum { A = 2, B = 4, C = 8 D = 16 } SomeEnum e1 = SomeEnum.A | SomeEnum.B Now I want to have a List of enum values, so e1 would be: 2, 4 So I have: List<int> list = new List<int>(); foreach(SomeEnum se in Enum.GetValues(t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make a iPhone tester in my site to report if sites are mobile adapted I would like to make a section on my site where users can test if their websites are mobile adapted. Is any way to do that? I see a lot of sites in the net but I don't like to frame it, I'd like make my own. Mmmm... the trouble is that lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using data in an associative array as the object fo an event handler Afternoon All I have some data - var searchwithin = [ {id:"clearwithin", type:"button"}, {id:"search_radius", type:"select"}, {id:"for_lease" ,type:"checkbox"}, {id:"for_sale", type:"checkbox"}, ]; It is going to be showing and hidin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my MVC project throw exceptions on production servers after installing WebMatrix 2 Beta? After installing WebMatrix 2 Beta on my development machine, an MVC project compiled on that machine and deployed to a production server will start throwing a FileNotFoundException looking for System.Web.WebPages. "...S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Matching everything but a specific word I've got this regex: .*js/[\bpackaged\b]+\.js At the moment it matches 'packaged.js' from the list below: * *js/foo.js *js/bar.js *js/suitcase.js *js/bootstrap.js *js/packaged.js How can I invert this so that it matches all the others except for 'packaged.js'? A: k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get return from echo I'm working with some functions that echo output. But I need their return so I can use them in PHP. This works (seemingly without a hitch) but I wonder, is there a better way? function getEcho( $function ) { $getEcho = ''; ob_start(); $function; $getEcho = ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can XAML be used with JavaScript in WinRT? Or JavaScript is only restricted to HTML? I've only seen HTML-JavaScript demos at Build 2011 A: XAML is not supported in JavaScript Metro apps - those classes are specifically hidden from JavaScript WinRT projection. This actually includes not just the stuff under Windows....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: GPS on Android problem I have been trying for about 3 days to solve this problem and I haven't found a solution so far. I am trying to get my location through GPS. It doesn't seem to receive the coordonates that I try to send through cmd.exe or the Emulator Control in the DDMS. Moreover, it restarts the emulator. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Internal working of a vector in C++? Im working on an exercise in C++ but im getting unexpected output I hope someone can explain. The exercise asked that I make a class called rock which has a default constructor, a copy constructor and a destructor all of which announce themselves to cout. In the main method I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to model >1 ways of doing the same thing in event tables? Suppose there are >1 ways of doing something, in use case diagrams, I could use generalize, include, then in event table? Do I separate them? Suppose "Buy Book" a customer could do it online or through the counter. In this case, I suppose the source is di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery show/hide panel on hover Possible Duplicate: JQuery slideToggle timeout I have simple html page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(docume...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems with an NHibernate LINQ query in loosely coupled project hope you can help! I've started a project in MVC 3 and set the business domain model in another assembly, the interfaces define the contract between this assembly and all projects that will use it. I'm using Ninject to inject the dependencies into th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ctypes and passing a by reference to a function I'm trying to use libpcap in python3 using ctypes. given the following function in C pcap_lookupnet(dev, &net, &mask, errbuf) in python I have the following pcap_lookupnet = pcap.pcap_lookupnet mask = ctypes.c_uint32 net = ctypes.c_int32 if(pcap_lookupnet(dev,net,m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: iPhone - Get user interaction event and automatic logout In my iPhone app I want to logout the user if nothing happens till about 2 minutes (e.g. the user puts down the phone). Does anybody has such issue? What is the best way to implement this feature? I think I save the date of last event to NSUserDefaults, then o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deleting an aliased pointer Doing this: union{ int * integer; char * character; } u; u.integer = new int; delete u.character; u.integer = new int[5]; delete [] u.character; I assume this wouldn't work if any of these types have non trivial destructors, but is this ok? A: This doesn't work in any c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rspec controller test fails i'm trying to run such test: it "render form to update an bundle with a specific id" do bundle = mock_model(Bundle) Bundle.stub!(:find).with("1") { bundle } get :edit, :locale => "en", :id => 1 Bundle.should_receive(:find).with("1").and_return(bundle) end Code from a Contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to manage dates in shell I have a file containing 14000 dates . I wrote a script to find the last 5 days , 26/03/2002:11:52:25 27/03/2002:11:52:25 29/03/2002:11:30:41 30/03/2002:11:30:41 26/03/2002:11:30:41 02/04/2002:11:30:41 03/04/2002:11:30:41 04/04/2002:11:30:41 05/04/2002:11:52:25 06/04/2002:11:52:25 suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How are GWT client side and server side deployed? I have a question related to the GWT deployment of client side and server side. I am wondering, are they deployed in the same computer? Or they can be deployed to different computers? For example, on the client side, I need to upload a file. Can I just pass the URL o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Automatic form-positioning I want my application to have an auto form-positioning behaviour, similar to the WinAmp MP3 player. I'd like windows to stick to each other, so that if you move one window the other windows follow the movement. How can I do that? I tried something like this. if (this.Size.Width + this.Loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Tablet connecting to smb and get a list of files im a complete noob to android and java but have wanted to learn for a while. im trying to build a file browsing app which can view files and directories in a samba server or other file shares. I'm trying to use uri.parse to initialize the uri of my samba serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make javadoc comments in overriden methods visible I'm using Eclipse. I want the comments made in the overridden method to appear instead. Here's an example - enum Foo{ ITEM{ /** * Arguments must be received in the following order... */ @Override void bar(Strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Logging boost::exception while avoiding file/line/function and the nagging In my in-house logging library, I am trying to change the custom exception class to derive from boost::exception instead of std::exception. I am doing this so that I can use a single catch block for both boost exceptions and my application ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What version of PHP was ReflectionClass introduced in? What version of PHP was ReflectionClass introduced in? for example: $objMetaData = new ReflectionClass('Direction'); $arrValidDirections = $objMetaData->getConstants(); A: According to the changes log for PHP5, the reflection API was introduced in the second b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What account should I use when hosting WCF service in a Windows Service on Server 2008? OK, it seems like a simple thing, but I'm unfamiliar with the various accounts and privileges / roles each has. I want to host my WCF services in a Windows Service on Server 2008 R2, and to do that I need to create an installer c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL next row in sequence I have a query like this: SELECT id, name, town, street, number, number_addition, telephone FROM clients WHERE ((postalcode >= 'AABB' AND postalcode <= 'AACC') OR (postalcode >= 'DDEE' AND postalcode <= 'DDFF')) ORDER BY town ASC, street ASC, number ASC, number_addition ASC LIMIT 1 This w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: no callbacks work with my new universal app I believe that I did everything necessary to change my app for ipad (was for iphone at start). I can toggle the build status to either iphone (only), ipad (only) or iphone/ipad - and the app launches either in ipad or iphone simulator. I can do that forth and back at will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort product listings in Spree based on created_at I'm using spree and I want to sort product listing based on created_at of the product. I tried to find the way to override the spree default scope under lib/scopes/product.rb but couldn't find it. I want to list recently created products on public panel. How can I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inverse black and white / monochrome bitmapdata in AS3 I'm wondering if there are any nice ways of inversing a black and white / monochrome bitmapdata in AS3 which don't involve going through and setting each pixel by pixel? A: There's also another solution. Every display object has a blendMode property and has th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: with out dead php script I wanna run one php script by while(true){ }. It will get pm which has been sent to me by other and answer them.(something like yahoo robot) now if I set set_time_limit(0) and use while(true) and run this page on my server http://ip-address/yahoo.php and close my browser , Is it running for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java coding convention about static method It is a very simple question, but I think it is a little bit controversial. When I code Java classes I use the following order. class Foo { // static fields // instance fields // constructors // methods (non-static and static methods are mixed but sorted ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Struts2 Form Submit error When i call an action through form i am getting the following error. No result defined for action com.______.actions.UserAction and result input at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375) at com.opensymphony.xwork2.Defa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }