text
stringlengths
8
267k
meta
dict
Q: Eclipse - Maven Installation Error I am trying to install Maven Plugin for Eclipse , but i am geting this error . I am using Eclipse Java EE IDE for Web Developers. Version: Indigo Release Build id: 20110615-0604 Version of Eclipse . Cannot complete the install because of a conflicting dependency. Soft...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Simulate mysql queries Is there a way to test the mysql queries, without modifying my database? For example, can I run a delete from my_table where id=101 without actual delete anything? What about insert and update? TY A: If you just want to see how many rows would be deleted why not substitute 'delete' with 'sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: User first_name and last_name limitations on Facebook and Twitter I need to know the maximum length of users first and last name that he can have on Facebook and Twitter. Our application allows to register using this social networks and we have limitations for the number of characters in user's first and last names....
{ "language": "en", "url": "https://stackoverflow.com/questions/7581590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best practices to query SQLite database in ListFragment with CursorLoader? I'm using Android Compatibility Library in my project. I've set up ListFragment as described in the DevGuide (http://developer.android.com/reference/android/app/Fragment.html), and using a simple CursorLoader Christian made be used without co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How to change Value, Backcolor etc... in an Access Record programmatically? When I type the name of a control in a form (code side), I can modify the control backcolor, value etc... whereas I don't have any of those options in a report. How can I modify them ?
{ "language": "en", "url": "https://stackoverflow.com/questions/7581594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which approach is better when passing settings to an object? I want to set initial values of fields in an object, using $config. Which approach is better in terms of cleaner and more maintainable code? Also, I would like to add that object will be initialized in a factory and not directly by client. 1. I pass $confi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails nested join with conditions I have the following join tables and (relevant models and tables) * *roles_users : user_id, role_id *permissions_roles : role_id, permission_id, object_id, object_type For a given user, permission and object, I would like to like to find if user has an associated permission fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Command not found: grep" in karaf console I have strange problem with Servicemix version Fuse ESB 4.4.1. Sometimes the part of the commands will not load and be not available. Usually this happens with quite often used by me command, grep. This looks as following: karaf@root> list | grep spring Command not found: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 Upload images and save them to the database and render them back when needed? I'm building a Rails Application and i want to store some images to the database and render them back when i need them in the html.erb file. Can someone point me at the right direction???? Also i have a side bar on my layout file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP redirect page with status code problem I am trying to redirect a page using HTTP 410 status using php header function as header("HTTP/1.1 410 Gone"); header('Location: http://domain.com/down.php'); exit; The problem is that even if I set a 410 status code...the status code will automatically change to 302 I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to use data from ajax success in another function? i want to call jquery ajax function inside the function like this: function mine(time){ $.get("test.php", function(data){ var mytime=data; }); alert(mytime); } it just print undefined. my test.php file is this: <?php echo time(); ?> i want tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Background images dissapearing in iOS Safari I'm working on a mobile version of a site and I'm emulating the iOS interface. There's a few places on the site where there's supporting background image sprites (chevron turns into loading gif / greyscale icon turns into colored icon). It works flawlessly in desktop Saf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: objectForKey returns nil on a dictionary I am creating a recipe manager app for iPad. I am using the split view template which loads data for the recipes from a plist which is structured in this way. The table view on the left works perfectly. It loads the data from the plist. The problem is the detail view. As you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery validate submitHandler triggers validation When using the jQuery submitHandler method, I'm posting the form data via ajax to the server. On success, another method is called that resizes a popup and notifies the user its all complete. My problem is however, whilst posting the data, the form is getting validat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: The facebook dialog api not working i develop an ios app and use the facebook dialog api, it worked fine over a month. How ever it suddenly not work now The reference facebook document from http://developers.facebook.com/docs/reference/dialogs/ and i Tried the sampele link. the same error message appeared http://m....
{ "language": "en", "url": "https://stackoverflow.com/questions/7581627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GWT SelectionModel is returning old selection I have a cell table with an async data provider. If I update the data via the data provider the table renders the new data correctly but the selection model still holds onto and returns old objects. Any ideas how to refresh the selection model? A: I think you should mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jquery not method problem with button tag i don't why but the not() method of jquery return the same value for two differents tests that are exclusive. Look: <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script language="javascript"> $(function() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Layout is better to use? In My Application i have to use the Calculator. The Different Button in Calculator should be like below image. So, What should be better to implement such type of the Layout ? I think gridView is good, but while thinking about the "0" Button and the Button below "C" button, I dont kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Full-Text Catalog unable to search Primary Key I have create this little sample Table Person. The Id is a primary key and is identity = True Now when I try to create a FullText Catalog, I'm unable to search for the Id. If I follow this wizard, I'll end up with a Catalog, where its only possible to search for a per...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java excel to pdf conversion I need to convert xlsx documents to pdf format. I know that iText can save pdf documents and Docx4j can read and write xslx. In fact our application use both for building reports. But we have very difficult templates so I can't just read xslx(docx4j) and write it to pdf(iText). The forma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a DIV float between header and footer I have the below fairly simple java-script function on a webpage with a header, footer and a banner in between the header and footer right side of the body, to make the banner seem to be floating between the header and footer when users scroll the webpage. $(window).s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sqljdbc : JDBC driver sqljdbc.jar Vs sqljdbc4.jar I have a query regarding the jars sqljdbc.jar and sqljdbc4.jar which are used to connect to MS SQL Server 2005 for the systems where the JDK version 1.5 & 1.6 respectively. Now I would like to know, how these jars interpret the column whose datatype is 'XML' in one o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Tracking marker clicks on Google Maps API - Analytics I'm trying to track the amount of people clicking on map markers with google Analytics, is this possible and if so, what are my options? Thanks in advance! A: The updated GA implementation is the following: ga('send', 'event', [eventCategory], [eventAction], [ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detect if div is visible in browser window I have multiple collapsible divs like so +--------------+ | Div 1 | +--------------+ | Div 2 | +--------------+ | Div 3 | +--------------+ Now when I click on one of the divs it expands Question: How do I detect that expanded div was expanded over brow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: append text to a file with powershell I have the following powershell command that recursively loops through all .sql files in a folder ($ScriptFolder) and appends it to another sql file ($TargetFile). Get-ChildItem -path "$ScriptFolder" -recurse |?{ ! $_.PSIsContainer } |?{($_.name).contains(".sql")} | %{ Out-File ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: About catching exception good practices I'm writing a little program in C++11 and really use exceptions for one of the first time. I've got a question about how to catch the exceptions efficiently, and after some googling I still don't have the answer. Here is the question : What is the more efficient (or recommende...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Multiple video sources combined into one I am looking for an efficient way to do the following: Using several source videos (of approximately the same length), I need to generate an output video that is composed of all of the original sources each running in its own area (like a bunch of PIPs in several different si...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Salesforce, implementing questionnaires We have a customer who want to implement reasonably complex questionnaires in salesforce. Currently they use excel spread sheets. The questionnaires will have text, multiple choice and yes/ no answers and they will want the ability for an admin user to add and remove questions...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mysql query plans I have a list of select statements and I wish to find out their query plans. Is there an easier way instead of having to prefix each one with explain? In Sybase you can do this by setting a flag - just wonder if there is an equivalent? A: You can abuse the slow query log for this: Set long_query_t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Multiple iOS developer licenses for a company My company has an iOS developer license, and like many others we have reached the 100 UDID limitation. Since I have about 10 more months until the next time I can delete unused UDIDs I tried purchasing another IOS developer license for my company but got rejected from Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pass c_str return value of temporary object to printf Is the following piece of code valid? class A { string m_name; public: string getName() { return m_name; } } ..... printf("%s", object.getName().c_str()) ...... where object.getName() returns a temporary string object. A: The temporary string will persist f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Background-Install an apk file without submit interface. What the way to do ? android Background-Install an apk file without submit interface. What the way to do it? A: Plain simple - you can't. The closest you can get is Android Market auto-updating your apps. Non-Market apps will allways require the user to accep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Observable DataContracts and Two-Way bindings In my WPF app, I use a WCF service to fetch data. So naturally, at some point i had "complex" objects that require a DataContract to be passed as a whole to the WPF app. Now of course, I need to respond to changes, and I implement INotifyPropertyChanged on my ViewModels,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get duplicate attributes in xml using schematron I am writing few checks for XML file using schematron. I want to write down a check so that there must be no duplicate attribute 'id' in any tag across the xml. Please note, attribute 'id' can occur in any element across the xml. I found something related to this but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to supress or correct this? make: warning: Clock skew detected. Your build may be incomplete Possible Duplicate: Compling C++ on remote Linux machine - “clock skew detected” warning I tried everything about this: I am using a cross compiler to build on x86 and run (execute) on a different platform. I am getti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PrimeFaces 3.0.M3 I have been using PrimeFaces-2.0 with Tomcat 6.0 and now, I want to migrate to PrimeFaces 3.0 M3. I've added the jar into the classpath and into the /WEB-INF/lib but when I launch the application I have this error message 'java.lang.ClassNotFoundException: org.primefaces.resource.ResourceServlet' f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error:byte external allocation too large for this process Project was working fine suddenly it started giving this error. i even increased memory but no help. Can any one suggest what is the problem. What can be done to free the allocations. 09-28 15:26:55.998: ERROR/dalvikvm-heap(536): 1398784-byte external...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File get contents PHP I have a small script where I am gathering the HTML of a URL. This works fine and it brings back the HTML. The problem is, this url is rendering some DIVs after the page has loaded so I can see those DIVs when I open it in browser but not when I use curl or file get contents. What would be the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heroku - Rails 3 to 3.1 migration issues with PostgreSQL: relation "users" does not exist I have been following documents on how to move from Rails 3 to 3.1 and make it work on Heroku. I used the manual upgrade technique given here: http://webtempest.com/upgrade-rails-3-to-3-1/ I have made some progress slowly but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any HTML5 localstorage wrapper? Any library to support * *CURD *Get a list, skip, limit *Filter by field Or should we use this as NoSql database? A: I'd use it as a NoSQL database personally, but I'm sure you could modify this to work with it on smallish scale applications: http://code.google.com/p/trimpath...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kohana validation without message files Is there a way to use Kohana's (3+) validation class without using message files? [EDIT] Here is an example: $post = Validate::factory($_POST); $post ->rule('username', 'not_empty') ->rule('username', 'regex', array('/^[a-z_.]++$/iD')) ->rule('password', 'not_empt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python subprocess dd and stdout I am using subprocess to create a random file from /dev/random using unix dd. Now, if i want the data output of dd to be written to a file instead of stdout. so here's the code am using, import subprocess out_fd = open('test_file','w') def os_system_dd(): global out_fd out_fd.wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ Join query problem I have this query that I tried to join 2 tables together, one which holds the product name, and product numbers, and take a product number, and go to the other where to find a Art_no which is like the product number. ProductNamesList = (From ProductSeries In context.Products ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does NHibernate say my filter isn't configured? I'm trying to use a global filter in NHibernate, and as far as I can tell I'm doing exactly what all the tutorials do, but I'm getting an exception. My .hbm.xml file contains the following: ... <class name="NHibernateSandbox.Foo, NHibernateSandbox" table="Foo"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: zend 1.11 doctrine2.1.1 - EntityNotFoundException entity was not found I'm having problems loading the 5th record from my collection ($arrRoleResources) of records, after I run this, which works fine:- $em = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('doctrine'); $arrRoleResour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a parameterized rdlc report with reportviewer in an MVC project? How can I create a parameterized RDLC report with reportviewer control used? and how to do it with entity DataSource? I need to display the report through ReportViewer control in my MVC3 application. A: You will need to use a WebForms pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the name of "ReturnUrl" query string key in ASP.NET's forms authentication? When you use ASP.NET's Form Authentication, a query string key would be passed to login page, which is named "ReturnUrl". For example, if you're not logged in already and you want to see a secure page like http://www.example.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to wait on a task from a thread other than the parent thread? I need to wait on a task that I created in the production code from the test code. Is it possible to do that? I am using Nunit framework for testing. A: You should be able to Task.Wait from any thread.
{ "language": "en", "url": "https://stackoverflow.com/questions/7581731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF Datagrid: Lazy Loading / Inifinite scroll I fill the Datagrid with 250 rows. When the user scrolls down using the scrollbar (below 75% for example), I want to fetch the next 250 rows from the database, and so on. The idea is that the grid could have millions of results and we don't want to load them all, until t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Save belongs_to ID in a form, without using a hidden field? I am trying to work out the best way to save a belongs_to record ID, whilst creating a new child record. I am currently using a hidden field to retain the parent's ID. Can you think of a better way to accomplish this save of the parent's ID (without using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Floating point error in representation? when i make this multiplication 0.94 * 8700 the output is 8177.999999999999 but it should have been 8178 i'm using java , but i don't think this error is related to a particular Programming language now my question is ... why this happened ?? and what other numbers (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL: Problems with hosts I have a MySQL server running on my Windows machine, and I wanted to add users capable of connecting from any host to it. In order to do so I used the statement CREATE USER 'user_name'@'%' IDENTIFIED BY 'user_pw' but when I try to connect locally with this new user, it fails. Right now I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i get id/ generate id of dynamically generated elements in html using jquery? Hi i have a student profile form where student can fill their details. Student can add school, add high school and add college dynamically by clicking add school, add high school and add college anchor tag. Code for this form is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading Font Colour Information From a PDF I am working on a piece of software that analyses PDF files and generates HTML based on them. There are a number of things out there that already do this so I know it is possible, I have to write my own for business reasons. I have managed to get all the text information, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: AjaxControlToolkit AnimationExtender - show animation on FormView Insert/Update In my application, I have a FormView which allows Insert's and Update's. I want to show a message which dissappears after about 2-3 seconds whenever they insert or update. I figured the AnimationExtender from the AjaxControlToolkit would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Load Testing of a web page or mySQL database I have a page, and at a time 1000 of entries to this form has to be made. For Ex: a scenario like the following- number of users accessing or entering data into a single web page from different locations. so this scenario has to be generated to test the load. Manually ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apply mercurial bundle file on different changeset TLDR: I have an HG bundle with parent X, but revision X does not exist in my repo. However, I am sure that the files of revision Y are identical to revision X. How do I apply the bundle? Background: I use hgsubversion to interact with an SVN repo. There were some c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Saving audio files in document's folder of iPhone and later delete it when uploaded to the server? I have a situation where I will be recording audio files and save it into the documents folder of the app until the user uploads it to the server. The audio recorder will record the sound and it will save the file in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiling mDNSResponder for Linux? I've been trying to compile the open source Bonjour framework developed by Apple for Linux. The problem I have is that when I run make with the option os=linux I get the following compile error: struct sockaddr has no member named 'sa_len' I've checked the struct sockddr and it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I have the same mapping value with different param in a different Spring controller? Is there any way to accomplish something like this: I have a form used for navigation : <form action="mapping.do"> <input type="submit" value="menuOption01" /> <input type="submit" value="menuOption02" /> </form> The P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do i split this array into two? I have this array. Array ( [name] => Array ( [isRequired] => 1 [isBetween] => 1 [isAlphaLower] => [isLength] => ) [email] => Array ( [isEmail] => 1 ) [pPhone] => Array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cuda segmentation fault I am programming with cuda in C. I got a segmentation fault with the code lines following: int width = 0; int height = 0; // load input image unsigned char * image_input = loadFile(&width, &height, "test.bmp"); // allocate memory for output unsigned char * image_output = (unsigned char *) m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What feature is missing in the current Platform as a Service? I have a project which is to make a "Platform as a Service" environment like Heroku, GAE or dotCloud to name a few. One of the recurring questions I ask is "What feature is missing in the current platforms ?" Currently most platforms allow developers to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing FB Graph API using Ruby 1.8 and Rails I'm adding Facebook functionality on to a site running Ruby 1.8.6 and rails 1.2.3. Are there any gems that will let me use facebook's graph api with these versions? A: Check out Koala - https://github.com/arsduo/koala/wiki Really a solid gem. Wait, Rails 1.2.3? Did I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firefox, PHP Headers and application/octet-stream We have a page that outputs a file using PHP headers, so when you visit the page the download prompts up. Randomly, the page will return a file application/octet-stream, other times it will return the correct thing. It works prefectly in Chrome, IE, etc. This only h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use asm function with a c - string variable instead of a string literal as an argument? I did something like this : char command [] = "Some assmebly code"; asm volatile(command); It didnt work. Specifically, I get the following error : Expected string literal before command. So, can I only use string lite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I hide my password in my C# Connection string? I have the following connection string: Data Source=Paul-HP\MYDB;Initial Catalog=MyMSDBSQL;Persist Security Info=True;User ID=sa;Password=password (.net webservice) This can obviously be viewed simply by opening up the app.config file and looking at the configu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: A question about Handlers in Android If I've got it right a handler works like a queue. So my simple question is if I first postDelayed and after that do I regular post. Will the second post run after the first delayed post? handler.postDelayed(someMethod(), 10000); handler.post(someOtherMethod()); Will the someOth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to watermark some vector data in an invisible way? I have a some vector data that has been manually created, it is just a list of x,y values. The coordinate of the points is not perfectly accurate - it can be off by a few pixels and it won't make any perceivable difference. So now I am looking for some way to wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to efficiently prune a list based on "is-subset" condition? Let's suppose I am given Dictionary<int, List<int>> and I want to prune it using the following condition * *an item should be removed from the dictionary if there exists an itemLarger != item in the dictionary such that item.Value.Union(new[] { item....
{ "language": "en", "url": "https://stackoverflow.com/questions/7581808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to avoid users adding a user stored procedure name like sp_% Someone told me that DMF management policy and condition can do this. Does anybody know how to implement this. A: Yes, you can do this through Policy Based Management. You create a Condition for a procedure Facet with the parameter @Name to be NOT LI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get a reference to the polygon clicked? (google maps api v3) I've set up some polygons, drew them on the map just fine. I also managed to fire console.log when they were clicked. However, how would I go on about figuring out which polygon was actually clicked? As you can see in my sample code here I store e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: PHP regular expression repetition problem I have the following string: {slider id="1"} {slide title="title1"} {content} content1{/content} {caption}caption1 {/caption} {/slide} {slide title="title2"} {content} content2{/content} {caption} caption2 {/caption} {/slide} {/slider} I would like to parse it by regular ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: adding new item in indexed property of struts here is what i want to do: I have an actionForm with an indexed property(a list of districts), I have managed to show and bind all items to form the list districts. I want to have a jsp page that allow user to add and delete item in that list. The problem is that struts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento admin form search/reset filter redirects to dashboard In a large number of our grid forms in our current Magento backend clicking the "Search" or "Reset Filter" buttons will redirect to the admin user start page. This happens in related products, sales orders and any of those style of forms except for the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: bulk rename of files to lowercase in git I have an entire git repo where I'd like to rename all the files and direcories to lowercase. Running on Win7, I've added igorecase = false to the gitconfig and renamed a few files through eclipse. The resulting commit now has the two files, one all lowercase and one with upp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: use gsub in R to cut the character out between two slashes I have a file name captured by R like the following: "0097_abcdef/0097_0/0097_0_04_bed.dbf" I need to pick up the term between the two slashes / (i.e. 0097_0), but I have tried gsub(".*/","",dbf.files[1]), but it gives me "0097_0_04_bed.dbf", which is not q...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Objective C: Catch event when an audio is finish to play i'm new in Objective C, i'm developing an app that play sound on touch event of an uibutton. When i touch the button, it change is image and audio starts to playing. When audio is finish to play, i want to put the original image of uibutton. How can i do that?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I force draw after setContentView call? in my activity I run code that takes a while to execute, but does not change the UI. It seems that Android waits for all the code in onCreate to be executed to draw the UI. Is there any way to force the drawing before executing the long code or I must execute my long lasti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL request with composite primary key I have to get information from two databases. The one is an ORACLE and the other is a DB2. In my program (C#) I get in the first step the base informations of my objects from the ORACLE database. In the second step I want to add the information which are saved in the DB2. The t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert to an array I have a variable $code which contains the following data. I want the contents of $feeds_importer to an array. How can I do this? $feeds_importer = new stdClass; $feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ $feeds_importer->a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swing BoxLayout problem with JComboBox without using setXXXSize here's an SSCCE: import java.awt.Color; import java.awt.Dimension; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JPanel; public class BoxLa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MySQL time overlapping I have a database to manage my schedule the database looks like: CREATE TABLE activities( name VARCHAR(255), startTime INT(11), endTime INT(11) ); Now I'd like to detect overlaps in activities. so lets say i have the following variables: $start=time(); $end=time()+3600; now i want to query t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incorrect Stored Procedure Syntax I am using the below stored procedure to upload files into a db where each file has a correspondence table but there are times when the table not exist in that case i want to add the file name into a table called NewTables.I can not get the stored proc syntax working can someone hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Object Debugger says website is inacessible - but it isn't On this page: http://megascope.dk/Level7Marathon facebook comments were added by a friend. Commenting works great, everything looks fine. He asked me why he gets no moderation-options on the page, even though he is added as a moderator in fb:admins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Terrible Apache Bench results on Custom CMS Please note: This is not a complain about a shoddy CMS. Just toying with Apache Bench and got terrible results with our custom CMS, more exactly i got: Requests per second: 0.37 [#/sec] (mean) When i run another test with a plain php file i got: Requests per second: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get click event of table row/ table item? I have a simple table layout in the .xml file. I am adding components to it at run-time. Following is my code: public class Home extends Activity{ TextView tv1; int i;TableRow tbrow; String [] names = {"First Name","Last Name", "Title","Company","Phone"}; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use of "$or" condition is not working I am developing a search portal, so I need to find the searched text on more than one field. I am trying to use the advanced query of MongoDB in PHP. My code is: $mongo = new MongoDBCONN(); $jobCollection = $mongo->select('jobs', $mongo); $advanceQuery=array('orgId' => '21') $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CRUD using Hibernate but without any entities Is is possible to do this? I know Hibernate is an ORM tool which maps objects to tables in the database. So we need to have the entities to do CRUD on the corresponding tables. But in our application entities will be dynamic i.e. Admin User can create person , location f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery slide an element up and down on click I am trying to slide an element down when another is click and if that link is then clicked again, slide the element back up, is there a cleaner way of doing it than this? $("#dropdown, #dropdown span, #dropdown dt a").click(function(event) { $("#dropdown dd")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: value from SELECT command is object I am doing a project in google app engine. Python is used in the back end. I have a datastore table "Data" with following attributes, class Data(db.Model): url = db.StringProperty code = db.StringProperty turl = db.StringProperty I used following lines of code to get all va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add Views to specific point on a WebView I have an image of a map that I have placed inside a WebView to enable zoom and scrolling. This works fine. I know the latitude/longitude of the top-left and bottom-right corners so I can calculate positions on the map. The problem is that I want to place a series of clickab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mobile Optomisation - make header text full width of page? Im mobile optimising my site with media queries and making it into a 1 column layout. I want the header text at the top to be the full width available while staying on one line. I guess I could make multiple media queries for different screen widths, each m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ToolStripButton disappear from PropertyGrid when user log-in to Windows I have a problem and scenario is the following: I've created user control with one component PropertyGrid. To this PropertyGrid I added button (Heximal Mode) to the PropertyGrid's ToolStrip. Everything is fine and works great! But when this con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS SQL rollup percentage column I am using rollup to sum a table containing fields company, sales, cost and margin. This gives me the summarized columns, but I need to show a summarized percentage of the margin as a percentage of sales for each company summary. This is my current statement: SELECT coalesce(CAST(Comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getting href onclick I am developing an extension for Mozilla Firefox. A main function is to get the URL that the user is visiting and process it later. I tried the following Javascript code: window.onload = function(){ alert(document.referrer); } That didnt work so I tried to inject an onclick event to every lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL - search a date-time period that doesn't exists in the table records Need an expert opinion here: I am trying to implement a scenario in one of our project which displays the graph based on user input and one of the input is date-time range. Let me describe with an example. Consider an example where there are re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting the timeframe of accelerometer detected motion How does one detect the amount of time the device has detected motion on the accelerometer? If I wanted to detect continuous motion detection on the device such as 10 seconds of motion. How is this done? When I use the accelerometer delegate method, it keeps b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java get resource InvalidJarIndexException I have a class names test.java and another file "log4j.properties" in the same folder but following call getClass().getResource("log4j.properties") fails with ms Trace: sun.misc.InvalidJarIndexException: Invalid index at sun.misc.URLClassPath$JarLoader.getResource(Unk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implement a noise filter algorithm for recorded audio in iPhone I am developing an application like TomCat. I have recorded audio with a funny voice and playing it with Audio Queue Services. I have changed the settings of AVAudioRecorder, But while i am playing there is some noise or distortions. NSMutableDictionar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7581908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }