text
stringlengths
8
267k
meta
dict
Q: Rails 3.1 Sprockets require directives - is there a way to exclude particular files? If I'm using //=require_tree . in application.css, is there a way to exclude particular files other than resorting to //=require_directory and tree organization? Perhaps something like //= require_tree ., {except: 'something'} A: T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Should This Be In Its Own Stylesheet, and How? (PHP In Stylesheet?) Building a WordPress options panel. One of the things it does is allow users to pick custom colors. I use a default stylesheet, then call styles for custom inputs. However, I simply insert this in the header instead of having these custom values ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting Greatest N records in X groups So I've been running through all the questions under the greatest-n-per-group tag, and either I don't understand what I'm reading, or nothing has fit my needs so far. This link has also provided a lot of useful information, but still no answer. So I've got a table with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GWT Runtime vs Development mode We are using GWT to develop a complex application . In development mode all the RPC's and the application work perfectly with reasonable performance. But when we are in production mode some RPC calls are never been performed and the server side code never gets hit. We do a loadmask on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: traversing DOM from code-behind I have a asp.net webpage with a series of hidden input fields that I use in order to communicate values from client-side to code-behing at submit time. <input type="hidden" id="zorro1" value="somevalue set at runtime from client-side" /> <input type="hidden" id="zorro2" value="someval...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to get the values of a radio button set with lxml? For example I have the following radio buttons: <input type="radio" name="hand" id='hand_left' checked value="L"> <label for='hand_left'>Left</label> <input type="radio" name="hand" id='hand_right' value="R"> <label for='hand_right'>Righ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how do I find elements that contain a data-* attribute matching a prefix using jquery I'm want to create a selector to find elements which have attributes starting with a string. At this point, I'm assuming this selector does not exist. Do I need to extend the selector capabilities? Extending jQuery’s selector capab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Dynamic Increase / Decrease the number with C# I have two buttons to reduce or increase the number. Also, I have a label which is has value zero. How can I increase or decrease without giving zero value to the Label in C#? Code: int sayi = int.Parse(lbltext1.Text); sayi = sayi - 1; lbltext1.Text = sayi.ToString();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Copy specific file types from one host to another I'm creating a bash script that automatically copies C source and header files from a particular directory in another host to the directory I'm in on the current host. It currently generates this command: ssh host2 "cd dir1/dir2 && find . -maxdepth 1 -regextype posix...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AS3 Objects not being displayed I´m trying to display two movie clips on the scene. I made an action script file called main.as and the .fla file is calling the main class. The button class is a button movieclip. This is the code: package { import flash.display.MovieClip; import flash.events.MouseEven...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In MVC Razor, how do you do a RenderSection defined below a sub-layout? I have a top-level _Layout.cshtml that looks something like this: <html> <head> @RenderSection("Header", required: false) </head> <body> @RenderSection("LeftPane", required: false) @RenderSection("RightPane", required: false) @R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: recaptcha words in other language Is there any way to set recaptcha to display challenge words in other language? I know there is a property "lang" but it localizes UI not words. I have website in other language and it doesn't make sense having recaptcha words in english because user may not have those characters...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Archiving, Scheme settings and Code Signing in Xcode 4.2 I am in the process of submitting an app to the App Store. I am using Xcode 4.2 (Build 4C151a). In the build settings I can choose iPhone Distribution for code signing under Release - Any iOS SDK. Then I go to menu Product > Edit Scheme and set the Archive Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android USB Virtual COM port on an Archos? is there any option to have Virtual COM port Host on Android that would communicate with a connected device(via cable and physical USB unterface) in a virtual COM port way (fileopen/fileread/filewrite/fileclose)? I believe that kernel reconfiguring/recompiling is not possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Toggle divs open and close - ensure only one div visible at any time, not all I am using the below script to toggle open and close divs on click: (function ($) { $.fn.showHide = function (options) { //default vars for the plugin var defaults = { speed: 1000, easing: '', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SelectedValue after updating dropdown with json/webmethod I have a dropdown list to which items are added via a json/webmethod call - an "add new item to the box" type of solution. Now - this problem is, that if I select the new value, the _comobox1.SelectedValue is empty. The controls are validated via a RequiredF...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating the sum of aggregate query set So I have a query set that returns a list of financial institutions and also the total amount of money in investments I have with each institution. views.py total_list = plan.investment_set.filter(maturity_date__gte= '%s-1-1' % current_year).values('financial_institution__a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to suppress the browser top bar while using a BlackBerry BrowserSession I am trying to create an app that will redirect to a certain webpage when run. I would like this app to be full screen with no title bar or browse bar. I am able to call a BrowseSession to bring up the proper website in the browser but it do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: require_once path can't locate file? Here is my folder structure as example: source files/ controller/ ctrl_showData.php model/ Database.class.php Suppose it's now in controller directory, and in the ctrl_showData.php, I want to require the Database.class.php, so I try: require_once(dirname(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using XML and XSLT I'm just trying to create an example XML file with an XSL style sheet. The problem is, when i parse the two files, i get a strange output. here is the XML: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="mySchema.xsl"?> <Artists> <Artist> <BandName>The Cure</...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a java library that supports smart parameter expansion, String.format, and more Here's what I'm looking for: * *Java *Log library that could replace commons logging or slf4j *Parameter expansion only when log level requires it (i.e. no if (log.isDebugEnabled()) blocks) *String formatting the same as j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC How to return view in ActionFilterAttribute like ActionResult? Is it even possible to return a view from an ActionFilterAttribute? Right now i just have it throw an error and in the OnException in the base controller reroutes to an error page. Would liek to show my NoAccess view like i do when theres an permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MYSQL query only in set I have a table that links entries with associated tags with the following data in it: entry_id | tag_id 1 | 1 2 | 1 3 | 1 1 | 2 2 | 2 I am trying to write a query that returns only entries tagged with 1 AND 2, in this example entries 1 and 2 would be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: QtRuby on Mac Os and ruby 1.9.2 i would really like to get down to some ruby programming with QT in Mac OS. I have tried lots of different things to install Qt on Mac os and develop there, but whatever i do does not seem to work. I've tried gems and even source, but i can't get it to work. Has anyone created the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: java.lang.SecurityException: Not allowed to start service Intent hey all when installing my app to the emulator I get this: ERROR/AndroidRuntime(465): java.lang.RuntimeException: Unable to start receiver com.myPackage.Widget.MYWidget: java.lang.SecurityException: Not allowed to start service Intent { cmp=com.myPack...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I disable these log messages in JasperReports? I am getting TONS of these messages when generating a PDF with Jasper now: INFO: Overriding bean definition for bean 'stackedAreaType': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=singleton; abstrac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there an easier way to fill a column in SQL Server 2008? I'm creating a temp table and I want to fill the column from 0-9999 using T-SQL. create table #tmp5 (userID int) Is there an easier way to fill a column up instead of using a loop? A: There are several approaches detaild here. Apart from looping (with and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading a data view from a UITableView list of items Okay, so i've been playing with Xcode and learning objective c for about a week now so i'm still pretty new to it all. So i've started creating an iPhone app. I wanted a screen where it would list some items and then when you clicked one of the items it would take...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't provision iOS 5 Beta device with Xcode 4.1 I had to re-install iOS and decided to run the new beta 5 which is out. All went fine during the process except I have a project running in Xcode 4.1 and want to provision my iOS 5 device but it's not showing up when I plug it into my MBP. I setup it up in the develop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple ListViews in ViewFlipper do not load I had 2 activities in a viewflipper with one activity and the other a listactivity. I loaded the list activity with setListAdapter and everything worked great. I added a third activity inside a viewflipper in my main layout. This third activity contains a listview just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Boost's ASIO, how can I wait on a Windows Event? My program needs to gracefully terminate when a Windows event becomes signaled. I am using Boost's ASIO library for it's sockets. I only have one io_service object. How can I 'register' this event handle with the io_service, so it calls a callback when the event...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Formatting Textbox in VBA 4 place decimal Is there anyway that you can format a textbox format to have four decimal places at all time? I know how to do it with C# and Visual Basic using a masked textbox, but vba is a bit more challeging due to the lack of function. Any help would be greatly appreciated. Thanks Publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database cross table or one table is better First, I have companies and their templates.templates in file table I related columns like this: FileTemplate ------------------- ID - CompanyID - Description - FileID Second design: FileTemplate ------------------- ID - Description CrossTable: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CU3ER open source alternative Does anyone know either a javascript or flash based alternative for CU3ER? It was open source but has since changed: http://getcu3er.com/ A: Yes Piecemaker http://active.tutsplus.com/freebies/exclusive/exclusive-freebie-the-piecemaker-2/ A: CU3ER is Javascript ready and supports any b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Facebook redirects to canvas url instead of the app on facebook I wrote a facebook app that works as a tab on a page. Here is my config.php file which contains the configuration and redirects to the authentication page if the user has not yet approved the app: <?php require_once("database.php"); require_once("functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to insert a row into the Accounts table via the Sugar API This is code I have tried: $result = $sugar['soapclient']->call( 'set_entry', array( 'session'=>$sugar['session'], 'module_name'=>'Accounts', array( array("name" => 'id', "value" => $sugar_data['id']), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my java made pacMan clone sometimes laggy? I'm working on a pacman clone in java using eclipse and sometimes it appears laggy more specifically the movement of pacman/ghosts is slow, sometimes its fine. Once it has happened while I was running it so it wasn't after I added code and it doesn't seem to be after...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Combining Predicates In XPaths I have some XML like this: <MT N="tag1" V="text"/> <MT N="tag2" V="more text"/> <MT N="tag3" V="other text"/> <MT N="tag4" V="something cool"/> <MT N="target_tag" V="i want this"/> <MT N="target_tag" V="and this"/> I'm trying to target the MT where N=target_tag and by number (1 or 2)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7602545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capistrano: Can I set an environment variable for the whole cap session? I've got a staging server with both standard Ruby and Ruby Enterprise installed. As standard Ruby refuses to install a critical gem, I need to set $PATH so that ruby/gem/rake/etc. always refer to the REE versions. And since I use Capistrano t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Mobile facebook login not logging in iPhone users? I've got to be doing something very obvious wrong here, because I just can't bring myself to believe that facebook's mobile login isn't working correctly for iPhone users. If you have a look at these urls, you'll see that they work (after you replace the 'YOUR_APP_I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Script-Run Silverlight Test Project I have a solution with several Silverlight Test Projects. I would like to have some kind of script or tool with the ability of running all these test projects and generating some kind of report (any simple output will work) I googled around for some time but I was unable to find a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web Site Thumbnail? I posted a link of my website on facebook, but it uses an image for a thumbnail that I don't want(it is an image inside my website). How can I govern which thumbnail is used for my web site on any web page(facebook etc) ? Thank You A: For facebook at least, use <link rel="image_src" href="your_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python cgi weird behaviour I have a simple CGI python script with an html output: print "Content-Type: text/html" print print hours,minutes,seconds,"," When I run it from my linux shell, it runs fine but when called from the browser, all I get is a blank page. I used to have this problem before when I used CRLF EOF...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i get an immediate response from a long running process in j2ee? I can't seem to find a solid answer anywhere. I THINK i found one with respect to JMS but it was confusing. A: It really depends what stack of j2EE are you using? Is it just web, ejb layer or both?. If we are talking about the web then you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Java Formatter class, is there an easy way to auto pad columns with spaces? Say you have some tabular data where the datas length can vary, is there a provision with the Formatter class to auto adjust the padding? So instead of this (note column A): columnA columnB 1 34.34 10 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using data attributes with jQuery I have this button: <button type="button" class="themeChanger" data-themeValue="grid" value="Grid"> <img src="templateImages/Icon_200.png" /> </button> And this jQuery: $(".themeChanger").click(function () { alert($(this).attr("data-themeValue")); alert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: I cant create a framework that work in xcode 4 I have this library https://github.com/ararog/Unrar4iOS for unrar in IOS device and i build, like the creator of the project say, but one files is missing and dont work when i importing to my project but if i use the framework that cames with the example work fine. I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove all HTML tags and do a carriage return on in C# I am creating a HTML to text parser. I need to remove all HTML elements and want to do a carriage return everytime there is a <BR> and then remove the <BR> as well after so there are no HTML tags left. I then want to parse the text for a certain string that is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - How to Rewrite a URL in MVC3 I have an URL like this: http://website.com/Profile/Member/34 I need this URL runs like this: http://website.com/Profile/John Given John as profile name for the user id=34. Can anyone give me directions to do that? A: In global.asx you need to add a new route. public static...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My database query display sorts values into alphabetical order I have been trying to figure this problem out without asking for help, but I have reached the point where I honestly can not figure it out. Here is the function I use to query the database (I have had to change name for confidentiality): public Cursor g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I format HTML into two columns similar to how MS Word does it? In Microsoft Word there is an option where you can separate the text in two columns as follows: The content has images and lists. All the content needs to continue normally as in the image. I've tried doing it with CSS3 but manually not dynamica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGraph Music music.listens returns error Following the spec here http://developers.facebook.com/docs/opengraph/music/ When I post: POST https://graph.facebook.com/me/music.listens?song=[song url] The response is invariably: { "error": { "type": "OAuthException", "message": "An unknown error has occ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: load xelement into a datatable i have the following xml file, that contains a lot of Information about branches of a company .. (this is only an example).. what i really need, is to load only the data from Branch1 in a datatable(that has the same structure as my xml file, so no problem with the datatable at all) .. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Twitter Atom feed blank for one user but not another? I've been pulling the latest tweet via search.atom in Twitter. $feed = "http://search.twitter.com/search.atom?q=from%3A" . $username_for_feed . "&rpp=" . $limit; The problem is lately it just started showing no content. I went and looked at different URLs and it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embedding audio in IE(7+) with javascript capability to mute and unmute I've been looking around for a method to embed audio onto a website, have a capability to loop and autoplay and also be able to mute and unmute the audio with javascript. I know that this is possible and very easy in html5, but I've heard that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Mono on mac - compile and run another project with code I am trying to build an automatic download, compile & run program for a project just to make it easier for other users on mac and myself so we do not have to do everything over and over as the project progresses. I cant find anything on how to compile and ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: getActivity returning null from fragment For school I am making an android app. For this app I have a fragment, which shows a gridview with just strings, from a database. For this I need a fragment. When I call getActivity(), it returns null. The onAttach method, as suggested here doesn't get called before the app c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: vb.net report viewer multiple reports Within vb.net is there a way I can dynamically create multiple reports using the same rdlc but with different SQL statements. So in essence I want to write a loop that will open the same report multiple times within the viewer which will end up having many pages.. A: Apparently...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass intent to ask user to chose any app to scan QR code? I am making a android app which requires QR code scanning and then parsing the text as a resul. I would like to pass intent to other apllications like google goggles or Barcode scanner which can do the job efficiently and take the scanned text back as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Save Selections DialogInterface.OnMultiChoiceClickListener I'm trying to make an Android app, and I want to let users select Weekdays. now I've got the AlertDialog setup and users can select several options. But I can't figure out how to save the selections when the user clicks the "OK" button. Code: new AlertDialog...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you simulate a conflict in CouchDB without using replication? I'd like to write a unit test for my app that simulates a conflict during replication. Is there a way to simulate a conflict using only a single CouchDB database and server? A: I assume you want to get a document containing a conflict in your dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails: How to handle model subclassing? There are ten ways to do anything but what is the best practice approach to organizing the Document and Section models described below in Rails? Documents can have n number of sections. Each Section can be a specialized type of section with its own attributes and associations ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving between lines in VIM Let's say I have a file with N lines. I'm at line X and I'd like to move to line Y, where both X and Y are visible on screen. I can do that by typing :Y<cr>, but if Y>99 that's a lot of typing. I can also do abs(Y-X)[kj] (move up or down by abs(Y-X)), but for big X,Y computing this differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Query to get one entry from multiple rows Query: select machinename, StatusCode, max(size) as size, statusID from machine where MachineID In( '33','22') and StatusCode = 166 group by machinename, StatusCode, statusID order by max(size) DESC Result: machinename StatusCode size statusID ----------- -------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Programmatically access to TFS 2010 from outside the domain I'm trying to access my TFS server programmatically from outside the domain where the server is installed. A basic test program would look like this : class Program { static void Main(string[] args) { Uri tfsUri = new Uri("<s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Setting up Delphi XE to use Vim as Default Merge Viewer Is it possible to use vim as the default merge viewer for Delphi XE to resolve check-in conflicts? If so, what parameters do I need to use in the tools->options->Merge Viewer dialog? A: Yeah, it works. Put gvim in as the program, the working directory will a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: stat & S_IFREG in C++ void fun1(char *fl){ //flNamep : stores the path of our directory DIR *dip; struct dirent *dit; dip = opendir(fl); if (dip==NULL) {cerr<<"Error\n";exit(-1);} while ((dit=readdir(dip))) { string trun = (dit->d_name); struct stat buff; stat(dit->d_name, &buff); i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ruby sftp error password reset I am troubleshooting a ruby script that queries a database, creates a csv, and sftps it to another server. The server the script is on is a rhel box, running ruby 1.87 I believe. Here's the code that does the sftping: Net::SFTP.start(sftp_site, sftp_user, :password => sftp_pswd) do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop jquery functions inside dialog on close? I created a messaging system which opens up in a jquery dialog when the user clicks the link. It check ever 5 seconds for new messages. the thing is, after the user closes the dialog it continues to check for messages which is using up a lot of resources if the user does...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PyPDF Merge and Write issue I am getting an unexpected error when using this. The first section is from a script that I found online, and I am trying to use it to pull a particular section identified in the PDF's outline. Everything works fine, except right at output.write(outputfile1) it says: PdfReadError: multi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to display the similar information in every view? I would like to display the information about user's registration state. It should be displayed on every view, but i consider, that writting this code for about 20 times is a bad idea. By the way, this is the code, it works, i guarantee that: View/RegistrationIn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android static vs nonstatic issue I've been trying to call the following: public static void startfile() { Log.i("File Works", "working2 "); try { FileOutputStream fos = openFileOutput("sdcard/sdtext.txt", MODE_WORLD_WRITEABLE); } catch (FileNotFoundException e) { // TODO Auto-generated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to respect Robots.txt using Nokogiri? I'm testing it and Nokogiri does not seem to respect Robots.txt file. Is there someway to make it respect? It seems like common question, but I could not find any answer online. A: Nokogiri parses the HTML or webpage that you give it. It does not know anything about the rob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inserting into multiple tables using more than one ID that just got created I had to add another table into my database and now I need to go back and update a page that allows inserts into more than one table. I didn't write this page, so I'm trying to clean everything up, but there are some parts that I don't reall...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When I initialize a C++ container (such as a std::list) is the copy constructor called? When I initialize a STL container such as a list< vector<char> > using e.g. my_list.push_back(vector<char>(5000, 'T')) is this copied after construction? Or does the compiler invoke the constructor inside list< vector<char> > its...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to add a permission to an application I'm testing? (my own app) My application needs that GPS is active at startup as for it to proceed. Iam testing the app, so I'm mocking the GPS by adding <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> to my AndroidManisfest.xml file. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Graph Representation in C++ I am going through a book The Design and Analysis of Computer Algorithms Reading through the Graph chapter, I am trying to implement DFS. By Reading definition of this algorithm it says, Graph G=(V,E) partiions the edges in E into two sets T and B. An Edge (v,w) is place in set T if verte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Store an array in HashMap i'm new to Java. How can i store an array of integers values in a HashMap, after that i write this HashMap in a txt file but this isn't important at the moment. I can store single fields but not an array. Any ideas ? public void salveazaObiectulCreat(String caleSpreFisier) { HashMap ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How to invalidate token for C2DM with previous installs? Since there is apparently no reliable way to get the devices unique identifier, our app tracks the installation using this class... package com.themenetwork.app.misc; import java.io.*; import java.util.UUID; import android.content.Context; public class Inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strings between quotation marks in C++ Possible Duplicate: What do single quotes do in C++ when used on multiple characters? The following code compiles in C++: unsigned int x; x = 'abc'; What does it mean? Is putting string between quotation marks legal? What does it do? A: Is not a string, but a multi charact...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot modify header information - headers already sent In my (WordPress) functions when I try to change Code 1 to Code 2 I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/consumer/public_html/themeforward.com/demo2/wp-content/themes/Tutles/functions.php:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Why does Spring 3.x ignore certain placeholderPrefixes for PropertyPlaceholderConfigurer? I have the bean definitions below. If I change the placeholderPrefix for the "exposeSystemProperties" bean to "${" and use that in the properties path of the second bean, it works. If I change it to anything but "%{" it doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webcal on Android I have a webcal feed with a calendar I would like to add to the user of my app's google calendar. I've tried searching around a lot to see if this is possible but haven't really gotten anywhere. I'm still relatively new to android development so bear with me if I'm missing something very easy! A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: iOS HTML Unicode to NSString? I'm in the process of porting an Android app to iOS and I've hit a small roadblock. I'm pulling HTML encoded data from a webpage but some of the data is presented in Unicode to display foreign characters... so characters in Russian (Лети за мной) will be parsed out as, "&#1051;&#1077;&...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL - ordering results by parent child i have entries in my table of products and categories with columns id and parent. lets say i have the following 0 ----- 0 ------ home 1 ----- 4 ------ PD1 2 ----- 0 ------ CAT1 3 ----- 2 ------ PD2 4 ----- 2 ------ CAT2 the fist col being the id, second being parent and a tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Testing with MOQ and Session State Wrapper I'm using a Session wrapper as written below. The problem I have is when running tests the try doesn't work and it goes to the catch so session variables are never being set. I'm using Moq to create a mock Session state for my mock context. If I create a variable like: Sess...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expected database model is inconsistent in real-time In this question, I was facing an issue where I was writing an update for a deployed application to bring the database up to date with the newer version we are deploying. Basic outline as follows: * *Began with currently deployed version of application *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between "column1 and(column2 or column3)" or "(column1 andcolumn2) or (column1 and column3) in an sql query run in mysql " I m stuck in a situation where I needed (column1 and column2) or (column1 or column3) from a table. So i implemented it as select * from mytable where column1=x...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EJB application shutdown hook How would i add a shutdown hook (just like the JVM Shutdown Hook) to listen (get notification) when an EJB application is deployed/undeployed (to stop the JMX MServerBean)? I could use a ServletContextListener, unfortunately this an EJB jar. A: Use @Singleton bean and implement @PreDes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: cellForRowAtIndexPath inserting in array I'm getting a weird issue. I have a custom UITableViewCell and each cell has a UIButton and UITextField. When the button is clicked, it changes the textfield value to some constant. Now in the cellForRowAtIndexPath method I have this: folderTitleTextView.tag=indexPath.ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unity: register instance at runtime I can't seem to figure out this one. I have a component which depends on a service. The service has a URL which is only known at runtime. How can I get a Component instance using the container? public interface IService { Uri Url { get; set; } } public class Service : IServic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I keep loosing my events, how can I keep them attached I have a small 'screen' that pops up over part of my page. This screen has two buttons on it. When either of these buttons get pressed the screen is removed. But the screen could need to be reused at a later time so instead of always rebuilding the screen i stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: web.py not importing MySQLdb I'm working with web.py and for some reason I am getting the following error: [Thu Sep 29 13:47:20 2011] [error] [client 64.8.210.120] File "/usr/lib/python2.6/site-packages/web.py-0.36-py2.6.egg/web/db.py", line 975, in __init__ [Thu Sep 29 13:47:20 2011] [error] [client 64.8.210.120...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 3 checkboxes showing same div (display:none) I don't know much about coding and I need to build this form with 3 different areas/divs (A,B,C), where: A - always shown, controls B and C display B - Shown if checkboxes 1,2 and/or 3 on A are selected C - shown if checkbox 4 on A is selected So, what I've reached so far...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: InDesign Scripting how to quit application (not document) I'm trying to automate data merge process. Here's what I have: First of all have created a working datamerge script: function main(){ mySnippet (); myTeardown(); } //<setup> //<snippet> function mySnippet(){ // automate datamerge var myDocument = app....
{ "language": "en", "url": "https://stackoverflow.com/questions/7602718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF error: "The service cannot cache the negotiation state as the capacity '128' has been reached" I'm trying to find out why one of my WCF services sometimes randomly makes the lsass process take 100% of the CPU. I was looking through the WCF trace logs and found this error many times: <ExceptionString>System.Servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Bytes To Bits Conversion And Then Print Code Taken From: Bytes to Binary in C Credit: BSchlinker The following code I modified to take more than 1 Byte at a time. I modified it, and got it half working and then got really confused on my loops. :( Ive spent the last day and a half trying to figure it out... bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I simulate click event in Stars Rating Widget I am trying to integrate the Stars Rating Widget- http://orkans-tmp.22web.net/star_rating/ (I am using widget from demo 6, after 3) after the stars are get click, the event raised with ui object callback: function (ui, type, value) { var...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: connect.facebook.net has been blocked I'm using JavaScript SDK to remove the scrollbars from my iframe application. My company blocks "connect.facebook.net" which hosts the JS SDK. Is there any way to host this javascript on heroku - the cloud platform that Facebook partenerd with? Or is there any way to resize the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create tooltip at cursor position in text area with jQuery I'm trying to create a tooltip above the input caret in a text area. This would be easy if I could get the x,y coordinates of the caret in the text area, however I've been searching for a little while and cannot figure out how to do that. Say a user is typin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7602750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }