text
stringlengths
8
267k
meta
dict
Q: How to use master/slave mysql in play framework My application is getting a lot of database calls hence I need to start using a distributed master/slave mysql database but I'm having problems configuring play framework! so my first question is that if it is actually possible to configure hibernate and jpa with play...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert blob into oracle DB using perl Is this possible at all? I've seen references on the 'net indicating that a stored procedure should be used, but I have a script which needs to insert gzipped data into the DB. How can I go about this, if at all? Thx A: You need to use DBD::Oracle module, use DBD::Oracle qw(:or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form output using bean Getting my feet wet with JSP/bean action. I'm getting An exception occurred processing JSP page /foo/output.jsp at line 14 on my output page. The java file compiles ok. input.jsp <p>First Number: <input type="text" name="first" value="" /></p> <p>Second Number: <input type="text" name="seco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why are dashes preferred for CSS selectors / HTML attributes? In the past I've always used underscores for defining class and id attributes in HTML. Over the last few years I changed over to dashes, mostly to align myself with the trend in the community, not necessarily because it made sense to me. I've always thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "230" }
Q: Issue moving input to the right on right arrow key with jquery I have this code : jQuery.fn.enterText = function(e){ var $cursor = $("#cursor"); if (e.keyCode == 39){ e.preventDefault(); $cursor.val(""); var nextChar = $cursor.next(); $cursor.after(nextChar); } }; Im trying to move the #cursor to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can not removeClass in jQuery The loading class is added but it doesn't removed. How to fix this ? $(".phones").addClass("loading"); that = this setTimeout(function() { $(that).removeClass('loading'); }, 3000); A: Something like this would work: var phones = $(".phones").addClass("loading"); se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is clustered indexes implemented in mysql? Why is this code not working? Is it because clustered indexes is not implemented in MySQL? CREATE INDEX niels1 ON `table` CLUSTER (attr1,attr2); A: As far as I know only the InnoDB engine offers clustered indices. Also, there's no dedicated "CLUSTER" keyword; all PRIMARY ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help with trigger php/mySQL I need to make this trigger work using three tables. Does anyone see a problem? The 'qty' needs to always show the latest quantity from the adds and pulls. CREATE TRIGGER Upd_Cartons_Qty AFTER INSERT ON cartons_added FOR EACH ROW BEGIN UPDATE cartons_current SET qty = qty + NEW.add...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening and Closing Multiple Database Connections with PDO in PHP I'm working on simple database connection class. I'm using PHP and PDO. As I would need to connect to multiple databases, I want to pool all the database connections in a class variable, and then access each as my scripts require. Here is some pseudo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why am I getting an "invalid link" error when trying to do a PayPal subscription? I'm getting an error when I'm trying to setup payment through this paypal subscriptions form. I'm testing it using the PayPal sandbox. I'm getting the following error: The link you have used to enter the PayPal system is invalid. Plea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically convert percentage input values Several of the form fields in an application I am building using CakePHP collect percentages for their values. I would like the users to be to see and edit percentages in the familiar percentage (24.5%) format, but I want to store it in decimal (.245) format in order to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python Script to List Local Users using Win32net I'm using this script on a LAN to get each of the machines to list out their local administrators and users. There has been a security breach in our network where a couple students have created local admins off directory, and we need to find out where. The list it im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zend_Config_ini add a section and(or) key on fly? I have an ini file for each client on my system, and add a new section and key to be created on the fly. I need some think like this: Current ini file: [section_a] key_a=1 key_b-2 And need to change this (with a php/zend) code, to that: [section_a] key_a =1 key_b = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert Byte Array to image and display in Razor View I am using EF 4.1 Code First and for the sake of simplicity, let's say I have the following Entity class: public class Person { public int Id { get; set; } public string Name { get; set; } public Byte[] Image { get; set; } } I have managed to create ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How to center a button within a div? I have a div that's width is 100%. I'd like to center a button within it, how might I do this? <div style="width:100%; height:100%; border: 1px solid"> <button type="button">hello</button> </div> A: With the limited detail provided, I will assume the most simple situatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "282" }
Q: mvvm light Messenger.Default.Register in View codebehind? The BookShelf solution John Papa presented at Mix11 has something that sounds a bit odd to me... It uses an MVVM pattern and MVVM Light toolkit... Everything is great. The only thing I can't understand is this: In codebehind of Views it register for a couple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Proper way to send an Authenticity Token with AJAX to Rails This works but gets stopped because it lacks an authenticity token: $(".ajax-referral").click(function(){ $.ajax({type: "POST", url: $(this).parent("form").attr("action"), dataType: "script"}); return false; }); So I tried adding it like so: $(".ajax-r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: To Go or Not To Go with Liferay? What's the good, bad, and ugly? We are evaluating several solutions for a new web thing we're looking to build. There are several aspects to it, including user management, content management, campaigns, community, and financial transactions. We are looking to roll the framework ours...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: MySQL merge multiple date columns into one Ok so I have multiple datetime columns for things such as date_created, last_login, last_updated, etc... I would like to merge them into one column with the most recent datetime showing, so that I can track active_users more easily. I've found some suggestions to use the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select all between date and date (other format) in sql / php This is the format in the column "date": 2011-08-03 13:36:19 What i wish to do is make a sql query where it selects all entrys between two dates. My two dates comes from a datepicker: from 2011-09-20 to 2011-09-25 Now I cant do WHERE date BETWEEN '2011-09...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the fastest implementation for bignum? (Java's bigInteger / Cython's int / gmpy / etc...) Are there any benchmark on this??? (I tried googling for some results but found none... and I couldn't test gmpy because gmplib wouldn't be installed on my laptop) thank you! A: First of all, I'm probably biased since I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: char* to double and back to char* again ( 64 bit application) I am trying to convert a char* to double and back to char* again. the following code works fine if the application you created is 32-bit but doesn't work for 64-bit application. The problem occurs when you try to convert back to char* from int. for exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ef Code first One to one relationship with id as foreign I'm traying to do a mapping with One to One relationship with id as "foreign", I can't change the database Those are the tables Cutomer * *int CustomerId *string Name CustomerDetail * *int CustomerId *string Details Entity Splittitng does not work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem displaying webpage on different computers I have a very weird problem. I have a webpage that displays some graphs using Jquery. This page works fine on my laptop & my other colleagues laptop. But there is one particular PC that does not display the webpage properly. I thought that it might be a browser issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are tables created with "CREATE TEMPORARY TABLE" in memory or on disk? In MySQL, when you create a temporary table, for example, CREATE TEMPORARY TABLE ..., is that table created and held in memory or on the disk? I have read through the docs and Google'd it and have not come up with an answer. A: Like Mark said, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: C# odd object behavior I noticed something in C# when dealing with custom objects that I found to be a little odd. I am certain it is just a lack of understanding on my part so maybe someone can enlighten me. If I create a custom object and then I assign that object to the property of another object and the second o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: merge array quantity php this is my working code: while ($list = mysql_fetch_assoc($result)) { $sql2 = "SELECT * FROM stock WHERE gID=".$list['gID']; $result2 = mysql_query($sql2, $conn) or trigger_error("SQL", E_USER_ERROR); $totalgid = mysql_num_rows($result2); $sql3 = "SELECT * FROM stockcount WHERE gID=".$list['...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Very strange redirecting stdout and stderr issues can someone explain them? I have two calls that produce very different output: Call one: dmake -m _makefile_.m 1>> _results.out 2>> _results.out Call two: dmake -m _makefile_.m >2&1 >_results.out dmake does a compile of sorts and the first call correctly inlines c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: mouseover streetview flash not showing text of street names or landmarks I have a hybrid application that is using both v2 and v3 google maps. I am using the v2 in the bottom portion of the page because my boss likes to use the flash version of streetview. Everything works fine except that when a user places his/her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to assign a value to a casted column in Oracle I am wondering whether is possible to assign a value to a casted column in SQL depending on real table values. For Example: select *, cast(null as number) as value from table1 where if(table1.id > 10 then value = 1) else value = 0 NOTE: I understand the above ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: preparing lapack dll with mingw I downloaded lapack 3.3.0 version and mingw (with all libraries) after that I succeded to make blas.dll by gfortran --shared -o blas.dll blas\src\*.f -O I could not succeeded to make lapack.dll by gfortran --shared -o lapack.dll src\*.f blas.dll -O I got the following error gfortran: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pastebin.com Post I'm trying to post a new Pastebin through a popup window in Javascript. The issues I'm getting is it is saying "Bad API request, invalid api_option" Link that I'm using: http://pastebin.com/api/api_post.php?api_dev_key=<KEY>&api_paste_name=T‌​ITLE&api_option=paste&api_paste_code=SOMETEXT It says to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Deploy package to IIS site with custom path I have a package I created from an IIS 6 site and I want to deploy it to IIS7 but I dont want to use the path specified in the package (it doesn't exist on target). How do I deploy the package with a new path? * *Is there a switch I can specify, such as an additional...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my AJAX-call failing in Google Chrome? I am curious as to why my AJAX-call is failing in Google Chrome, it works perfectly fine in Firefox. Before anyone asks, no I'm not using JQuery because I need to have access to readyState == 3 which JQuery doesn't seem to have. My script currently looks like this(with l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do something in a function based on the character under the cursor in Vim? I’m writing a function that edits a certain environment in LaTeX. The environment basically looks like this: \begin{quicktikz} ...some stuff... \end{quicktikz} or like this: \begin*{quicktikz} ...some stuff... \end{quicktikz} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: GSWin: How to convert XPS to PDF? I have XPS file that is needed to be converted to PDF. I'm trying to use GSWin tool. But I cannot, I don't know why. The command line is: C:\Windows\system32>"C:\Program Files (x86)\gs\gs9.04\bin\gswin32c.exe" sOutputFile="c:\temp\test2.pdf" -sDEVICE=pdfwrite -dNOPAUSE "C:\TEMP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can an IME (soft keyboard) get the name of the app using it? Can an IME get the name of the app using it? (assuming it has the right permissions) Thanks in advance, Barry A: Answering my own question again! :) The EditorInfo passed to InputMethodService.onStartInput() and onStartInputView() contains the member Edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: "There is an error" when clicking on some Silverstripe admin pages I'm trying to fix a problem with some Silverstripe admin pages. Everytime when I click on Cart or Example product page, the message - "There is an error" pops up, and the page wouldn't show. Please see the attached image. As you can see page Cart a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fluent NHibernate one-to-many with intervening join table? I'm having trouble getting the Fluent Nhibernate Automapper to create what I want. I have two entities, with a one-to-many relationship between them. class Person { public string name; IList<departments> worksIn; } class Depart...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Improving WPF Canvas performance I am developing a Maps like application using WPF. I have ~10,000 PathGeometry, Shapes added to the canvas. I have added ScaleTransform and TranslateTransform for zooming and panning controls. The problem I'm facing is, when I zoom or pan, there is slight lag. Is there a way to organ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Bind Session field to System.Data.Linq.Binary It's a picture, an array of bytes which is in the Session. I can't seem to bind it to the automatically created model for my table, inside my DataContext. I'm trying to do so using a FormView and an ObjectDataSource, with a specified type. Some example code: <ObjectDataS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does the [REFERENCE] tag do in an argument declaration? I am writing an custom callback function in Fortran for a piece of software (example here) that includes the following argument declaration SUBROUTINE CONTACT_FORCE(TIME,UPAR,NPAR,PEN,RVEL,JFLAG,IFLAG,RESULT) !DEC$ ATTRIBUTES DLLEXPORT,C::CONTACT_FORCE ......
{ "language": "en", "url": "https://stackoverflow.com/questions/7560927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML elements not properly stacking in Twitter's 'Bootstrap' framework I'm curious why the following won't display properly: <div class="topbar">...</div> <div class="container">...</div> I'm using Twitter's Bootstrap (http://twitter.github.com/bootstrap/) for the layout and the contents within topbar are on top of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Intercept and send keystrokes with Python on Linux I'm looking for a way to intercept all keyboard signals before they reach the active application. I then want to interpret and map the keystrokes before sending them on to the currently active application. A Python library would be great, but C/C++ would also suffic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Nested Iteratees I am working with a particular database where, upon a successful query, you are able to access a group of chunks of the resulting data using a specific command: getResultData :: IO (ResponseCode, ByteString) Now getResultData will return a response code and some data where the response codes look l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: vim + minibufexplorer causing my screens to split unevenly Before I installed minibufexplorer, my vim screens would split evenly. 2 open = 50/50 (% width) 3 open = 33/33/33 (% width) 4 open = 25/25/25/25 (% width) After I installed minibufexplorer, when I split a window it halves the current window so I get 2 open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does Facebook Music Object works? i'v built a music canvas application and i'm trying to figure out how the Facebook Music and Audio Objects work. i did everything the Open Graph Music Documentation Page said here is my open graph meta tags for a song page. <meta property="og:title" content="artist name - song n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Segmentation Fault when trying to index an array of arrays of objects via a pointer Can someone please tell me why I get a segmentation fault running this? I try and a pointer to an array of an array of objects, how I can fix this problem? The declaration of the sf::Vector2 class can be found here: http://www.sfml-d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Rails 3.1, how can I create an HTML table generator that uses block style formatting I'm developing an application that displays tabular data in many different areas and I find myself constantly using the same HTML table structure over and over. For example a particular table looks like this: %table.zebra-striped...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Possible to scope a javascript variable to a function and that function's recursive calls to itself? I am in a situation where I have a loop that is calling a function. The function will make recursive calls to itself once called. Is there a way that I can scope a variable to the function and the chain of recursive...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What crypto algorithms does Android support? I have been googling for hours and cannot find any solid answers but lots of hearsay. Does anyone know where the documentation is that defines which encryption/signature/hash algorithms the Android OS supports. I have heard from forums that not all phones support the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: IE8 not POSTing data after 307 redirect from ASP.NET I'm (re)writing a RESTful resource scheduler app using ASP.NET 3.5/SQL Server as the backend, and jQuery/Backbone.js as the front. In ASP.NET, I'm using WCF services, with RouteTable routes to route requests to the appropriate WCF class. In my Global.asax file, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting date format sql I am taking information from one database with the datetime string formatted like this 2011-08-25 13:53:22.607 and would like to format it to look like 8/25/2011 01:53:22 PM Please suggest a way for me to do this. A: in Sql Server try: DECLARE @YourDatetime datetime SELECT @YourDateTim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: CGContextDrawImage is EXTREMELY slow after large UIImage drawn into it It seems that CGContextDrawImage(CGContextRef, CGRect, CGImageRef) performs MUCH WORSE when drawing a CGImage that was created by CoreGraphics (i.e. with CGBitmapContextCreateImage) than it does when drawing the CGImage which backs a UIImage. Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Type of objects inside non-parameterized arrays in JSON I am trying to write simple function that converts Json strings into Objects. The language I am using is objective-c however this question discusses issues doesn't relate to this lang. My question is, How to know the Type of Objects that laid inside a json arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JBOSS 7 - Spring ContextLoaderListener ClassNotFoundException im trying to migrate my JBOSS 5.1 application to JBOSS 7.0.2. In admin console i select deployments -> add content and my .war and try to enable it. I already resolved some problems, but cant figure out this one: (in short, in long at the end) Caused by: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deadlock Prevention(Java+MySQL) i have an sql class that connects to the database and updates the information from my game server. I was wondering if anything here would cause a deadlock and what are good ways to prevent deadlocks. I am new to alot of things so any tips would be great :) package server.util; import...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simultaneous status bar hiding and view transition I would like to transition from an "initialization screen" to a "presentation screen" in my application. The initialization screen has the status bar visible but I want the presentation screen to use the full screen. I would like the status bar to disappear when the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's needed to support non-square matrices in GLSL shader? I'm trying to use non-square matrices in my GLSL shader but when I compile I get a syntax error. My shader code using: uniform mat4 my_mat; compiles just fine. But if I change it to: uniform mat4x3 my_mat; I get ERROR: 0:5: 'mat4x3' : syntax error syntax...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Avoiding errors on Access name-parsing query I'm trying to clean up data in an older database, and the FirstName field has been polluted with middle names & initials over the years. Using a simple Left-Mid query, I'm easily able to split the names on a space. But I'm running into problems when I try to avoid returni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE7: javascript canvas code used to work in IE7, now it doesn't. What happened between these two revisions that caused that? Been working with the canvas element with a library called Raphael Current revision: http://jsfiddle.net/G5mTx/27/ Working in IE7 revision: http://jsfiddle.net/G5mTx/10/ Note: These work in no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Injecting SecurityContext into a Listener prePersist or preUpdate in Symfony2 to get User in a createdBy or updatedBy Causes Circular Reference Error I setup a listener class where i'll set the ownerid column on any doctrine prePersist. My services.yml file looks like this ... services: my.listener: class: App\...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: In Vertica, should you factor out strings into their own logical tables? Suppose your logical table is: CREATE TABLE employee( name VARCHAR, university VARCHAR ); Now you have only a few universities. Therefore, you could factor out the university name: CREATE TABLE employee( name VARCHAR, university intege...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Search for tweets with t.co rewritten links Just noticed a spike of visitors following a t.co/LINKHERE a link re-written by twitter. Is there a way to track back to the twitter message that contained the link, if you know the link? A: The standard twitter search will work for a few days. For older t.co links, you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Get the column names of a python numpy ndarray Let's say I have a data file called data.txt that looks like: TIME FX FY FZ 0 10 5 6 1 2 4 7 2 5 2 6 ... In Python run: import numpy as np myData = np.genfromtxt("data.txt", names=True) >>> print myData["TIME"] [0, 1, 2] The names at the top of my data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: python read files from hard disk and return result depending on the pattern found what i wanna do is this; - read files from hard drive and find a pattern like the see if the file contains this string if it does return true or return false. In the function call it should print out nicely saying `the found in file.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery tablesorter parser for datetime in MM.DD.YYYY HH:MI AM format I am having a 4 column table in which the 2nd column is a date column with the following format "mm.dd.yyyy hh:mi am". The default tablesorter doesn't sort by date column correctly. I had to write my own parser in tablesorter but it is still not wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ZipInputStream getNextEntry is null when extracting .zip files I'm trying to extract .zip files and I'm using this code: String zipFile = Path + FileName; FileInputStream fin = new FileInputStream(zipFile); ZipInputStream zin = new ZipInputStream(fin); ZipEntry ze = null; while ((ze = zin.getNextEntry()) != null...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: I'm lost in boost libraries (specifically boost_program_options) Hi all I've been banging my head against the wall all day now. So I want to move my program onto the university supercomputer, but it doesn't have boost (and I used boost program_options in my code). On my pc, I just have -lboost_program_options and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reinstall Aptana Studio 3 bundles to get my custom snippets back? I'm using Aptana Studio 3 for JavaScript development. Day 1, I tried importing some old favorite Textmate snippets etc. with limited success. Some keys like dot, comma, "d + number" etc. takes precedence over my custom commands and the situation has b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex regular expression coordinates trying to sort out a regular expression for the following string: 51.4920302, -0.0850667 So far I have:@"^[0-9]*,{-}[0-9]*$" but it doesn't seem to be working. Any thought, greatly received. The whole snippet is: [RegularExpression(@"^[0-9]*,{-}[0-9]*$", ErrorMessage = "Must ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you add public/assets in version control? In rails 3.1, when you precompile the assets, rails create public/assets directory and add files there. Do you version-control public/assets/*? A: I was looking for an answer to this too. I found the official Rails Guide has some thoughts on this: http://guides.rubyonr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What is the difference between GetClientRect and GetWindowRect in WinApi? What of these should I use in InvalidateRect to refresh my window? And why? A: From MSDN: GetWindowRect Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: What wiki engines have strong MVC separation? I would like use an existing wiki engine but replace the render and editing functions of the wiki with client-side javascript. Modifying HTML already rendered by the server application with Jquery or the likes in not a viable option because some critical features I inten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use regex properly? Why isn't this working? Possible Duplicate: RegEx match open tags except XHTML self-contained tags string regex = "<Name[.\\s]*>[.]*s[.]*</Name>"; string source = "<Name xmlns=\"http://xml.web.asdf.com\">Session</Name>"; bool hit = System.Text.RegularExpressions.Regex.IsMatch( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Date() error after upgrading to 5.3.8 I'm getting the following error all over my websites after upgrading to PHP 5.3.8: Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why this ActionScript program isn't working? It shows me an error of : 1120: Access of undefined property myArray. DataGrid.mxml /DataGrid/src line 10 Source Code : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="6...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't view this site in Chrome (Getting Aw Snap! error) The site in question is http://traceyj.posterous.com/ Using Chrome, it shows the Aw Snap error almost instantaneously. I do not have much programming experience to troubleshoot this - I've tried viewing the site in a css validator but it looks like the solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jasminerice and stylesheets for fixtures I have found jasminerice very helpful for getting all my Jasmine tests to run via Rails 3.1's asset pipeline. The only thing I remain stuck with, is that I cannot get my setup to load any stylesheets (that go with my fixtures) and I need them for a couple of dom / element-sty...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can You Have Your OpenGraph Object Link to a Different URL? So you need a public URL with meta tags to represent an object in the OpenGraph, and one of the required meta tags is a URL property. When the action gets published, it links to this URL property. Let's say I'm on http://mysite.com/A. It seems like I can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I run twisted trial on all tests in a directory? How do I run trial so that it executes all tests within a directory? All my unit tests pass if I run trial on each file individually, but if I try something like... trial test/ on the test directory, it gives me one "PASSED", and the following message... User...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: List jUnit Tests That Were Run Is there a way to get a list of the jUnit tests that were run for the purpose of including that list in a report? Rather than copying the 80 unit tests I ran, I was hoping to output it as html or a csv that I could then turn into a figure for my report. Extra points if the pass/fail st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem retrieving results from an index in an embedded RavenDB I have an index that works great when I query it using the .Net client API with a server based RavenDb. However, if I change the RavenDb to an embedded type then I cannot query the index directly unless I first query the document that the index uses. Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery selector find element from other I have the follow html: <div id="x"> <div id="x1"> </div> .... </div> .... <div id="x2"> <table id="y"> </table> </div> From "x" I need to reach "y", something like $("#x").find("#y") Suppose that I do not know what has in the "...". How to do this? A: Try t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Conflict on generated R I has some Android projects that I'm integrating on one. This is something like: (Lib projects) Android_Commons RichReader FacReader WWReader The main project is ReaderShelf, and add all those projects as library on it's path. But the source linked presents compilation errors, the ids from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Embedded Linux - Booting phases I would like to systematize my U-Boot/linux knowledge. Is it true that minimum 2 bootloader phases are needed in each embedded platform? Or can following process vary? * *1st-stage bootloader (can be U-Boot) is stored in internal the processor's ROM and can't be updated. It will ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Advice Needed for Honeycomb App Upgrade. I have been doing some research on the upgrading my app (android:maxSdkVersion = “10”) to Honeycomb and would like some advice. First, one of the activities in my application is a List Activity. Once the user selects an item from the listview, a new activity/layout starts tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the current inner window size in an Adobe AIR app? I need to know the available screen space in my current AIR app, but when I use stage.nativeWindow.width and stage.nativeWindow.height, I get the size of the window including the title bar. I'd like to know the "inner size", so excluding the title bar. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi select a paragraph in richedit How to select a paragraph on several lines. Paragraphs are limited by number and not by #10 + *#13? Selection fear to be by clicking or by mouse flying over the paragraph. A: Basically if you use SelStart and SelLength public properties of your TRichEdit, you can select whate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the linq search option in enumerate files Quick one here. I am trying to EnumerateFiles in a C# application and I want to find all the files in a directory that do not match a given pattern. So I would have something like this: var files = Directory.EnumerateFiles("MY_DIR_PATH", "NOT_MY_FILE_NAME"); Can some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using JavaScript in Android - will it slowdown activity? Hello I what to make a small app for Android 2.2 that will display a chart with data that I'll get from an API. I didn't find a free library for Android that can draw the chart like I want and I was thinking to use a WebView to load a local HTML and then use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp.net html page I have a (say) start.html page that I want to wrap up in an ASP.NET app, and be the first page to launch once deployed. How do I accomplish this within VS; not within IIS, but within VS to have a deployable package that will contain the start page information. A: It's really up to IIS to decide th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dispatcher Thread and UI Rendering Thread working when WPF Form is in Minimized Stat I have two question regarding WPF Dispatcher Thread. * *Does dispatcher thread keeps running when your WPF form is in minimized stat. *I have so many dynamic updated so I flow my updated till winform and then user Timer in winfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS pseudo classes in Internet Explorer 8 This might apply to IE7 too, I'm not sure though. I have the following CSS: div#sidebar-right a.menu-item img:nth-child(1), div#sidebar-right a.menu-item > *:first-child { position: relative; left: 11px; top: 37px; z-index: 10; opacity: 0; -webkit-t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery - parse json - 2 arrays How to use each parse the json type - retrieveMessage: function() { $.post('ActionScripts/RetrieveMessage.php',{ }, function(data) { $.each(data, function(key, reader){ alert(reader.id + reader.count); //this line does not return anything ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is MSDTC a big resource drain? So, Is MSDTC a big resource drain on a system (server & application)? In the past, I have written several large scale web applications that rely on MSDTC for database transactions. I have never investigated how much of a drain that would be on the server. Currently, I am working with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Filling in hidden inputs with Behat I am writing Behat tests and I need to change the value of a hidden input field <input type="hidden" id="input_id" ..... /> I need to change the value of this input field, but I keep getting Form field with id|name|label|value "input_id" not found I have been using the step $st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Web app in full screen mode on Ipod I have a web app I'm building a mobile site for. I'm trying to run it in full screen without a nav bar if the user has added the page to their home screen. Right now, my javascript is very simple: if (navigator.standalone) { alert ('From Home Screen'); } else { alert ('Fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I Connect to remote service from a different .apk First off I have seen this: Remote Service as apk And it does not help me at all. Here is the deal. I have one apk that creates a remote service (call it A). I then have another apk (call it B). How can I connect B to A without include the AIDL file or a j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Php array rebuild I got an array looking like this: array("canv" => array(1 => "4", 2 => "6", 3 => "9", 4 => "7"); I need it to look like this: array("canv" => array("4", "6", "9", "7"); so I can easly check if the value exist this way: if(isset($result["canv"][$gid])) where $gid is a number from "4", "6", "9", "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7561119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }