text
stringlengths
8
267k
meta
dict
Q: Change the wallpaper on all desktops in OS X 10.7 Lion? I would like to change the wallpaper of all desktops (formerly "spaces") on a screen. As of OS X 10.6 there is a category to NSWorkspace which allows the setting of the wallpaper, however, when I use this function only the wallpaper of the current desktop gets ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Storing links in a session? I want to store links in a session or multiple sessions and I was wondering what would be the best way to do this.. I was thinking that I could use a for loop with sessions foreach session as $s .... But then I would need $session1, $session2, $session3, etc. Thanks in advance, --I'm a PH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add a new line in svg, bug cannot see the line I want to add a new line into the svg when, the add button is pressed, a new line should be added into the svg I can sure the line is added in the elements, but why it is not displayed on the screen? <!DOCTYPE html> <html> <head> <style type="text/css"> #map { borde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Request for member variables is something not a structure Okay so I am creating a custom uitablviewcell in IB and the class I have created is called CustomCell I have imported it in the header file and here is some code // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Mysql Server 5 vs 6 vs MariaDB Have a simple question here. I've a database with around 1 billion records, a server with 200GB of ram to handle it. What do you suggest for best performances? Mysql 5, Mysql 6 or MariaDB? A: MariaDB 5.3 should give you the best performance: * *It uses the XtraDB (InnoDB improved) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: IOS: statusbar problem In my app I have two file xib FirstViewController.xib, SecondViewCotroller.xib and classic MainWindow.xib; in all I set statusBar at "none"; but when I launch my app I ever see this statusbar, why? where is the problem? A: I'm afraid you are setting the Status Bar to "None" under the "Simulat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Drupal 2-phase submission Using Drupal 6 I'm looking for a 2-phase submission: * *User fills form and push "Send" *Form is visualized as read-only with button "Back" and "Confirm" Is there a module for that ? A: The CTools module is probably the closest, it has a helper API to create multistep forms. There's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Save function in tuple without executing I have a tuple like the following: self.tagnames = (('string', self.do_anything()),) It should execute a specific function if a string matches to another. However, when I initialize self.tagnames, it seems to execute the function already. How can I fix my issue without execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MYSQL query issue with UPDATE I have this query: UPDATE people SET column1 = ( SELECT if(r.rand BETWEEN 103 AND 109, 110, r.rand) FROM ( SELECT floor(8+rand()*113) rand ) r ) However, it sets the SAME random number to every row. How can I change it in order to give a different value to every row? A: It se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parsing HTML and counting tags with C# Suppose I have a block of HTML in a string: <div class="nav mainnavs"> <ul> <li><a id="nav-questions" href="/questions">Questions</a></li> <li><a id="nav-tags" href="/tags">Tags</a></li> <li><a id="nav-users" href="/users">Users</a></li> <li>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wrap Extended Frame View in a Window I have an assignment from my university to continue a JAVA card project from the students from last semester, which happens to be sucked. Because we have to carry on with someones work instead ours.. So my first step is to make an window image icon and tray icon for the applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is the complexity of computing the Fibonacci series 2^n and not n^2? I am trying to find complexity of Fibonacci series using a recursion tree and concluded height of tree = O(n) worst case, cost of each level = cn, hence complexity = n*n=n^2 How come it is O(2^n)? A: Look at it like this. Assume the complexity...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Loading Xml file from Isolated Storage - Windows Phone 7 I'm trying to load xml data saved in the isolated storage, but I always get an error. I use the following code to load xml data saved in the isolated storage IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication(); storage.Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: wp_nav_menu change sub-menu inline style? I am trying to modify sub-menus of a Wordpress site. Wordpress generates the following HTML code for the sub-menus <ul class="sub-menu" style="top: 50px; visibility: visible; left: 0px; width: 202px; display: none;"> <li class="menuitem123 menu-item menu-item-type-post_t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Null pointer in C++ When in C++ I declare a null pointer to be int* p=0, does that mean the zero is some special constant of integer pointer type, or does it mean that p is pointing to address 0x0? Of course for that 0x0 would have to be an special address to which C++ never touches during allocation of variables/ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to add manually a label with a text field inside a panel using Java I have a dialog and inside this dialog I have a list on the left and on the right I have a panel I created these things using the gui builder of netbeans now for the panel, I have 3 pairs of label - textfield the problem is that depending on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vim xptemplate shortcut not working I have vim running on a remote server (connecting via the Terminal app on a Mac). It uses pathogen to manage plugins and has xptemplate installed. Recently the that triggers xptemplate when you've inserted a keyword has stopped working. I can't think of anything I've changed. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interact with webview from method outside OnCreate in android I have a question thta keeps occuring and i was wondering how to fix it. I want to be able to interact with views, in this case specifically the webview from outside the oncreate so that my methods can interact with the webview defined in the oncreate. He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to abort specific thread in task parallel library with C# I have this tricky task I've been trying to achieve for quiet sometime but till now I couldn't think of anything to make it work. anyway here is the scenario... I have a winform application contains a listview and a button. the listview contains 1 column ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C++ header-implementation-header-implementation dependency chain I'm trying to create simple C++ incremental-build tool with dependency resolver. I've been confused about one problem with cpp build process. Imagine we have a library consists several files: // h1.h void H1(); // s1.cpp #include "h1.h" #include "h2.h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Second jquery "chunk" not running I have the following jquery below. When the user clicks .commentCount, I want this div called #commentSec to open up, and then some other elements on the site change. This jquery chunk runs fine. However, the second chunk, onclick of a close button called .closeComments, doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone - Won’t save array to plist on iPhone I’m trying to save an array to a .plist file on my iphone but it won’t save to it. When i try it on the simulator it works. But when i run it on the iphone it doesn’t work. I check if the file exists on the device and it does and i can read the data from the file, but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use CodeDOM's CodeMemberProperty to generate DebuggerStepThrough attribute for a property getter or setter How can I generate a DebuggerStepThroughAttribute over a getter/setter with CodeDOM? This question follows from MSDN documentation and a question on StackOverflow. A: CodeMemberProperty's CustomAttribut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing MainWindow background color WPF I am trying to change the background color of the MainWindow using a dialogbox called EditColorDialog. The dialogbox can read the current background color of the main window just fine but I can't seem to get it to change that color. public partial class EditColorDialog : Wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: http.request listener I need my Play! application to accept http POST from other server. Is there some simple way how to manage external http post, get data and sent response? Some easy http request listener? Thanks A: You could say nearly ALL http requests come from a remote source, so this is how Play and all HTT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pascal insert user input to an array I am trying to get better at functional programming. As a start I am planning on trying out with couple of languages like Pascal, Scheme, ML etc. First I started with Pascal. I am trying to insert user input into a integer array in pascal and then get them reverse. 1 program Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why does my application work differently when running as administrator? I have a small Delphi application that writes a key to the LOCAL_MACHINE registry. When I run it on Windows 7 professional with user that has administrator privileges it fails to write the value, but when I right click and choose "Run as adminis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rackspace CloudFiles C# API: How to list files on root 'folder', and how to list (sub)folders within a 'folder'? (1) I can list the files on a folder this way: var parameters = new Dictionary<GetListParameters, string>(); parameters.Add(GetListParameters.Path, "folder1/"); // get items from this specific path va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Restarting a job (upstart) in a php script I am currently writing the admin portal for my most recent project. I have been fighting with my computer to get upstart working, and now that it is, I wanted to be able to operate upstart from the web. I need to execute the following in my php script sudo restart job sudo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: My locale is set, I can see € instead of $, but time still displays English months I am doing a Rails app in French. I downloaded a fr.yml stored in config/locales and added config.i18n.default_locale = :fr to my application.rb. The .yml contains days and months. Messages in pages generated by scaffold are in French...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check Browser PHP and put results in .txt Possible Duplicate: How can I detect the browser with PHP or JavaScript? I want to check what browser visitors to my site are using, and then save the results to a file named browser.txt on my server. Any ideas? Thanks A: Why not just install Google Analytics which does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How search engines find websites over internet I'm going to write a Web parser (an application that crawles on the web from one site to another). How Can I find list of available domains/IPs in the internet (as complete as possible)? How search engines find websites (What they use as a reliable list of registred IP/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Undefined Reference Trying to invoke Java from C++ I am trying to create a Java virtual machine from C++ and invoke the main method passing a String argument to the main method of the Java program. I am following this example found on Sun's website: http://java.sun.com/docs/books/jni/html/invoke.html#11202 Here is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Should I use EventArgs or a simple data type? I'm currently creating a library for fun and practice and I was wondering, when raising an event, how to choose between passing your own EventArgs derivative or just the data type. For example, in my library I have something like this: public delegate void LostConnection...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Define a computed column in view as not null I have a view with computed columns now I need to enforce the computed columns to be "not null" for lightswitch. I tried to cast() but I still cant get the computed columns to be "not null" Is it possible? This is my SQL: SELECT dbo.Nop_Manufacturer.Name, CAST(SUM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Clickable imageview widget I want to make a very simple widget: It must consist from just one image view 1) on incoming sms it should change the image 2) on click it also should change the image I tried to make it using ImageButton but failed: there were problems with changing the image on sms received even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to draw a set of lines in mathematica all with the same origin point? I have a set of points given by this list: list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}}; I would like Mathematica to draw a line from the origin to all the points above. In other words draw vectors from the origin (0,0) to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Styling/Theming of just Search Dialog tl;dr: White text style in app theme being picked up by search dialog, making search text invisible. I'm struggling mightily with what seems like a trivial issue. My app is using a dark background, and I've tweaked the text color to be brighter than the standard gray usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problems after server uses accept() to accept connections This is my first time ever using sockets, and I am having trouble accepting connections on the server side. My server is only designed to accept one connection at a time. Once a connection is received, the current date and time are written to the socket, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dates from a text file I just wanted to ask whether it is possible to find Dates in all possible formats in a text file and print the results. I was able to open the file and format the dates but I couldn't combine the two elements. Here are the codes so far. I appreciate any help.Thanks here are the requirements an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Size of button in alertdialog how can i change the size of button in alertdailog in code without using xml ? I'm not using view .. Thank you The code : alertbox3.setNeutralButton("Cancel",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); A: you may try this co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to draw gradient into a layer CGLayerRef I am new to Xcode and iOS development. I am trying to draw a gradient into a layer so that I can draw this layer repeatedly in my view. This gradient forms the background of the view and I do some drawing over this gradient. But when I draw a gradient into my layer, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capistrano error on bundling compass from git When I try to deploy to my newly set up server, capistrano throws this at me. *** [err :: fupifarvandet.dk] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'. ** [out :: fupifarvandet.dk] Git error: command `git reset --hard 22e2458b77519e8eb84631...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Class name conflict importing new package (java) First of all, I am a new to java, so my question might be stupid but i still need an answer :) I have a class that handle display matters. I have named it "Display", but the problem is : I need to import a class called org.lwjgl.opengl.Display. Of course, I have this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: mysql - 2 select functions in 1 I want to combine 2 selects into 1 the first one is: ("SELECT * FROM `help_and_advice_forum` LIMIT 10, 10"); The second is: ("SELECT * FROM WHERE `sticky` = '1' LIMIT 0, 5"); Is their any way to select the first five sticky's then select 10 rows after 10 rows? Thanks A: UNION them ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Getting time with currentTimeMillis() as a long, how do I output it with X decimal place accuracy? I have a long that represents System.currentTimeMillis(). I then took another measurement of the time into a long var later in my code. I subtracted the two but now want to see that time to 3 decimal places. Curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does a collection of selenium 2.0 extensions exist? I have recently started a automated testing project using selenium 2.0. The api feels very low level and I'm looking to refactor some of the common stuff like form handling before writing too much repeating code. I have searched a bit trying to find some conribute...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Choosing Rails vs. Django based on performance and scalability I'm currently working on a side project (that hopefully will grow into something more), and right now its strictly static front-end stuff; HTML, CSS and jQuery. So in the meantime, I have time to do heavy research on choosing Ruby on Rails vs. Python/Dj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how do I run code when a node is added to a C# TreeView control I need to run code when a new node is added to a treeview control. Control_Added event that comes with the control does not get fired when a new node is added to the TreeView which is weird as I expected that it was a control, a node I mean. What event ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android OutOfMemoryError on WVGA800 and not any small screen format When I try and decode a bitmap on an emulator running less than WVGA800 it works fine (phones included) but on larger screens it throws a OutOfMemoryError Why would that be? would phones with larger screens have more memory? private Bitmap getBitmap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I download an entire webpage (with images) on the iPhone? Is there a way to download an entire webpage for offline viewing with the iPhone SDK? I can use NSString with the contents of the URL, but that would just give me the HTML and no images. Is there any way to do it? A: The popular open source library AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Provision a Device When it's Not Connected to Computer this is driving me absolutely crazy. I'm trying to deploy an application to one of our developers who just bought a new iPhone, but the problem is that he's nowhere near the office right now so I can't physically connect his device. Any ideas how I can ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you operate on Arrays in Java like in Matlab? I was wondering whether there was a way to do the following, without writing a function or a for loop: int[] ma = (3,4,4,5,6,7); ma += 5; thus, adding 5 to all elements in the array. Matlab allows for such a convenient shortcut. A: Short answer: No you can't. You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3 RESTful Authentication - uninitialized constant ApplicationController::AuthenticatedSystem Just installed the upgraded restful_authentication plugin for Rails 3 from https://github.com/Satish/restful-authentication. I'm trying to include code from the plugin in my application helper as follows: class Applica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get JFrame as function argument in java? I wanted to make a different function to make menubar for java application. In menubar function frame.pack() in action listeners and frame.setJMenuBar statements are required. So how can we pass frame as object to subclass as argument? I get errors in imports.. public...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to specify query MediaStore.Audio.Media in Android SDK? I have a ListView of a music albums that are on my SD. I want to make another list that displays the songs that are on the album, when i click it. How to I query MediaStore only for that certain album? Thanks! A: Hi this may help you..... Specify where cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About styling order list <html> <head> <style type='text/css'> ol li{background-color:green;} ol li:hover{background-color:lightgreen;} </style> </head> <body> <ol> <li>This is first line</li> <li>Here is second line</li> <li>And last line</li> </ol> </body> </html> if we use this coding the number's bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: button doens't work ! I'm using .show(), hide(), toogle() and style.visibility Ive faced a problem which I have no idea the why ... so Im here.. http://videoarts.com.br/newSite/addAlbum.php First, It has to select the "tipo". If is "foto" a form will show up. When the its filled in the "album nome" the "ok" button ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a split function in xpath? I am trying to split a text from a node <extra>text1|text2|text3|text4</extra> into four parts "|" as the delimiter and reconstruct 4 new nodes as follows. <g:test1>text1</g:test1> <g:test2>text2</g:test2> <g:test3>text3</g:test3> <g:test4>text4</g:test4> Here is the code I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Returning an OFFSET subquery result in sqlite3 I'm selecting a random row from a table in SQLite by using a subquery to determine a random OFFSET value: SELECT id, prev_node, next_node FROM edges WHERE prev_node = ? LIMIT 1 OFFSET abs(random())%(SELECT count(*) FROM edges WHERE prev_node = ?); This is functiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I change the product thumbnail display in Magento? I am trying to change the product thumbnails in Magento. I am looking at this line in /app/design/frontend/default/THEME/layout/catalog.xml: <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why would an app run fine in the system environment, but not under RVM? I'm trying to get up to speed with RVM. I have a Rails 2 app that works fine within my system. In other words it worked before I installed RVM and it works if I "turn RVM off" with $ rvm use system. Under RVM I installed the same Ruby version an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Communication between kernel threads in a linux kernel module I'm just beginning to learn the tricks of making a kernel module on linux kernel 2.6. What I'm looking to do is have 3 kernel threads, called the slaves, that need to send data to a 4th kernel thread, called master, and receive their respective responses....
{ "language": "en", "url": "https://stackoverflow.com/questions/7547314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Apache VirtualHost slow lookup I finally managed how to configure properly httpd.conf for my virtualhost needings. This is the relevant part of httpd.conf file NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot /Applications/XAMPP/htdocs/ </VirtualHost> <VirtualHost *:80> ServerName te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: SQL - Query Multiple Aggregations based on DateTime - MySQL This is a complex one. But I have a table which has a DATETIME field, and a few other int and float fields which need to be summed and averaged. We want to do the summing and averaging on this table based on the time stamps and ultimately would aim to devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iPad/iOS: Managing multiple full screen views? My app needs to switch between a couple of full screen views. These views are toggled by buttons in a custom overlay menu. There are no tab bars or navigation bars visible. The transition between views may or may not be animated. As I see it I can either use a single ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ function to chop very small numerical values Is there a C++ function that chops very small numerical values that appear due to approximations of the floating point numbers in the CPU to zero? I want to use this in complex number calculation, so it can appear in either the real or imaginary parts. A: No such fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem in Cakephp + WAMP Installation I am new to cakePHP And I am having a problem getting it working while using WAMP. I have already copied cakephp folders/files into WAMP's www folder and DocumetRoot "C:\wamp\www\cakephp\app\webroot" Is there more I need to do? I am getting a page when clicking on localhost fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with insert value in database with json_encode I want insert on a row of database table, following value with following php code(foreach) but after insert get following error, what do i do? Values: <div class="column"> <input type="text" name="start_date[1][]" value="1111"> <input type="text" name="e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android - Override method from higher API version and supporting lower API version I'd like to listen for a long key press in my Android application, and from Android 2.0 there is a method public boolean onKeyLongPress(int keyCode, KeyEvent event) to override. But what can I do if my app absolutely has to support A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How does unit of work class know which repository to call on commit? * Preface: I'm pretty new to the unit of work pattern * My goal is to implement a unit of work class that will be able to keep track of all objects that have been changed throughout a given transaction. Everything I read about the unit of work patt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I see Objects Inside Heap & Stack in C#.Net Is it possible to see contents of stack and heap after every line of execution. I want to see it as it will give clear idea about memory allocation and deallocation in .Net. With your If any document or link which will clear my doubts with your answer please s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Servlets vs Beans I need advice from experienced developers regarding the software architecture of a project. The need is to provide with a REST interface for an API so that a customer can : 1) authenticate themselves (this also involves handling account creation) 2) Issue get/add/update/delete() requests on resourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open part of html page in UIWebView guys. I want to load only part of web page, but I can't do it. Man from Russian forum told, that I can use PHP, but I can't create this in my iOS app. He send this code: > <?php > $url = "http://www.shesterenka.com"; > $unique_start = "<h1>"; > $unique_end = "</h1>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex to test whether there are more than two digits in a string As far as I know, \d{2,} matches 2 or more consecutive digits, but I need to know whether there are any 2 digits in a string. I would also appreciate some good links to password strength meters. What I use now is function passwordStrengthPercent(pwd,us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server - Data deletion issue I currently got 2 DEV SQL Servers which is used by 4 Developers for their day to day work. Yesterday, data out of few tables on DEV instance got deleted Now I'm struggling how to track back who had deleted the data as everybody is saying they haven't deleted the data. Only failed log...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery chunk not running I have the following jquery below. When the user clicks .commentCount, I want this div called #commentSec to open up, and then some other elements on the site change. This jquery chunk runs fine. However, the second chunk, onclick of a close button called .closeComments, doesn't run at all....
{ "language": "en", "url": "https://stackoverflow.com/questions/7547372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Stopwatch not starting at zero I've got a basic stopwatch here, but the problem is I think it begins counting when the page loads as opposed to when the start button is clicked. Likewise, when you reset and start again the same problem happens. <form> <input type="button" value="Start count!" onclick...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Regex: Replace anything that isn't a dot or a digit? I'm trying to see if a string is an IP address. Since IPv6 is rolling out it's better to support that too, so to make it simple, i just want to replace anything that isn't a dot or a number. I found this regex on stackoverflow by searching: \d+(?:\.\d+)+ but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: LookupEdit in XtraGrid cell value goes blank This is what I have: public class ViewModel { public BindingList<Row> Rows { get; set; } public BindingList<MyElement> Selectables { get; set; } } public class Row { public MyElement Selected { get; set; } } public class MyElement { public string Value {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unable to align views properly I've been trying to successfully align the views so they look the same on other phones but I can't succeed. I just can't get it to work. Here is the background: I want a TextView in the middle of the green zone, and in the middle of the blue zone, and an imageview in the orange zone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we use `LoadLibrary ` having our application compiled with Visual Studio 2010 and static runtime? What I want is simple - have C++ application that would be compiled with static runtime ( /MT, /MTd flags ) and be capable to open, call, etc classes and thare functions from DLLs (using LoadLibrary, C++). Is such ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the Dictionary method in C# I am currently using the Dictionary method in C# to index a text file successfully, although in this case I would like to index more than one keyword (#HostName). I have tried adding an additional IF statement to the method although it doesn't appear to work - by that I mean it seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Help needed in SQL Query-Update I have a Table Called Student_Details which contains the following columns: ID, Roll_No, Student_Name, Student_Address, Student_Class. ID is the primary key. I have a problem where the record of every student is split into two rows. For example, the first row contains: 1, 20, john, ''...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Python Exception handling when Importing First file: class E1Exception (Exception): def __init__(self,x): self.x=x def raiser (self,x): self.x=x if x=='So sue me': raise E1Exception('New Yorker') else: try: number = (int)(x) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery add line break and truncate + add "..." after x amount of characters I'm trying to figure out a way to accomplish 2 things: 1. A line break after 4 characters or first word. 2. Truncate + add "..." (only if the amount of characters exceed 20 characters) Example: 2008 WALKER STATION THE BRIDGE 1.5L Would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cakephp containable order not working I am using cakephp containable to retrieve related models $this->Order->find('first', array( 'conditions'=>$conditions, 'contain' => array( 'OrderItem'=>array( 'Item'=> array(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot send Image data type from web service I use this lines of code in web service to send data: byte[] bajtat = (byte[])dr["Logo"]; MemoryStream ms = new MemoryStream(bajtat, 0, bajtat.Length); ms.Write(bajtat, 0, bajtat.Length); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript class change doesn't change CSS3 gradient in Chrome I have a simple div with a CSS3 gradient as background, its original background is declared from a CSS file, where I also declare that this div with another class should have another CSS3 gradient as background. When adding the class to the div with Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to create new Firebird database I am new to Firebird. I installed Firebird Superserver 2.5 with "Install as application" option. I also installed FlameRobin GUI front-end. When I am trying to create a new database with SYSDBA username and masterkey as password, it displays following error: I am installing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get an Answer from a web service after sending Get request in iOS I'm a novice in iOS developing, and have some problems with understanding web service organization. I want to send a Get query to the URL. And I do it so: -(BOOL) sendLoginRequest{ NSString *getAction = [NSString stringWithFormat:@"action=%@&us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Street address in android using GPS and google maps I wan't to get the street name that I'm standing in using the GPS of my android and google maps. can you please help me? thank you A: Use the Geocoder class - there's some useful functions like getFromLocation for example. Give the method longitude and lat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ Custom "List" implementation doesn't work I tried to create a list container with similar access of elements in c++ as in C# I'm totally lost now because my main method first printed weird numbers. The RList class should be like: RList<ClassName or Primitive> VariableName; VariableName.AddData(Class or Primitiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular exp to check minumum 200 characters, including spaces I need to create a regular expression to check for a minimum of 200 characters, including spaces. It should accept any characters from the keyboard I am new to javascript. How do I do it? A: A regular expression which matches all characters, with a mini...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why the addClass is not working in this code In the below Code of my function when i use CSS it works fine. when I add this CSS to a class it is not working function setTab(selection) { $("#"+selection).css('background', '#CC0000'); $("#"+selection).css('color', '#ffffff'); // Both the Ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ZF: routing. How to make correct route? I have several templates: /admin/ /somecode1/somecode2/ /staticpage.htm Trying to enter on /admin/. Doing follow: $router->addRoutes(array( 'adminsys' => new Zend_Controller_Router_Route('/:module/:controller/:action/*', array('module' => 'admin', 'controller' => 'inde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: objective-c none nil array comes up as nil in if/else statement The following code is not working as expected. I am setting an array after creating a view but before displaying. I used NSLog to test that the array is set but the if/else sees the array as empty. - (void)viewWillAppear:(BOOL)animated { [super vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accumulate data for batch updates and send it after passing threshold limits of size or after timed duration? Is it a good strategy to accumulate in webserver memory upto a specific limit of data over time that is being written to the database & send it as batch updates after every specified interval or after data g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IOS: turn off camera In my app I use iphone camera, but the process is very low when I open it; then I want to start the process when I shows a splashscreen. The problem is that when splashscreen ends I don't want to show camera. Then while I show splashscreen I want to start process of camera and quit it before spl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: problem running JUnit tests with Ant in Eclipse. Beginner question I'm learning these days how to use ant to run automated test folowing this tutorial. I have JUnit in the classpath of my project. All seem to work fine and I can include it in my classes: import junit.framework.TestCase; //line20 public class Simple...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }