text
stringlengths
8
267k
meta
dict
Q: Popup Never Closes WPF is really getting me out of my nerves here. I configured a popup with some complex content (grid, buttons etc..). I set its StaysOpen property to False and IsOpen to True on a textbox MouseDown preview event. Ths thing is that it opens but never closes when clicking anywhere outside the windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Magento dropdown with existing products I was wondering if it's possible in Magento to make an attribute with a dropdown input type in wich you can select existing products. If so how would one go about in doing this? Also if someone knows how to display the simple products inside a grouped product on the category(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java finding a WINDOW My desire is to create a bot for a game, inside the constrains of the game rules, that would send information to a web-server. My first problem is to find the game window, and then find its name. I been trying to use Assistive Technologies, but not totally comfortable with them. To my limited...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do make a button find an id name I'm wanting to click a button and have the matching id name show. I don't know how to use contains, has, or filter to make this work. Basically, click a button find it's id name. Then, if it's id name matches one in nameList show only that id. Second question. There has to be a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cleaning up memory after using EKEvent Was looking at some code and it looks to be leaking memory. And I'm not sure should I clean this up? Or is it ok? EKEvent *event = [EKEvent eventWithEventStore:eventStore]; I would have guessed this is an autorelease since its a connivence method. But when i read event.startD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I change a test user's password Is it possible to change a test user's password so I can logon to any of my test users as normal so I can test my app properly? I've tried : https://graph.facebook.com/{user id}?password={newpassword}&method=post&access_token={the access token} I got the access token from the Rol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript widget with trust based authentication under active directory I'm building a new project and I'm having some debate over how it needs to be developed. The big picture is to develop a consumable JavaScript widget that other internal developers can embed into their web applications. The trick is that the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: subtract two dates in php Possible Duplicate: PHP calculate age I'm trying to subtract the years and check the user's age. I keep getting 1969 for $user_birth, which I think the raw date can't be parsed. $raw_birth = "01-19-1980"; $user_birth = date("Y", strtotime($raw_birth)); $today_date = date("Y", time()); e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Ruby Text Analysis Is there any Ruby gem or else for text analysis? Word frequency, pattern detection and so forth (preferably with an understanding of french) A: the generalization of word frequencies are Language Models, e.g. uni-grams (= single word frequency), bi-grams (= frequency of word pairs), tri-grams (=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: My C++ OpenGL SDL program is not working as I expected I have just started learning OpenGL and I am attempting to make a game of pong. I'm having trouble getting the paddle to appear on the screen and I can't fathom out why: I thought with this code it should appear in the top left corner and move when down and up k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: bbfreeze and protobuf I'm trying to package a script with bbfreeze that uses the protocol buffers. Using bbfreeze like so: #!/usr/bin/python from bbfreeze import Freezer import os f = Freezer('dist') f.addScript('main.py') f() Results in No module named google.protbuf on the client. Reading the docs a bit, I try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get the .getJSON() jquery data out of the response? function saveCallerReference(callerReference){ $.getJSON('/index.php?r=site/AJAXsaveCallerReference', function(data) { console.log(data); return data; }); } Given the above, the line "return data;" never gets returned, when the fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to map PostgreSQL enum with JPA and Hibernate I am trying to map a PostgreSQL custom type,named transmission_result, to a Hibernate/JPA POJO. The PostgreSQL custom type is more or less an enum type of string values. I have created a custom EnumUserType called PGEnumUserType as well as an enum class representing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Should I create a branch for single commits? I'm new to Git and to branching. Within our team, we have a bunch of websites that require simple maintenance (adding a new page, fixing some links, etc). The commits would normally contain all of the requested functionality. I am not sure if we should create a branch, or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get this element from this array I have an array $arr that when I var_dump looks like this. What's the easiest way to get the 2nd last item ('simple' in this case). I can't do $arr[4] because the number of items may vary per url, and I always want just the 2nd last. (note that there's an extra empty string at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VBScript error handling in C# I want to access WMI using the AutomationFactory in a Silverlight OOB application. dynamic locator = AutomationFactory.CreateObject("WbemScripting.SWbemLocator"); dynamic wmi = locator.ConnectServer(".", "\\root\\cimv2"); I now want to add error handling to this. MSDN states that the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Haskell syntax for 'or' in case expressions In F#, I can use | to group cases when pattern matching. For example, let rec factorial n = match n with | 0 | 1 -> 1 // like in this line | _ -> n * factorial (n - 1) What's the Haskell syntax for the same? A: I'm not entirely familiar with F#, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Painting checkbox icons in a custom JComponent :Scala I'm creating a custom scala component which needs an unchecked icon at (100,100) and checked icon at (200,100), the same icons used by swing. My code below works, but looks quite weird because I need to create dummy checkboxes. Is there a standard way to accompli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mac OS X check if flash is installed My Mac OS X application opens a webpage via a WebView that requires flash. If the user does not have flash installed I would like to give them a popup telling them to please install flash. Is there a way to check the webview if the flash plugin is installed? In WebPreferences y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP Function Argument to an array Can you do something crazy like this function cool_function($pizza, $ice_cream) { make the arguments in the array into an array return $array_of_paramaters // my new array } // end function print_r(cool_function); // outputs array(0 => pizza, 1=> ice cream) A: Actual...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to populate SelectList for ViewModel on GET/POST I have the following ViewModel: public class EditViewModel { public int FooType { get; set; } public IEnumerable<SelectListItem> FooTypes { get; set; } } I originally populated it in my Edit action like so: public ActionResult Edit(int id) { Edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: API to access Google Profile on Android Google accounts come with a pretty nice profile already, and since all Android phones connect to that profile for most of the google services. I'd like to add an option to my application to simply register with my application using your google profile on the phone. Not only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: strong-typed profile values in ASP.NET membership (MVC) I've been using ASP.NET MVC with membership-based login for several years and everything is working fine (it's now MVC3, but membership didn't change since the first version which was MVC1). Now I need to add a value into the profile (just one value, of very se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: css make a dropdow appear under ajoining text: please see screenshot the client want something like this. I can manage the styling (corners and all) but i can't get the "dropdown" to drop under the text in the cell to the left. My html follows. Thanks in advance <html xmlns="http://www.w3.org/1999/xhtml"> <head>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: js option to emulate overflow: scroll on handhelds with keyboard support? I have a need to create a part of a mobile web page that can scroll on its own (even though I tend to disagree with that being a good thing on mobile). The standard method is to set it to overflow: scroll and there you go. Alas, on iOS one ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple mobile platform game development (Android/iOS) I'm currently developing a small indie game for the Android framework, however in order to save my some future work - I was wondering, is there a way to develop a game for the Android and iOS at the same time? I'm aware of HTML 5 solutions, but I'm unsure if yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PostgreSql Integer out of range error when inserting small numbers into integer fields I'm getting an "integer out of range" error in postgres, though none of the numbers inserted are 'big'. They are well under a million. The query is generated via the Django ORM, and is pretty standard looking. Any idea what I'm m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# SQL To Linq - Where Clause with multiple variables Comparison (var1+var2) !=(var1+var2) I have these working in sql for large data set working great. However I'm having hard time converting to linq-I'm new to linq Select * from table1 t1, table2 t2 where (t1.RoleId+t1.UserId)!=(t2.RoleId+t2.UserId). On a side no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to import a certificate to a key container in usb token? I have a problem, I am currently working in a project PKI, I must to create a module to renewal certificate using exits public/private key pair . I can get information about key container from usb token but i don't know how to import new certificate create...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delayed Chained Payments in PayPal with initially-unknown Secondary Receiver Reading through PayPal's API documents I don't see a clear way to do this, but I don't want to assume that it's impossible because I don't know how to do it. Use case: I'm building a marketplace for a client that allows a consumer to purcha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery: what happens when you pass a deferred object into "then"? I have been researching jquery deferred objects for a while now and I'm stumped on one thing. The "done," "always," "then," etc methods take, as their arguments, functions which should be called when the deferred object is resolved. However I tried ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a vector of cell arrays I want to store all the contents like name and marks for 30 students. I am keeping the information of name and marks together in a cell array. But to compare 2 students I need to store the cell arrays in a vector of 30 elements so that I can access later. A: I would recommend u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# equivalent to toSource() of javascript Possible Duplicate: Can I convert a C# string value to an escaped string literal How I can show the contents of a string in 'pure mode',including \r,\n,\t etc.. equivalent to .toSource() method of javascript For example: JavaScript: var str = "foo\nbaa\ttest"; console.lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cakephp dropdown selected value not coming correctly in firefox when a page is refreshed I'm having error in setting up a drop down selected value returned from a controller in firefox only.. Im using cakephp 1.3. It comes right when i first time load the pages but if i change the drop down value and refresh the pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP MySQL Multi-statement works on my webpage but not on XAMPP So I use this code to connect to MySQL and execute multiple statements: $connect=@mysql_connect($host,$user,$pass,false,65536) or die("Can't connect"); mysql_select_db($base,$connect); When connected I do: mysql_query("CREATE TABLE IF NOT EXISTS tablena...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Obtaining Google Maps API key I'm using Windows 7. I have tried several times with the debug.keystore with appears in c:\users\YOURUSER.android\ using the command: keytool -list -alias androiddebugkey -keystore c:\Users\YOURUSER\.android\debug.keystore -storepass android -keypass android It gives me a MD5, but then...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: array amplitude through a php function I have this question, which I need to solve, help needed please. A non-empty zero-indexed array A consisting of N integers is given. The amplitude of this array is defined as the largest possible difference between two of its elements, i.e.: amplitude(A) = max{ A[P] − A[Q] : 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: qt hiding a control on showEvent() I call show() on a window and it has several controls and all controls are displayed. One of the controls is a custom control that inherits from QFrame. I want to hide this control if a particular flag is set. So, I have void MyCustomControl::showEvent ( QShowEvent * /* evt */ ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby C extension not resolving 3rd party dlls at runtime I have a Ruby C extension that is providing a ruby interface to use a third part C library. I am able to build the library, let's call it something.so just fine. However, it's compiled against the third party .lib and .dll files dynamically. When I actually tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UDP File Transfer - Yes, UDP I have a requirement to create a UDP file transfer system. I know TCP is guaranteed and much more reliable, but I need to transfer huge files between locations and I think the speed advantage in this project outweighs the benefits using TCP. I’m just starting this project, but would li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Django norel access to different nosql at the same time? i'm new to the nosql world, and from forums and articles that i've read: most of users try to "mix" nosql tools, for example, they use Cassandra and MongoDB together to make a "powerful system", because am beginning with MongoDB, i've downloaded the DjanMon pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Draw on the screen, C# I seek a C# method that can print data on the screen 'externally'. Basically, I have an DX9 application, and I want to 'paint on it.'. I tried the Graphics.FromHwnd(0); method, but its flickering and its not as good as I want it to be. I know theres a lot of application like Skype that can dra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start eclipse with no plugins? I installed the Aptana eclipse plugin and restarted and now my eclipse (Indigo) won't start up. As soon as I load it, it freezes - I waited for 15 min and tried several times and no success. I also tried starting up eclipse with the -clean command and same thing. How do I startup eclip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to implement Uniform LBP? Possible Duplicate: Local Binary Pattern in MATLAB I would like to implement uniform LBP. This is the definiton given by wikipedia for uniform LBP. A local binary pattern is called uniform if the binary pattern contains at most two bitwise transitions from 0 to 1 or vice versa w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MPMoviePlayerController prepareToPlay not working with HTTP Live Streaming I'm trying to play an HTTP live streaming video using a MPMoviePlayerController object, inside a modal view controller. If I run the code like this, everything works fine. I get a MPMoviePlaybackStatePlaying notification, and the video plays....
{ "language": "en", "url": "https://stackoverflow.com/questions/7603609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Controlling window position of a Powershell console This works: (Get-Host).UI.RawUI $a = (Get-Host).UI.RawUI $a.BackgroundColor = "white" $a.ForegroundColor = "black" $size = (Get-Host).UI.RawUI.WindowSize $size.Width = 80 $size.Height = 30 (Get-Host).UI.RawUI.WindowSize = $size But this doesn't work, and I am not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: need a way to change the wordpress media uploader div TB_window css apologies for the question again my last question was poorly asked and code was missing. I'm having trouble with my plugin I'm trying to implement the wordpress media uploader, unfortunately iv ran into a problem i have it working and showing up whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to build a C# .NET client-server chat application? Possible Duplicate: multi client/server chat program in c#? I've been trying for some time to build a simple client-server chat, and I keep finding that there are a number of different ways. I was just curious as to what the most correct way w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can one mongoid model query another? If I have a model called Product class Product include Mongoid::Document field :product_id field :brand field :name ... belongs_to :store And then I have a model called Store class Store include Mongoid::Document field :name field :store_id ... has...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating preferences in real time I have a Preferences Screen which has some prefs that are interconnected. Which means, if I have pref x and y, I sometimes need y to change to something when x changes. What I'm doing at the moment is listening to prefs change event, and do this: SharedPreferences.Editor editor = pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: decompiling chm file: hh.exe requires only the filename. no full path is allowed I noticed that hh.exe is capable of decompiling a .chm file to a set of .html files. But in order to work it requires the path to the file be current directory and the filename be the filename itself, apparently without allowing a full ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascripts added via appendChild don't seem to run I've got a javascript file being added dynamically to a page. If I use document.write, it works fine: <html> <head></head> <body> <script type="text/javascript"> var src = 'myDynamicScript.js'; document.write('<scr' + 'ipt type="text/javascr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Intermittent missing email address in facebook API My application uses the "https://graph.facebook.com/me" request with an OAuth token to obtain properties about the user. Email address is one of the properties we need, and we do explicity request that permission when we request access. It's working fine 99% of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Can Silverlight 4 establish a TCP connection to localhost? Please excuse the backwards architecture on this one and assume there's not a better way... I have a Windows Service running on localhost, it listens on TCP port 5432 and broadcasts events to any connected sockets. Is it possible for a Silverlight 4 in-brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A few questions about SQLite database cursors in Android To implement database access in my application I followed Lars Vogel tutorial, but I'm very confused about a couple of things... * *Every time a call is made to fetchTodo a new cursor will be created and returned. Leaving the previous cursor for the garbage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Modeling asynchronous game-like environment The idea is to model an environment for agents. In the most basic case it looks likes this: * *System asks the agent for the next action *Agent responds (e.g. "move left!") *System moves the agent to the appropriate state However, I am having trouble implementing th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: url helper in cake is returning 127.0.0.1:8888? Why? I'm using the cakephp url HTML helper like following: <?php echo $this->Html->url(array('controller' => 'communities', 'action' => 'view'), true); ?> but, it's returing the following url: http://127.0.0.1:8888/communities/view where is coming this 127.0.0.1:8888...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python stripping chars from list item I'm trying to strip characters from timestamp stored in matrix (or list of lists if you want). I want to extract the item and use it as a filename after stripping unwanted characters (it should stay unchanged in the original list). I'm quite familiar with stripping and other str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create an IDT using LIDT I work on Intel-Atom 32bits (Assembly AT&T) How to create an IDT using LIDT I work on Intel-Atom 32bits (Assembly AT&T). I am using the MocroC OSII as an OS, i did this but it doesn,t work: Load_IDT: push %ebp //save the context to swith back mov %esp,%ebp movw $256...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby - Relationship of Class/Objects/Methods Pertaining to Ruby, can someone state the relationship between Class, Objects, and Methods in layman's terms? And maybe even give an analogy? New to OOP and trying to grasp the concept. A: note: OOP is independent of Ruby. Classes are like recipes. Objects are the actual...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I override the default session timeout with pyramid + pyramid-beaker + beaker I am using pyramid to create a web application. I am then using pyramid-beaker to interface beaker into pyramid's session management system. Two values affect the duration of a user's session. * *The session cookie timeout *The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference between feature detection and object detection I know that most common object detection involves Haar cascades and that there are many techniques for feature detection such as SIFT, SURF, STAR, ORB, etc... but if my end goal is to recognizes objects doesn't both ways end up giving me the same result? I un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: validate period delimited numbers regex I have a tricky regex. * *numbers are is delimited by periods . *there can be a max of 4 periods. between each period there can be 0 to 4 numbers. valid expressions include .... ... .. . .1234.1234 ..1234.1234.1234 1234.1234.1234.1234.1234 (this is the max string) 1234...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get friends emails with facebook api I read lots of question about this issue. There is a way to get my friends emails, with Graph Api, FQL or something? I really need to import my Fb contacts into my App. But it seems there is not possible. Even setting a friend's email as public, I can't get it. A: Friend emails ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: call filter in Symfony with parameter Is possible call filter in Symfony in backend (admin generator) with parameters? In address URL is null. In session are parameters, but how can i this use for calling? For example http://www.myaddress.com/backend.php/users/filter?age=18 A: You need to read the manual - especial...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MOV playback not working using UIImagePickerController with MPMoviePlayerController I have read similar threads regarding movie playback in a MPMoviePlayerController after selecting a video using UIImagePickerController including: MPMoviePlayerController do not play movie picked from UIImagePickerController * *Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python regex and splitting I have a string like this mystr = "K1_L1_L2 XX" I want to break it to the following format K1 L1 L2 XX where K1, L1, L2 can be anything but have this format of a char followed by a number. I am doing this in python using the following regex: a = "K1_L1_L2 XX" re.split("[\c\d\_]+",a)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Splitting C string in Python I would like to split a string similar to 'abc "defg hijk \\"l; mn\\" opqrs"; tuv' into (['abc', '"defg hijk \\"l; mn\\" opqrs"'], 33) i.e. I don't want to break on semicolon inside (nested) quotes. What's the easiest way, tokenize? It doesn't hurt if it's fast, but short is better. E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Passing a variable to a function without passing variables asked before it? Is it possible to pass a variable to function without passing the variables that come before it in the function definition? For example, if my function looks like this: function doThis( $v1, $v2, $v3 ) { echo $v1.$v2.$v3; } Can I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET OnClick not firing in Repeater.ItemTemplate that has a custom control Title is a bit of a mouthful, but I'm a bit stuck on this issue. I have a search result page with has a custom control that has a Repeater. The ItemTemplate in the repeater is a PlaceHolder so I can construct the Item in a particular form...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to retrieve dirs in a zipfile using python? How do I traverse the contents of a zip file in python without having to extract them? If extracting is the only way, is it efficient if I create a unique temp folder and extract them there then traverse and remove the temp folder afterwards? A: Use the namelist() met...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing view from within didReceiveRemoteNotification Being still new to iPhone development, I am slowly getting there however sometimes the simple things seem to stump me. My application consists of 7 very different views. It is implemented as a window based app without a navigation controller. Navigation is manag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Define the prototype of a function with a std::vector as input parameter in an header I'm getting crazy since i'm not able to define the prototype of a function i'm actually using. What i'm doing is create an header file called func1.hwhere i define this prototype (that's because i need to invoke this function from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Script to add hyperlink when pre-defined text is found? I'm using PHP to pull some data from an google calendar XML feed, and I'm wondering if there's any kind of script that will run after this and if it finds a certain phrase (not a URL), add a hyperlink to it? E.g. if it pulls "Bayerische Staatsoper" from the fee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why am I getting this error? Fatal error: Class 'TestCase' not found Even though I have got the TestCase class included? <?php require_once("PHPUnit/Autoload.php"); require_once("PHPUnit/Framework/TestCase.php"); require_once("PHPUnit/Framework/TestSuite.php"); class WidgetSession { public function __const...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Questions about Memory Management, Stack, and Heap Possible Duplicate: Does this type of memory get allocated on the heap or the stack? I have a few memory-related questions, I was hoping you guys would be able to answer. Consider this code, with Foo representing a large class with lots of methods and lots of pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SocketAsyncEventArgs.UserToken not being updated? I currently have a client-server application that involves a Silverlight client and a .NET server. The .NET portion uses the Tcp classes provided in System.Net.Sockets namespace whereas the Silverlight client uses raw sockets. I'm porting into this from code that cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL query for checking event conflict Currently I making a school community site and I got a problem in a part were the administrator post a new event he/she wants check if the event start date and time has no conflict also end date and time before saving it on the database. I tried many queries still i fail to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL select rows with max repetition betwen two dates I have three tables Books, Debit and Client. * *Books (Id, Title, ...) *Debit (BooksID, ClientId, BorrowingDate,....) *Client (Id, Name, ...) I need SQL query that will return a book that is most times rented out, between two dates. Dates will be passed as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to slip this multi-dimensional array? I have a nested array and I wanted to know if there is a way to slip it, so having the nested arrays as individual arrays Array ( [0] => Array ( [menu] => Array ( [pizza] => Array ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What could be causing Javascript to stop working in IE in Strict mode I'm trying to debug my jQuery plugin and it worked fine in IE until I added <!doctype html>. It still works fine in all browsers except IE sigh (tested in 6,7,8). What sort of thing could be causing this? here is the page: http://liime.net/projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: OpenCV : How do I find the minimum element along a specific dimension? I'm a new user to OpenCV. I'm using version 2.3.2 (from the SVN repository). I have a specific 3-dimensional cv::Mat structure which is 288 x 384 x 10. This represents a 288 x 384 image and the other 10 channels represent a disparity value. I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SSCrypto from Objective C to C# I am trying to encrypt below base64 string in objective c .. Now i need to decrypt the output of below code in C# ... Please advice simplest way as i don't want to install any libs at server. Please advice how can convert encripted string back to base64 using C# . Thanks My Objectiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Specifying up directory in build.xml for ant in windows I have a build.xml file for ant, and I want to modify a directory from <condition property="flex_sdk" value="%cd%/SDK/flex_sdk/"> <os family="windows" /> </condition> to <condition property="flex_sdk" value="../SDK/flex_sdk/"> <os family="windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving a view from one gridview to another in Android I am trying to write an app that has 2 gridviews. The gridviews are side by side on the same screen. I populate the left gridview with the currently installed apps and use their icons so basically I have a gridview of ImageViews. The activity passes an arraylist...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV static linking error I want to use OpenCV as a static library. After compiling the library as a static library now i'm testing with some examples to see all the dependencies. The dependencies added to compile are -staticpkg-config --libs opencv-lpthread -ljpeg -ltiff -lz -ljasper -lpng12 But obtain the follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing a helpbook outside of an application I am creating a Help Book for my application. What would help a lot is if I could take the *.help bundle and load it into the help view directly for testing without using the application's Help menu option first. Is this possible? A: There's no special way to do this ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Possibility of Using Mono on Android for Android 1.5 I know that Mono on Android only officially supports Android 1.6 and above, but I was wondering if anyone had any experience or tips for trying to get it to work on Android 1.5? I've tried manually changing the manifest sdk version (even inside the sdk itself), bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: display a video from my webcam trying to implement circle detection I'm trying to display a video from my webcam (which was working grand) and now I'm trying to implement circle detection into this video stream. Unhandled exception at 0x001a1a4d in test.exe: 0xC0000005: Access violation reading location 0x00000004...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Two questions about CALayer * *with [myLayer setName:@"layer_1"] I set the name of a layer. But how can I get it from another method? Is there something like [self.view.layer.sublayers getLayerByName:@"layer_1"]? *how to animate a CALayer to move it to another position with a nice smooth effect? A: The name pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use simple sqlalchemy calls while using thread/multiprocessing Problem I am writing a program that reads a set of documents from a corpus (each line is a document). Each document is processed using a function processdocument, assigned a unique ID, and then written to a database. Ideally, we want to do this us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: State after login with JSF I am new to JSF and want to create the login part of an app. I have a login page where I validate logins against a database. That is fine, but I can not figure out the logic in the following part. A legal user should be redirected to her own profile page and non legal users to a common err...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load .png image as ARGB_8888 bitmap Possible Duplicate: Android - Read PNG image without alpha and decode as ARGB_8888 In this tutorial I'm going through, a .png image is being loaded into a Bitmap object using BitmapFactory.Options.inPreferredConfig to set the Bitmap.Config to ARGB_8888 beforehand, but it doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different Links CSS Hover change a picture I would like a CSS hover affect for multiple links that affect the same image. If you look at this example site I have Repair, Sales, Upgrades and Data Recovery links. When you hover over any one of them I would like the image to their left to change. You can hover over the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pipe output(stdout) from running process Win32Api I need to get (or pipe) the output from a process that is already running, using the windows api. Basically my application should allow the user to select a window to pipe the input from, and all input will be displayed in a console. I would also be looking on how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to make a standard Unix Filter using Ruby? I found this ruby problem on RubyQuiz, which states besides the problem itself, the following: "The script should be a standard Unix filter, reading from files specified on the command-line or STDIN and writing to STDOUT. Each line of input will contain one integer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't connect to Derby database if derby.jar is in Eclipse workspace I've been trying to create a Derby DB via Eclipse Data Tools Platform and at the beginning I couldn't manage to get it to work.. no matter what I did, I always got the same error: Could not connect to New Derby. Error creating SQL Model Connection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delete records based on dates I have a database "DB" and I want to delete records from table "MyRecords" which are of future ("RecordDates" which are more than today just to avoid date change on system) and less than x no. of days from today. That "x" may vary. Moreover, I want to execute same type of command with m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NullPointerException in Thread's run method I would really appreciate help with my program. It is some sort of chat server with multiple clients. Here's the server code: package com.server; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public class Server { public static in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does regex [\0-\uffff] capture? As I am reading through someone else's JavaScript, I encountered this regex charset: [\0-\uffff] What exactly is captured by this? A: That logical group will match every Unicode character between null and 0xffff Nothing will actually be captured. For that you will have to use (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7603824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }