text
stringlengths
8
267k
meta
dict
Q: How to create an auto-complete combobox? Does any one know the best way to create an autocomplete combobox with Knockout JS templates? I have the following template: <script type="text/html" id="row-template"> <tr> ... <td> <select class="list" data-bind="options: SomeViewModelArray, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to use Zend Helper in Lithium i'm trying to migrate my cakephp apps to lithium, and already use Doctrine, and Twig as plugin, but now i'm also want to integrate Zend libraries into apps, and i have to integrate the Zend helper libraries. I added the Zend library and ZendX on bootstrap, and i already can acessed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Homework Help. I have to "write" a sort I cannot use the API sorts I have to write a program that takes its arguments from the command line. There are 3 classes. The main app class, a class defining each member of the hall of fame, and then a hall of fame class that creates an array of the members of the hall of f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Compilation error while using librsvg I am using librsvg in my C files to rasterize SVG, but as soon as I include rsvg.h, I start to get the following error: /usr/include/librsvg-2.0/librsvg/rsvg.h:29:25: fatal error: glib-object.h: No such file or directory * *Does anyone know why it is happenning and how to g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGL is it better to batch draw or to have static VBOs What is preferrable, from an effiency point of view (or another point of view if it's important) ? Situation An OpenGL application that draws many lines at different positions every frame (60 fps). Lets say there are 10 lines. Or 100 000 lines. Would the answe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Hibernate session management for multiple transactions ? What is the best way for maintaning Hibernate session for multiple database transactions? Do I need to open and close each session every time or should I rely upon getCurrentSession()? Whats the best approach? A: I think, the best approach will be to obtain s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: :clouchdb error with ID I'm getting an error on one part of the :clouchdb example code (that's a link, but the examples.lisp file included doesn't work properly either). Specifically, when I input > (create-document '((:|name| . "wine") (:|tags| . ("beverage" "fun" "alcoholic")))) I get a DOC-ERROR condition Reaso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How come my "calculate" will not work? I need to create a simple c# application to add some quarterly figures. I am using arrays to "store" the data and then place it in a textbox. Anyways, I am having some issues with my calculate section. I have put comment tags around it so you guys can easily find it. The are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Needing an elegant solution to a simple, C++ bingo board I'm trying to code a Bingo Board in C++, but I'm doing something very wrong. I'm not sure what, but for whatever reason when I initialize the number of rows and columns, and do a nested for loop on the arrays I created to implement this structure, I get what a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is std::bitset::at() throwing out_of_range? This has stumped me for a few hours now, since I cannot see any problem in the math or code. (Dispite staring at it and working it out over and over again to be sure.) I'm hoping you folks can help me, here's my code: #define SOLVE_POSITION(x, y, z) ( z*16 + y*4 +...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Restrict Entries in UITextField Is there a way to restrict a user to enter only certain information inside a UITextField? For example, I want to restrict a user to enter only U.S. states. I know I can use other controls, such as UIPickerView, but I want them to type this, if possible. Thanks. A: check out: - ( BOOL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a proxy in python and twisted to get a page Is it true that if you have a proxy such as http://222.126.99.99:8909 that you can access a url from the browser e.g. www.cnn.com as http://222.126.99.99:8909/www.cnn.com. Is this is true, from twisted can I use the proxy to get a page as follows? iUrl=http://2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what's the difference between password and passphrase For private key file, it requires to be encrypted using pass phrase. I am wondering is there any difference between password and pass phrase? A: Nothing is different beyond semantics. "Password" implies that you should use only one word while "passphrase" implie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditional Layouts in ASP.NET MVC 3 So with layouts in MVC3 lets say I want to be able to specify on a page level if a particular section is displayed, what is the best way to go about it. Consider the following page: @{ ViewBag.Title = "..."; Layout = "~/Views/Shared/Layout/_Layout.cshtml"; } @section L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Background image attribute not support in Microsoft office outlook 2007 //this is my Email Template HTML code <center> <table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:auto; border-spacing:0px;"> <tr> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write this nested query? Here are 2 queries. Which one is correct? SELECT link.[xlink:Show]. Location.[xlink:show], link.[xlink:actuate], Location.[xlink:actuate], FROM Sem JOIN Location AND Link join Location ON link. link_id = Location.link_id); Error: Incorrect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heroku Slug Size Shot up suddenly Locally my application is 7MB without tests and logs, etc. The .git folder is 29 MB. I also have no gems / plugins in vendor folder. 95% of images sit on S3. However on committing to Heroku it shows -----> Compiled slug size is 62.7MB What is wrong? It happened? To add more context ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Any differce between mvn:assembly and mvn:package I knew mvn:package can be used to generate JAR or WAR, is there any difference between mvn:assembly? A: They are quite different. 'package' is a simple command used for simple/single projects where you only have to create a jar/war. The assembly plugin is much more...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Having Issues with Custom Dialog Box I need some help with my custom dialog box. This is the first time I have built a custom dialog box and for some reason it keeps crashing. The below code is what I have in my onCreate() method. I want to click on the edittext box bring up the dialog box then enter the ticker symb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is the Zend Locale library usable with CodeIgniter? I've been reading some of the questions and answers regarding locales and some of the suggest the use of the Zend Locale library. Would it be possible to use this library in CodeIgniter or does it depend on other components? I'd like to be able to convert values, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: reading a file while it's being written I've read some posts on stackoverflow about this topic but I'm still confused. When reading a file that is currently being written in Java, how do you keep track of how many lines have actually been written so that you don't get weird read results? EDIT: sorry, I should have m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Links contains #, would it affect SEO? If i have such links in my site (i am using mvcsitemap): http://mysite.com/coollink http://mysite.com/coollink#contanttab1 http://mysite.com/coollink#contenttab2 If i want to submit site map to google for example, should i use the links with # in mysite XML sitemap? or better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery empty is very slow I am trying to empty an HTML table that has about 200 rows using $("#mytable").empty(). While it is emptying the rows, I cannot do anything else, looks like the UI is blocked. Is this the right function to use? Can this operation be done in the background, in order to minimize the noticeabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to obtain the maximum screen resolution that a monitor supports using C# I need to obtain the Maximum supported screen resolution of a monitor, not the current resolution which is easy. Any help would be appreciated. Edit: This is the updated solution that worked for me. public Size GetMaximumScreenSizeP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: back-Updating tree of rows in DB from result of last update I'm not sure this is even possible, but I would really like to be sure in order to create the most efficient code... I need to build a query that works like an affiliate - when a user signs in, I need to see if someone invited him, or if he got there alone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Send gps coordinates to server in XML I am making an app in which i want to send gps coordinates like latitude and longitude to server in xml .. Can anybody help me how to do this .. Any help will be appreciated ... Thanks.. A: Google is really your friend on this one. Stackoverflow is more ment for programming iss...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Place client-side JavaScript templates in HTML or JavaScript? Should client-side templates like the following (using underscore's templating engine): <p class="foo"><%= bar %></p> be placed in an separate HTML file, or a separate JavaScript file? I know it could work both ways. For example, a JavaScript file could...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Dynamic Style Sheet Is it possible to link a style sheet from code behind. I want to link stylesheet_1 when the current day is < 15 th and stylesheet_2 when current day is > 15 th Thanks A: You don't need to use code behind. Just use Javascript to link according to the date in onLoad() function in the body like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: comparing two text files and remove duplicates in python I have two text files, file1 and file2. File1 contains a bunch of random words, and file2 contains words that I want to remove from file1 when they occur. Is there a way of doing this? I know I probably should include my own attempt at a script, to at least sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP local array in function? I have a game that will display ten random cards based on number and suit, but I need to check an array to see if the card has already been displayed. But my local array $card is not being saved when it passes through the function. Here is all my code for right now please try running it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1, RSpec: testing model validations I have started my journey with TDD in Rails and have run into a small issue regarding tests for model validations that I can't seem to find a solution to. Let's say I have a User model, class User < ActiveRecord::Base validates :username, :presence => true end and a sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Redirect URL type 301 in Java I learn to know where actually link redirect from an URL. After testinf on redirect URL web site, it give url redirect type 301. So, I test based on link below to get real link. Get hold of redirect url with Java org.apache.http.client Code looks like below: HttpGet httpget = new HttpG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Split NSString by number of whitespaces I have an NSString that contains some values separated by an unknown number of whitespace characters. For example: NSString* line = @"1 2 3"; I would like to split the NSString into an NSArray of values like so: {@"1", @"2", @"3"}. A: This should do the trick (assuming t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Jquery Chrome extension help? I am making a Chrome extensions where you can drag and drop links and it'll bookmark it in the extension. I found this from a stackoverflow thread, it does what I want it to but the only problem is that I want it to make a new element with the link and not replace the old link. Can some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Quine-McCluskey algorithm in Python I'm trying to write the Quine-McCluskey algorithm in python, but I wanted to see if there were any versions out there that I might use instead. A google search showed few useful results. I'm looking for 4x4 map reduction, not 2x2 or 3x3. Any ideas or references? A: def combine(m,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Have a javascript function privately track it's number of calls I'm trying to figure out how I can have a javascript function privately track the number of times it has been called. The objective is to be able to query this value in the console during debugging by doing func.run My first attempt: function asdf() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: bad planing with mysql_fetch_assoc? I am making a page where people can make posts. All of those posts are then shown in a table of 24 cells. I can have the last 24 posts shown with no problem, but now I don't know how to show the prior group(s) of posts. How can I fix my code to do that? I actually have this: (I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery - Object ... has no method 'css' Why can't I change the CSS of this element? $("div.example ul li").mouseover(function () { var ul_teirs = $("div.example ul li").find('ul'); var second_teir = ul_teirs[0]; var third_teir = ul_teirs[1]; second_teir.css({ ... }); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to print libssl and libnspr version from c++ code? How can I print the version of libssl and libnspr in c++ code ? I want to print version for both defined in header and library . A: The header file opensslv.h #define 's the macro variable OPENSSL_VERSION_TEXT, describing the version. For instance "OpenSSL 0....
{ "language": "en", "url": "https://stackoverflow.com/questions/7537129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I split up a Python module into PyPi packages? I have written a Python module that I'd like to make available for others. Right now, it is one large module nested into sub-folders: * *wraith * *util *ext *color I think it's best to split these sub-folders up into separate packages. The tipfy p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Wix Bind Substring or Split I'm trying to get a Wix installer written that does some TypeLib registration. I'm already pulling the FileVersion off a registered file elsewhere using !(bind.FileVersion.#InteropDll) but I want to do the same thing for the TypeLib, which only has separate MajorVersion and MinorVersion...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is str_replace faster with array? My question is if using array on str_replace is faster than doing it multiple times. My question goes for only two replaces. With array $phrase = "You should eat fruits, vegetables, and fiber every day."; $healthy = array("fruits", "vegetables"); $yummy = array("pizza", "beer"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get value from GridView when a button is clicked I have a GridView , and the GridView has an item template. Now I need to get the value of the first cell which contains the value I need but I have tried the following and does not work, it eturns a "" int id = Convert.ToInt32(GridView.Rows[index].Cells[0].Text); He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Change the alignment of Toast by Programmatically? Possible Duplicate: how to change position of Toast in android? How to change the Alignment for Toast? Basically, toast it'll displays information bottom of the device. How can we change that? Anyone help me to find out this? Thanks in Advance. A: It woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add address annotation when finding route via google maps api I'm using google maps to get directions from one place to another. Here is the code NSString *mapAPIString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", sourceAddress.coordiate.latitude, sourceAddress.coordia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Layout of columns which automatically fill fixed width container vertically? I've got elements with different heights but fixed width in a container element. When I set the elements to inline-block, the columns fill up automatically, but horizontally, like this. Please notice the numbers, indicating an element. 1## ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wix Event Log Not Getting Created I'm trying to create an Event Log and Event Source at install time using Wix. The install doesn't fail or give any error...but I don't see any Event Log called MyApp getting created. <PropertyRef Id="NETFRAMEWORK40FULLINSTALLROOTDIR"/> <Component Id="EventLog" Guid="AD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XML DTD - What does the asterisk mean when it's outside the bracket I understand that <!ELEMENT tagname (source*)> means that source can appear zero or more times, but I don't understand what this means <!ELEMENT story (#PCDATA | date)*> Is that asterisk outside the bracket applied to everything inside o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically detect if the browser displays a temporary status bar? With the recent Firefox and Chrome browser releases, the default status bar has been taken from us to free up more screen space and de-clutter the UI. The status bar was used to display the URL of any link the user rolls over, among other thing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery validation - breaking on change? Here is our code: http://jsfiddle.net/ajLkz/1/ Basically, if we wrap the if statements for each input box in a jquery function like change or keyup - the whole thing returns true for everything. Basically what we are aiming for is if EVERY if statement returns false, the butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Need recommendation for templating configuration files and auditing I am looking for a template engine for pushing and pulling data from configuration files. To be more specific, Cisco router configuration files. My goal has two parts 1) To be able to template my router config and insert unique data (hostname, int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby on rails: Avoid drop down if values are already selected I am pretty new to Ruby on rails. I have one query I have one view (say view1) in which I am showing a drop down. For that I have passed and array and populating the drop down using that array like dis <td><=% select_tag, options_for_select(@businessAppro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: creating unique yet ordered ,order number for a customer's order In my java app I need to generate a unique order number for a customer's order.I thought the time of creation of order is a good enough unique value.Two orders cannot be created at the same second. To prevent others from using the ordernumber, by gues...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass argument to delegate method in Rails I would like to have a Dashboard to display summary of multiple models, and I implemented it using Presenter without its own data. I use an ActiveModel class (without data table): class Dashboard attr_accessor :user_id def initialize(id) self.user_id = id en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Using Linq Zip function to merge collections for a view in Silverlight Based upon a prior question I had Here. I wanted to join two collections together so that the merged data could be then displayed within a DataGrid of a Silverlight UI. Using the Linq Zip function I was able to merge my two collections as follows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JFrame Icon in Netbeans I'm Building a Swing Application and I need to know how to set an Icon for my JFrames through Netbeans 7.0 if it is possible. Thank you for your cooperation. Best Regards. A: This might help you: YouTube: Change the Icon in Java Frame. It's from 2009, so it's not the latest, but it is still ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Codeigniter/Datamapper "where_related" causing too many queries I have a many-to-many mapping between profiles and categories. This query: $profiles = new Profile(); $profiles->where('foobar_flag',1); $profiles->where_related($category); $profiles->get(); Is taking almost 30 seconds to run, with about 1000 entr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rmagick resize and flatten_image error I am trying to use Rmagick to combine two images. * *The image on top can be resized and dragged using Jquery-UI. I get size of the image after resize using Jquery code such as follows: ui.size["height"] and ui.size["width"] *I send this data using Ajax to Rails server....
{ "language": "en", "url": "https://stackoverflow.com/questions/7537196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add user to group but not reflected when run "id" R creates a group called staff and I want to be able to update packages without starting R as sudo. So I added myself to staff using: sudo usermod -G adm,dialout,cdrom,plugdev,lpadmin,admin,sambashare,staff matt (side question is there a way to add yourself to a gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Delete contents of textbox and automatically deleting another I have 2 input box fields, one linked to an autocomplete and the other is hidden I have an action on select that takes the id of the selected item into the hidden field. code: $('#id_emp_name').autocomplete({ source: '/mycompany/employees.json', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: undefined variable javascript - lightbox im trying to open a lightbox when webpages loads using the javascript library "lytebox" here is my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <hea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multi-column ListView onClickListener responds to a column in a row? In Android ListView it has OnItemClickListener() which responds to a ROW I clicked. But what if my ListView has multicolumn and I want to have an event that responds to a column in a row? A: In your getView(...) of your listadapter simply use set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to add textfield and button programmatically? I have a tableView and I want to apply search facility on tableView. For that I require textField and search Button but I don't know how to create these programmatically. so plz tell me how to create these two tools. thanx. A: Try with the following link which descr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to allow abstraction in MVC while maintaining SOC? I'm refactoring a large web game, and making some models to represent my database objects (you read that right - there were none before.) Now I know that traditionally subclassing of models isn't really done because it can be tricky, but it seems to fit what I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can add Tab widget to the botton in android? I am working on android, i want to add tab widget to the bottom of page. this is the code of my xml file:- <HorizontalScrollView android:id="@+id/ScrollView01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fillV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fastest way to split a text file at spaces in Javascript I'm looking at doing some text processing in the browser and am trying to get a rough idea of whether I am going to be CPU bound or I/O bound. To test the speed on the CPU side of the equation, I am seeing how quickly I can split a piece of text (~8.9MB - it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set permalink of your blog post according to date and title of post? I am having this website http://www.finalyearondesk.com . My blogs post link are set like this.. http://www.finalyearondesk.com/index.php?id=28 . I want it to set like this ... finalyearondesk.com/2011/09/22/how-to-recover-ubuntu-after-it-is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get this form submit to work properly? The following code is what I am using to e-mail me the contents of a form. I am having two problems with it and was hoping someone could help. * *I have checkboxes on the form, and when multiple boxes of the same group are checked, the e-mail I receive only shows t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RewriteRule that will force a trailing slash Currently I have a folder [contact-us] mydomain.com/contact-us/ Im planning to remove this folder and will just add a contact-us.php mydomain.com/contact-us.php How can I create a RewriteRule that will map mydomain.com/contact-us/ -> mydomain.com/contact-us.php (Note I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What will be the fastest way to access an element from a collection? What will be the fastest way to access an element from a collection? I am thinking should be in the order (low to high): Indexing an Array <= indexing a collection/list <= use key on Dictionary But I am not sure... 1) Is indexing an array has sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help understanding etree xml for python working with tag structure i'm having some problems to unterstand the python etree library to read a xml file. I pretty new with programming in python...so xml is kind of kinky for me... I have the following xml structure in a file: <sss version="1.2"> <date>2011-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parsing sequential ASCII file for editing - Visual C# I have been recently assigned a task in which I need to create a program to edit files in Visual C#. The file is a sequential ASCII text file with multiple fixed character width rows, and the basic structure looks like this: Each group is a single parameter, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTC OpenSense SDK repository.xml url link Anyone knows HTC OpenSense SDK repository.xml url link?I'm not ok to download HTC OpenSense SDK.After downloaded file,I got only incomplete damage zip file. A: Direct repository link not available. Just follow the steps. * *Download HTC Open Sense from here (Requires reg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to skip precompilation of unused vendor assets In Rails 3.1 "rake assets:precompile" precompiles all separate .css and .js that are in vendor/assets/.. folders. For example, it creates separate precompiled files for jquery, jqueryui libraries and all other files from "vendor" folder. My web site only references ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cant find the newline character in a file (java) I am trying to get the last line of a file, but my output shows that it never finds it. I also tried looking for "[" which all the lines start with, but unless the jumps were perfect the program will not skip "[". I tried looking for "\r\n", System.getProperty("line.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails 3.1.0, geokit, with error acts_as_mappable I am getting the undefined local variable or method `acts_as_mappable' error when using geokit, and after tons of Goggling and attempts, I cannot seem to be able correct the problem. Basically, I have the following gems installed: geokit (1.6.0, 1.5.0) geokit-rails3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS10 Additional library directories fails when using a relative path When I set up my project with relative paths, it fails. // Does not work properties-linker-general-additional library directories ..\..\libraries // works fine C:\Users\NAME\Desktop\project\libraries How do I get the relative paths to work? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Binary search tree insertion Need help to figure out why the following code for basic Binary Search Tree insertion is not working. Since I have been working on C# for sometime now, I'm afraid I forgot some of my C++. Also, any suggestions to improve coding style would be very helpful. (I know I'm not freeing memory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I save a textarea value to a Rails session? I have a form with one input field -- a textarea -- and when the user submits the form I want to save the value of the textarea to the session. How do I do that, in Rails? I'm using Devise, and the page I'm sending the user to after they submit the form is my Devise...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does R handle object in function call? I have background of Java and Python and I'm learning R recently. Today I found that R seems to handle objects quite differently from Java and Python. For example, the following code: x <- c(1:10) print(x) sapply(1:10,function(i){ x[i] = 4 }) print(x) T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Raphael JS nested canvases? I'm using Raphael JS to draw vector graphics on a webpage, and I have a rectangle (Raphael.rect) that I'd like to use as a seperate canvas from its parent. Is there any way to do this? EDIT: I'd just draw in the rectangle like normal, but it wouldn't cut off the contents at its border. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling Console.WriteLine before allocating the console I've recently encountered the following problem with my application: it didn't show any console output, though the console had been allocated by using AllocConsole. I managed to figure out soon that it was caused by an attempt (hidden deeply in code) to write t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I change a label when other labels change? I am trying to make a label change when other 2 labels change. The 2 labels constantly change randomly. Here's the code:if ([labes.text isEqualToString:@"haha"] && [alizz.text isEqualToString:@"hoho"]) { laab.text = @"hello"; } Maybe refreshing every 0.0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What really makes up Direct Traffic in Google Analytics? My site has been getting substantial direct traffic for a while in Google Analytics. I had been assuming that it was mostly due to link shortened traffic from Twitter. However, after Twitter introduced t.co, and shortened links from Twitter started coming in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Write a custom syntax interpreter in java? I am about to begin coding a demo program for a lecture I'm about to give. I want to let each student in the class download this application, then be able to create instances of objects (and their graphical representations) interactively via a command line. I decided to wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Interactive console programming for c/c++? So I've written a small program which takes in commands by the users, and then displays the output (after connecting to a server). It's an interactive console of sorts. However, after using the mongodb and redis command-line clients (which work interactively on the console/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why won't IRB work after I mistyped a string? I started to learn Ruby using IRB and wrote the wrong code below: irb(main):001:0>"amefurashi".delete(aiueo") I noticed it was missing a double-quote mark, and the prompt changed to: irb(main):002:1" I wrote the correct code: irb(main):001:1"amefurashi".delete("aiueo")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Not Able to include header file? Hi I have created a project in vs 2005. I have created a header file A.h. Similarly I have added A.cxx in a folder called implementation. In .cxx file I have included A.h. I have used #include "A.h". But when I am compiling it is telling A.h not found. A: You can include files one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How do I know that the image shown is cached? I am using timThumb that has a cache engine. As the script/tutorials say, you have to have a cache file with permission 0777. This is what I have already. When an image is viewed in the page, using the below timthumb.php?src=http://farm3.static.flickr.com/2340/2089504883...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: upload file to a folder in asp.net? if (FileUpload1.HasFile) try { FileUpload1.SaveAs("C:\\Users\\Vinay\\Documents\\Visual Studio 2010\\WebSites\\Onlinedoctorsportal\\vini" + FileUpload1.FileName); Label10.Text = "File name: " + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to persist data with Serializable interface in java android I have a problem that, I have a webservice which returns 3 arrays from JSON response. I want to persist those lists from one class to another in our android app with the help of Serializable interface and Setter and Getter Methods. But I don't know how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Auto-accept bluetooth pairing possible? In the Android 2.3.3 BluetoothChat example with with createInsecureRfcommSocketToServiceRecord() API, users are still prompted to accept the pairing request, even though no PIN code is presented. Is there a way to automate Bluetooth pairing request without user intervention? O...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java: MouseEvent on transparent JPanel I have a LayeredPane with two JPanels, all in a JFrame. Both JPanels are set to be transparent with setOpaque(false). However, I would like to capture mouse events on the (top, if it makes a difference) transparent panel. Is this possible, or should I just do it from the underl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Property getter setter in C# I have a class library project. I have a property there like below. It's not a read only property private Int32 ABC ; public Int32 ABCD { set { this.ABC = value; } get { return this....
{ "language": "en", "url": "https://stackoverflow.com/questions/7537328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access phpMyAdmin on Ubuntu LAMP I have installed all LAMP, and phpMyAdmin too. But how do I access phpMyAdmin via my browser? Which URL do I need to open? A: you should probably see these instructions https://help.ubuntu.com/community/phpMyAdmin but phpmyadmin must be at /usr/share/phpmyadmin A: Since you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF Toolkit Data Grid , Selected Item Prevent changing * *I have a WPF Toolkit DataGrid, *First Item is selcted *User clicks on any other item on the Grid *I do some validations (any validation on selection change event of the WPF Toolkit DataGrid) *If validations returns false *I want prevent User from chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: webserivce messages in listview with smileys I am working on a chat application with smileys. I have a image button that shows a pop up of smileys in grid view when clicked. I can select any smiley in that and it will get displayed in Edit Text. My problem is : Now i have smiley image and text in my edittext. when i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return a Bool from a Where Filter using Entity Framework and Esql I use c# and ef4. I have a Model with an Entity with two proprieties int Id and string Title. I need to write an ESQL query that is able to return bool TRUE if Id and Title are present in the DataSource. Please note Id is a PrimaryKey in my dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copying sets Java Is there a way to copy a TreeSet? That is, is it possible to go Set <Item> itemList; Set <Item> tempList; tempList = itemList; or do you have to physically iterate through the sets and copy them one by one? A: Starting from Java 10: Set<E> oldSet = Set.of(); Set<E> newSet = Set.copyOf(oldSet); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Prevent users from having the same username I have just found a pretty major vulnerability in my code while doing some testing, Basically if my username was "admin" and password was say "12345"... and a user joined with and chose the name "Admin" and the same password "12345" when he/she goes to login they will be i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }