text
stringlengths
8
267k
meta
dict
Q: Setting up a relative dimension? I have a pretty simple scenario but a very large data set (using even simpler example below to illustrate my issue). Let's say i have a cube comprised of Country table(fact) that has one dimension called Continent. With this, i can aggregate country data by continent. But let's s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python - Read file from and to specific lines of text I'm not talking about specific line numbers because i'm reading multiple files with the same format but vary in length. Say i have this text file: Something here... ... ... ... Start #I want this block of text a b c d e f g h i j k ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Sharing JS objects between HTML frames in IE8/IE9 I have to bring support for IE8/IE9 to an application which was built specifically for IE6 and uses HTML frames (framesets) a lot. Application has a lot of JavaScript code where "navigator.PropertyABC" is used. Here "PropertyABC" is an object initialized in one of fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable browser developer tools? I'm developing a web application and since it has access to a database underneath, I require the ability to disable the developer tools from Safari, Chrome, Firefox and Internet Explorer and Firebug in Firefox and all similar applications. Is there a way to do this? Note: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Postback of dropped content in HTML5 We have an ASP.NET MVC3 web application. We generate HTML5 pages. And now, we would like the dragged & dropped content (images, word documents...) into the HTML5 page to be sent to the Web Server and then processed (content and MIME type) in C#. How can this be solved? A: They a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Efficiently Converting OracleDecimal to .NET decimal w/truncation I am getting an arithmetic overflow exception when trying to convert the following oracle spatial object to a coordinate set (decimals) in C# using (decimal) OracleUdt.GetValue() MDSYS.SDO_GEOMETRY(2001, 1041001, MDSYS.SDO_POINT_TYPE(-2.89957214912...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iotop script does not work via custom script execution I have CSF installed (configure safe firewall), it has a function to allow you to have custom scripts executed on load average events. My script: ##!/usr/bin/env bash iotop -bto --iter=1 2>&1 | mail -s "$HOSTNAME iotop output" incidents@ It works fine via bash ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is message property on Error propertyIsEnumerable? What is the correct result of the following? Do any of the ECMA standards specify this? My current Chrome 14.0.835.186m thinks false and Firefox 3.6.22 thinks true. (new Error()).propertyIsEnumerable("message") This is extra annoying because Chrome used to think t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java API design for RESTful application I need to design a RESTful application which allows me to access the people’s contact information from Facebook. I stored the First name, last name, email address in the database. For the UI I will use Dojo to display the data. But I don’t know how to design the middle layer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - Can't send mail in WIndows Azure via Gmail SMTP This is my Web.config: <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network defaultCredentials="true" enableSsl="true" host="smtp.gmail.com" port="25" userName="xxxxxxx@gmail.com" password="xxxxxxxxxxx"/> </smtp> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: addChild custom class AS3 This is the class I am trying instantiate into my main class: public class Character extends Sprite { [Embed(source='../lib/front1.svg')] private var front1Class:Class; private var crosshair:Sprite = new front1Class (); public function Character() { trace("started"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: last.fm json call error the following code: $.ajax({ type:'GET', url:'http://ws.audioscrobbler.com/2.0/?method=artist.search&artist=megadeath&api_key=b5bd5e1d31bf4188a6bcd329c964f6f2&limit=5&format=json&callback=?', success : function(){ console.log("slurped up data"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to reconnect mongo automatically in node.js server? Let say I have a node.js server connecting to a mongoDB. Then the mongoDB die or disconnect. Of course, node.js server will lose connection. Even if I restart mongoDB, node.js server will not connect to the new mongodb automatically even it is running on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I determine the JVM minimum heap size from within a java application? I have reviewed the answer to how to get the min and max heap size settings of a JVM from within a Java program which was helpful, but the accepted answer doesn't appear to answer half of the question. In essence, I want to report the -Xms...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Only display .NET PasswordStrength Control after 6 characters? Anyone have any ideas on how to hide the .NET PasswordStrength control until after 6 characters have been typed? The control doesn't seem to support this so I'm guessing I'd have to wrap something around it maybe? Thoughts? A: Unless you're doing a po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing the stringValue of a TextField from one class to another I have a Cocoa app for Mac OS X written in Xcode 4. The app has a main window that is the app delegate. This window has a button that opens another window (call it pop window) with 2 TextFields and a couple of buttons. When the user click one of those ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using pagination to display elements of an element in a table I'm new to JSP, so bear with me. I'm trying to make a JSP page that will display a table of some objects that I have fetched. Contained inside these objects is an array. In the table, I want there to be a hyperlink, or even a button, that will send the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to convert an existing website application into a Facebook app? I looked at a few of the SO questions that were similar to mine but didn't find them as informative as I had hoped. I read one place that said use iFrame but that requires using the Canvas, and Facebook api, and finally, now on Oct. 1, S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding Unhandled Exceptions - .NET I have a fairly large .NET solution that has poor exception handling. The original authors meant well, catching specific types of exceptions rather than the base exception class, however, this has resulted in more than I can count places where exceptions of a type are thrown but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Json result wrapped in pre tag - how to get value of it This is first time that I work with json. I am trying to return Json from my action method: public JsonResult Upload() { ... return Json(new { foo = "sos....sos....sos..."}); } But in result all I get is my message wrap in this "pre" tag. How to parse "f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to fill dataset with 2 datatable objects? I have a an XML file which I am loading into a dataset, I need this datatset to return 2 data tables. How can I achieve this? Thanks and appreciate your feedback. A: Start with a dataset having two tables, export it to xml. Then you will have the correctly formatted X...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple MYSQL Inner Joins Hi I am trying to create a search function but having trouble on getting it to work. This is what I have so far: SELECT DISTINCT users.ID, users.name FROM users INNER JOIN usersSkills ON users.ID = usersSkills.userID INNER JOIN usersLanguages ON users.ID = usersLanguages.userID WHER...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: source code for F# 3.0 talk on BUILD is there a dowload link for the source code in Don Syme's F#3.0 talk on //build/? A: You can find the source code of the examples from the talk on his blog: http://blogs.msdn.com/b/dsyme/archive/2011/10/05/demo-scripts-from-the-f-3-0-build-talk.aspx
{ "language": "en", "url": "https://stackoverflow.com/questions/7559467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can an Android application duplicate "Auto-rotate" functionality? In other words, can an application sit in the background, read the g-sensor of the device, and accordingly set (or rotate) the view of the active Android application? A: No, sorry. You could use sensors to perhaps control your app, but you cannot imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get a value from a radio-buttons' collection I was able to get the value from an input type=text with code like this: $salad_size = $form->addField('line','salad'); $salad_button->js('click')->univ()->ajaxec( array( $this->api->getDestinationURL(), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In perl, backreference in replacement text followed by numerical literal I'm having trouble with a backreference in my replacement text that is followed by a literal. I have tried the following: perl -0pi -e "s/(<tag1>foo<\/tag1>\n\s*<tag2>)[^\n]*(<\/tag2>)/\1${varWithLeadingNumber}\2/" file.xml perl -0pi -e "s/(<ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can I get types from an arbitrary query in Postrges? I've got a situation building a data analysis tool where my users can write SQL query (including joins, calculations, etc) and I need to be provide options to the user based on the data types of the columns in the result. I'm using JDBC to connect to Postgres. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Excel Macro Subscript out of range error I have below macro,getting script out of range error in If arr(0) <> opt Then arr(0) = VAL_DIFF if i see the length of that array it is showing 2.I dont understand why i am not able to access arr(0),As per i know Array always starts with 0.I able to print arr(1),arr(2) value...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using data-attributes with jquery validate Is it possible to use data-attributes to with the JQuery Validate plugin. I currently use the class name e.g. class="{required:true, messages:{required:'You must choose a site.'}}"` but need to use the data attribute e.g. data-validate="{required:true, messages:{requir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can one check an identifier for unescaped validity in most RDBMSs? I'd like my application to work on several databases. While I'm not going to explicitly support them right now, I'd like to be able to define my schemata such that I'm not using reserved identifiers. The reason? Identifier delimiters are not stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resource Dictionary Styles not available to UserControl So I have made a resource dictionary of styles to use and included it in my UserControl: <UserControl.Resources> <ResourceDictionary Source="../affinityStyles.xaml" /> </UserControl.Resources> Which makes it available to all the controls in the UserControl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Confused about idempotency, PUT, GET, POST, etc Most of the discussions about these topics are about how to form a URL or how to request a resource. Let me describe what I'm doing and see if the community can help me restate my problem in the more web-design-professional language :-) I'm building a piece of hardwar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Maven to just download JARs I would like to have Maven download the JARs listed in a pom.xml file. How do I do that? Currently, Maven wants to compile the project (and it fails). I don't care about compiling it because I'm compiling manually. I just want the JARS. Help? Albert ps: Background, I am compili...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Error in installing BIRT for FB Eclipse 4.5 I am trying to install BIRT on my existing FLash Builder Eclipse 4.5 However, after all the preferences have been selected, when it actually begins to downlaod, I get this Error: An error occurred while collecting items to be installed session context was:(profile=epp.pack...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fetching data from mysql using an android based client I have a server, that is developed using JAVA (netbeans), and a client which is an ANDROID device, I have a very simple database in mysql which runs on the server, all I want to do is to fetch the data using my android client, from the remote sever. where server...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count Uppercase letters Ok i have to pass a string to the main method which is obviously stored in args[0].Then count the amount of times an uppercase letter occurs. For some reason i do not seem to be counting the uppercase occurrence properly. This is homework, any ideas? Thanks in advance. package chapter_9; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to find out which file contains a javascript function I've taken over a project which involves a lot of javascript (AJAX and whatnot). In tracking down functions, is there a way to find out which included .js file contains a specific function? I'm hunting through Firebug but can't find where it isolates the spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Determine if statically named JavaScript function exists to prevent errors I have a script on my website that calls a statically named function when called: childLoad(); The childLoad() function is not always defined though it is always called. How can I prevent the script from calling this function if it does not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: If no value selected from dropdown, allow textbox to add to database VB.net I have a dropdown list that will add new titles to my database, however I would like to add a textbox that will allow the user to type in a new title if there is nothing in the dropdown that makes any sense for what they are trying to add. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add "Share" action to feed dialog? Does anyone know how to make the "Share" option appear next to the "Like" and "Comment" actions in posts generated through the feed dialog? I can see that the "actions" property might support this, but I don't see any "share" dialog that could be plugged into the link (and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript, Typescript switch statement: way to run same code for two cases? Is there a way to assign two different case values to the same block of code without copy and pasting? For example, below 68 and 40 should execute the same code, while 30 is not related. case 68: //Do something break; case 40: //Do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Parsing arguments from command line for shell script I am still a junior with the linux shell script and would like help with a certain script. I would run a sample shell script such as the following from the command line that takes in a directory as an argument: ./script.sh /some_dir/some_exe How can I parse out t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Problem with a List Displaying in a Textbox I have a small application that has several checkboxes, a submit button, and a textbox. I want the user to be able to check what they want, click the submit button, and have the results display in the textbox. The application runs but instead of the values displaying I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Selecting multiple select options from MySQL I am trying to load a mulitple select from the database to edit. I am storing the original data in an imploded string (ie "4, 6, 8, 9"). What I want to do is explode that string from the database, then have the values selected when the edit form is loaded. The values...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Working with python dictionary notation I'm working on a program where the user inputs 3 values (one of which is in dictionary notation form).. but I'm having trouble finding out how to work with this special notation. The user input will look like this: {'X':'X+YF','Y':'FX-Y'} which I store in a variable p. I k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change animation speed of Jquery UI Accordion I'm using the Jquery UI Accordion, and I haven't found anywhere in the documentation on how to change the speed of the animation. I've found people suggest using option "animated: 'bounceslide'" but haven't been able to find what the different available options are for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: provide a dialog to use browser inherent fullscreen on webapplications Is there a way to trigger a dialog to use browser built in Fullscreen? (And to leave fullscreen) (e.g. the mode of view that is usually accessible via f11) Question Parameters: I have a webGL webapplication where a common case of use is browsing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cron Process Keeps Being Killed in EngineYard I keep getting "FAILURE Process cron: is down" alerts in my engineyard application. A few minutes later I get a follow-up alert mentioning that the process is back up again. Has anyone ever noticed this issue before? A: It turns out that engineyard is expecting a cron...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: last modified file date in node.js I'm trying to retrieve the last modified date of a file on the server using node.js. I've tried file.lastModified; and file.lastModifiedDate; both come back as undefined. A: For node v 4.0.0 and later: fs.stat("/dir/file.txt", function(err, stats){ var mtime = stats.mtime;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: SSL cert failing to load only using Firefox Yesterday I moved a site to a new IIS7.5 server from an old IIS7.5 server. The site contains an SSL cert. I exported it from the old server and imported it fine into the new enviroment. Safari,Chrome & IE load the https ok however firefox keeps give me an error Renegotiat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to enforce default value if user bypass non-required fields I have entity with email field like this, field is not required, I just do not want to have nulls in DB columns: class Entity { /** * @ORM\Column() * @Assert\NotNull() */ protected $email = ''; } How can I enforce default value...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Zend Framework using IBM's DB2 and creating a standard connection in the application.ini file DB2 uses XML files as its basis for database tables, and I have been having a very difficult time finding any good references or examples of creating a standard connection to the database via the application.ini file. There...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make SQLAlchemy COMMIT instead of ROLLBACK after a SELECT query I am developing an app together with a partner. I do the database part (PostgreSQL), my partner implements the app on the web-server with python using SQLAlchemy. We make heavy use of stored procedures. A SELECT query on one of those looks like this in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHP Building array from traversing a nested tree model I have a typical nested tree model and I want to build an array with a 'children' array based on the levels or depths, but it doesn't seem to be working for me. Here's what I have now: while($this->tax->getTreeNext($nodes)) { $level = $this->tax->getTreeL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Date range Question I want to show data from the last month (not form months past though), this month and any futures data in my report. In a SQL view, how can you do this with the date fields called date? A: Alternatively in SQL Server you could use this simple comparison: … WHERE DateColumn >= DATEADD(MONTH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clicking on a flash button with Selenium I'm writing some tests with Selenium RC (on C#) for our project, which uses Ext.NET, and everything was fine, before I've faced the fact, that "Upload" button used for uploading files is made on Flash. It is inserted like this: <embed width="63" height="30" align="middle" pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem in including an external library while compiling a C++ program I'm using Dev C++ on windows 7, and WinPcap (developer's pack). Dev c++ is not able to find pcap.h apparently, even though I include the /include/ directory in project options, on compilation it displays an error saying "pcap.h: no such file or d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 Assets Problem in Dev mode I am developing a rails 3.1 application. I put 7 images in app/assets/images//. A page is supposed to show the 7 images. But my browser doesn't display all the images. Some images are not displayed randomly. Sometimes #1, 2, 3 images are not displayed and other times #6,7 images...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python RuntimeWarning: overflow encountered in long scalars I am new to programming. In my latest Python 2.7 project I encountered the following: RuntimeWarning: overflow encountered in long_scalars Could someone please elaborate what this means and what I could do to fix that? The code runs through, but I'm not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: iPhone Programming converting IplImage coordinates to UIImage coordinates I am making an application that shows the video feed in real time and I am processing the frames using OpenCV to detect faces present in them. To do this, I need to convert the frames into UIImage and then IplImage. Then I run the face detecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL Shorten Query - SELECT with mutliple OR choices Here is the query I have SELECT FB_TEXT FROM `FB_DATA` WHERE `FB_MODELID` = "'.$sku_modelid.'" AND FB_TYPEID = 1 What I want to do is allow multiple FB_TYPEID's so the query should be like: AND FB_TYPEID = 1,2,7 1, 2, and 7 are the numbers I need allowed. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you submit data from a web page to Flurry Analytics? We have developed an iPhone, Android, and BlackBerry app for our product. We also have an ASP.NET MVC mobile website that provides the same content as the native apps for any of the sorry folks who don't have a device that supports one of the native apps. We ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: median of three values strategy What is the median of three strategy to select the pivot value in quick sort? I am reading it on the web, but I couldn't figure it out what exactly it is? And also how it is better than the randomized quick sort. A: The common/vanilla quicksort selects as a pivot the rightmost elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: DDD: Model local identity inside agregate root after reading the blue book (Eric Evan's Domain Driven Design) and starting applying the DDD concepts in a simple blog like application I have the following question, how do you model a local identity of an entity inside an aggregate root?? Let's say for the sake of sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extracting words from domain I have a bunch of domains I would like to explode into words. I downloaded wordlist from wordlist.sourceforge.net and started writing brute-force type of script to run each domain through dictionary list. The problem is that I can't get it to produce good enough results. The simple scrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eliminate duplicates within a same table I want to get an email list from a table for specific dates. Select email FROM clients WHERE MONTH(created)=08 GROUP BY email I would like to eliminate the email if it already existed before in the table. so if he was created before the month 08. (an email can be created mul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Raising control event to be handled by completely separate part of .Net Web application Folks, I have a feeling there's a classic design pattern that covers this case, but I don't have a reference handy. I have a situation where a user clicks a button and another part of the web page responds. What's unusual (or at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VSTO 4.0 Runtime Download Missing from MS? We have code that checks for the presence of the VSTO 4.0 runtime and downloads it, if missing. This has worked fine until today. It seems the VSTO runtime file has gone missing from MS. Does anyone know anything about this? Can we tell our clients it's an MS problem and wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Array object values not being added to ajax call The goal here is to have MVC framework recognize and populate a field in my action that is a FormCollection object. I can get it to work if I handle all the serialization myself but so far no dice if I leave it to jquery/javascript. Question: What is causing the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show the Windows Media Player on a Windows Form (or Show the output of a process on a WinFom) I am trying to launch Windows Media Player through Process.Start. I am able to start the wmplayer.exe and with filename as argument its playing the file. But it is playing in Media Player Window. I need to show the media in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Submit button's value disappears onClick I have a simple form that takes in a user's e-mail address (the form appears when "E-mail" link clicked on). Everything appears to function correctly, except that the value for the submit button disappears onClick or onSubmit. I can't seem to track down the issue. Please r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do a query where a new column is added with with match results? How can I do a query where I fetch all items from table1 and than I compare each of table1 column2 items with table2 column2 items? The final query would contain an extra column3 with a value 1 or 0 if a matched was found. Please see below exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I write German language on a web page? I have to build a web page in German language. When I use some characters like ü (note the dots above the letter), it shows up like a question mark or black sign in the browser. How do I solve this? A: You could either use UTF-8 all throughout your project or instead of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I override the Telerik MVC Grid editor popup when using ClientTemplates and AjaxBinding I've got a list of user roles that I'm trying to display in my grid column and trying to set up a custom template for in the edit pop-up. I tried taking the tac of using the display/editor templates but found out that ajax...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PL/SQL Exception Translation I am inserting a new object in my database table, but I keep on retrieving a exception that states.... ERROR:insertproperty:ORA-06553: PLS-103: Encountered the symbol "EXCEPTION" when expecting one of the following: begin case declare exit for function goto if loop mod null p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Example of an elegant implementation of 'Defensive Copying' of a nullable java.util.Date in a JavaBean's getter/setter implementation? Is there an elegant Java implementation of Joshua Bloch's defensive copying techniques using the example below? The nullChecking is really the issue I think, but perhaps there is a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Analyzing log file in node.js is there any node module that I can use to analyze the log file? similar to Splunk but free. :) By the way, I have 5 servers, each put its log into its server. what is the best wayto combine them all? A: Perhaps something like Log.io is what you want? http://logio.org/
{ "language": "en", "url": "https://stackoverflow.com/questions/7559637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an easy way to find the "javascript equivalent" of jQuery code? I am doing a presentation on jQuery for some co-workers and I would like to demonstrate how certain tasks in javascript can be made easier using jQuery. I have come up with a small jQuery function that does some element selection/animation and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java enum set custom ordinals The other day I tried to do this, but it doesn't work: enum MyEnum {ONE = 1, TWO = 2} much to my surprise, it doesn't compile!!! How to se custom ordinals??? A: This is how you could do it manually: enum MyEnum { ONE(1), TWO(2); private int val; private MyEnum(int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Is there a way to make npm install (the command) to work behind proxy? Read about a proxy variable in a .npmrc file but it does not work. Trying to avoid manually downloading all require packages and installing. A: This worked for me- npm config set proxy http://proxy.company.com:8080 npm config set https-proxy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "327" }
Q: Internet Explorer 6 and Opacity This isn't a pressing issue, but everything that I've read indicates that these CSS opacity rules should work in Internet Explorer 6: .videos img { zoom: 1; margin: 0 auto; } .videos a.video img { opacity: 0.5; filter: alpha(opacity=50); } .videos a.video:hover img { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MapController calls do not work inside of event handler? I'm trying to move the map with a 3-finger gesture, rather than one. If I do a scrollBy() or setMapCenter() in my main activity, things seem to work as expected. Howevver, if I make these calls inside of my ACTION_MOVE, for example, they seem to have no effect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: inject parameters in cgi-bin through shell My current problem is that I'm developing a embedded system that uses a binary Cgi inside cgi-bin folder. For some obscure reason, when I access the browser and type /cgi-bin/Cgi?AjaxAction=settings&variable=0 everything works fine. So I would like to let a script boot with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get an element from an array using xpath I have the following SimpleXML object: SimpleXMLElement Object ( [@attributes] => Array ( [status] => ok ) [a] => SimpleXMLElement Object ( [b] => Array ( [0] => SimpleXMLElement Object ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: News/Update Drop Down Section I've recently gotten into web programming, and I am completely overwhelmed. I've started off with the basics, html, css, and javascript. On my first webpage, I'm interested in implementing a drop down news section for where I post updates. The best example I can give is the way Riot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fade fade out effect need for existing javascript code provided Is it possible to apply a fade in fade out effect to javascript code please? At the moment it just pops up an image and disappears with no effect applied. Thank you in advance. A: Since your site is already using jQuery, look into using jQuery fadeIn()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem Customizing the Navigation Menu from Silverlight Business Application I'm using the Silverlight Business Application Template but I need to customize the MainPage layout to match the client's existing ASP.NET projects pattern. I was able to create the Navigation menu which highlights the selected item. But w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to correctly deserialize a JSON string into the class that contains a nested List of another class I have the following object graph and I'm using Jquery's $.Ajax() to send this identical "View" object in JSON (stringified) from the browser to a Page Method on ASP.Net. The JAvascript deserialization works for al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sorting excel sheet in reverse order on basis of created time / reversing the excel sheet I'm using Microsoft interop excel to automate the excel workboook in which i have many worksheets(say 40) which have been created at in seconds gap or even less now i have to present the worksheet in reverse order i.e the shee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding x values for peaks in graph I am trying to find the hours where my server load goes high (peak hours). As per what I know and have read, I can employ shape matching to find a peak, and for that I can use neural networks, etc. But this will only tell me that the input is a peak or not. I wont be able to pass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where cell is not equal to.. MySQL query (!=) Can someone tell me how I can do a MySQL query that selects all row with an id != 1? Please give me example of it. A: In standard ANSI SQL, not equal is represented as: <> A: Try this one: SELECT * FROM pages WHERE id <> 1 You also can use != instead of <> SELECT * FR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to signal when AJAX completes I have two ajax $.get() requests that I need to synchronize. Essentially var signal1 = false; var signal2 = false; $.get(url, {}, function (data) { signal1 = true;//callback complete. },'json'); $.get(url...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Single-sign-on in Extjs 4 How can we implement Single-sign-on in Extjs4 where there are two different domains * *domain1.com *domain2.com. A: There are many approaches to Single Sign-On, but it is unlikely that Ext can help you with them. Since the final authentication takes place on the server, your SSO s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular expression for validating year starting from 2020 I am writing a regular expression to validate year starting from 2020. The below is the regular expression I wrote, ^(20-99)(20-99)$ It doesn't seem to work. Can anyone point out where did I get it wrong? A: Regular expressions don't take ranges like that. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: fwrite function not working I am trying to write a simple program that opens the content of a binary file into a buffer and the searches that buffer for the occurrence of string which is '+' characters. It seems like to does find these characters even though my algorithm is a little flaky. Once it finds them it chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i sort this dict per datetime? How can i sort this dict per datetime? Is it possible? { 1: {'l':{'created_on': datetime.datetime(2011, 9, 29, 17, 39, 26)}}, 2: {'l':{'created_on': datetime.datetime(2011, 9, 23, 17, 39, 26)}}, 3: {'l':{'created_on': datetime.datetime(2011, 9, 30, 17, 39, 26)}} } A: You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to break up an HTML List using CSS Only I would like to create a list that adds columns as necessary depending on how many list elements are present. Currently I only know how to do this using a table, which I would like to avoid. Is there a way to do this using CSS only? I have created an example of how I curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EF 4.1 code-first: How to select an entity with it's collection-property's count I have an entity named Tag with a navigation property (collection) named Articles. The Tag has a ignored-property named ArticleCount that used to save tha associated Article s count (just in run-time and to use in views- ignored against...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drupal 7 & Rules - How to update a node field every time a comment is edited/posted I would like update a field in one of my nodes to reflect the average of all the fivestar ratings I have. However, I want it to be indexed and searcable by search api/solr. So I thought I could use a Rule to average all of the rating...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic Alert View Text Body Can you edit the contents of an UIAlertView once it has been shown? I would like to be able to update the text in it without having to dismiss and show a new one every time. Thanks in advance, Jonathan A: There is a UIAlertView delegate called didPresentAlertView:. It is fired once the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }