text
stringlengths
8
267k
meta
dict
Q: Can I execute the number stored in a register as an instruction in MIPS? If I take an instruction and break it down into the binary representation of its op code, rs, rt etc... could I then put this binary number into a register and get MIPS to treat it as an instruction? For example: The instruction: add $t0, $s0,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenGL camera with 3 vectors Okay, so I was following this tutorial to help me with making a camera in OpenGL: http://nehe.gamedev.net/data/articles/article.asp?article=08 So I followed it, and after some struggling, finally had a solution where I now had 3 vectors that represented the 3 axes of my camera. The probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: redirect http to https in grails I have a follow up question about redirecting grails apps from http to https. another user showed me that, the config file, i can do something like this: grails.plugins.springsecurity.secureChannel.definition = [ '/**': 'REQUIRES_SECURE_CHANNEL',] right now, thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android and receiving sms I need to write some application on android. I want to application listen to incoming sms. When phone receives sms from specified phone number, application will recognize that the sms is from this phone number and do some work, process data from sms. Is there possible to do something like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get another element with jQuery I build multi level menu and my HTML structure looks like this: <ul> <li>item 1</li> <li>item 2</li> <li> <ul> #this is set up as display: none; <li>subitem 1</li> <li>subitem 2</li> <li>subitem 3</li> </ul> </li> <li>item 3</li> <li>item 4</li> </ul> And I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: User prompt won't go away I recently created a Java program, and in an effort to give the desktop application its own icon, create a .bat file that ran the .jar and then converted the .bat to an .exe using a free converter. The problem I am having is that whenever I run the exe, windows prompts the user asking if yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using fscanf to set a variable in a different class I'm trying to read a number from a file and set it to a public variable in a different class. The function that is reading the file has a pointer-object instance of that class. I'm facing a weird issue: The following works: int dummy; fscanf(file,"%d",&dummy); // a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Difference between std::string's operator[] and const operator[] Can anyone please explain the difference between: const char& operator[] const and char& operator[] in C++? Is it true that the second one is duplicating the string? and why? A: No, the second returns a non-constant reference to a single character i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Security risks from user-submitted HTML I am using a contentEditable div that allows users to edit the body HTML and then post it directly to site using an AJAX request. Naturally, I have to do some security checks on it. The most obvious was ensuring that no script tags were submitted by searching for <script in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WM_COPYDATA with and without quotes yields different results Using WM_COPYDATA to pass command line params to another app instance with Delphi XE as follows: function DAppInstance.SendParamsToPrevInstance(AWindowHandle: THandle): Boolean; var copyData: TCopyDataStruct; cmdParams : string; i : integer; begin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What languages would one need to know to do something like this? I want to be able to make like.. grids, or spreadsheets, etc.. here are a couple examples.. http://killgrid.com/grid/325 http://demo.warsheet.com/ I want to create a site somewhat similar to those, I would allow users to sign up and create spreadsheet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Persistent Code Memoization in Compilers and Run-Times Environments I believe the concept of a code-cache (for example ccache) should be extended into a more fine-grained memoization of both intermediate code (IC) and target code (TC) in compilers such as GCC or LLVM+Clang. This can then be used for a whole range of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WxPython Updating Frame to show buttons I am new to wx widgets. I am trying to make a GUI in which I have to show certain buttons based on certain conditions. The problem is that when I create this new button after Frame.show() The button is not visible until I take the mouse over the place the button is supposed to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rectangle inside another rectangle Is it possible to create drawable from xml like on the picture? The first rectangle contains a second rectangle. If yes, please explain to me how. A: If you want simple rectangles you could use a LayerList with two shapes as content: <?xml version="1.0" encoding="utf-8"?> <layer-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Executing javascript loaded via DOM insertion I'm working on something that will add a widget to a customer's site, and I want to load my js asynchronously so as not to block the customer's page loading. I've been reading a lot of threads about this, and have been trying to implement the pattern suggested here as my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can i start .Net Console Application under custom user? I have a console application that i would like to run as 'MySpecificUser'. Can i specify this user in app.config? A: No, you can't. By the time the config file is read by the CLR it is too late to specify the user the process runs under. On the other hand you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii require_once fail, can't run demo project Interestingly I have another version of yii running and that runs with out error but that one does not have gii. I installed the latest and when I build a demo project, it give me this error. I think it is related to permission. I tried different solution but could not m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to start notification on custom date&time? I know how to start a notification X milliseconds after some click event. A code like this Timer timer = new Timer(); TimerTask timerTask = new TimerTask() { @Override public void run() { triggerNotification(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debugging C++ code involving use of: vector, string, STL I am C++ beginner. When I try to debug C++ code using following constructs like string, vector of certain native types, STL etc, debugging gets tedious. I use MS Visual Studio 2010/ Visual C++ 2010 Express. e.g. -- While using string as below: string str; g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Clojure list member cast error I try to write function thats return true if element exist in list and false if not. My code: (defn is_member [elem ilist] ((elem []) false) (if (= elem (first (list ilist))) (true) (is_member elem (rest (list ilist))) ) ) I try to run it: (is_member 1 '(1,2,3,4)) But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How gcc linker works in including files This is really a newbie question. I'm learning C, and I don't understand how to link together different files. I have a header like /* file2.h */ int increment(int x); and a C file /* file2.c */ #include "file2.h" int increment(int x) { return x+1; } Now I want to inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: array_key_exist on first layer of multidimensional array Can somebody tell my why the following code doesn't work? $ReturnData=array( 'cardauth'=>array('success'=>'') ); $Query="SELECT cardauth FROM y WHERE x = '".$x."'"; $Data=mysql_query($Query); while($Row = mysql_fetch_array($Data)){ foreach($Row as $k ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting circular references in SQL I have the following table: CREATE TABLE X ( A SOMETYPE NOT NULL, B SOMETYPE NOT NULL, C SOMETYPE NULL, PRIMARY KEY (A,B), FOREIGN KEY (A,C) REFERENCES X (A,B) ); The entities stored in X are hierarchically organized: If a row (A1,B1,C1) exists and C1 IS NOT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: javamail works from desktop but not android emulator i have a javamail based gmail program, i tried using a standalone java app on the desktop and had no trouble, but when i run on android emulator i am getting: D/SntpClient( 74): request time failed: java.net.SocketException: Address fami ly not supported by prot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use a static constant (declared in parent class ) via a child class ( inherited class ) I have something like this : class ParentClass { public static const ON_SOME_EVT:String = "onSomeEvent" ; .... } class ChildClass extends ParentClass { .... } main() { trace( ChildClass.ON_SOME_EVT ) ; //<< compile...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jqGrid tableToGrid loses scrollbar on sort I'm using the tableToGrid method of jqGrid to convert an ASP.Net GridView into a jqGrid. The grid is converted and everything looks good. But once I click a column to sort by, the data gets sorted and then I lose the vertical scrollbar, or really, just the ability to scro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Example for SimpleExpandableListAdapter I am trying to implement ExpandableListView in android. But I did not find any good tutorial. I have to draw a check box and a textview on my parent view. On child view the first item contains a checkbox an image view and the last three are text views. Can any one please help ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a return value from a recursive Groovy closure? i seem to have written a recursive closure :) difficult enough but i am not struggling on how to get feedback from this closure. My written closure deletes a file recursively from the a starting point on the filesystem. I want to now how many files have been...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS2010 don't publish particular folders/files I saw this question but it's related to VS2008 so I thought maybe things have changed: Don't publish particular folder in ASP.NET Anyway the question is, when I publish my ASP.net website it creates the publish folder and publishes files such as web.configand the images/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: map a servlet in runtime I need to map a servlet in runtime. Is there anyway of doing it? I saw a method called addServlet in servletContext Interface. But I couldn't find a way to access it. A: You can dynamically add servlets at runtime in Servlet 3.0. As you found, you do need access to the ServletContext in ord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deploying MongoDB, CouchDb on OpenVZ? I want to write hobbistic app and deploy it on Linux 64 bit on OpenVZ. I googled and it seems that MongoDB doesn't work well under OpenVZ environment so the way to go is CouchDB? Or for small databases on just one server without any extraordinary featues I can go with MongoDB? B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extending the XHTML DTD to use special chars in ID attributes I want to validate XML templates that are a XHTML extension. Now there are special characters like { and | in ID attributes. Is it possible to extend the XHTML DTD to overwrite the restriction to the characters allowed in the ID attribute? Or are the char...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Retrieve a thumbnail of a video I'm trying to make an application for showing the best movie trailers. I'd like to show a grid view with the thumbnails of each video and then clicking them open a new Activity for playing the video. Given a moment of the video, how can I retrieve the thumbnail? If that is complicated...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Maps API is not marking restaurants, schools, etc on my map. When using the Google maps API to display the map, restaurants, schools, airports, stores, etc. are not being marked as seen on maps.google.com. How do you make the API mark these locations? A: You'd need to use the Places library, but it won't be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Core Data and threads / Grand Central Dispatch I'm a beginner with Grand Central Dispatch (GCD) and Core Data, and I need your help to use Core Data with CGD, so that the UI is not locked while I add 40.000 records to Core Data. I know that CD is not thread safe, so I have to use another context, and then save the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Escaping strings with python mysql.connector I am trying to insert a bunch of strings into mysql using python and mysql.connector. My current code looks something like this: db = mysql.connector.Connect('config blah blah') cursor = db.cursor() data = (somestring1, somestring2) sql = "INSERT INTO mytable (col1, col2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Driver development: Uninstalling Windows driver I'm hacking on a virtual HID driver, and for some reason, I'm unable to disable and unable to uninstall the driver in Device Manager. devcon.exe remove also throws an error. Removing the device in Game Controllers dialog in Control Panel tells me to go to Device Manag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Iteration over a list item in Python I have a list in python with following sample contents: ['mark', 29, 'american', 'james', 45, 'british', 'arthur', 76, 'australian'] as is clear from the pattern the first item in a list is name, second is age and the third is nationality. What will be the most efficient...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is 'publish_actions' extended permissions available for testing? I've been trying to test out Scores and Achievements using the 'publish_actions' extended permissions but when I add it, it doesn't show up in the Request for Permission page. It's like its ignored. I've tried a couple different ways: $loginUrl = $fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Unable to drill down into a variable in Firebug Occasionally in firebug I'm unable to drill down into a variable expression when stepping through javascript code. Sometimes it's flukey behavior and I'll refresh the page and the next time through I am able to drill down. However with some variables I'm never able to....
{ "language": "en", "url": "https://stackoverflow.com/questions/7540807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embedding python + numpy code into C++ dll callback I am new of python embedding. I am trying to embed python + numpy code inside a C++ callback function (inside a dll) the problem i am facing is the following. if i have: Py_Initialize(); // some python glue // python invocation Py_Finalize(); everything works fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Header file for atomic builtins of gcc I wanted to know what is the header file that is used for the atomic builtins of gcc? I want to use these 2 functions for implementing the mutex for a thread library that I am currently creating. bool __sync_bool_compare_and_swap (type *ptr, type oldval type newval, ...); type ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: android choose between two starting activities I need to choose between two starting (Main) activities based on some stored data. Logic I am trying to achieve is something look like: if (data == something) showActivity1(); else showActivity2(); Is there a way to declare something like this in manifest? Multiple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Zend Framework: DB / Models: Securing Other Users Rows - Overriding Concrete Methods I am trying to research the best way to secure users data. Example: An application has a table 'widgets', each user can have as many 'widgets' as required. The application identifies the 'widgets' by the 'userId' column, which refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compiler error about class graph being not finitary due to a expansively recursive type parameter With this piece of code: trait B[T] trait C[T] class A[T] extends B[A[C[T]]] I get the following error: error: class graph is not finitary because type parameter T is expansively recursive class A[T] extends B[A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Web2py AJAX autofilling of form i've a from an i want to fill it automatically based on information from a data base and filled fields : in db_wizard.py db.define_table('sender', Field('name'), # e.g. Daniel Field('email'),# e.g. daniel@daniel.com Field('opening'), # e.g. Dear Daniel ...) db.def...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fixing the Subversion user does not own lock on path error I am trying to delete a folder within my Subversion repository. My TortoiseSVN client gives me the following error message when I try to commit this change: Commit Failed (details follow): User {username} does not own lock on {path} page {filename} currentl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CSS text-overflow - apply ellipsis if text extends (n)th line I'm using the following code to to prevent text from overflowing to a new line: .info-box{ text-overflow: ellipsis; white-space: nowrap; overflow: hidden; height: 3em; width: 300px; font-size: 1em; line-height: 1em; } This works, as expect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Cufon is not showing after the text is dynamically updated I'm currently building an e-commerce site in wordpress using the WP-ecommerce plugin.In product page, the stock is updated after you select an attribute(size, color etc). It basically shows if the product is in stock or not. The text gets cufon when the page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A simple DEVISE sign-up... Why doesn't this rspec/capybara test pass? A typical DEVISE create account page should redirect to a welcome page for new users describe ArtistsController do render_views .... describe "Sign UP should redirect to welcome page" do it "should redirect to welcome page on valid sign ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I differentiate between records in a has_many relationship? I have a table of venues, venuetypes and just added a table of venuetype_icons. Currently a venue belongs to a venuetype and a venuetype has many venues. Each venue is displayed with an icon depicting its venuetype. The venues can be either free or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AChartEngine Messed up labels My chart displays fine but as soon as I scroll to the side, I have random time appearing and it messes up the dates, see this picture: http://img14.imageshack.us/img14/8329/statqs.jpg I'd like to only display the date and nothing else, I don't know how the renderer comes up with time th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create Graph actions with GET curl -F 'access_token=AAAAASrf1VhwBAOU0pZAzvwBYQLjcJClsMA2e7al0qsRP5uJ0KoUmMuc7aNq56gXmSQd6c2h9vfdQUscvtC3ZAZCxP36USGFy0fNqdhq5gZDZD' \ -F 'article=http://example.com' \ 'https://graph.facebook.com/me/teglilka:iztegli' Is this the only way to set action, is there GET method ? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html button to call php shell_exec command I have google the heck out of this an I cannot get an answer to this. I hate php, but out php guy is too busy and I need HELP! I want to call a perl script from an html button. But, I just want it to run in the back ground, I don't need to display anything from it... Wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vim does not open Git branch files I checkout an old git commit as a branch, with: git checkout -b b48cdaa Then I open vim (actually Macvim) and I expect to see the files from the old commit, but all the files are the current (master branch) rev. Why is that? How can I look at an old rev in vim? Thanks in advance. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Wrapping some string with conditional i have string need to be wrapped by tag HTML with conditional like this: <h1>Test</h1> Then nothing will happen <h1>Test Lagi</h1> Then the first word will be wrapped by span, result <h1><span>Test</span> Lagi</h1> <h1>Test Lagi ah</h1> Then only the first word will b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .htaccess Redirect sub-folder Hi I'm not a programmer by any stretch of the imagination and am trying to do a multi 301 redirect in my htaccess file based on the following: So I have a ton of urls all with similar naming conventions - here is a sample of 2. http://www.hollandsbrook.com/garrett-at-gold/ http://www.ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IE Rendering Problems I have been developing a website template for my school website. I have finished all necessary development but now have noticed a problem. When opening the site in IE, it does not align everything as it does when it is loaded in Chrome or Firefox. I'm guessing that there is some CSS property th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: design - sixth normal form I have the following tables: Blogs { BlogName } BlogPosts { BlogName, PostTitle } Blog posts is modeling an entity and a relationship at the same time which is invalid according to 6nf (according to the third manifesto). In 6nf, it would be: Blogs { BlogName } Posts { PostTitle } BlogPost...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Object reference is required? am learning C# and have written a simple bit of code, but i don't understand why i have to declare the variables userChoice and numberR within the scope of the Main method and not within the scope of the class. If i declare it within the class like this, i get build errors using System;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Telephone Words problem Please help solve this: Telephone numbers are often given out as a word representation, so that they are easy to remember. For example if my number is 4357, the text given is HELP. There could be many other possibilities with the same digits, most of which do not make sense. Write a space-and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: boost::bind function with its input argument error I am trying to do multithreading by boost::bind. But, I got error: src/model.cpp:225: instantiated from here /boost_1_45_0v/include/boost/bind/mem_fn.hpp:333: error: pointer to member type void (Model::)(taskDataSPType&) incompatible with object type taskDataS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run Ook!? (VS Language Integration) I downloaded the Ook! source, opened the .csproj and ran it in debug mode. The VS Experimental Instance fires up as expected, but now I can't figure out how to get to a blank code file so I can actually try writing in Ook! I don't see "Ook!" in any of the project templates....
{ "language": "en", "url": "https://stackoverflow.com/questions/7540890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: scaling vector images through librsvg Is it possible to scale the svg before getting its pixel buffer through librsvg? I can see API like rsvg_pixbuf_from_file_at_zoom but it is marked as deprecated. Is there some other way to do it? I wan to avoid using cairo for this, if possible. A: You do not have many choices,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Log4j mapping all loggers to a single logger Our middleware team assignes logger names to each application and that is how they know where to direct our socket appenders to. I would like to use the standard Logger.getLogger(Clazz.class) paradigm but that does not work with the above constraint. Also we can't log li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A static resource file? Android uses a static resource file R. This file (at least in eclipse) is automatically updated when ever you add new id's of any sort. How can I create/implement the same feature in a normal java application? Is it as simple as just writing an xml parser and just updating the resource file a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: localStorage and 'file:' protocol not persistent, SQLite gives SECURITY_ERR Introduction I work with RapidWeaver — Mac OS X CMS application — and it uses no server environment. It has an editor and a preview mode. The preview mode is a Webkit based renderer, and I can use 'Inspect Element', like you normally could d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Universal mysql escaping and html tags stripping in PHP? Possible Duplicate: PHP: the ultimate clean/secure function Is there a way to mysql escape all variables in my code before sending it to the database as well as stripping all HTML tags? I don't want to go to each variable to do that, so I wonder if there is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select an item for dropdown menu with mechanize in python? I am REALLY confused. I'm basically trying to fill out a form on a website with mechanize for python. I got everything to work except the dropdown menu. What do I use to select it and what do I put for the value? I don't know if I'm supposed to put th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Label text evaluation Jquery Why is the label's text is evaluated as not equal to "" in the below script even when in reality there is not any text in it: $('label[class*="lb"]').each(function(index){ if($(this).text()!=""){ a_arr.push($(this).val()); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I return 4 random rows in SQL? This is my calling code from PHP currently: $getfromdb = "SELECT `myTable`.* FROM `myTable` WHERE `status`=1 and ORDER BY rand() LIMIT 4"; This is sufficient enough for now, as the number of rows in the table is pretty small (<1000). However, (a) the randomness is not enou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recognising gestures from the home screen I am developing an app for iPhone. I am looking for a way to run some code once a drag gesture is recognized on the homescreen (or on all screens if possible). Does anyone know how to get this with the iOS SDK using Xcode and Objective-C? A: Your app cannot receive gestures...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Haskell Extensible IO Exceptions? In the documentation for Control.Exception in base 4.4.0.0 there is an example of how to make exception hierarchies. The example shows how one can catch generalizations of a specific exceptions by declaring instances of the Exception class in terms of the parent exception. This is c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Fluent Interface, Need something like global methods in C# Im currently trying to build a Fluent Interface for a ServiceLocator. To ensure that each the developer can easily setup 1-to-n mappings I'd like something like this ServiceLocator.Instance.For<IFoo>(Use<Foo>(), Use<FooBar>()); Singleton is workin fine... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get blankNode ID in dotnetrdf librery in C# I create a blankNode like this code using dotNetRDF BlankNode ddd = k.CreateBlankNode(); and then assert it in a n3 file but when I open the n3 file by notpad it show this blankNode like []. How can I create a blankNode ID by myself to then delete this? delete ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XPath - selecting node based on following sibling I have a query like this: /plist/dict[1]/dict/dict/dict/key/following-sibling::dict/string[string()='Algier'] What I really want to select is the 'key' node (just before the following-sibling::dict) one. The xml is like this : <?xml version="1.0" encoding="UTF-8"?>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Save a SecKeyRef Asymmetric Key Pair to disk as a Certificate I have created two SecKeyRef items via SecKeyGeneratePair, but now I would like to turn the public key into a x509 Digital Certificate – and/or both the public and private keys into a PKCS #12 (.p12) certificate – and save it to disk as a file. This way I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I continually update when UISlider is past a certain value? I'm implementing a UISlider that allows users to select a position on a football field. The idea of the slider is for the field to scroll forward when the slider value is above a certain value (the section with the arrow). My issue is that I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Datepicker beforeShowDay - range selected I'm doing a website for an hotel, and I'm trying to do a datepicker to book the days that somebody wants to stay there. http://jsfiddle.net/newpatriks/PmPGV/ Here you have that I have done, but I've some problems: * *I don't know why, but when the users select t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simple Question About the jQuery Datepicker's Calendar Icon Sorry for the simple question. I'm using a jQuery DatePicker. I want the little calendar icon to appear next to the text input area. I'm using the Smoothness jQuery UI theme. Does jQuery UI include the calendar.gif icon (not the datepicker itself, but just...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MATLAB - Plotting multiple graphs I am new to MATLAB and am having difficulty plotting multiple graphs. Here are my vectors to graph: S = [1.2421 2.3348 0.1326 2.3470 6.7389 3.7089 11.8534 -1.8708 ...] Y = [1.1718 1.8824 0.3428 2.1057 1.6477 2.3624 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: content management - global variables This is how I manage content on my site: PageLoader.class class PageLoader { private $page_dir; private $page_headers = ''; private $page_html = ''; public function __construct($page_dir) { $this->page_dir = $page_dir; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AJAX blocking Javascript Consider the following code: <script src="js/backgroundChanger.js" type="text/javascript"></script> <script> $(document).ready(function() { $('.Themes').click(function(){ $('#dcontent').load('printThumbs.php'); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with android layout files in Eclipse I am facing strange problem while developing my android apps in Eclipse. Whenever I click on any xml file under layout folder eclipse shuts down.If I open any xml file from other location then it works fine.I tried deleting / creating new projet, Eclipse restart, PC resta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "NOT EXISTS" in swi-prolog I'm stuck on a simple problem in prolog. Let's consider the program worker(bill). worker(smitt). worker(fred). worker(dany). worker(john). car(bmw). car(mazda). car(audi). owner(fred,mazda). owner(dany,bmw). owner(john,audi). I need to add one more predicate no_car(X),that will be true if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Selenium to click on an element which is in nested * My page looks like the code given below in inspect element mode. I have series of li tags inside div tags, whose ids are dynamically created while I load the page. I need to click on Summary, intent, conversion elements. Can anyone please help me how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the right Scala and Java collection combination to use with nested JAXB? Working with JAXB, the standard way of dealing with a list of "nested" resource representations (e.g. <products><product>X</product><product>Y</product></products> is to create a wrapper object, which in Java might look like this (borrow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to generate 12 different Brush Colors at run time (12 is a number that may vary) I want to generate 12 different visible Brush Colors in WPF in my code behind and the number of colors which is initially 12 may vary as the application evolves i.e. I want to generate as many different visible Brush Colors dependin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to disable Ctrl+V in windows? How can i disable Ctrl+V shortcut-key in windows and handle it by my own application? Actually , i want to ignore it and send another key instead of Ctrl+V. A: You can use RegisterHotKey() to do this.
{ "language": "en", "url": "https://stackoverflow.com/questions/7540963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to self destruct an object in objective-c? My object finish their job. He have the control of work flow, but now it have to call a function in the object that create it and have to be released. The problem is like this: AnObject *object; - (void)function { object = [[AnObject alloc] init]; [object doY...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: BitShifting, Storing 3 u_int8_t in one integer and read out again i have a question for you guys which is driving me nuts for 2 days already. Maybe its because i am missing the basics on bit shifting but somehow i don't get it into my head. What i want is a simple program which reads in 3 char or uint8_t's, stores t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does pypy handle recursions? I have a script I wrote in python and it works fine but I was curious to see if I could speed it up. It basically is recursive script. If I run it within normal python 2.7, it takes about 30 seconds. When I run the same thing using pypy than I get the following error: RuntimeError:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get Data from another activity to App Widget Hi I have an Activity 1 which needs to send data to Appwidget (widget) which has a text view. For sending data between activites i know that we can use intent.putExtra("mydata", dataString); and recive the same with String data = bundle.getString("mydata"); But in my case...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database design - a many-to-many table which links the same entities? I have a table User with a column id. I want the user to have relationships with other users, so I create a table Relationships with columns user_id_1 and user_id_2. The questions is how to constrain the table so that 1) there are no entries where...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP array_walk does nothing? I'd like to put each file name in $xsl_dir_path (absolute path) in select element. I've tried this: $files = glob($xsl_dir_path . "/*.xsl"); array_walk($files, 'basename'); but it's not working at all, i can still see the full names of the files. I know i can apply basename when lopping...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Namespacing animations Is it possible to namespace animations? Specifically, my problem is that on a given element $myElement I am doing animations of two types. Now I would like to use .stop() on only one of these types, not both. How can I do that? EDIT Code available here: http://jsfiddle.net/y34ME/1/ My problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JavaMail: How to use different SOCKS5 for different threads? I wrote multithreading application which connects to some email accounts from database per thread. I know that JavaMail have no any options to use SOCKS5 for connection so I decided to use it via System.setProperty method. But this method sets SOCKS5 for w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getting node-id in theme_uc_product_sell_price For my ubercart drupal installation, I want to achieve conditional CSS formatting for list and sell price based on their values. List price: --$120.00-- (stroked out) Sell price: $100.00 I see that both are processed individually in theme_uc_product_sell_price and them...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML/CSS - Semi-Transparent background of div? With Scrollbar next to it Hello i am looking for solution to do that: http://www.delightfulwoman.pl/depilacja-laserowa/ When you click on the link on the left, the text changes inside right box... I just want to know how to make that CornerRounded SemiTransparent div ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloudera's Flume vs Facebook's Scribe Is there anyone who got a chance to work on both? I need to set up a framework to move data around. Basically, we have clickstream data coming in as text files. This data needs to be moved around form the app-servers to HDFS, and then to S3 after archival. I need help in choosin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }