text
stringlengths
8
267k
meta
dict
Q: Restore a deleted item/items on SQLite database when back button is pressed On my app user can click an item(row) on a listview to delete the clicked item(row) that was populated from a sqlite database. Is there a way to undelete the deleted items(rows) when the user clicks the back button? A: You would need a Redo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Css for an element that allows break-word on child divs, but that can also expand to take the width of its children I'm trying to determine whether it's possible to create css for an element that supports word-wrap:break-word, but that also expands to take the width of its children when breaking is not possible. <ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Need suggestion for SysLog with Node.js I have just npm install node-syslog but it doesn't work. I have a syslog server (IP address , and local0). And I'm looking for a syslog module to help me post the message to syslog. But I don't know which one I should use. Please give me some suggestion. thanks. oh.. if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: stack program print function not working properly I just finished working on this program but from the beginning I noticed that it was somehow not printing out everything it was supposed to. It's needs to print the integers in a stack beginning from the top first and then do it again beginning from the bottom. It pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What motion does iPhone SDK give exactly? I am a little confused about iPhone's accelerometer and gyro data. I had worked with SDK at iOS 3.x times and as far as I remember it only gives rotation around axes. But with iPhone 4 I saw that it has a gyroscope; which is used for rotation again. If gyro is a new feature,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Twitter API to follow someone I checked some other similar questions but some of them are old and i'm too new at api for the rest. So here it comes. I have my account's password, i have my username and i have a person's username who i want to follow. I want to login and follow that person with these infor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF CF: is it right always is null the object of FK? I have a Domain Models like this public class ShipToCode { public int ShipToCodeID { get; set; } [Required(ErrorMessage = "Nombre es requerido",AllowEmptyStrings = false)] [StringLength(50, ErrorMessage = "Debe ser menor a 50 caráctere...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii relations trouble when trying to display CGridView from 2 models Image describing the tables -> http://i.stack.imgur.com/ki2YP.jpg Each of the tables is a model. Main model which shows through CGridView is "RegularTask". Now I need it to display fields from "YearlyTask" in the same row. "hp_id" and "up_id" are F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Global code initialization in Java Since the JVM loads classes and code on-demand, there is no way to have initialization code in some random class (apart from the class containing the main() function) and have it run as the JVM starts. I'm aware that the very thought of this goes contrary to the JVM design. However...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you delete a couchdb document with an empty "" document id? I see the document in the db as this: {_id: "", _rev: "1-2f11e026763c10730d8b19ba5dce7565", forbidden: "must supply latest _rev to update existing package"} Everything I see in the docs shows referring to the document with the ID, but of course this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I make 2 pages inside a page ? Is that even possible? Like 2 "frames" containing their own javascript and forms inside a webpage. A: Yes, look up HTML frames, or iframes. A: <iframe src="www.google.com" frameborder="0" width="10px" height="10px"></iframe> <object src="http://www.google.com"> <em>Googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Rails 3.1 - sharing precompiled assets across servers App 1 is on server A. App 2 is on server B. App 2 has precompiled assets and everything works great. Now App 1 wants to use the same CSS file as App 2 that resides on server B. Is there a way to make this work? I tried setting: config.action_controller.asset_host...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: php array_sum on associative array I have associative array (dynamic-may have more arrays but same keys): Array ( [food] => Array ( [0] => 3 [1] => 4 [2] => 1 ) [liquor] => Array ( [0] => 4 [1] => 5 [2] => 0 ) [beer] => A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use Posterous API to 'scrape' my own site for contributor info, date info, and response info As a college teacher in STEM, I like it when I can use technology to enhance the learning experience of my students, and I doubly like it when it allows me to introduce them to cool tech, too. During the last year, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: EF 4.1 Code-first executes queries 3x slower than regular EF in my application I have a pet project (a simple forum application) that I use to test out all the latest .NET tech and I recently got around to toying with Entity Framework Code-First. This app already had an existing EF solution with an EDMX file mapped ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: "Download declined" on android market People are able to see my paid app "Mypod unlock key" on honeycomb devices, but after they purchase an error, "Download declined" the app doesnt install. it downloads and installs fine on pre-honeycomb devices. The log shows I/vending ( 3174): [1] AssetDownloader.downloadDecline...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to draw line after every group in SQL Server Reporting Services? Below is the report I have created. I would like to draw a line after every group as depicted with red line in the image. Tried meddling with Textbox Properties > Border Style expression. But that would not stay once I close and reopen it. If I set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Using GPU on Silverlight 5 for general-purpose math I'm working on an in-browser Silverlight application that has some fairly compute-intensive operations, e.g., running an Inverse Discrete Cosine Transform, or a Fast Fourier Transform, hundreds of times a second. It would be valuable to be able to offload as much o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I reset sandboxed in-app purchases on iOS for testing? I made a sandbox iTunes user, bought an item. That worked but there were some issues in my code for displaying the item. So, I want to re-buy it to test again. Problem is, I can't clear my purchases. I signed out my sandbox user, deleted the app and re-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C# Copy text in a textbox where focus is I have this problem and don't know where to start. I need to write a program that will run in WinCE, so Compact Framework will be required, and this program has to write text (a string) wherever the cursor is. I mean, if my program is running, and the cursor is in a notepad w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Comboxbox auto select first item when data is available I am looking for way to select the first item when data became available. But if no data in the source , then do not select. How to do it ? I am very new to WPF. <ComboBox Grid.Row="5" Grid.Column="1" IsEditable="False" ItemsSource="{Binding...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: AutoMapper with complex types I'm having a problem trying to use complex types with AutoMapper. I have two objects, a domain and a ViewModel that utlize in my View; ViewModel public class RegisterCoupleModel { [Required(ErrorMessage = "campo obrigatório")] [Display(Name = "Primeiro nome", Order = 0, GroupNam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: break javascript one line code to readable code I have seen people put all their JS code into one single line. (something like this: http://www.drasticdata.nl/DrasticTreemap/Examples/js/swfobject.js) I know they are trying to protect their IP. But I want to read the code and study it. Is there a way to make those...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to hide miniprofiler? I'm using MVC Mini profiler to check the speed of specific parts of my application, and would like to keep it there just in case something happens later and I may need to check "what's going wrong". It's not a full log set, but it comes pretty in handy to know what's making a page take long...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: iOS trace in XCode 4? I'm working on an iOS project and am trying to find out how I can go about getting a trace of all the functions that are being called when I do something on my emulator. The reason I'm looking for something like this is because I'm not quite sure what listeners are being triggered upon some of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having issue with Javascript Here is my code: JS PART $(document).ready(function(){ $("#parent").hide(); $(".parentcheck").click(function(){ if($(this).val()==="1") { $("#parent").show(); $('#switch').attr('disabled', ''); } el...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vectorization vs. parallelization in R As a toy example, suppose that we have a function called 'my_func' (the code is below) that takes two parameters 'n' and 'p'. Our function, 'my_func', will generate a random matrix 'x' with 'n' rows and 'p' columns and do something expensive in both runtime and memory usage, su...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Emacs Ensime-sbt not responding to enter after I try to use RUN command I am using emacs to program in scala, now I installed ensime to be able to run SBT directly from emacs. I use C-c-C-v-s to launch a buffer for ensime-sbt. but when I type the run and hit enter nothing happens, how to make sbt run run ? It's work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does iOS's UISlider evaluate the position it's on? Is it linearly or logarithmically? I ask because I'm taking a Mobile Apps directed study and we're using Sam's Teach Yourself iPhone (2nd Edition, also, booooooo!). In Hour 8, if anyone has it, we make an animation, and we use a slider to determine how long it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call external program from python and get its output I want to call a program (.exe), which is written in C++ and compiled, from Python. The executable takes as input two files and returns a score. I need to do this for multiple files. So, I would like to write a small script in python which loops over multiple fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is swscanf substring formatting ([a-z]) implemented for osx standard lib? The following code works on windows, but not on osx. The docs on swscanf say that: "...some implementations of wscanf() use "A-Z" to represent the range of characters between 'A' and 'Z'. " By some implementations, does it mean that osx doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: user authentication package I need a quick and dirty way to authenticate user(GUI is also included) in java web start app, how/where can I find one? if I need to make it a webapp (war file), that's fine too. A: In which approach do you want to authenticate the user? Local authentication or third-party based authe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET C# Session Variables Being Lost I have a solution which includes 2 projects and 2 class files that are called by reference. In one of my projects, I have some code in Global.asax in the Session_Start block that loads a few variables from a database and sets them into session variables. If I put a break point...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: how to automatically post status on twitter Does anyone know how to post automatically on twitter like Facebook has... In facebook, there is API/SDK that allows PHP to post status to visitors wall if they allow my application to do that, but what about twitter? I know that it's possible, but I don't know how... I fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android populate spinner from php/mysql query I am using the CustomHttpClient to connect and do queries from my android app. I was wondering if it was possible to populate a spinner from a php/mysql query and if so how it would be done? A: So this should actually be fairly easy. You haven't really given us much to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Better to 'try' something and catch the exception or test if it's possible first to avoid an exception? Should I test if something is valid or just try to do it and catch the exception? * *Is there any solid documentation saying that one way is preferred? *Is one way more pythonic? For example, should I: if le...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "150" }
Q: Transfering data between two Android devices in a WLAN In this question I asked how (programatically) was the best way to transfer data in the context referred in title - it was suggested connection through Sockets which I accepted, but now I have other problem (the reason why I'm creating another question) The prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind a 1:many relation in Interface Builder I have a simple Core Data app with to model objects: employee and notes. Employees can have many notes (1:many), each note belongs to one employee (1:1). In the employee window I display a list (NSTableView) of employees on file using an NSArrayController. Clicking ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IActionFilter Redirect in MVC3 I am implementing an IActionFilter to authenticate the request in MVC3, if my authentication returns false I want to redirect the request to a different controller from within the IActionFilter. I would like to be able to kill the processing of the current request and totally redirect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UPS worldship "date" field is in an unusable format I export records from UPS Worldship to Access and the date field called "Collectiondate" is not in a standard date/time format. Instead it outputs like "20110928" , but I want it to output like "9/28/11". please advise thanks in advance A: Starting with your stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appending asterisks to required fields when validation is conditional I have conditional validation and want to append an asterisk to the fields that are required. I could easily do this if i specify the class "required" to the fields however i am specifying the requireds using Rules, as some of the validation rules...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: xpages and java frameworks there seems to be a rising hype in XPages for web development. so far all i see XPages is good for is quick development of Forms. It seems like a modern day version of VB what are the advantages of using xpages as oppose to other java frameworks? A: XPages is IBM's web and mobile applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the most efficient way in Java to pack bits into byte[] and read it back? I currently use these two functions to pack and read bits in a byte array. Wondering if anybody has any better ideas or faster ways to do it? Edited the program with a few more optimization and tabled a few calculations. Currently 10...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: preventing xss in .net OWASP guidelines I've read the OWASP guidelines regarding preventing XSS. The guidelines seem to only refer to having a whitelist and encoding output. However, this leaves open the problem with so called free text fields e.g. the text box im writing in to make this post. Are there any preventa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gyroscope updates not starting I am creating test app that receives gyroscope pitch, roll and yaw. This code does not work as I would think it would: - (void) enableGyro { motionManager.deviceMotionUpdateInterval = 1.0/30.0; if (motionManager.gyroAvailable) { [motionManager startGyroUpdates]; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run Time Error - (pics) I've been testing my C++ server application recently, and when a few clients are connected and doing a variety of things, I've been getting the odd run time error which crashes the server. Could you help me - how do I debug the following error when all I have is these event viewer logs: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: as2 give background I wanto to make set background color the mc. 1.mc-2.mc-3.mc-my_mc This codes not show bacground. var bg_colour:Color = new Color(1_mc.2_mc.3_mc.my_mc); bg_colour.setRGB(0x6546a0); This codes show color. but my work does not. How can I do this? Thanks for answers. var bg_colour:Color = new Color...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA can't send calendar appointment When I manually make a calendar reminder/appointment, I can then click "Invite Attendees" and chose the people to invite and then click "Send" and everyone will receive that calendar reminder/appointment. I have the following code to make a reminder programmatically, but it won't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: tower defense game in as3 adding the enemy ok so i have been creating tower defense game off of a tutorial. I finished the tutorial and it worked fine but i couldn't figure out how to build off of it. So I started all over and built more towers and a second enemy but the problem is that on the first level it works b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery AJAX Form does not return values I have a multi-form app that gathers some information via AJAX and then allows the user to update that information and submit it again while continuing through the form. The goal is to eliminate multiple pages to perform simple record updates. My jQuery .post() returns the 'ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding duplicates in java Array Anyway, I have this extremely simple java program to find out if 2 objects in an array are the same. How ever when I run it when a set of unique objects it always returns 1 error, If I add more objects that are the same it counts as normal. This is the code; int[] array= new int[] {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: string returned in reading file line by line I want to pass the string returned by reading a file line by line into a function. But its givin an unusual error.Seems as if the string returned is not exactly the line in the .txt file(source file).However if i manually pass strings into the function by copy pasting it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to hide iOS tab bar for a particular tab index and tab is shown back when the screen is touched? Im trying to hide the tab bar for a specific view and show it back when the screen is touch. I want it to have the similar effect as youtube, for example when the video is playing the player controls is hidden and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to have a sealed constructor? I have a baseclass which has public contructors. The baseclass is not sealed and is not abstract. There is one constructor which I desire to be sealed. Is this possible? My current attempt results in syntax error saying the constructor cannot be sealed. public sealed MyBase(string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DiscriminatorFormula If I have a single table where I need multiple columns for discriminator, is my only solution to use a @DiscriminatorFormula? I ask because some prototyping gave us some results that I cannot explain. Failed Prototype: Initially we prototyped a 3-deep class hierarchy using one @DiscriminatorColu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get YUI object on page I'm using the YUI2 framework. I want to be able to get a reference to an object that was created on the page. I don't want to change the existing JS code to store a global handle to it when it is created, if possible. The page has something like this on it: <script type="text/javascrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGL goes green on tablets Description: My OpenGL game runs fine on phones. However, after a couple of seconds of running on a tablet the 3D rendering goes all green. The 2D overlays (gl) are mostly fine. This might be triggered by rotation, I can't be sure; no access to a tablet. A user kindly recording it happen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Match text to attribute value w/ jQuery If I have the following vars var $headers = $("#myTbl th").not(":first"); var $this = $(this); How do I match $this.text(); to the text within title tag inside th? <th title="match this title">value</th> This does not seem to work: $headers.filter(":contains(" + $this.text(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why no zoom dropdown in ASP.NET reportviewer in Firefox? I am using Visual Studio 2010. The web reportviewer is not showing the zoom dropdown in the report toolbar in Firefox. It shows in IE & Chrome. I have ShowZoomControl true. Is this a limitation of the control? Why? A: it seems zooming is only supported in IE,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make ASP.NET MVC Action return different formats? I don't know if this is the right way to approach something, but I'm hoping it is. The example below is a heavy controller and is absolutely the wrong approach, but it get's the idea of what I'm looking for across. public class PeopleController : Controller { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System.Threading.Tasks not obeying start rules? ReWrite: I have stripped the question down to contain the example code instead of a link to it and the results and question as the surrounding information seemed to be causing confusion. Question: Why do tasks seem to start with out being started? This is a piece of sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xfbml registration plugin validation error I used Facebook's demo scripts to understand registration plugin' system. I use this code: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml"> <head> <title>Home</title> </head> <body> <div id="fb-root"></div> <script src="http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Middle-Mouse-button overflow bug in Chrome (Win) Observe this fiddle: http://jsfiddle.net/pixelfreak/AN5Wb/ Everything is fine until you try to scroll by clicking the middle mouse button. Then you can actually view past the boundaries of the element. This is not happening in FF or IE. Is this a known Chrome bug? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting the input from a PUT method in Web.py I'm using the following code in my server program: class AddLibSong: def PUT(self): db = MahData.getDBConnection() songs = json.loads(web.input().to_add) addToLibrary(songs) return But for some reason when I do a PUT with the data: "to_add=[ { "album" : "Unkno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML Table Body Positioning and Scrolling As pictured in this Fiddle, I have a three tables on a page. I want to be able to scroll the body of "Leaderboard" and "Queue," leaving the caption and table header alone. Preferably without absolute positioning. Somewhat related, I also need the table (not including the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 3D Animation of Fractals I'm giving a presentation on Fractal Antennas (take a look at my previous threads) in November and I wanted to incorporate some animation to make my presentation easier to visualize the content I am referring to. Most of these animations would be relatively short, probably a minute long at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ correct use of stringstream::str()? Consider the following C++ program: #include <iostream> #include <string> #include <sstream> using namespace std; int main (void) { string l1, l2; int n1, n2; stringstream ss; getline(cin, l1); getline(cin, l2); cerr << l1 << " " << l2 << endl; ss.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: trying to create a popover control with a datepicker in it that pops up when i click on a UITextField So I've seen this question answered in such a way where someone says "use the TextFieldShouldBeginEditing which is a method in the UITextField delegate protocol" I'm already using the popover delegate protocol in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does MongoID do a separate query for .count(true)? I have a ruby on rails 3 project in which I query for a certain number of objects by using a .limit(3) . Then, in my view, I loop through these objects. After that, if there are 3 objects in the view, I display a "load more" button. Here is the view code: <% @object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can an Android marketplace account have more than one login? I am an iOS and Android developer, but newer to the Android Marketplace. On iOS, you can have multiple iTunes Connect & developer.apple.com accounts to access provisioning, applications, stats, etc. Is such a thing possible on Android? When I log into the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding and removing the last occurrence of an element in a (singly) linked list with only one traversal Is it possible to find the last occurrence of an element (for example, an integer) and remove this node with only one (forward) traversal through the list? A: Yes. Simply remember the previous entry every time y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NAnt
{ "language": "no", "url": "https://stackoverflow.com/questions/7604765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mySQL SELECT timestamp(now()-3000); I'm trying to make a query which brings back results based on a timestamp, say an interval of 30 minutes. So what I figured out is that I can SELECT * FROM x WHERE ts BETWEEN timestamp(now()-3000) AND timestamp(now()) So this will query everything from x with timestamps in column...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Issue in sighandler I am creating a user level thread library implementing preemptive round robin scheduler. I have the handler function like this: void handler(int signum) { gtthread_yield(); } In the gtthread_yield, i am doing the context switching to switch to the next thread to be executed. The logic w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Type Provider for Entity Framework Would it be possible to create a type provider in F# 3.0 for Entity Framework, so that I can get neat IntelliSense like with the SqlDataConnection (included in Microsoft.FSharp.Data.TypeProviders) but with EF under the hood? A: They already provide two Entity Framework type provid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is using TempData to pass details between controller actions bad practice? I have certain situations where I need to pass a value between controller actions. * *When passing a returnUrl from a view to all nested views. In the view I have @{ TempData["returnURL"] = Request.Url.AbsoluteUri; } and then access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pattern fills for graphs As ggplot2 produces nice colored graphs but sometimes it is required to have black and white graphs with pattern fills. I wonder how to do this in ggplot2, say for this code: ggplot(diamonds, aes(cut, fill=cut)) + geom_bar() Edit Is there any function in R to do pattern fills for graphs? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Remove old folder from a public git repo I have a fork in Github of a repo that has large binary files in the vendor folder. I want to remove that folder, so that the repo returns to a normal size. Problems/Challenges: * *There are 7 – non sequential – commits concerning the vendor folder. *There are hundreds of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Index on a Varchar? We're suffering some heavy table locking issues in production. I have noticed that I created a stored procedure which gets a list of orders by order number. Order number is a VARCHAR(150). There is no index of any type on this column. At the moment, there is a LOT of NULL values in this column. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I inspect element in chrome when right click is disabled? I want to debug a info box that shows when I mouse over a google map marker. But google map disables right click anywhere on the map canvas, so I can't inspect the element for debugging / viewing purposes. I tried to search for the element by the hre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Is it possible to attach a debugger to a running PHP process? I have a PHP script that we run every few minutes through a cron entry, and every now and then (about once a week) instead of ending normally, it stays running, eating up 100% of a CPU core (i'm assuming, looping infinitely) Looking at the code and "think...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: jquery, access page tab "with ajax content" via external hyperlink? Im having trouble to open a page displaying a specific jquery tab that loads its content via ajax. The problem is that jquery-ui opens tabs called by external links using the anchor hashtag but a ajax content tab anchor doesn't has one. Any ideas Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a jquery video player that handle mp4 video files? I need to find a jquery video player that can play mp4 files. please help me Thanks. A: I've come across a couple of free jQuery based video player scripts: http://flarevideo.com/ http://videojs.com/jquery/ Both of those first try a HTML5 video tag then fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Web Application multiple user session handling I use Glassfish server 3.1.1, and I successfully configured my realm for the usergroups. While only 1 user is logged in, everything works fine, but as I log in with another account from a different browser (or even a different computer), the first session is cleare...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ObjectiveC Category is not imported but still running code I have created a category for UINavigationBar with the following code: // UINavigationBar+MyNavigationBar.m @interface UINavigationBar (MyNavigationBar) @end @implementation UINavigationBar (MyNavigationBar) - (void)drawRect:(CGRect)rect { UIImage *im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best way to format multiple 'or' conditions in an if statement I have an if statement with many conditions (have to check for 10 or 15 constants to see if any of them are present.) Instead of writing something like: if (x == 12 || x == 16 || x == 19 || ...) is there any way to format it like if x is [12, 16, 19]? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: node-qunit not working with nodeJS I have installed node-qunit using npm and this appeared to work correctly. The following script simply does nothing...no errors, no qunit output (not even failed test cases): var testrunner = require('qunit'); testrunner.run({ code: '/Users/macuser/Documents/test-input.js', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scheduled program VB.NET I would like to ask for a recommendation for my project. Basically, it's a scheduled program that shall run at a given period of time, for example, 6:00 pm daily, it includes importing an excel file and inserting it in a sql table. I have my codes with me, but I dont know how to execute this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert rgb values into regular css color values? I trying to compare the styles of elements on my page. But one element dynamically changes it's text color to red, but represented as a rgb value. And the other element (to compare it with) uses #123456 values. Is there a converter somewhere that can take rgb ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML Schema Multiple Elements and Attributes I have this code: <root> <skill id="1">C++</skill> <skill id="2">C#</skill> <skill id="3">Java</skill> <skill id="4">PHP</skill> <skill id="5">MYSQL</skill> <skill id="6">HTML</skill> <skill id="7">CSS</skill> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Plotting densities in R So, I am plotting densities (histograms). For example: d <- density(table[table$position==2,]$rt) But, I want to plot multiple densities on the same plot. For instance, I also want to plot density(table[table$position==3,]$rt) density(table[table$position==4,]$rt) density(table[table$positio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make a view not read only I created a view that I make read only create view EMP_VU AS select ename employee_name, deptno, empno from emp with READ ONLY CONSTRAINT EMP_VU_Read_ONLY; How do i make it not read only? I get this error when I try to insert information into the view so i am assuming thats my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing socket objects between processes, TCP, Java Ok so I've found out Sockets are not serializable... so I cant pass them over TCP... My problem is I have a homework assignment where I have 10 servers that must listen on one socket(lets call it request). For input from any of x number of clients that write to tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Browsers reformat my HTML which results in different look EDIT: I found that the issue is actually that IE changes an HTML elements class text from: "<img class="blah".." to "<img class=blah..". This is only happening in IE for me. Note it doesn't remove the src quotation marks or the id quotation marks or others...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I prevent form variable names from revealing the database structure? I'm in the early phases of working on a web application, and I've reached a point where I want to make the best choice about a particular security concern. At the moment, all fields found within HTML forms are named after the database colum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I interprete a greyscale matlab image passed to my c++ mexFunction Here is my project, I have a GUI that loads images and I need to pass this image and several information to my mexFunction coded in C++, like xSize, ySize, window size for processing. I am having trouble to interprete the information that mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery.mobile-1.0rc1 and themes When I update my apps to the latest release of jquery,mobile-1.0rc1 All my set data themes go to the black default. Even when I explicitly code data-theme="b" etc. Did I miss something? A: OK I see themes are now added to the element div you want them for and no longer will adding ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decrementing while loop in c Is it possible to decrement the array size in a while loop in C by more than x--. For example, can you decrement an array by a third of the array size with each iteration? int n = 10; while (n < 0) // do something (round(n/3))-- // this doesn't work, but can this idea be expressed in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Composite models (models within models), or manual foreign key associations between models? I have two models, and I want to "nest" one within the other. Is there a way to do this with Sencha Touch? My models look like this: Ext.regModel('OuterModel', { fields: ['name'] }); var outerStore = new Ext.data.Store({...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Regex Illegal Escape Character in Character Class I'm trying to determine whether or not a expression passed into my Expressions class has an operator. Either +-*/^ for add, subtract, multiply, divide, and exponent respectively. What is wrong with this code? private static boolean hasOperator(String expression...
{ "language": "en", "url": "https://stackoverflow.com/questions/7604879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }