text
stringlengths
8
267k
meta
dict
Q: eclipse scala plugin console cannot display hebrew characters I am trying to run the following scala code: println("world שלום"). but in eclipse, this is what I see in scala interpreter console: println("world שלום") world ???? Is it possible to fix that? A: This works for me with Eclipse Indigo on Linux. It look...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Named Pipes without the computer hanging if no one connects to the network? I’m looking for a way to communicate between programs on the same computer, and have been referred to Named Pipes. It seems that the only way to connect the server is though WaitForConnection (I don’t know enough to use unmanaged ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: developer manuals My team and I are in the final phase of our software development project. We are using Visual Studio to compile our project and coding in C#. We need to build user manuals. Is there any way to generate user manuals from the comments of the application and code? A: Assuming you have commented your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A simple C++ While loop not working I have a simple while loop i'm trying to implement but for the life of me can't figure out what I'm missing. I have currentuser initialized at the top to -1 while(currentuser = -1){ cout << "Enter user ID: "; cin >> id; currentuser = search(a, length, id); } My search...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Testing an IRC bot I am writing an IRC bot in Python using the Twisted library. To test my bot I need to connect several times to an IRC network as my bot requires a restart each time a change is made. Therefore I am often "banned" from these networks for a couple of minutes because I have made a lot of connections....
{ "language": "en", "url": "https://stackoverflow.com/questions/7546026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimize this C Code How to Optimize this piece of C code...?? int c = no, diff = u - d; while (no--) for (d = u; d < p[no]; d += diff) c++; A: The best optimization, for size, speed, cleverness, clarity, and anything else you may think of, is to have no code. So, ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Given a Uri and a UriTemplate, how to get template parameter values? If I have access to both a Uri and the UriTemplate on which is is based, what is the neatest way to discover the values that have replaced the parameters in the template? For example, if I know: var uriTemplate = new UriTemplate("/product-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: key logging in unix I am a newbie to unix scripting, I want to do following and I have little clue how to proceed. I want to log the input and output of certain set of commands, given on the terminal, to a trace file. I should be able to switch it on and off. E.g. switch trace on user:echo Hello World user:Hello W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switch between two frames in tkinter? I have built my first few scripts with a nice little GUI on them, as the tutorials have shown me, but none of them address what to do for a more complex program. If you have something with a 'start menu', for your opening screen, and upon user selection you move to a different ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Manually cast signed char I'm working with some embedded hardware, a Rabbit SBC, which uses Dynamic C 9. I'm using the microcontroller to read information from a digital compass sensor using one of its serial ports. The sensor sends values to the microcontroller using a single signed byte. (-85 to 85) When I rece...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Error deploying to heroku Please help. I have absoluty no idea what's wrong. The rails app works on my local machine. If I do this: git push heroku master I get this: Counting objects: 4195, done. Delta compression using up to 2 threads. Compressing objects: 100% (3944/3944), done. Writing objects: 72% (3009/4178)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android MapActivity cannot retrieve location data I have followed the HelloMapView tutorial for android, and added some code to capture my current location information and display in a textview. I have tested these code in another program and it worked, it is able to display my longitude and latitude data when the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android emulator does not recognize .php extension for web pages I am trying to write a php code for mobile web app. But the problem is when I test that page in android emulator then it says error loading. when I turn it back to .html then it loads that page. Can someone tell me why and how to solve this? A: Try yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails: Changing relationship after initial migration I am having some trouble finding a good answer to my question on rails relationship creation. If I already ran the initial migration for my user model and my comment model Without declaring a relationship (ie: a user has_many comments, and comments belong_to user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Magento, how i can send variable from MyController to my view phtml? how i can send variable from MyController to my view phtml? Zend framework, i send like this: // MyController $this->view->name = "Matheus"; or $this->view->assign('name',"matheus"); // My View echo $this->name; in Magento Controller, how i send...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hadoop: High CPU load on client side after committing jobs I couldn't find an answer to my issue while sifting through some Hadoop guides: I am committing various Hadoop jobs (up to 200) in one go via a shell script on a client computer. Each job is started by means of a JAR (which is quite large; approx. 150 MB). R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop other websites iframing? We run an online service (aka a script) and we have discovered a few websites over the past few weeks putting our script on their site via iframe. What precautions can we take to stop other people putting our site into theirs via iframe? Thank you. A: A more global solution would be so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question regarding llply or lapply - applying functions to data.frames in a list Dear R user community, I have many data.frames in a list, as follows (only one data.frame in the list of 21 shown for convenience): > str(datal) List of 21 $ BallitoRaw.DAT :'data.frame': 1083 obs. of 3 variables: ..$...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we use Spring WS for webservice of type RPC/ENCODED? I have a WSDL of type RPC/Encoded and implementing Message Level Security (my XSD is complex type). * *Can I use Spring WS for this type of Web Service? *is JAX-WS support this type of web service? What is best way to implement this type of webservice? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Quickbox with MooTools 1.4 I've been trying out a few lightboxes for my website using MooTools 1.4, and I found this one that works and looks really nice (with easy implementation): http://andrewplummer.com/code/quickbox/ On the demo website, the lightbox works perfectly, clicking the image brings up the overlay and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple table query syntax error? I hope someone here can help me see where this error is coming from. I have a form with two fields: email and password. The form's action takes it to a php page that is supposed to * *start a session *connect to a database via mysql *run a query and select a row in a table where...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I cannot, despite all of the available resources, login to my ssh server without a password So I have my home computer & a server. I want the server to be able to SSH into my home computer w/out a password. I have followed various tutorials and can ssh from home to server with no password. Everything works fine. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Dynamically expanding a scipy array Is there a way to dynamically expand an scipy array from scipy import sci time = sci.zeros((n,1), 'double') Can we increase the size of time array after this? A: It's possible to expand arrays using the resize method, but it can be a slow operation for large arrays, so avoid it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: GrabCut - bgdModel & fgdModel empty - Assertion error I am attempting image segmentation using GrabCut algorithm in OpenCV2.1 (C++) Here my code: Mat rgbWorkImage = imread(argv[1]); Mat mask; mask = Scalar(0); Mat bgdModel, fgdModel; Rect rect = Rect(Point(0,0), imageSize); grabCut(rgbWorkImage, mask, rect, bgdModel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: css: How get rid of this extra white space after and before text? Here's an image: The HTML is in a php which is as follows: print "<p class = 'Back'>Epic Fail</p>"; print "<p>You forgot to put in your Username or Password.</p>"; The CSS for the Back class and p is as follows: p.Back { font-size: 200px; display: b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add user generated comments to existing javadoc Our team develops software for BlackBerry devices. The BlackBerry API (javadocs) is poorly documented, and sometimes even outdated. What we would like to do is import this existing documentation into an online system that could then be edited/commented by developers/us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yahoo OAuth with gtm-oauth for Mac App Has anyone successfully used gtm-oauth to authenticate to Yahoo for a desktop Mac App? I'm able to authenticate to Twitter using this library and I feel that I've made the appropriate updates for Yahoo OAuth but I consistently get a 401 error when I start the request and the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to call Bean classes not in default package Netbeans IDE supports beansbinding and we can call easily a bean in the default package (without instantiating beans can be seen in the Inspector). But if our UI components (swing) is in another package, and beans are in another package, we have to instantiate those be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question about static variable I have read many documentation about static variables. Here is one example which I didn't understand. Suppose that static variable in a class is declared like this: class Something { public: static int s_nValue; }; int Something::s_nValue = 1; int main() { Someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binding from items of an UserControl with custom collection property This question is a "sequel" to this question (I have applied the answer, but it still won't work). I'm trying to create an extended ToolBar control for a modular application, which can load its items from multiple data sources (but that is not the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: box2d with custom polygon crashes I created a polygon which has 5 vertices, and all vertices are generated by VertexHelper. Why does the program get SIGABRT at b2Assert(area > b2_epsilon) in ComputeCentroid() in b2PolygonShape.cpp? The program runs well when I use shape.SetAsBox(.359375, 1.0) instead of shape.Set(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Winsock unicode problem I have just converted a program that uses winsock to unicode, and im running into a problem. Here's my code, well part of it TCHAR http_request[MAX_REQUEST_LEN]; TCHAR data[65536]; int nDataLen = 0; /* Create http_request */ send(mySocket, (char*)http_request, lstrlen(http_request), 0) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Message order in Gmail boxes I wrote a simple script in python using imaplib to download gmail messages from a given box (or a label which behaves like a box). Since some boxes contain very large number of messages, my script allows to download only those numered within an interval like 100-200, so that I can resum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework trying to retrieve non existent column I'm trying to retrieve the VideoCollection items from the database, but getting {"Invalid column name 'User_Id'."} - when I set a breakpoint I can see that the EF is trying to select User_Id column but it doesn't exist in the Cs object or the database schema. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Live 'required fields' with labels inside of the inputs Basically what I'm trying to do is to write inside of the inputs something like "Field is Required" after the first time they press inside or when they try to submit. I want it to show directly after they press somewhere else or submit without any refreshes. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to send a struct through socket? I found the following function, which can send a mail : bool sendmail( char * smtpserver, char * from, char * to, char * subject, char * msg ) { int iProtocolPort = 0; char szSmtpServerName[64] = ""; char szToAddr[64] = ""; char ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails 3.1 dynamic controller instantiation I have a Rails Engine gem in which I want to load a HomeController class definition dynamically from an initializer. I can instantiate the class correctly, but when I go to call the index action, I get this error : TypeError in HomeController#index can't convert nil into S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zend_Framework Decorators Wrap Label and ViewHelper inside a div I am new to this, zend decoration malarchy, but i have two significant questions that i cant get my head around. Question one is followed by some example $decorate = array( array('ViewHelper'), array('Description'), array('Errors', array('c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: jQuery - Apply CSS to div1 if div2 contains a certain word of text? With jQuery how can I apply css to a div, if another div contains a certain word? So if div1 contains the text 'TriggerWord', I want div 2 to become red. Below is my attempt. Thanks $("document").ready(function () { if ($("#div1:conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A good drawing library for Java that uses Jogl (and it is not Java2D) I was wondering if there is a rasterization library (like Cairo is for C) written in Java, that uses Jogl as it's backend. A: GLG2D does pretty much what you want. You can draw using the Java2D API, specifically Graphics2D, and the rendering is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue when running in a android google API (2.2 platform) New to android development, be gentle haha. I am wanting to populate a spinner with data from my SQLite database. I have a table that is pre-populated and am able to query it successfully. Problem is that I am able to populate the spinner when running it in m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form Application VB.NET File.Create Method, Access Denied to Path I wrote an application which parses a website and downloads an mp4 file from website. User can select the path where he wants to download the video. When I try to download I get an exception for the file, Access Denied to Path. When I gave the permis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: If Statement In PHP Script I wonder whether someone can help me please. I'm using the following script to load marker data into my map. <?php require("phpfile.php"); // Start XML file, create parent node $dom = new DOMDocument("1.0"); $node = $dom->createElement("markers"); $parnode = $dom->appendChild($node...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way of implementing a 'popular content' display? How do I show a list of 'most popular (articles|posts|whatever) for a period such as the past day? (Essentially replicate the functionality of the Radioactivity Drupal module.) A: Here's what I would do: * *If you're not already, sign up for Google...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Update bidirectional ManyToMany from both sides referring the question Saving bidirectional ManyToMany i want to obtain exacltly what accepted answer explain as incorrect: A a1 = new A(); A a2 = new A(); B b = new B(); a1.getB().add(b); b.getA().add(a2); If this state could be persisted, you would end up with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jsoup get element in value=" " I want to find the element "buddyname" and get the element of value= "" in a HTML file which i put into a StringBuffer, in this case 5342test. The element in value= "" can change so i can not search directly for 5342test. <fieldset style="display:none"><input type="hidden" name="buddyn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Infinite loop when updating JPanel's graphics So, I am drawing a graphic in a JPanel object using Grahics2D. The JPanel is placed in a JScrollPane for the cases when my graphic is bigger than the window. But after I draw my graphic the JPanel's size does not change and I cannot scroll to see the rest of my graphic, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to sort DIVs by height? I have three divs and I want to sort them by height, from largest to smallest. <div>smallest</div> <div>largest</div> <div>middle</div> Any idea? A: Since jQuery returns an array, you can use the sort method on array to reorder the elements. Once they are sorted in the proper order, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Handling SQL Server concurrency issues Sometimes I need to acquire a unique ID and store it with a record, but I am unable to use an identity column. So instead I have a table which provides unique IDs using a label field and an integer. When a unique ID is needed, I call a stored procedure and pass in the label, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sorting a dictionary in python Possible Duplicate: Python: Sort a dictionary by value I need to sort by values a original dictionary on a descending order. As keys I have numbers and as values I have some date and time (string). This means I have: {1: '2011-09-25 16:28:18', 2: '2011-09-25 16:28:19', 3: '2011-09-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NodeJS get IP used by remoteAddress I have 3 simple NodeJS servers usign NET, HTTP and UDP. Each server listens on port X but has multiple IP addresses. I would like to retrive the actual IP address of the server when the client connects to the server (the IP to where the client connected, the IP that client had to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How is made link like this www.facebook.com/Lukavyi? How to make link like www.facebook.com/Lukavyi ? Must every user have separate php file to have such link? I know, that you can somehow change url with apache, but is link being changed back, when user clicks on it? A: This can be done with Apache's mod_rewrite U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is Apex Code? Is it related to Java? I have being called for an training program for application development for Force.com. Since I am looking forward to work in a java based development environment, will it help me as a java developer in the future? A: Apex itself is based on Java, however syntax and some cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to force commit changes on chrome local storage I have an extension which using chrome local storage. I connect to the local storage with another application while chrome is open and I see the changes in this external application only when I'm closing chrome. I guess the changes are done just for the current ses...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble with the Asset Pipeline on deploying (production mode) I just switched from Ruby on Rails 3.0.10 to 3.1.0 and I am using jQuery UI 1.8.14. I have a problem to load css files in production mode on the remote machine. In my app/views/layouts/application.html.erb file I have: <%= stylesheet_link_tag 'applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Web Development IDE For JSP, JSF, and Servlets Is there any tool (IDE) that provides a visual web Development for JSP and JSF? Before, Netbeans 5 has a visual web development plugins, but in the new version this plugins are not available I do not why? Please, if anyone knows any visual tools or plugins that c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Record ajax content Dear all I have searched in this form and others but cant solve my problem, please help. I have several rows and each of them has hidden (next) rows for details of this row. I want to click on any row and see the details of the clicked product. The problem I am facing is that when I click on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to change color of vim cursor in Visual Studio 2010 I have installed the Vim key bindings extension in Visual Studio 2010. I also have a color scheme setup with a dark background. This creates a problem since Vim key bindings extension has set my cursor to black, which is against a dark background .... not good....
{ "language": "en", "url": "https://stackoverflow.com/questions/7546214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: NLS missing message: CANNOT_FIND_FACELET_TAGLIB I am getting this warning in Eclipse: NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages ICEfacesPage1.xhtml /myapp/src/main/webapp On the following lines: xmlns:ui="http://java.sun.com/jsf/facele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Abstract Class in Design Pattern For Facade Design Pattern in the book the book Elements of Reusable Object Oriented Software by Erich Gamma on degign patterns, the implementation part talks about making the facade class an abstract class as it reduces the client and subsystem coupling. I am not able to understand ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: adding a progress bar I have an a windows form application that use one class (its name is Parser) this form has a button and when i click on the windows form application button it call one of the parser class method . this method simply read text file line after line and write each line to separate file... i would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: BroadcastReceiver TTS and Volume I have a BroadCastReceiver that starts a background service. This service speaks some text using TTS. Since it all starts with a BroadcastReceiver, there is no UI. I want to give the user an opportunity to mute when he presses volume down key. Please guide me how this is possible. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ViewPager as a circular queue / wrapping I am using a ViewPager with the FragmentStatePagerAdapter to allow navigation between some fragments. Let's say I have three fragments: A, B and C. The ViewPager shows Fragment A initially, and allows you to navigate to Fragment B by swiping from right-to-left, and then to Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: convert a text link to image link I am in the middle of making a post system for my website, and i would like some javascript that would turn a text link like <a href="path/to/image.jpg">Image</a> into <a href="path/to/image.jpg"><img src="path/to/image.jpg" /></a> but only turn it into an image link when something...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Optimized solutions for my homework A snail creeps x ft up a wall during the daytime. After all the labor it does throughout the day, it stops to rest a while... but falls asleep!! The next morning it wakes up and discovers that it has slipped down y ft while sleeping. If this happens every day, how many times will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Threading tutorial needed I hava an app that load images from the internet and display using the combination of gallery widget and imageview. I would like to put the downloading images part to a separate thread but i had no idea how to do it even after a few google searches. Below is my code, anyone can please help ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tinysort sort by multiple attributes (more than 1) I'm trying to use tinysort as part of a mobile application that I'm building with jquery mobile. My app finds places near a users location and I want to be able to sort results quickly on the fly without having to spend the time re-querying the db. So, what I want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Check if NSString contains alphanumeric + underscore characters only I've got a string that needs to be only a-z, 0-9 and _ How do I check if the input is valid? I've tried this but it accepts letter like å,ä,ö,ø etc. NSString *string = [NSString stringWithString:nameField.text]; NSCharacterSet *alphaSet = [NSCharac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Calling a function within the function inside the class in php I don't understand what's going on with this. I need to call Func1 from Func2 and parametr for Func1 should be given inside the object. class MyClass { function Func1($a) { return $a; } function Func2() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter: get_instance inside My_Lang I found this useful Internationalization code: http://pastebin.com/SyKmPYTX everything works well except I am unable to use CI functions inside this class . I want to set $languages and $special variable from DB . but when I am using $CI =& get_instance(); in instance functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GoogleApp Engine authentication using Google ID from Blackberry I am developing an app to be hosted on Google App Engine. Users will be able to use their Google IDs to login to the app. The app also has a client counterpart in the form of a Blackberry Application. My question is - is there a suggested way for my app...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What Can I Use Besides usleep in a Modern POSIX Environment? I'm fairly new to C but writing a small multithreaded application. I want to introduce a delay to a thread. I'd been using 'usleep' and the behavior is what I desire - but it generates warnings in C99. implicit declaration of function ‘usleep’ It's onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails 3.1 simple_datatables I have been looking at Simple Datatables but the documentation and example provided are not very clear. It appears to implement jsonify and utilize a template handler but I am not sure. Also the provided code does not compile; is the author using some other gem to parse the views? For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Publish post with picture and link on event's wall Is there a way to publish a post with a picture and a link on an event's wall? Currently I can publish only statuses (messages). On the user's wall there is no such issue. I've tried the new Graph API as well as the old REST API ('stream.publish' method) with no suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add to favorites, jquery I am creating a 'favorites' style system for a property webiste where users can save a property to be viewed later. The system works using Jquery so the page doesn't have to refresh. The details page of a property contains a 'add to favorites button' and this works fine: $("#addFavorites").c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET mvc 3 razor : Html Helper Extension Method - executed but dosen't print html Hi I have problem with my html helper extension method in razor view engine. I want to render SideMenu if I have any nodes to print: <!DOCTYPE html> <html> <head> <title>@ViewBag.Title</title> <link href="@Url.Content("~/Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Preserve/Protect Certain Fields in Edit in ASP.NET MVC In an Edit action in ASP.NET MVC, certain fields can be hidden from user with HiddenFieldFor. However this doesn't protect the fields (such as ID, data creation date) from being edited. For example, a model Student has fields Id, Name and Birthday. I like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Creating lambda inside a loop I am trying to create lambdas inside a loop that iterates over a list of objects: lambdas_list = [] for obj in obj_list: lambdas_list.append(lambda : obj.some_var) Now, if I iterate over the lambdas list and call them like this: for f in lambdas_list: print(f()) I get the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Deleting of an item, indexing problem... for (var i = 0; i < max; i++) { deleteButton[i].addEventListener('click', function (e) { AddPatientVitalsModel.globalData.splice(i, 1); }); } When i click on a button, a new table is added... i change some information in table and again add another...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: copy full local Wordpress website from a computer to another I have a wordpress website which is installed by Microsoft Webtrix on my computer A. I have installed Microsoft Webmatrix on my computer B so that I can continue my work on computer B so that I can continue work on computer B. I want to copy my full wordp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Translation rule I like to create a translation rule to a VoIP system to obtain the following result: If someone dials the 4545 the system must convert this to 1234545, I managed to do this with the following rule: s/^4545/1234545/ My problem now is if someone dials 454567 my rule will convert this to 123454567 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Visual Studio 2010 C# Windows-Forms Editor Bug I currently have an annoying bug with the Editor in Visual Studio 2010 Express. Whenever I add a CustomControl in the Editor, any changes I make after that to the form, isn't saved in the .cs File, which basically means that when I add f.e. a MenueStrip to the Form, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: mysql TEMPORARY TABLE stored in ram? I've developed a small c# application that uses quite intensive Database calculations. I am hosting my application in a shared hosting environment. I am getting : mysql out of memory exception I am using quite a lot of temporary tables. Where are these tables stored? Could this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Php call Soap function and passing data i'm trying launching a simple Soap call in my application. The Soap Web Service is located: 'http://www.asd.com?wsdl' The Soap Web Service expose method : upload() , to the Ws upload() method i can pass a string data: 'arg0' so my code looks like as shown: $wsdl = "h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create dynamic video/slideshow from pictures in PHP I have a dynamic archive (a folder on my ftp space) where are loaded images from webcam. Now i want to create an easy slideshow or video with these images each time the user want to watch it. No any transition options or others....i need to build a siple ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can i find a key in a map based on a pattern matching in scala I want to find a key in a map that is similar to a specific text. should I use for loop or is there a more elegant way? A: The direct translation of your question is map.keys.find(_.matches(pattern)) which given a map, gets they keys and finds the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mouse hover event not working for the second time I am using asp.net text box and I am showing the border for the text box on mouse hover event and its pretty well doing it's job for the first time and when I click on the text box and again click outside the textbox and If I mouse hover the same textbox it dosen;t s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a pattern or trick to force evaluation on both expressions in an OR conditional statement? What is the best way (pattern) around return method1() || method2() not invoking method2() if method1() returns true? Example I'm using this class to bound a table: class Bounds { // return true iff bounds changed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i display my data when overriding getview Ive been learning about the getview . But i cant get it to display the data in my listview. Can anyone help code is below //public class OrderProductSearch extends Activity { public class OrderProductSearch extends Activity { ArrayList<HashMap<String,String>> list = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Add Checkbox Cell to NSTableView with Cocoa Bindings? I'm new in Cocoa. I have a table that stores Contacts. I'm not using NSTableView Protocol. I'm using Cocoa Bindings , and Mutable Array for storing in it. The question is , I want to be able to have checkbox on each row, and select contacts that I want, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3 HTML Injection Currently following the Learning Rails Screencasts at http://www.buildingwebapps.com/learningrails, making any necessary changes to work in Rails 3. However, in the tenth episode, I'm having a problem when rendering html code out of the database. The Page model in the tutorial has a body field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add 2 variables in Javascript I want to add two variables which have numeric values using javascript. var seconds = 1100; var time = 300; var newV = seconds + time; $('.show').html(newV); But it is saying undefined thanx A: http://jsfiddle.net/n9NcY/ This HTML is probably what you were missing <div clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: How to create, open, save and close a file or directory in javascript? Is there a cross-platform way to do these actions? Or only open files, the user download the files. I want to make a mmo side-scrolling game, and it needs to save maps, sprites and musics. A: It's not possible to access the local filesystem at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search for a keyword in C# and output the line as a string How would it be possible to search for a string e.g. #Test1 in a text file and then output the line below it as a string e.g. Test.txt #Test1 86/100 #Test2 99/100 #Test3 13/100 so if #Test2 was the search keyword "99/200" would be turned into a string A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Array of struct pointers and assigning struct data I have run into a problem or maybe I am just doing something wrong since I am new to C and structs. I want to take a text file such as this: 3 Trev,CS,3.5 Joe,ART,2.5 Bob,ESC,1.0 and read in the first line as the number of students then from there out gather stude...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL & PHP get depth of item in hierarchy with parent_id I have a common database structure using parent_id for a hierarchy. I'm trying to find out the depth of an item. So take for example this: ID Name Parent_id 1 Games 0 2 Nintendo 1 3 DS 2 4 3D 3 If I wanted to find out the depth of ID 4 (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with output, Java I need for my output to be the first 100 pentagonal numbers, ten per row , counting in succession. As it stands my output just repeats itself, i am sure this is a simple answer but i cant seem to come up with it. This was homework and already graded but i would like to figure it out for me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Question about pathname encoding What have I done to get such a strange encoding in this path-name? In my file manager (Dolphin) the path-name looks good. #!/usr/local/bin/perl use warnings; use 5.014; use utf8; use open qw( :encoding(UTF-8) :std ); use File::Find; use Devel::Peek; use Encode qw(decode); my $strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to calculate ffmpeg output file size? I am using ffmpeg to convert home videos to DVD format and want to calculate the output file size before doing the conversion. My input file has a bit rate of 7700 kbps and is 114 seconds long. The audio bitrate is 256 kbit (per second?) The input file is 77MB. To get this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a tool to check if an XSLT stylesheet follows coding standards? How can we check whether an XSLT stylesheet is following all the coding standards? Is there a tool where we can specify our own rules and find out if the stylesheet conforms? A: First of all, there is nothing like "all coding standards" ......
{ "language": "en", "url": "https://stackoverflow.com/questions/7546350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }