text
stringlengths
8
267k
meta
dict
Q: plotting multiple sets of different data points on a graph in R I'm trying to plot several sets of ordered pairs on the same plot, using R. I don't need a line between them, because that's already taken care of by a simple linear regression. Here's some sample code: sw_sd <- c(0, 20) sw_r <- c(5, 10) aa_sd <- c(0, 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Splash screen opens only first time application starts There is an application with 2 activities: Splash screen and main screen. After installing application it shows splash, then finishes Splash activity and starts main activity. Then i test 3 scenarios: * *App is launched, second activity showed on screen. I ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: check if oracle database is available I am looking to write a C# class to run at regular intervals that check if an oracle database is available/online/can be connected to. I am wondering what is the best way to achieve this? How can i check if an oracle database is available? A: http://www.csharp-station.com/Tutor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display contents from ListView defined in regular Activity Android I wanted to create a search view like the one Google uses. For this I created the following XML layout, which basically is a search bar and a button in the upper section of the screen and a ListView at the bottom of it. <?xml version="1.0" encoding="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a title blink until it becomes active with jQuery? I have a javascript chat. When a user receives a message, I want the title to blink until it becomes active. (like Gmail Talk) For example: * *You are in an other tab. Title is My website *Someone talks to you. Title blinks betwen My website and Use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Combine two vim commands into one I'm having trouble combining two vim commands, specifically <C-w>s and <leader>x into <leader>r (i.e. split window and open spec counterpart of current file). Any help? Thanks! A: It would help if you'd post what exactly you've tried that didn't work. Generally, doing what you desc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PostgreSQL: IN A SINGLE SQL SYNTAX order by numeric value computed from a text column A column has a string values like "1/200", "3.5" or "6". How can I convert this String to numeric value in single SQL query? My actual SQL is more complicated, here is a simple example: SELECT number_value_in_string FROM table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Example code of FBML App that uses signed_request? We did not know that Oct 1 is also deadline for signed_request. Does anyone have example code to do signed_request for FBML apps? We are trying to beat the deadline on Oct 1. Thanks! A: The signed_request documentation shows how to do it in PHP. It's pretty easy t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery form validation event with pop-up resizing query I'm currently showing the user a pop-up form - http://colorpowered.com/colorbox/ - which so far seems to be the only one i've found compatible with all browsers (Round of applause to IE for not been compatible in other ones). I'm also using with this the jQuery...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get a fragment to load from an unspecified html? After making the menu disappear I cannot get my content to show without listing a specific html. HERE is the HTML: <div id="header"> <h1>N300 Project Gallery</h1> </div> <div id="container"> <div id="utility"> <ul> <li><a href="about.html">About</a></li> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crop MS Word Images using Matlab Activex control I am using MATLAB to paste and caption plots into Microsoft Word. I would like to also crop these images using the ActiveX control. something like: word = actxserver('Word.Application') word.Visible = 1 op = invoke(word.Documents,'Add') invoke(word.Selection,'Paste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC3: Areas and routes I configured my MVC3 app to use Areas (/Company1, /Company2, etc). I am successful at calling /Company1/{controller}/{action} and I would like to add another parameter to the route so that I could call it /Company1/Chicago/{controller}/{action} or /Company1/Detroit/{controller}/{action}. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detection - the title of the URL and the URL How to detect, if there is any URL in the text and title it has (if any)? If there is one, then it should change the URL: from: http://stackoverflow.com into: <detected:url="http://stackoverflow.com"/> I need also to retrieve titles from external links like this example:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does one need to close both NetworkStream and TcpClient, or just TcpClient? I'm reading the documentation on TcpClient.Close() and noticed this: Calling this method will eventually result in the close of the associated Socket and will also close the associated NetworkStream that is used to send and receive data if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: On properties and accessors Assuming that header declaration contains @property(nonatomic, assign) DoublyLinkedList *doublyLinkedList; Is there any difference between [[self doublyLinkedList] release]; [self setDoublyLinkedList:nil]; and [doublyLinkedList release]; doublyLinkedList= nil Is one preferred over anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use a value inside a method outside of that method (location) I'm am new to android, and I am attempting make a program that would send one's latitude and longitude to a database and store it there. However, I've hit a problem: I can't figure out how to be able to use the lat and lng obtained. The loc.getLati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enable colored output in mvim I'm running rspec from within mvim with :!rspec spec/lib, however if I include --color flag, I get [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m Finished in 0.01708 seconds [32m7 examples, 0 failures[ I tried --tty flag which works with rstakeout, but no help. A: Unfortuna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom sensitivity settings on gyroscope through android api, or kernel? I own a samsung galaxy tab 10.1 4g lte-- and am starting to play with the sensors onboard. I looked up the mems gyro on board and found that (you can see for yourself on pg 9) that there are 4 different condition settings to change the sensitiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: cakePHP - Download File through Controller I'm using the cakePHP framework for my website and I would like to create an action which, rather than sending HTML, instead echos the contents of a file. It can't be stored in a public directory, as the data is confidential. Before using the framework, I accomplished this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF app does not execute Application_Exit method when user closes main window I have a WPF/C# 4.0 App which has an Application file XAML that is: <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="XXX.App" Startup="Applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: scheduling a task in Android I'm trying to develop an app for Android and I want my app to receive as input the time (year, month, day, hour, minute) and the app should put a message on the screen at that time. Any ideas on how can I schedule a task ? A: You can use the AlarmManager
{ "language": "en", "url": "https://stackoverflow.com/questions/7617141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Floating Point Exception with Numpy and PyTables I have a rather large HDF5 file generated by PyTables that I am attempting to read on a cluster. I am running into a problem with NumPy as I read in an individual chunk. Let's go with the example: The total shape of the array within in the HDF5 file is, In [13]: data....
{ "language": "en", "url": "https://stackoverflow.com/questions/7617142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to determine object's owner in Objective-C program? Are there any tools available as part of XCode4 that per given object will tell you "who owns it at any time?" A: Yes. The Allocaitons instrument can answer that. Turn on retain count tracking and run your app. You can then click through any object (you'll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Consuming Spring (SOAP) web service in a java servlet Is there any way to consume a SOAP based Spring web service without generating stubs on the client (as suggested by umpteen threads pointing to JAX-WS)? Here is my complete scenario: I have 2 web applications, say APP1 & APP2, both of which have Spring support. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Library of standard compiler warnings/errors I am wondering whether you know of a way to demystify a given compiler warnings/error Xcode throws at you. As a new developer to Objective-C, i would find it to be of value to know why some warnings happen, see examples of a code that would cause an error and explain the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IIS7 Application pool best practices configuration Is there a guideline or site in where I can information about best practices for configuring IIS 7 Application Pools? A: Take a look at http://technet.microsoft.com/en-us/library/cc753734(WS.10).aspx for an IIS 7 overview but look at the Understanding Sites, Applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Node to string without parent information I use xpath to get a NodeList. Then I use this code to get a string representation, but it also has the parent nodes. StringWriter sw = new StringWriter(); try { Transformer t = TransformerFactory.newInstance().newTransformer(); t.setOutputProperty(OutputKeys.OMI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery UI Dialog Overlay Height & Width is not matching the window size Problem Jquery UI overylay is causing browser's scroll bars to show up. I am using latest Jquery and Jquery UI without any theme. Code <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Thrust Complex Transform of 3 different size vectors Hello I have this loop in C+, and I was trying to convert it to thrust but without getting the same results... Any ideas? thank you C++ Code for (i=0;i<n;i++) for (j=0;j<n;j++) values[i]=values[i]+(binv[i*n+j]*d[j]); Thrust Code thrust::fill(values.be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: "Main loop" in a Java application on JBoss server I am creating a JBoss server to deploy a java application which will be a REST-like servlet taking data from requests and placing them into a SQL database. My main question: Is it possible to set up a class on the JBoss server which is not run based on requests but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery show/hide button to change tooltip I have the jquery code below that changes the text in the button to show/hide but I would also like to change the tooltip/title when the button is hovered over with the mouse to also say show/hide $('#HideShow').click(function() { if ($(this).text() == "Show") {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle forward references of XML IDREF with JAXB XmlAdapter during unmarshal? Is it possible to handle forward references of XML IDREF elements in JAXB XmlAdapter during the unmarshal process? For example, I have the following XML complexType: <xs:complexType name="person"> <xs:complexContent> <xs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Object's ownership, after "return". Clarification needed Assuming, the following declaration for class A @property(nonatomic, assign) DoublyLinkedList *doublyLinkedList; , that as part of init, initialized the object - (id)init { self = [super init]; if (self) { doublyLinkedList = [[DoublyLinkedList...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a servicebus? I've read about nservicebus countless times on the net, but still don't get what a service bus is. All I think is it is a way for very disparate systems to talk to each other? In which case, I don't see why it is any better than WCF? I've seen the thread on here about what a service bus is but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: sCrypt implementation in JavaScript? Someone asked about a JavaScript implementation of bCrypt a while back and appears to have written their own code to handle the implementation. Does anyone have an implementation of sCrypt in JavaScript? A: If you are talking about tenebrix, the choice of scrypt was better then...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can I use Kinect on a Mac? Studying vision, I would like to play with the Microsoft Kinect. Can I use it on my Mac? I have not found any Library for Mac and fear virtualization on my laptop to use Linux. A: I've accessed Kinect data on OSX using openframeworks and the ofxKinect addon (which uses libfreenect and lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adjust code to detect multiple circles instead of just 1 in OPENCV I have got this circle detection working but only detects 1 circle. How would I adjust code to detect multiple circles(max circles that will be detected is 22 as using it for snooker). I presume i would be editing the circle detectoin method but i am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone app crashes on device but not simulator. Accessing local files with UIWebView, possible [NSBundle mainBundle] issue? I was hoping you guys could help me what is wrong with my code that is causing my app to crash on my device but not the simulator. It is a very simple app, I just have local files displayed in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vim bind some hotkeys different to filetype I want to bind something like this: * *For CSS, HTML files: <c-space> <c-x><c-n> *For Ruby files: <c-space> <c-x><c-u> How to do this? A: The documentation is more complete, precise and correct, but briefly: Make a file in your ftplugin folder (create this folder if n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I want to get all contacts in windows phone 7 in a list I want to get a list of all contacts in my windows phone OS to edit in all contacts and save it ? I know that Microsoft.Phone.Tasks; get contacts application can I get this contacts and edit it without show it from this class ? I want it in windows phone 7 not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS rounded corner for on first-generation iPhones The following code works in all desktop browsers Chrome and Safari on the Desktop as well as recent iPhones and all Android devices I've tested. However, in first-generation iPhones and the iPhone 3G, the top left corner of the <img> is not rounded. The other CS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why am I getting this nhibernate NonUniqueObjectException? The following method queries my database, using a new session. If the query succeeds, it attaches (via "Lock") the result to a "MainSession" that is used to support lazy loading from a databound WinForms grid control. If the result is already in the MainSes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android SeekBar Flipped Horizontally With the Android SeekBar, you can normally drag the thumb to the left or to the right and the yellow progress color is to the left of the thumb. I want the exact opposite, essentially flipping the yellow progress color to the right of the thumb and flipping the entire SeekBar on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Interface Builder Scaling? I've noticed in two different projects over the past few days that distances aren't lining up between IB and the actual app. For example, in one application I have a MKMapView. In IB, it is aligned with the bottom of a UIImageView, however when deployed on device it overlaps by about 20pts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GDB break on object function call I'm debugging an issue, and I want to break on every method call that has a specific object as the 'this' parameter. Is this possible in GDB? A: It's easy. You can use command like b A::a if (this==0x28ff1e). A: The this parameter should only be the methods that are included in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to write a file of ASCII bytes to a binary file as actual bytes? Trying to do an MD5 collision homework problem and I'm not sure how to write raw bytes in Python. I gave it a shot but just ended up with a .bin file with ASCII in it. Here's my code: fileWriteObject1 = open("md5One.bin", 'wb') fileWriteObject2 = o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MFC: Dynamically change control font size? I have a CListCtrl class that I'd like to be able to easily change the font size of. I subclassed the CListCtrl as MyListControl. I can successfully set the font using this code in the PreSubclassWindow event handler: void MyListControl::PreSubclassWindow() { CListCtr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Improving Linq-XML to Object query I want to use Linq to extract data from an XML document and place it into a list <Data> <FlightData DTS="20110216 17:17" flight="1234" origin="CYYZ" dest="CYUL" aircraft="945"> <TLDRequest> <Airline>ABC</Airline> <AcReg>C-FABC</AcReg> <CalcType>T</CalcTy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to use type traits to check whether a type is a container? Can I use C++ Type Traits to check if a type is an STL-like container? I already know of GCC's builtin __is_class but I would like to be a bit more specific if possible. A: You could build your own traits classes to check a type for the Conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Passing variables to config/environments/demo.rb from the Rails app I have been struggling with a problem for the past days in a Ruby on Rails App I'm currently working on. I have different countries and for each country we use different Amazon S3 buckets. Amazon S3 key credentials are stored as constants in config/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display Encrypted and decrypted Message on Client Console Window I have WCF hello service. I am able to encrypt and decrypt the messages. I want to display encrypyted and decrypted message on client console window A: Console.Write and Console.WriteLine are your friends.
{ "language": "en", "url": "https://stackoverflow.com/questions/7617216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IOleObject in old style I have got a code snippet that uses IOleObjects and calls the method "SetClientSite". pIOleObject.SetClientSite(this); Now my problem is that the button is shown in an old Windows style, it is flat and there is no Aero effect. I guess I have to call "SetColorScheme", but I do not know how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is better in terms of performance, Use XPath to parse a big HTML file or use preg_match? What is better in terms of performance, Use XPath to parse a big HTML file or use preg_match to fetch the attributes and text I want on it? Because the website has way too many requests so I need a way to make it very fast...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image Convolution in Frequency Domain (MATLAB) I'm writing a c++ program for a class to do convolution in the frequency domain, and I noticed the final result had error along the corner. So I tried it out in MATLAB and got the exact same results. e.g. Using cameraman from http://engronline.ee.memphis.edu/eece7214/im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to combine javascript Souncloud player and flash visualization I have set up a nice Flash audio visualization which can load an audio file and play it and display a spectrum of flashing coloured bars in time to the music. I don't want to have to list and control the playback of songs from with in the swf though....
{ "language": "en", "url": "https://stackoverflow.com/questions/7617240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a pid_file while using Proc::Daemon::Init I've been following the explanation in run a perl script as a daemon. I would like to create the pid_file within the perl script. After going through the documentation I was sure that the following piece of code would do it: use Proc::Daemon; Proc::Daemon::Init({ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to obtain the link of files stored on cloud? I am developing a cloud application for my project. I want to provide the facility of storing files on the cloud and retrieving those files after a valid log in. I want to store the links of the actual cloud based files in a database. Is there any way of kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disabled lazy-loading and eager-loading entity references not working as expected I've been working with WCF RIA Services and Silverlight and have had some success in exposing a service that serves data taken from an ADO.NET Entity Data Model modeled from an existing SQL Server 2008 Express database. The database de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: php subtract associative arrays I have two associative arrays. I need to subtract ($price - $tax) to get $total price: $price['lunch'] = array("food" => 10, "beer"=> 6, "wine" => 9); $price['dinner'] = array("food" => 15, "beer"=> 10, "wine" => 10); $tax['lunch'] = array("food" => 2, "beer"=> 3, "wine" => 2); $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I diagnose a Handle leak? I've got a process that is hosting a WCF ServiceHost. It leaks handles like crazy according to ProcessExplorer. I've gone over the code and can't find anything obvious that's causing leaked handles. The closest I can come to is the listing of handles provided by ProcessExplorer, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I access the nth element in an ruby array? Specifically, a will_paginate collection I am using ruby on rails and will_paginate to output posts to a page like this: <div class="posts"> <% render @posts %> </div> Let's say I want to change this page so that I render some posts in different divs: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: embedding html in php error I think I have a syntax error but I can't spot it, any ideas? if($infozz['count'] <= $infozz['limit']) { mail($infozz['email'], "Your incident report copy!", $bodyz); echo <<<EOT <html> <head> <title> Summary Report </title> <link rel="stylesheet" href="http://web.njit.edu/~swp5/assign...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using DirectX Dinput8.dll directly in C# I'm coding and app that requires access to DirectX in C#. Specifically it needs access to Dinput8.dll 's DirectInput8Create function. I'm actually doing some hooking.. and am currenty just trying to hook the call and pass it through. I am only having issues with finding the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In PHP, How do I set default PDO Fetch Class? Using PDO::setAttribute, how do I provide the class name when setting PDO::ATTR_DEFAULT_FETCH_MODE to PDO::FETCH_CLASS. This is the code I am using.. I would like to set it so all of my rows are returned as an instance of DB_Row: class DB_Row extends ArrayObject {} $db ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Print HTML on 8.5x11 paper? I would like to print sets of data on 8.5x11 sheets of paper (one set per sheet). These sets are rendered on a web page vertically one after another (in divs of size 8.5x11). How can I print each of these divs with identical formatting on individual pieces of 8.5x11 sheets of paper? A: Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I write an application which utilizes Intel IPT hardware? What is involved in writing some kind of abstraction layer for Intel IPT hardware? For those unfamiliar with Intel IPT, it is an embedded co-processor used to generate unique 6 character one-time passwords every 30 seconds starting from a secret seed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Metadata information for the relationship could not be retrieved I am using entity framework 4.0. I also have Worker entity. Each time I am trying to insert a worker - I get an exception in the Context.SaveChanges(); command: The changes to the database were committed successfully, but an error occurred while updati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to optimize network utilization on IOS platform. Is there any reference? Is there any Apple reference or guidelines to understand when to transmit data from application? Scenarios include : Just trigger the HTTP connection when the radio has just been active. Also the optimal data size for a single bur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: display item counts per month using JSON jquery each() IF statement (for loop?) I have a JSON object of data containing items and their sales listed by month. I'd like to list the item sales/month inside a DIV alongside other info about each item. Here's my JSON object: var my_object= [{"item_id":"11","month":"Febru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to substitute a JScrollPane child component I have a JPanel that contains a JScrollPane that contains a JTable. Inside my panel constructor it's created this way: //inside MyPanel extends JPanel class constructor public void MyPanel(){ TitledBorder border = BorderFactory.createTitledBorder("title"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Submit type with image I am wanting to use input type submit rather than input type image but I want the submit type to use an image. Can this be done? A: You can attempt to style the <input type='submit'> with a CSS background statement: input[type="submit"] { background-image: url("submit-img.jpg"); backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SurfaceView or GLSurfaceview? Hello there please help me to decide whether to use SurfaceView or GLSurfaceView. I will be developing a game for my thesis and I already know how play with Canvas but I'm not sure if this can handle at least 70 sprites without lag or whatsoever problem. and BTW i will only developing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: If statement using templatetag How would I do the following in django: {% if value|truncatewords > 10 %} print this {% endif %} Thank you. A: I'm betting you want to count the words in a string. Try this one: {% if value|wordcount > 10 %} print this {% endif %} A: That's an incorrect use of the truncatewords fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Vertical Centering a block in IE7 I'm trying to get vertical centering a block in IE7 (IE6 if possible too), let me get one thing clear - I'm not vertically centering the actual element, but the text within the element. This is my CSS and HTML which works on IE8 and above, but not below. a { display: table-cel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Changing values of an array containing a struct printing I would like to access the name field from the array items and print the name but I am having trouble. I created a pointer 'L' in callInitialize and set it to the upper struct type List which I named 'studentList'. int callInitialize () { /*Initialize a List*...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Common practices for Javascript/jQuery ajax call synchronization I am curious if this is considered good practice or what may be better. Say for instance I have to make two or more ajax calls in a row and wait for all to complete before proceeding. Also in this case I am using JSONP in order to call a service on a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to parse in javascript all regex between one or more parentheses I'm trying to parse all of the text between one or more parentheses and return an array. For example: var string = "((CID:34746) OR (CID:8097)) ((CID:34277 OR CID:67300))"; var regex = /\(([^()]+)\)/g; var results = string.match(regex); // should r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to dynamically create DOM element with Codeigniter's MVC I understand the code you use to generate the page would be put in the view section of the MVC pattern of CI. I am trying to understand the logic flow of the function when 1. user provide input 2. input sent to database 3. add another DOM element to show t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSWindowController never deallocated I have a NSWindowController subclass, and in the windowWillClose: notification I send autorelease to the window controller. But still dealloc is never called. I have no timers in the class, so that's not the problem. Any ideas? A: The problem was that I was using garbage collect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent a SUSE RPM from installing on a RedHat system We have a product that is distributed via RPMs. We create both SUSE SLES10 SP1 RPMs and RedHat 5.5 RPMs. There are differences between the two, things will not work correctly (often mysteriosly) if you install a SUSE RPM on a RedHat machine and vice versa....
{ "language": "en", "url": "https://stackoverflow.com/questions/7617357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Matching two words with some characters in between in regular expression I want to do a match for a string when no abc is followed by some characters (possibly none) and ends with .com. I tried with the following: (?!abc).*\.com or (?!abc).*?\.com or (?<!abc).*\.com or (?<!abc).*?\.com But none of these worked. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance of querying relational data with document-based nosql (mongodb, couchdb, and riak, etc) To follow up on my question on modeling relational data with nosql, I have read several articles on the subject: Nosql doesn't mean non-relational Nosql Ecommerce Example They seem to suggest that nosql can handle nor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Alternative to PHP's associative arrays in JAVA In PHP I could use an array with strings as keys. eg $some_array["cat"] = 123; $some_array["dog"] = 456; I just switched to Java and I can't find a data structure capable of doing this. Is this possible? A: What you are describing is an associative array, also called ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Limit results in jQuery UI Autocomplete I am using jQuery UI Autocomplete. $("#task").autocomplete({ max:10, minLength:3, source: myarray }); The max parameter doesn't work and I still get more than 10 results. Am I missing something? A: I could solve this problem by adding the following...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "138" }
Q: Why is this multibinding not working I have sending multiple parameters from my Checkbox Command. I have used a converter. The code is below. If i put a debugger and see the values here are my results : When checkbox check is either checked or unchekcked : In the converter it has teh values (Array of the item object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Vectorizing code and stuck but good Here are some sample starting values for variables in the code below. sd <- 2 sdtheory <- 1.5 meanoftheory <- 0.6 obtained <- 0.8 tails <- 2 I'm trying to vectorize the following code. It is a component of a Bayes factor calculator that was originally written by Dienes and adapt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Public static class for sending system messages to the users - asp.net 4.0 asp.net 4.0 - C# - MSSQL 2008 r2 db I already have a private messaging system. At certain actions i am sending them private messages. Right now i am adding them by direct insert query to the database inside code behind of asp.net page. These ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery.get - can the reply be too large? jQuery.get("/url2?key=abc", function(data){eval(data);}); This working fine except when the amount of data has grown. Is there a maximum size you can get data by this method if so how do you get large replies? A: Not sure if there is any limit on size, but practical conside...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine if a field is NULL or NOT NULL in mysql workbench gui? Is there any gui functionality within mysql workbench where you can view whether a field is set to NULL or NOT NULL? For example this: CREATE TABLE Peoples ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR (200) NULL, last_name VARCHAR (100) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jme3 / Java 3d path implementations? Coming from an Android development background into a PC-gaming environment, I'm looking for something similar to Android's Path class. However, the Android path class is 2d, and I need a 3d (circular) path. Specifically, I'm preparing a space-like simulation and need to emulate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Column headings keep appearing throughout Oracle output After ever 10 lines, my column headers reappear in my Oracle output. Is there something about my code or some kind of environment variable I can set to stop this? I only need the column headers to appear once at the top of my results. BREAK ON Customer COLUMN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how do i enable screen zoom/magnification programmatically under os x? i'm talking about the "zoom" functionality in the universal access system preference panel. normally this is accomplished with command–option–8. then the zoom controls are command–option–+ (magnify) and command–option–- (minus/minify). my most re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a UIImagePicker for the Mac Desktop I have found Apple's example app ImagePicker that uses IKImagePicker, but it appears that in Lion it has been removed. Is there an alternative to this - or how would I prompt users to select an image to use within my app. A: You want IKPictureTaker. The IKPictureTaker c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Discover collation of a MySQL column I previously created a MySQL table and now I want to find out what collation some of the fields are using. What SQL or MySQL commands can I use to discover this? A: SHOW CREATE TABLE [tablename] will show you the collation of each column as well as the default collation. A: If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Convert Console.WriteLine into text box I checked on the net and I didn't find concrete examples for my situation... What I want, is to have these Console.WriteLine displayed in a text box . // Show data before change Console.WriteLine("name before change: {0}", thisDataSet.Tables["Customers"].Rows[9]["Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In wxpython is there a wx.CallDuring I found wx.CallAfter and wx.CallLater in the documentation but neither solves my problem. What I'm trying to do is update a status bar while doing a task, but both wx.CallAfter and wx.CallLater only updates after task. Example: #!/usr/bin/env python # -*- coding: utf-8 -*- # gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linked API to get all members of a group How can I get all the members belonging to a particular group or company with Linked API's. I looked at the Groups API provided by linked it but it does not provide information to pull the member information. A: This is not currently supported via the API.
{ "language": "en", "url": "https://stackoverflow.com/questions/7617417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How is a CSS "display: table-column" supposed to work? Given the following HTML and CSS, I see absolutely nothing in my browser (Chrome and IE latest at time of writing). Everything collapses down to 0x0 px. Why? <!DOCTYPE html> <html> <head> <style type="text/css"> section { display: table; height: 100%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Request for member which is of non-class I've got a C++ class I want to use which has all the code in the header file, rather than the CPP file. I'm trying to call it from an objective-C file which inherits a UIViewController class. I've renamed the file to .mm and imported the header file for the C++ file. When I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User attributes not clearing? I'm have some trouble with my user model so I added this to it: logout: () -> console.log @toJSON() @clear() console.log @toJSON() if @id? alert @id 1st: console.log @toJSON() Object id: "4e862dc6e69aad002" #other attributes __proto__: Object 2nd: console.log @...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }