text
stringlengths
8
267k
meta
dict
Q: xsel for windows equivalent API or command line? Is there an API or command line utility that returns the currently selected text from either active window or even globally, like the linux utility "xsel" ? * *I don't mind getting less than 100% success. *i know that each window can have its own text selection, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java serialization - Android deserialization I have tried implementing cross platform serialization between Java and Android. I have used Serializable, and having my code in Android in the same package as in desktop Java. Source: java-desktop serializing Student student=new Student(); student.setName("John"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: problems to transform sqlite data in object I'm learning to open jobs on Android SQLite. I want to display the text of a spinner filled via a cursor. The problem when I use the: nameOfSPinner.getSelectedItem().toString(); It displays the numbers of the selected index and not the data. To solve this problem, I thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Minimum credential for WMI parameters Monitoring? I'm developing a big project to monitor a remote machine's performance parameters like CPU,Memory,Diskspace through C# WMI. I want to use the minimum possible credentials to connect the remote machines. Because I don't want to bother my client to ask for the super-us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error inflating animation resource I read this example and I'm trying to use it. I put this in drawable folder as somth.xml: <animation-list android:id="selected" android:oneshot="false"> <item android:drawable="@drawable/img1" android:duration="50" /> <item android:drawable="@drawable/img2" android:duratio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - winform - How to encrypt endpoint address in app.config Possible Duplicate: WCF Encryption solution for App.config viewable to a client? In my application, I use a webservice to authenticate member, I found out that .NET store endpoint address of the webservice in app.exe.config file. So I think it's very ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Implications of adding enctype="multipart/form-data" in a master page? We have one master page for an entire asp.net 2.0 site, which contains the form tag. Are there any implications to adding enctype to the form tag? One page needs to be able to upload a file, and I believe this is required in order for that to fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embed python/dsl for scripting in an PHP web application I'm developing an web based application written in PHP5, which basically is an UI on top of a database. To give users a more flexible tool I want to embed a scripting language, so they can do more complex things like fire SQL queries, do loops and store data i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Implementing mbsnrtowcs in terms of mbsrtowcs In an almost complete effort to port libc++ to Windows, I need the function mbsnrtowcs, and thought that the easiest way would be to implement it in terms of mbsrtowcs: size_t mbsnrtowcs( wchar_t *__restrict__ dst, const char **__restrict__ src, size_t nmc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I stop getting a 'product is undefined' Javascript error in Magento Product page? I have a custom magento store and I though everything was ok but i am having JS errors only on the product pages, and only on IE8! If you view this page in IE8: http://www.guitarfood.com/featured-products/lava-mini-coil-guitar-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customizing plone login for two factor authentication I am new to plone and python. But here comes a scenario where i want to customize an existing plone installation login to include two factor auth from Duo-Security. What is the easiest way to accomplish this ? For this requirement,what are the areas i need to exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mercurial: roll back a patch? I was trying to create a patch for review. I should have done $ diff -u oldfile newfile > tiny.patch, but instead I did hg qnew 404.patch. Now my log looks like this: changeset: 2913:82fc6e8ec5aa tag: 404.patch tag: qbase tag: qtip tag: tip user: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: openLDAP N Way Multimaster Does anyone know what the maximum number of nodes can be configured in a OpenLDAP N Way Multimaster configuration? I have been looking through the internet and all I see in the number of database transactions replicated and not the actual number of nodes that can be used to communicate wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error with WCF client when using reference types I am using a WCF driven silverlight application. The web services use reference types such as StringBuilder. However, while passing a StringBuilder or a DateTime object to & from service, the state of the object gets lost. Is it not possible to update the state of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fill parent when drawing on canvas I have a custom view (android) which draws a custom progress bar. I want the progress bar to fill its parent view (width). The problem that I have is that I don't know how the custom view can get its real limits. it needs to know the width limits in order to display differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I prevent auto scroll to a certain element when I click on that? I have a page where when I click on a menu item, it will load the content using anchor tag navigation. This means I use # on the address bar to prevent loading the whole page using ajax. My problem is that whenever I click on a menu button, befo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dropdown output my MYSQL data properly using JS function I have a JS/PHP piece of code that selects from a database, does some things with the ID's of the tables and outputs the data in a dropdown. My JS currently appends myfile.php?cat=X&projectID=Y correctly and i'm grabbing the variables correctly, but when I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Select default value in a query from a table I have a query which I want to have a default value from a table (you could call it a vlookup in excel). My query looks like this: select stamdata_sd.id_sd AS id_sd, stamdata_sd.Type_sd AS Type_sd from stamdata_sd; I want the Type_sd field in the query to be a defaul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to db:migrate after db:schema:load I have a production db, that I prepare with rake db:create db:schema:load db:seed I also include migrations, when delivering my product, so that existing installations can be updated. After schema:load only the version of the latest migration is stored in schema_migrations, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting font type for live wallpaper causes screen to go black I have this code void drawText2(Canvas c) { DisplayMetrics metrics = new DisplayMetrics(); Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay(); display.getMetrics(metrics); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint 2007 to 2010 Upgrade - Visual Problem I migrated the site from sharepoint 2007 to 2010, also did visual upgrade UIversion to 4. When I view some of lists there is still 2007 visual skin, although the others are shown in 2010 skin. What could be the reason? A: The reason is some of the pages are customize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF Code First binding to listbox I would appreciate it if somebody could tell me how to bind a listbox to the entity framework (EF code first). I'm using prism and mef. There are two views, one with a button and another with a listbox. (each in their own prism region). By clicking the button I create a new Employee ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What code in a class should be belongs in the constructor, method I'm new to oop and was trying to understand where the appropriate location to put code in a class is. So far as I understand there's three main areas you can put your code: * *At the beginning of the class (Ex. Instance variables declared at the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: suggestions for json Is the correct usage? Which one you need to use. Below I share the sample codes. I need a recommendation for. { "__bc" : 1, "_payload" : null, "_plugin" : [.........], "_debug" : "on", "_content" : [ "html":{<form name=\"signin\" id=\"signin\" acti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: iOS in-app purchase item not returned in products but only in invalidProductIdentifiers in sandbox. How to debug? I am adding in-app purchasing to my app. I have followed all the steps that Apple outlines here (http://developer.apple.com/library/ios/#technotes/tn2259/_index.html see Q&A #6 especially) as well as i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: CSS 100% height problem I'm working on a new template and I'm having a 100% height issue, tried various style combinations but cant get it to work. Here is the link, the light beige area should extend below the end of the left content but it doesn't. What's messing my layout up? It's probably a clearing issue but ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I can run MessageBox.Show() from App.xaml.cs Can I run MessageBox.Show() from App.xaml.cs, so it is shown on current page. Please provide some code to this solution, or some other solution. I need to show some system message which is relevant for whole application. A: Not sure, but would this not work? Deployme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JavascriptObject to string gwt I have become a great fan of the JavaScriptOverlayTypes. so lets say, I have the followin JSON object: { "product": { "name": "Widget", "prices": { "minQty": 1, "price": 12.49 } } } So I write my class for products and one for prices. Now if somethings wents wrong ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How this document is able to detect a cookie when it didn't set at all? This is one script that sets the cookie with some html file. window.onload=init; function init() { var userName=""; if(document.cookie != "") { username=document.cookie.split("=")[1]; document.getElementById("name_field").value = userna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: dynamically href link to next sibling on ul tree Im using Javascript, but not Jquery or other frameworks. Id rather lose the weight as there are only a few functions in the program. I am trying something a bit like this guy: Get the next href in a list in another file with jQuery? I will have a load of separate HT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pdo_mysql error suddenly appears on drupal based website? My drupal based website was working fine till yesterday but suddenly from no where today an error appeared Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /.../includes/database/mysql/database.inc on line 43 I didn't even changed or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Array Sorting using array $sortPattern= array(1,2,8,4); $toSort = array(2,4,8,18,16,26); Now, we have to sort $toSort array according to $sortPattern. We should have the result $result = array(2,8,4,18,16,26); Does anyone know the function to do this, or should we have to write our own function to perform this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xCode3 and run-time errors line highlighting? I'm used to xCode 4, but I need to use xCode 3 for a project. when I get a run-time error, xcode3 doesn't highlight the code line where the issue is. Shouldn't it show me instead ? Check this screenshot: I've written this code to make the app to crash and I'm stepping f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Azure Service Bus - A general question Lets say I have a Silverlight application that currently talks to a WebRole in Windows Azure. Is the Silverlight application also able to directly talk to the service bus without a "controller" component which takes the commands coming from the client and routes them to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .Net load file or assembly error I am trying to run a .Net application's .exe file from bin/Debug folder but it gives me an error like Cannot load file or assembly "Mysql.Data version=6.2.2.0",culture=neutral publicKeyToken=c5.... or one of its dependencies.The system cannot find the file specified" I haven't wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UI Thread Block I have created a simple WPF Application and added a button to the default window. When I click on the button, a simulated long working method(simulated using a Thread.Sleep(15000) is called. I am trying to make the button execute asynchronously however despite following online examples, the button an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can the ordinary android view extend with GLSurfaceView? I am trying to use the GLSurfaceView to draw image in my android ordinary view. But I heard that the a view can't extends other view. Really, Can I do this? A: To avoid the diamond problem, the Java language only allows you to extend one class.
{ "language": "en", "url": "https://stackoverflow.com/questions/7528438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MongoDB-Native NodeJS Update Fails I have a MongoDB 2.0 install along with NodeJS 0.4.11 and I'm trying to do upserts into a database. Here's the code: var mongo = require('mongodb'); var db = new mongo.Db('db', new mongo.Server('localhost', 27017, {}), {}); var updatecmd = JSON.parse(JSON.stringify("{ id : " + js...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone Detect Volume Keys press. I need to detect when the user presses the hardware volume keys, (App Store safe approach) I have tried a number of things with no luck. Do you know how to implement such functionality? At present I am registering for notifications, however they don't seem to get called. Here's my co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Foreign key from bit to int Is it possible to create a foreign key where type of the first column is bit but type of the referenced column is int? A: No. create table X ( c int primary key ) create table Y ( c bit references X ) Returns: Msg 1778, Level 16, State 0, Line 1 Column 'X.c' is not the same data t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add a module (not package) to buildout for Plone Is there a way to add a simple module (e.g. mymodule.py) which resides in the src/ directory to buildout for Plone 4? To be more specific, I have a former module I used as an ExternalMethod in Plone 2.5, and I'm trying to use it in Plone 4 without creating a package o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the X509Certificate from a client request I have a web-service which I secured using certificates. Now, I want to identify the client by looking at the certificate thumbprint. This means that I have a list of thumbprints on my service somewhere that are linked to some user. Actually, my first question (a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: CSS styling BODY tag issue I havent done any CSS / HTML development in a long time and im having some issues with styling the body tag using CSS. What im aiming to do is have the HTML tag styled with a background colour, then styling the body tag to be 80% width and a different background colour which all works fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep something shown while hovering over a div? (jQuery) I'm having trouble with jQuery. Please have a look at this page. I've created a sliding image viewer which when hovered over shows a div with the class "paging". The problem I'm having is I want the div to be shown when hovering over it as well, as it n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access getSharedPreferences from another class? I have build 2 projects my main one and a twitter posting one. I have imported the twitter one into the main and am now trying to hook it up. Below is the import code. The problem is I know I am missing something possibly to do with the context? I have just summ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Please suggest ways to start building Business Analytics solutions using existing mysql databases I believe there are three layers to build up- 1) Presentation Layer/Data Visualization Layer 2) Constucting olap server(like mondrian) to access mysql database and produce results. 3)Using Olap Client API(olap4j) to bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ object instantiation and scope I'm coming (very recently) from C#, where I am used to instantiating objects like this: Phone myPhone = new Phone(); simply writing Phone myPhone; essentially creates a holder for a class, but it is yet to be initialised so to speak. now I'm writing a small class in C++ and I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex: downloading files directly to the disk Is there a way to download some files directly to the user disk, without browsing? (assuming they give permission of course). FileReference does this, but does not allow to directly save files to the hard disk (if not through browsing). Is there some way around? A: To cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happens to local variables in this recursive call? In a complicated code, I found a weird behavior: apparently Lua doesn't treat local variables the same as C and Java (I'm not surprised but I don't know HOW it treats them anyway!) I read PIL and Lua-users.org but none doesn't mention what happens to local vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: magento, help to understand default product Template code I am a novice in magento but am trying to learn it in the least possible time. I Was going through: http://alanstorm.com/layouts_blocks_and_templates which says: File: app/design/frontend/base/default/template/catalog/product/list.phtml contains : <?php $_pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why would this text is stored as empty in a text mysql field %3Cimg+src%3D%27http%3A%2F%2Fmnmstatic.net%2Fcache%2F15%2F15%2Fthumb-1381820.jpg%27+width%3D%2760%27+height%3D%2760%27+alt%3D%27%27+class%3D%27thumbnail%27+style%3D%27float%3Aright%3Bmargin-left%3A+3px%27+align%3D%27right%27+hspace%3D%273%27%2F%3E%3Cp%3EAu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery Getting original 'this' object I'm creating a follow button, and I'm switching the class names to give the button a different look. Unfortunately, my classes don't seem to be being swapped because the 'this' object appears to be changing in the code. How do I get the original object that I selected so that I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simplexml cache file I am loading an XML file which is pretty heavy and contains a lot of data, and I am only using a small amount of it. This is causing my site to take ages to load. http://www.footballadvisor.net/ Can anyone advice me on a resolution to this, is there a way in simplexml that I can cache the file f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: Implement azimuth orientation sliding view I am trying to create a ruler view based on azimuth compass orientation value. The idea is to place a small view at the bottom of a camera view which slides to the left or to the right according to the azimuth value obtained from the "orientation" sensor. Something...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flash overlay in IE I have a flash player on my website and I would like to add an overlay where I can insert HTML. The idea is that the div containing the flash will animate its opacity to 0.5 before display the HTML. I got this working great in Google Chrome and Firefox, but as always, IE is giving me a headache. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QT Creator - cross platform compiling Compiling for Windows, Mac and Linux! Is the only way to do this.... is to install QT Creator on each OS and compile its own version? (Currently running QT Creator under Mac OSX) A: Qt Creator is just the automation tool, it will create Makefile and adjacent files for you. If y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JQuery slideToggle timeout I have simple html page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function() { $("button").click(fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Possible: Insert my own HTML(whole website) into an iframe I have all a websites HTML stored in a javascript string & I want to place it inside an iframe. How can I place that HTML string into the iframe & make it show the website? I have tried this.src = HTML_STR; this.innerHTML = HTML_STR; but they dont show the H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mysql_query producing ERR_EMPTY_RESPONSE We recently had PHP version upgraded to 5.3.3 on our server (running Wordpress) and since then the mysql_query function started hanging the server, producing the error Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data in Google Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tableView reloadData not working: cellForRowAtIndexPath not called I have this problem cellForRowAtIndexPath is not called by reloadingData. I have spent a lot of time with this. I xib file dataSource and delegate are connected to File's Owner. Any idea is welcome. This is my code : *cellForRowAtIndexPath* - (UITabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ant build.xml file doesn't exist After the installation of my ant in my windows 7 . In cmd i typed ant -v it's given the ant version but it says the following also. Buildfile: build.xml does not exist! Build failed What's the problem in the system. How i can rectify this issue? A: You should use ant -version com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Java, ports, sockets, piping a connection through a programme I need to pipe a connection between two programs on different devices in my LAN. I.e., I have device A that should connect to device B:portX in my LAN. The problem is that i cannot connect them to each other directly. What i have to do is to make device A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Pear - adding variables to $body message This is my HTML form, which is inside a little box on my site. <form name="contactform" action="contact/form-mailer.php" method="post"> <p>*Name: <input name="Name" id="Name" size="25"></p> <p>*Pickup from: <input name="pfrom" id="pform" size="25"></p> <p>*Destinati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: persistence.xml cache property warning I'm using eclipse indigo for EE developement to develop an SE project, just to take benefit from the JPA project support. I created a JPA project, here's the properties of my persistence.xml file: <properties> <property name="eclipselink.persistence-context.referenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error validating CDATA elements with DTD - XML I'm trying to validate some xml with a DTD I'm writing but I always get a validation error on the elements with CDATA data types. Like this <!ELEMENT title (#CDATA)> I've tried validating using textmate xml validation (XMLlint) and online validators (w3Schools) and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript - how to avoid long/ugly if/else statements? I'm learning Javascript (mainly using JQuery) and was wondering if somebody could help me. I've written an if/else statement that checks to see if a particular string appears in the URL, then posts a forms content to a particular php script depending on the str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to change the class of a Ruby object? Is it possible to change the class of a Ruby object once it has been instantiated, something like: class A end class B end a = A.new a.class = B or similar. (the above code does not run as class is a read only variable) I know this is not advisable, a bit stran...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: String null check I have tried this for 2 hours , but I've given up. I am checking the value of a String this way: if(value.equals("")||value.length()<0||value==null) { value = "Anynomous" } But still the string is printing the value null. Please see this program code here <HTML> <BODY> <%! String value ; %> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: InternalInsonsistencyException in ios sdk4.3 Since I started using the IOS SDK4.3; not only have I experienced frequent crashes, I have also come across this very bad crash when I want to debug some apps: Error Log: "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aggregate (count) occurences of values over arbitrary timeframe I have a CSV file with timestamps and certain event-types which happened at this time. What I want is count the number of occurences of certain event-types in 6-minutes intervals. The input-data looks like: date,type "Sep 22, 2011 12:54:53.081240000","2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change number of decimal places and add decimal button iPhone Calculator? So, look at the following code below- my first question is, how can I make it so there is only 0, 1, or 2 decimal places or make it automatically have however many decimal places are there? the second question is, how would I add a deci...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: select specific cells and place data in other cells excel I'm looking for a function from which i can select specific cells and place them in the other columns. For example, I have data in the following form: - Food Processor - 756 - 890 - Washing Machine - 290 - 900 - Mixer - 123 - 893 Now, i want the data in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Render color in image as transparent I'm displaying a .bmp file in a Form. Is there any way to render the color black as transparent? A: You could try myBitmap.MakeTransparent(Color.Black)
{ "language": "en", "url": "https://stackoverflow.com/questions/7528595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make ClickOnce target .NET 2.0 and not 3, 3.5 or 4 I've got a simple ClickOnce application - it only targets .NET 2.0, but in the prerequisites I've got to select .NET 3.5 as a minimum prerequisite, whereas I really want to have .NET 2.0 as a prerequisite. I'm in Visual Studio 2010... What do I do? A: Right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.currentTimeMillis() is a good choice for this? I'm still not sure how System.currentTimeMillis() work, but I want to use it for a game server to handle Banned accounts. For example, in data base I will have a "bannTime" which will equal (System.currentTimeMillis() + How_much_time_to_ban_in_ms ) in the user's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Annimations created by CSS transitions on iOS only Very perplexing problem has arisen. The following webpage has a search input at the top that when focus a changes class attributes with a series of transition effects. Some JQuery the binds the focus event and displays a tooltip. On iOS the transition happe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I take listener methods out of their scope in Java? public class SomeClass { public void SomeMethod() { GridView gv = new GridView(this); gv.setOnClickListener(new GridView.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make two side by side Qt Windows sticky and act like a single window? I am trying to implement a scenario where two Qt windows will be placed side by side and they will be kind of sticky to each other. By dragging one of them, the other also gets dragged. Even when doing an alt-tab they should behave like a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problem in remove sqlite connection in QT I've got following error when i want to remove my QSqlDatabase that connected to the Sqltie: QSqlDatabasePrivate::removeDatabase: connection 'cnnDFP' is still in use, all queries will cease to work. *cnnDFP is my connection name How can i fix this? please help me A: You're ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reduce the time in executing Selenium test cases? I'm writing the Selenium test cases for each screen to test the different scenarios. In our project for each build in Jenkins, its Selenium test cases (QA) also runs automatically. My problem is even though it's automated, it's taking a lot of time to run. I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: symfony2 API authentication and routing I followed the instructions for creating a custom authentication provider: http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html app/config/security: firewalls: wsse_protection: pattern: ^/api/.* wsse: true main: p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter Template Library I am using CodeIgniter with Template Library and have set up my template view file. Part of my template that doesn't change from page to page displays data from a database. What is the best way to include this data in my template? A: If the content doesn't change very often, something l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL ERROR When i join 2 tables Sorry let me revise. I have a three tables: events_year • EventID • YearID • id Date • YearID • Year Event • EventID • EventName • EventType i want to dispay a record from the three tables like so: EventName - Year: Marathon - 2008 i linked it to a table called "members" which contai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drupal - Attach files automatically by name to nodes i need better file attachement function. Best would be that if you upload files to FTP and have a similar name as the name of the node (containing the same word), so they appear under this node (to not have to add each file separately if you need to have more node...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a JSON response from Google Application Engine Purely as an academic exercise I wanted to convert one of my existing GAE applets to return the response back to Android in JSON and parse it accordingly. The original XML response containing a series of booleans was returned thus: StringBuilder response = new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In bash, how can I have a set of arguments in any random order? Like a key-value pair? Example: ./myscript --ip 192.168.1.1 --port 1985 or another possible ./myscript --port 1985 --ip 192.168.1.1 I want to allow my script to take a set of arguments, in any order ./myscript a b c d ./myscript d c b a ./myscript b ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can't get Flixel preloader working via flash IDE I'm currently trying to work with flixel library via Flash IDE. Everything is okay except the preloader - it just doesn't work. I suppose the flash IDE does not support the directive [Frame(factoryClass="Preloader")], which flixel uses when being compiled in flex buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GlassFish redirect www to non-www domain Is it possible to redirect users from www.domain.com to domain.com? I'm running GlassFish 3.1.1 with JSF/EJB app in root context (/). It would be also nice to keep context path/params: www.domain.com/subpage/title/ -> domain.com/subpage/title/ A: Redirect from docroot to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: M2M in Open Source Is there any open source(it may be c,c++ and java) for machine to machine communication ? I would like to make communication between my hospital ECG device and my pc. Serial port with Linux platform Thanks -Anlon A: M2M is a generic term. there is no standard protocol or medium to implement a mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pin drop animation The default pin drop animation doesn't work in my app, here is some code I wrote: - (void)viewDidLoad { /* some code... */ [theMapView addAnnotation:addAnnotation]; [addAnnotation release]; } - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can I rewrite s domain name to the original IDN not the punycode? I have bought an IDN domain name with non-latin characters. It is good but when I access the domain name, the address bar shows the punycode for the domain not the actual domain which will be hard for any user to remember. Is there is anyway I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get a leaf nodes by recursive query I have a categories structure as follows I want to select leaf node. i mean the the categories who don't have sub categories. In my database monitor, cpu, novels and comics will be answer. Any help will be appreciated. Edit : I tried this. public function get_valid_categories($p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem comparing arrays of Strings with nested loops This is the problem I am trying to solve: I have two arrays of Strings ("matches" and "visibleObjects"). I would like to search through all the words in the array "matches" to see if there is at least one word from the array "visibleObjects". If this condition is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to delete an already existing layout on a widget? You must first delete the existing layout manager (returned by layout()) before you can call setLayout() with the new layout. from http://doc.qt.io/qt-5.9/qwidget.html#setLayout Which function is used for deleting the previous layout? A: This code deletes th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: pygame.MOUSEBUTTONDOWN ERROR? I am trying to capture the MOUSEBUTTONDWON and MOUSEBUTTONUP events seperately to help me with my click and drag code. But when press the mouse button down the event is also captured by the pygame.MOUSEBUTTONUP event! The code is located below: import pygame LEFT = 1 running = 1 scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clean way to save observers on CoreData objects? I am wondering if it would be possible to save and restore the observer of keyPaths of CoreData Entities. Example: I have 300 Employees in my managedObjectContext. When I insert them the first time i call addObserver: .. for all of them, so that some Object gets notif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django partial update I have two threads, one which runs something like update t set ColA=foo and the other runs update t set ColB=foo. If they were doing raw SQL statements there would be no contention, but since Django gets and saves the entire row, a race condition can occur. Is there any way to tell Django that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: LINQ Generic Join and Entity Framework My requirement is to implement a Generic Join method which would IQueryable Join . I have used the Join method as shown below : public static IQueryable Join(this IQueryable outer, IEnumerable inner, string outerSelector, string innerSelector, string resultsSelector, params obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is UNSET() compatible with autoload Using Amazon MWS code config.ini.php to set up classes for MarketplaceWebServices. This used autoload defintions to create variables using new. As we are using different authorization credentials for different Amazon sites I have needed to change the details beteen sites. The use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: json_encode does not print the array name I'm not experienced with json_encode and am trying to return an arrray of array which should be called aaData - for DataTables with server-side processing. The output should be like: { "sEcho": 3, "iTotalRecords": 57, "iTotalDisplayRecords": 57, "aaData": [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7528702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }