text
stringlengths
8
267k
meta
dict
Q: Maven and Eclipse Lift Project Errors I made a new project through the m2eclipse wizard and selected the blank liftweb archetype. The project was created and I added the scala nature to the project (I don't have the maven-scala plugin installed for the time being). I am able to run the project using the goal jetty:r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7621999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android: Making Https Request How do I avoid the "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" exception and the Android Apache lib gap "The constructor SSLSocketFactory(SSLContext) is undefined" in making an Https request? A: This method takes an HttpClient instance and returns a ready-for-htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Creating charts in MS Word using from regular MS Word tables I'm working on a program that can generate MS Word files containing tables. I want to design a macro that would take the data in the tables contained in the MS Word file and create a chart from it (bar, pie or line charts). So far I've been able to: * *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: win7 rails aptana studio 3 + rmagick + bundler cannot start debug server i've been trying to start 'debug server' for a rails application in aptana studio 3 but i never succeeded. every time i tried to start debug server, exception thrown: Uncaught exception: Could not load the bundler gem. Install it with gem insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Login on website with java I would like to login to a website with java. I use the org.apache.http and I already written HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost("https://accounts.google.com/ServiceLogin? service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: matlab and c differ with cos function I have a program implemented in matlab and the same program in c, and the results differ. I am bit puzzled that the cos function does not return the exact same result. I use the same computer, Intel Core 2 Duo, and 8 bytes double data type in both cases. Why does the result diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to bind in XAML to a static property? I am trying to bind a static property of a different class to the Text Property of a TextBlock and can get the binding to work, but there's is no update to the Text Property when the static property's value has changed. I have read that I cannot use INotifyPropertyChanged be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is it necessary to add escape sequences to a binary string when storing to a MySQL Database? The whole point of designating data as binary is to simply treat the binary sequence as a raw, untouched sequence of bytes. => Given that MySQL has BLOB, BINARY and VARBINARY data types, why isn't it possible to store...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pygame not working with sockets I created one program with pygame, imageGrab and sockets but it doesn't work. It should take a printscreen of the server with ImageGrab, convert it to a string, and send it to the client. However, the client upon receiving the information and converting it to an image raises an error...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UITextField not updating I'm having trouble updating the UITextField for an iPhone app. I've set the layout with the Interface Builder, created an instance of the text field in the ViewController, and set the ViewController as the delegate for the text field. The text field object in code doesn't seem to be respon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing stored procedures on a code generated DbContext with Entity Framework 4.1 with DDD I'm working on a large project using ASP.Net MVC 3, EF 4.1 and Ninject for Dependecy Injection. I've read through many of the existing questions here regarding DDD, EF and the Repository Pattern but I can't seem to find anyo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ignore trailing slash with Apache Rewrite I'm using mod_rewrite to redirect like so: RewriteRule (work)/?$ $1.php [L] This sends any URL ending in /work or /work/ to work.php The problem is, when a trailing slash is included, it treats it as a directory, and not the file that it really is. This, of course, breaks al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Notification icons for android platforms 1.5 - 3.2 My app targets Android 1.5 to 3.2 and I'm making notification icons specific to those platforms. I'm finding it difficult to correctly to organize the icons for all these versions, including h/d/ldpi versions. I know in 3.2, the qualifiers changed, so I'm trying to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AjaxUploader error in Opera I'm trying to integrate AjaxUploader into my site, but only in Opera browser I have an error, in other browsers it forks fine Besides, if I testing this code on new test server it forks fine in Opera browser too. I can't understand what's going on, help me please. Here is the stacktraca f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DialogFragment and back button Is there any possibility to intercept the key button in DialogFragment? sorry for the naive question.. the onBackPressed of my FragmentActivity is never called. thanks in advance if (imageFile.exists()) { ShowPicDialog newFragment = ShowPicDialog.newInstance(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Using Clojure with an annotation-based REST Server I am considering writing a REST Server using Clojure. I have experience using RESTEasy with Java. It uses annotations to associate URLs, template parameters, and query parameters with Java classes, methods, and method parameters. I believe that the Jersey REST Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to add lines to a levelplot made using lattice (abline somehow not working)? I want to draw horizontal and vertical lines on my level plot corresponding to x values from 74 to 76 and y values from 28 to 32. Below is my R code. But when I run the following,I get the levelplots but no lines. I also recieve no err...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove contents of href attribute with with RegEx For example, I have this HTML snippet: <a href="/sites/all/themes/code.php">some text</a> The question is - how to cut the text /sites/all/themes/code.php from the href with preg_replace(); which pattern could I use? A: I would strongly recommend against using regu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: illegal start of expression error public Properties prop = new Properties(); I get an illegal start of expression error when I try this code snippet. I couldnt figure out what was wrong though. A: Most probably you have used this construction inside of a method or constructor. "public" keyword is allowed for class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: genfromtxt dtype=None returns wrong shape I'm a newcomer to numpy, and am having a hard time reading CSVs into a numpy array with genfromtxt. I found a CSV file on the web that I'm using as an example. It's a mixture of floats and strings. It's here: http://pastebin.com/fMdRjRMv I'm using numpy via pylab (initializi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ViewModel updates every second? Iam writing an app that shows a list of the remaining time a user has on a course. I want the list to dynamically update every second so the user has the full overview. public class ReservationCustomerList : INotifyPropertyChanged { public int UnitsLeft { get; set; } public D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jQuery get and text return replacement character. How to solve? If I use: $.get("url",function(data){$("#destination").text(data);}) in the .text of #destination the letters like èéàòùì become the replacement character. How do I solve it? Set the charsets is useless; I don't want to use .replace("strange character"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does this TLS code only runs in debugging mode? I'm getting a strange error: The handshake failed due to an unexpected packet format if I directly run my code without debugging. And If I set a break point and then debug the code line by line it works fine. Here is the detail exception The handshake failed due...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a minimized overlapped window (Win32) I'd like to create an overlappedwindow that starts out visible (so the taskbar button shows) but minimized. Creating the window with WS_MINIMZED (or WS_MAXIMIZE for that matter) does nothing. Using ShowWindow(hWnd,SW_SHOWMINIMIZED) gives a critical error. I suspect i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DokuWiki nested lists regexp How can i replace DokuWiki nested list string with using one or two regexps in Ruby? For example, if we have this string: * one * two * three * four we should get this HTML: * *one *two * *three *four I've made a regexp replacing the whole list. E.g.: s.sub!(/(^\s+\...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How using pinvoke to force change border style to none of window? Is it possible to change border style of window to have no border, using pinvoke? If it isn't possible, how can i get the client rectangle without borders? I am standing over problem where each computer opens this window with another param size. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Basic Asyncronous TCP server in Java I'm trying to create a very basic asynchronous server in Java (similar to http://msdn.microsoft.com/en-us/library/fx6588te.aspx in C#). All of the libraries I've seen for Java are way too complex for what I need and I'm wondering if there are any libraries that are simple and hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get a disclosure indicator in my tableview header section? I'm customizing my headers in my Tableview and I want to add a discloure indicator (arrow) to my header that is clickable, is that possible? A: If you already customized your header view you can simply add a custom UIButton with an image of a disc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In IntelliJ IDEA, how can I create a key binding that executes a shell script with the current file as a parameter? In IntelliJ IDEA, how can I create a key binding that executes a shell script with the current file as a parameter? For exanmple, if I am in a test file (entity.spec.js), I want to save and hit a key b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Programming for Android in a 100% C++ Environment? I've been working on a game engine runtime environment in C++ for my future games, and have started to consider android as a platform. I noticed that it was tightly bound to Java and uses Java VMs heavily. But is it possible to sustain a full C++ runtime environmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to read GRIB files with R / GDAL? I'm trying to read a GRIB file wavedata.grib with wave heights from the ECMWF ERA-40 website, using an R function. Here is my source code until now: mylat = 43.75 mylong = 331.25 # read the GRIB file library(rgdal) library(sp) gribfile<-"wavedata.grib" grib <- readGDAL(gribfile...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Suggest a weekend learning track for MVC3 for someone familiar ASP.NET web forms development I have a "green field" project I'll be starting monday, and it's an intranet business application that wants to do all the typical stuff like workflow, alerts. The Model is done with EF and has all the core entities that a 5...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rails: possible to check if a string is binary? In a particular Rails application, I'm pulling binary data out of LDAP into a variable for processing. Is there a way to check if the variable contains binary data? I don't want to continue with processing of this variable if it's not binary. I would expect to use i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP IF statement not reacting how I think it should? I am having a little trouble with the following php statement: if (!userIsLoggedIn()) { $prPrice = (empty($prPrice2)) ? $prPrice1 : $prPrice1; } else { $prPrice = (empty($prPrice2)) ? $prPrice1 : $prPrice2; } Here is an example of two products: product 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Gridview force closes I am following a good tutorial on using a gridview. I have been unable to get the code to work however as ever time I compile and run the app force closes. Logcat says its "unable to instantiate activity CompnentInfo" amount a series of other errors. I'm not to handy with debugging so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot instantiate abstract class in C++ error I want to implement an interface inside a "Dog" class, but I'm getting the following error. The final goal is to use a function that recieves a comparable object so it can compare the actual instance of the object to the one I'm passing by parameter, just like an equals...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performing simultaneous unrelated queries in EF4 without a stored procedure? I have a page that pulls together aggregate data from two different tables. I would like to perform these queries in parallel to reduce the latency without having to introduce a stored procedure that would do both. For example, I currently ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is creating a reference to a nonexistant array item undefined behavior? With my compiler at least, creating a reference implies no dereferencing. Therefore, code like the following works: int trivialExample(char* array, int length) { char& ref = array[6]; if (length > 6) { std::cout << ref << std...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to disable all buttons in Java, Android I create an app which need to disable all buttons to allow user to leave the application - back button, menu button, camera button, call button, etc, and app should have 1 button for exit. I don't know how to disable all buttons. Tell me please, thank you A: The Physical...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQLite add column, keep data I have a database with 4 columns: @Override public void onCreate(SQLiteDatabase database) { database.execSQL("CREATE TABLE " + DATABASENAME + " (name TEXT, latitude REAL, longitude REAL, country TEXT);"); } Now I want to add another column, but keep the rows that are already in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: CSS Menu Dropdown IE7 float left I made a nice menu, and I also wrote a new design for only IE. In IE7 the text next to image doesn`t go next to it. It goes to next line. Anybody knows how can I fix it ? http://tinyurl.com/6yzd2jc A: you can apply the background-image to the anchor tag. example jsfiddle So replace:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drop-down menus in Emacs.app 23 (Lion) only work after several clicks I am using Emacs.app 23.3.1 on MacOS 10.7.1 (Lion). When I try to use the GUI drop-down menus, they will not appear unless I click on the menu several times. The top-level menu item (e.g., File, Edit, Options) will highlight to acknowledge the cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: lookuperror unknown encoding cp720 in django when running on diffrent computer I have a django site that when I run it on my computer,every thing is good,but when I run it on another computer,I can't login with my username and password and that sounds like the user is not in my database while the user is in user aut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Payment form on my webpage I know I can't create my own payment gateway except if I don't have anything to do for two years from now :p. But still I've seen a lot of websites that have a payment form on their website, like godaddy.com or panic.com (when buying Coda) and I didn't really found any website that offer t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: preventing a specific mysqli_fetch_assoc() from sending a warning I use a specific query that is acting weird: On my local environment, it works perfect and sends no warning. Online, the query itself works fine, however, mysqli_fetch_assoc($result) is producing the 'mysqli_fetch_assoc() expects parameter 1 to be mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Date search Sql Query im storing the timestamp in mysql database in (INT) column, And i want to search the rows with between the dates. Anyone would please help what should be the Sql query to find the rows between two dates? dates are entered like FROM DATE = 15-10-2011 END DATE = 01-11-2011 A: It depends on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OSX/Cocoa : setting up service in menu for right click and services list I have followed all the Apple documentation for setting up a service for a right click menu list and for the services list: * *I have made all the relevant info.plist entries. (send types, port name, menu title, instance method, etc.) *I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qt Creator and GCC How I can build native C++ files using Qt Creator. I want to write native C++ programs in Qt Creator and then build them using GCC. How I can do it? P.S. I am on Ubuntu 10.04 with Qt Creator 2.1.1 A: 1) Create a folder where you will store you project and run command: qmake -project && qmake your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible & efficient to put a LinearView and ExpandableListView inside a ScrollView I'm making a GUI with two different parts. The first part (at the top) is composed of some banners, several fixed buttons. So I think using LinearLayout is the most straightforward way to implement. The second part is composed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android, Is it possible to run Dalvik VM on any kind of OSs in order to run Android Applications? I have some operating systems such as Windows 7 and Linux. Is it possible to run Dalvik on this Win7 and after that running an Android application or game? Thanks A: One solution is to install Android-x86 (Android for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python Newbie Questions - Not printing correct values I am newbie to python and I doing doing some OOPS concept exploring in Python. Following is my Account class: class Account: def __init__(self,balance): self.__balance=int(balance) def deposit(self,deposit_amt): self.__balance=self.__bala...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# System.Management has only 1 class? I have been trying to utilize WMI for my code, I cannot use the System.Management classes as they are not there. I have tried it on 3.5 and 4 Net. Nothing works. I have not found any solutions to the issue and was wondering if any of you have ever encountered this? If so, why i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Send JSON string to a C# method In my ASP.NET page I have the following method: public static void UpdatePage(string accessCode, string newURL) { HttpContext.Current.Cache[accessCode] = newURL; } It actually should receive the accessCode and newURL and update the Cache accordingly. I want to pass the values to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering a list based on another list - LINQ I have two IEnumerable lists. I want to populate values into the second list based upon the results in the first. The first IEnumerable list is populated like this: IEnumerable<SelectListItem> selectedList = CategoryServices.GetAttributesByCategoryID(categoryID); // it r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the background color of a section I'm trying to use jQuery to change the background color of a <div> section when pressing on a button, and below is the code to do that. Why isn't it working? HTML file <html> <head> <script type="text/javascript" src="jquery-1.6.4.js"></script> <script type="text/javascrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open a URL based on search query without php "?q=(myTerm)" and instead with a simple "/(myTerm)" This is driving me up the wall. I obviously don't understand soemthing pretty fundamental, I'm hoping someone can shed light on the matter. <form action="/tagged" method="get"> <input type="text" name...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create web applications to run R scripts Is there anything similar to the Rwui package to create web applications to run R scripts? A: Please do not cross-post simultaneously to r-help and StackOverflow. As I just mentioned in my reply on r-help, there is an entire section of the R FAQ devoted to this question.
{ "language": "en", "url": "https://stackoverflow.com/questions/7622185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: XCode4 does not produces archives. At all I am attempting to create my first ever app to be tested/deployed via: * *XCode 4.0.1 *TestFlight I cannot get archive to actually produce an archive in XCode. It always says it has succeeded in building the archive (see image), but I cannot find it in the Organiser an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Return multidimensional char array in C In C, how can I create a function which returns a string array? Or a multidimensional char array? For example, I want to return an array char paths[20][20] created in a function. My latest try is char **GetEnv() { int fd; char buf[1]; char *paths[30]; fd = open("filena...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSmutablearray adding unknown amount of images I have an array i'm filling with images with a loop items = [[NSMutableArray alloc] init]; for (int i=0; i<43; i++) { NSString *filepath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%d",i] ofType:@"png"]; UIImage *imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keeping/Dropping Variables in SAS I want to remove columns/variables from a large SAS dataset, call it 'data'. I have all of the column names that I want to drop stored in another SAS dataset - let's call it 'var', it has a single column with header column. How do I drop all of the variables contained in 'var' from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How should I check to see a if value exists in PHP? There are many ways to see if a value exists using PHP. There's isset, !=false, !==false, !empty, etc. Which one will be the best (fast and accurate) one to use in the following situation? if($_GET['test']) ... A: if (isset($_GET['test'])) { // use value } A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery slider with content I want to ask you, how to do the icons menu with slider. So I mean how to have this content slider to move in more html contents. Example www.tapmates.com (the apps menu). A: This is often referred to as the Coda slider, after the Coda site by Panic, but it's found in many other guises. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a custom aggregator in Mule? What is the recommended way to create a completely custom aggregator in mule 3.x? By completely custom, I mean according to my own logic, not using correlation IDs, message counts, etc. The documentation on the mulesoft site is outdated, saying to use AbstractEventAggreg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding context menu for VS 2010 Add-In on loading I'm creating an Add-In for Visual Studio 2010. I want to add the context menu item to the tab during Add-In loading (in OnConnect method of the Add-In): I do know how to add the menus using CommandBars. I already added commands into "Tools" and "Solution Explorer" m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing newlines in php Following is the syntax for preg_replace() function in php: $new_string = preg_replace($pattern_to_match, $replacement_string, $original_string); if a text file has both Windows (rn) and Linux(n) End of line (EOL) characters i.e line feeds. then which of the following is the correct order o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to set a pixel as transparent for 8-bit pngs when encoding with libpng? I'm trying to mark pixels as transparent when encoding rgb data to 8-bit png image (palette) using libpng. If I create a separate alpha channel in this case, the alpha channel is getting ignored. Is there a way to set the pixels as opaque or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I make an element's height equal to the height of the screen? I tried height: auto; but that doesn't work. Any ideas? A: html, body { height: 100%; } #container { height: 100%; background: red; width: 200px; } Is this what you are trying to do? Please provide some code. A: You have a few options. You can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone - Catching the end of a grouped animation I animate 2 views, each one with its CAAnimationGroup that contains 2 CAAnimations. They are launched at the same time (if computing time is negligible), and have the same duration. How may I do to know when both grouped animation is finished. I put the - (void)anim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java String split + patterns I'm using this method to split some text: String[] parts = sentence.split("[,\\s\\-:\\?\\!\\«\\»\\'\\´\\`\\\"\\.\\\\\\/]"); Which will split me the text according to the specified symbols. One of the symbols is "-", because my text have weird things like this: "-------------- words --- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is this an NPE? Why do I get an NPE at Drawable pic = (Drawable) i.getDrawable();?????? I am trying to get the height and width of a drawable in order to set its scale to be fit the XY of an imageview in an imageswitcher via a matrix (using a matrix to enable multitouch). public View makeView() { ImageV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse Android Graphical Layout is not giving the options on properties window Eclipse Android Graphical Layout is not giving the options on properties window. example: When i select any widget on my graphical layout editor to show the properties, when i click on "Text" property (value field) it shows the "..." but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to skip row when importing bad MySQL dump Given bad mysqldump that causes error on import: namtar backups # mysql -p < 2010-12-01.sql Enter password: ERROR 1062 (23000) at line 8020: Duplicate entry 'l�he?' for key 'wrd_txt' Is there an easy way to tell import to just skip given row and continue? (Yes, I know ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: second parameter in Symfony routing job_show_user: url: /job/:company/:location/:id/:position class: sfDoctrineRoute options: { model: JobeetJob, type: object } param: { module: job, action: show } requirements: id: \d+ sf_method: [get] in template i use: url_for('job_show_user', $job) ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alarm Manager doesn't go off I'm building an Alarm Application. for it, I'm need to supply a time as input. I'm trying following code but alarm doesnt' trigger. I searched online and modified the code much alot but still no luck. Can someone help me out. Thanks in advance. Intent intent = new Intent(NapAppActivity.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why has this approach been taken in this class? In the base class inside generic views django creates a method view at runtime , attaches it to the generic view class and then calls the dispatch method on that class I did not understand the purpose of this approach , why did not the dispatch method was called direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Edit the tag with jQuery or PHP I have some home made blog, and when viewing blog posts I'd like to change the title tag for adding the post title, so when I use the Twitter's tweet button, it adds the new button. I tried: <script type="text/javascript"> $(document).ready(function() { $(this).attr("title", "<?p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scheme -> Clojure: multimethods with predicates in the methods? I'm converting some Scheme code to Clojure. The original uses a dispatching pattern that's very similar to multimethods, but with an inverted approach to the matching predicates. For example, there a generic function "assign-operations". The precise im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: IOS iPhone use MPMusicPlayerController to play external music file, and display iPod interface I'm trying to use the standardized "iPod" audio player to play some MP3 tracks in an iPhone app I'm building. The tracks are downloaded from the internet and stored in the app's "Documents" directory. I thought of using a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android touchevent on view even with dialog in front I am making video playback controls. All my code is present to make it work and it does, except for one thing. When I touch the surfaceview the controls come up, but once they are up, my surfaceview no longer has focused and doesn't receive touch events. What I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested inheritance trouble in Visual Studio 2008 I am currently working on a widget-based graphical user interface. It is structured as a tree with Widgets as the leaves and Containers as the nodes of the tree. The (solvable) problem with this structure is that the Widget-class takes a reference to the Container tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the order in which a POSIX system clears the file locks that were not unlocked cleanly? The POSIX specification for fcntl() states: All locks associated with a file for a given process shall be removed when a file descriptor for that file is closed by that process or the process holding that file descriptor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Emacs codepage problems: Terminus font, utf-8 and cyrillic-translit input I love the cyrillic-translit input method for Emacs. However, after I set the wonderful Terminus as my default font, the Russian characters appear in Arial or something (in any case it's not Terminus). How do I fix this? Setting the default fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I use MailMerge and MS Words as Report Generator instead of Access Report? This is not about coding question. It's about Software (Database) Design. Background: My office has a ADP database as front and SQL Server is a backend. There are a dozen of basic standard reports in the ADP file. End users slightly cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there a c++ library for ordinary differential equation (ODE) solvers? More specifically, i'm interested in 8th order Dormand-Prince embedded method, it's based on Runge-Kutta, and stiff equations. I use Numerical Recipes 3 but i often have trouble compiling their libraries. I'd like to know of alternatives. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How To Structure Large OpenCL Kernels? I have worked with OpenCL on a couple of projects, but have always written the kernel as one (sometimes rather large) function. Now I am working on a more complex project and would like to share functions across several kernels. But the examples I can find all show the kernel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Queue using two stacks I implemented it as an array with two stacks adjacent to each other, but their tops on the either ends. That is, if top(stack1) is at the beginning of keys, top(stack2) is at the end of keys. Bottom(Stack1) and Bottom(Stack2) should be adjacent, but anywhere between top(Stack1) and top(Stack2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQLite where clause acting strange with TEXT fields I've searched up and down sqlite.org and can't figure this one out. I'm used to MySQL so I think maybe I am overlooking something. See the following code: sqlite> select id,event_number,must_say from events where id=28; 28|'28'|'AFK' sqlite> select id,event_number,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: explicitly setting "pretty print" formatting for Graph API request When querying the Graph API with a 'known' browser the JSON output is formatted in a way to make it easy for humans to read. If the query is done with any other browser then it outputs everything on one line. How do you explicitly make the request s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Carrierwave image upload in nested form still creating record even no file is specified I have a Carrierwave image upload in a nested simple_form which works (sort of) unless the user does not specify a file, in which case a blank Picture object is created unless there was a previously existing one. Not quite sure h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Counting the size of a group in T-sql I'd like to count the size of a group. My table looks like that: Name Number Renee Scott 1 Bruno Cote 1 Andree Scott 2 Renee Scott 2 Pierre Dion 2 Pierre Dion 3 Louise Tremblay 3 Renee Scott 3 Andree Scott 3 Jean Barre 3 Bruno Cote ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System.out.println doesn't work? When I write this in the main method: System.out.println("Hello"); Nothing is outputted on the output console. It just says "Build successful (total time: 0 seconds)". What's the problem? Here is my full program: package names; public class myName { /** * @param args the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Writing binary data to a file I want to temporarily cache binary data before I can write it to a file. This was my idea. Since I have to insert a header before this data that indicates how much data will follow after the header, I needed a way to keep this data cached before it is written to ofstream file. I decided...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Displaying images in uiwebview from core data record So I have an app I've written for the iPad, and I'd like to be able to allow users to insert images into their documents by selecting an image from an album or the camera. All that works great. Because the user might keep the document longer than they keep the ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get an element before its added to the DOM? How can you get an element before its added to the DOM (before append()) $('#enclosure_balance'+id).css({background:'red'}) A: As far as I know, the only way is by reference if you control or have access to the construction of it. var s = $('<div id="stupid"/>') ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VB.NET: How to make a webRequest async I think this is a simple question for you, but I don't understand other cases of webRequests, so I asked here: How can I make this webRequest asynchronous? Dim sBuffer As String Dim oRequest As WebRequest = WebRequest.Create(url) oRequest.Method = "GET" Dim oResponse As WebResp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find the optimum length of transfer in fread function There are files with unknown file size ( not included in header as content-length) I am trying to copy them to my server using this: $file=''; do{ $line = @fread ( $fp, 16384 ); $file .= $line; }while ( strlen($line)> 0 ); the file is always pdf ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: issue with MAX statement in t-sql code This is the code: Select BCPP.* from ViewPBCPP BCPP inner join ( Select MBC.PC PC ,MRT.Name CT ,Max(dbo.CalcDatefromUTC(MBC.CreatedDate)) as LRDate from TableBACC MBC inner join TableSC.RT MRT ON MBC.RTid = MRT.id where MBC.Isdeleted = 'False' and MBC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to handle this error in jquery library I am using particular library for constrain on my textbox it giving me following error. How can I resolve it... $.constrain usage: //jquery.constrain.js: 5Uncaught SyntaxError: Unexpected identifier link for library is at http://jsfiddle.net/U9N63/ A: add // before this l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ear-javaee6 archetype doesn't allow Java files I created a new Maven Project and selected the org.codehaus.mojo.arhcetypes ear-javaee6 archetype. When I try to add a Java class to the project I get "Source folder is not a java project". So we are not supposed to add Java classes to out .ear files now. What are the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7622331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }