text
stringlengths
8
267k
meta
dict
Q: is there an API for GIT (C++ or other languages) A company asked me to program a GIT wrapper for them. The people there have absolute no versioning systems experience, but it will be incorporated in their daily routine eventually (through my program). I'm planning on using VC++ to create a tiny windows applet that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: can not filter values within cakephp model I created a categories model. I also created a project model. The project model belongs to the categories model so when you create a new project, you recieve a category drop down to pick which category you want. One of the categories is "Root" and I do not want this showing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jqgrid saveCell issue I'm trying to get an implementation of jquery's jqgrid up and running. All is going well, except for the saveCell function I'm tryin to call. What I want my plugin to do is anytime any of the *_fee fields are edited, I want the subtotal and total fields to autoupdate as well. I've got the visu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework Inserting Initial Data On Rebuild I am using Entity Framework code-first with a MySQL data source. I've defined ContactType.cs as follows: public class ContactType { [Key] public int ContactTypeId { get; set; } [Required, StringLength(30)] public string DisplayName { get; set; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using iScroll prevents the keyboard from showing on my device I am using iScroll for providing iPhone style scrolling. But, when clicking on the textboxes, the keyboard does not show up. While trying to find the possible cause, I found that removing the iScroll script, makes it work normal, but in that case I miss t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any nipype interface for avscale (FSL script)? I am trying to use nipype to analyze transformation matrixes that were created by FSL. FSL has a script called "avscale" that analyzes those transformation matrixes (*.mat files). I was wondering whether nipype has any interface that wrap that script and enable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add a method to an object instance with a variable from the current scope (Ruby)? This is hard to explain as a question but here is a code fragment: n = "Bob" class A end def A.greet puts "Hello #{n}" end A.greet This piece of code does not work because n is only evaluated inside A.greet when it is calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SVN (TortoiseSVN / SlikSVN) - Server certificate changed: connection intercepted? I was getting this error when trying to commit changes to my repository. I could commit changes a few files at a time, but if I tried too many, the commit would fail. I thought maybe if I renewed the SSL certificate, perhaps that would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can a ksh script determine the full path to itself, when sourced from another? How can a script determine it's path when it is sourced by ksh? i.e. $ ksh ". foo.sh" I've seen very nice ways of doing this in BASH posted on stackoverflow and elsewhere but haven't yet found a ksh method. Using "$0" doesn't work. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can you set a maximum limit to an integer (C++)? If I never want an integer to go over 100, is there any simple way to make sure that the integer never exceeds 100, regardless of how much the user adds to it? For example, 50 + 40 = 90 50 + 50 = 100 50 + 60 = 100 50 + 90 = 100 A: Here is a fairly simple and fairly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Calculate mean and standard deviation from a vector of samples in C++ using Boost Is there a way to calculate mean and standard deviation for a vector containing samples using Boost? Or do I have to create an accumulator and feed the vector into it? A: If performance is important to you, and your compiler supports...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: Discrepancy between Google Chrome and Firefox I'm getting different results for this fiddle on Google Chrome (14.0.835.186) and Firefox (6.0.2). Can anyone explain the discrepancy? What is the behaviour determined by the specifications? EDIT: On Firefox I see [0], [0, 1], etc. On Chrome I see [0, 1, 2, 3, 4], [0, 1,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dynamic setting of Log4j level across multiple JVMs I am working in an application has a number of plain vanilla Java components, each of which runs in a separate JVM. All these components use Log4j and there is no option to change to another logging library. As the title implies, I am looking for an "easy" way to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to execute a .sql script from bash Basically, I need to setup a database from a bash script. I have a script db.sql that does all this. Now how do I run this script from bash? Database system is mysql A: If you want to run a script to a database: mysql -u user -p data_base_name_here < db.sql A: You simply nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: Update table with LINQ SOLVED look below code snippet. I have a problem with updating tables, The code shows no faults but it don't act as expected, it does not put any information in the Log Table. some explenation, i have a table called User with a FK on LogID and a table called Log with PK on LogID so that shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert HTML into mailto body Possible Duplicate: Is it possible to add an HTML link in the body of a MAILTO link As I saw here: Is it possible to add an HTML link in the body of a MAILTO link "However even if you use plain text it's possible that some modern mail clients would render the resulting link as a click...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Operator overloading equivalent in C++ for PHP, echo/print class variable for default output I don't know how to really ask this because I am fairly new to programming in comparison to many of you. What I am looking for is a default printing or echoing of a class. I'll give you the c++ equivalent. ClassName varCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Serializing form in jquery and passing it into php I have been trying for the last couple of days to serialize a form in jquery and pass it to php. For some reason it just doesn't work... Question, What steps do you take to serialize a form in Jquery... I get the id of the form pass it into $('#fomrID').serialize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to forward a REST web service using C# (WCF)? There is a web service that can only be consumed via http and a client that can only consume https web services. Therefore I need some intermediary that forwards on requests received in https and returns responses in http. Supposing that the intermediary is completel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the correct .csv format to make a pie chart in Highcharts? I have external data that I'd like to make into a pie chart with Highchart. I want to dump the data into a .csv file, but what is the format? This documentation only shows how to format .csv files for bar graphs: http://highcharts.com/documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Applying Spree decorator H guys, first of all let me tell u I am new to spree, so my question might sound stupid to most of you. I want to customize for example the "index" method in the home_controller.rb, I know the right way is to use a decorators. So I have created this file app/controller/home_controller_decora...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get selected item in listbox and call another function storing the selected for it I have a canvas that calls createCategoryMeny(x) when it is clicked. This function just creates a Toplevel() window, def createCategoryMenu(tableNumber): ##Not interesting below: categoryMenu = Toplevel() categoryMenu.tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: God messing with Date Operations This is a weired think. Follow my steps: Without god, on console: > d=Date.parse("2010-02-01") => Mon, 01 Feb 2010 > d+1.day => Tue, 02 Feb 2010 Perfect. Then, I go to my Gemfile and add gem 'god' and run bundle install After that, on console again: > d=Date.parse("2010-02-01") =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Specify what kind of object will be created at runtime of a program I have a set of java subclasses which all extend the same superclass. They contain exactly the same methods and make the same computations on input data of different type. That means that one is responsible to deal with int, another with double, ano...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simple field update mysql I have a field with unixtime in seconds and I need it to be in milliseconds. Just a simple query to update the columns time and changetime by multiplying by 1000. I had a script to do this, but lost it. Totally having a Friday. A: UPDATE yourtable SET `time` = `time` * 1000, `changetime` =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting started in OpenCV, recommendation for API functions to use I'm just getting started with OpenCV and I'm planning to build a robot with computer vision. I am looking to make this robot recognize classes of objects as well as individual instances. In a sense, a Haar-like feature capability for general classes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create R heatmap with no margins whatsoever I'm trying to do something ostensibly simple: create a heatmap (i.e. 2D histogram) image with specified pixel-by-pixel dimensions (3600x3600) with no margins or axis labels whatsoever. I can successfully create a matrix of my data using the hist2d function. However, when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make buttons unclickable behind a small UIView? I have a strange problem. I have 3 level of views : - MainView - containerview - subview -some buttons -some buttons I've made a animation to make my subview appears and disappear by clicking a button in the master view. The follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to display array elements php For example; in PHP the auto-global $_SERVER. How do I display the elements or keys that it has? I am unable to find out how online. A: $keys = array_keys($somearray); Is that what you're looking for? Or are you just looking for $somearray['somekey']? A: For debugging I assume? T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load pdo object in a class php I have a single file I have my database connection (PDO) in. And as PDO is a class (library) or whatever, I don't feel the need of a database class (Or should I build one?) Anyway I want to load the pdo object, so I can use the functions in another class, but I'm not sure of how to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fastest programming language for computing large numbers? If I wanted to compute numbers with hundreds of millions of digits (positive integers), which programming language would be best suited for that? Currently I'm using python and the script is running and it was easy to code, but I have concerns for its speed. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Alternatives to Pass both Key and Value By Reference: Can someone explain to me why you can't pass a key as reference? Ex: if(is_array($where)){ foreach($where as &$key => &$value){ $key = sec($key); $value = sec($value); } unset($key, $value); } Throws: Fatal error: Key element cannot b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: jQuery SimplyScroll plugin breaks on some zoom levels You can actually see this effect on the SimplyScroll demo page: use Safari, Chrome or Firefox, and zoom out to the point that page elements are very small, and the scroller stops moving. I've tested and experimented, and it appears that the scrollLeft value is be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pyramid 1.2 on Google App Engine causes import error I'm trying to run Pyramid on GAE by following the steps outlined here. Everything works fine on dev server, but when deployed to Google's servers, the following error occurs: <type 'exceptions.ImportError'>: cannot import name BaseRequest Traceback (most recent ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Next occurrence of something, down the DOM tree I'm having the hardest time trying to reference the next occurrence of an element with an ID containing a specific string. Basically, I have a link, and I need to show() the NEXT div acting as a container for editing. <div> <a href="#" id="link-1">Link</a> // go from h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Sharing local ehcache among multiple Tomcat webapps I have 2 different webapps running in the same Tomcat 6 instance. Both share a library which uses hibernate for persistence. I want to enable Hibernate 2nd level caching with ehcache, but I don't want each of the webapps to have its own cache. Any idea how I might ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Alternative for Postmessage and sendmessage i have a program which is using several threads to execute some task. Each thread is having a bunch of task to execute. after executing one of them, each thred will call a post message to main screen to update logs. Now i have sixty thousand tasks ten thousand for each thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Glassfish instead of WebLogic for Oracle Forms 11g application Is it possible to use Glassfish instead of WebLogic for Oracle Forms 11g application? Is there any container/plugin/whatever for Glassfish to use with Oracle Forms 11g? Both Glassfish and WebLogic are J2EE servers, so...? A: Oracle 11g applications are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I access the read permissions for built in verticals? According to http://developers.facebook.com/docs/beta/authentication/read/, I can prompt a user for the permission "user_actions.music" and have access to their actions on the open graph. I've enabled the Enhanced Auth Dialog setting on my test app but am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CCNet web dashboard scripts being passed as text/plain My web dashboard for cruisecontrol.net seems to be rendering incorrectly. I am getting mostly java-script errors and I'm unsure why this is happening. Most of the errors are like this: Resource interpreted as Script but transferred with MIME type text/plain. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nginx, fastcgi and open sockets I'm experimenting using fastcgi on nginx, but I've run into some problems. Nginx doesn't reuse connections, it gives 0 in BeginRequest flags, so the application should close the connection after the request has finished. I have the following code for closing: socket.shutdown(SocketShu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: replace the class with new class without keeping the Newclass same where ever we are taking that from I want to replace the code with new code. I used replaceWith to replace the function.But it removes the new class from where it was before . I want that class to stay in where ever it was before and need to replace ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Javascript to pull the url of a hyperlink with a class attribute There will be only one link of a particular class on the page. I'm trying to write a javascript snippet that will find this: <a href="http://www.stackoverflow.com" class="linkclass"> ... </a> and return a string consisting of this: http://www.st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reassign key bindings in emacs to run cscope I'm trying to install xcscope for xemacs on my linux machine at work. Unfortunately emacs is pre-configured to install some of my work related .el files. Because of this the "C-c s" prefix doesnt work for cscope, since its bound to printing my company logo. I have curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do generic division without raising exception I want to do safe division for any type T, which I don't want to raise CPU/FPU exception, for example if a float is divided by zero it should return infinity (+/-INF). Should I write my own function? or is there any standard C++ function that I can use? if I need...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: height vs line-height styling What is the difference between using these two when dealing with text that will never be more than a single line? They both can produce similar results on the screen from what I can see in regards to the elements on top or on the bottom of the element. Why use line-height at all if so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Stactic Analyizer Memory Leak Warning for UISwitch I have the following code where each object is a UISwitch IBOutlet property. I'm nor sure why I am getting a memory leak warning for each line when using xcode analyzer. - (IBAction)copyEntirePreviousNoteButtonClicked:(id)sender { self.myUISwitch1.on = TRUE; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update Android kernel with zImage? I have changed Android kernel settings and re-built it. I was trying to replace the original kernel installed on my device(Galaxy Tab 7.0) to the new kernel I built. I have zImage on my host machine and I have sdcard in my device. Thanks in advance..
{ "language": "en", "url": "https://stackoverflow.com/questions/7616625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: working out geoloction lat long Given a shape not just a circle or a square or triangle, but a shape with any number of edges, if the shape were to be drawn on a map how would I find if Lat long coordinates where within that shape? A: wikipedia to the rescue. Describes solution in the Cartesian plane but that could...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating mip levels for a 2D texture array I've got a simple (I think) question about OpenGL texture arrays. I create my texture array with something like the following: glTexImage3D( GL_TEXTURE_2D_ARRAY, 0, formatGL, width, height, slices, 0, GL_RGBA, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I map table inheritance in a legacy database? I am finding it very difficult to map a legacy database. Here is the scenario: A contractor applies for a new license. The license is queried and displayed. The contractor modifies any information that needs to be modified. And upon completion an application...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby on Rails 3: How to access an attribute of each record in a has_many query I wasn't sure how to phrase it in the title, but what I'm trying to do the following. I have 2 models that have the following relationships: class Campaign < ActiveRecord::Base has_many :points end class Point < ActiveRecord::Base ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Parameter is not type-compatible with formal parameter when method is called from FM A static public class method, zcl_abc=>dosomething, has an importing parameter it_lines type TLINE_T optional And there is a FM called zfm_dosame. It has a parameter TABLES IT_LINES TYPE TLINE_T OPTIONAL zfm_dosame calls z...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Tooltip with jquery and css How can make a tooltip with jquery and css for following HTML? (i mean, this is that when mouse enter on li a displaying content class show_tooltip) <ul> <li> <a href="#">about</a> <div class="show_tooltip"> put returns between paragraphs </div> </li> <li>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: UIView transitionWithView doesn't work Here is viewDidLoad from the main view controller in the test project: - (void)viewDidLoad { [super viewDidLoad]; UIView *containerView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, 300, 300)]; [self.view addSubview:containerView]; UIView *redView = [[UIView alloc] i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: TableLayout not shrink all images I am trying to to create a table of 8x5 images as: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TableLayout table = new TableLayout(this); table.setStretchAllColumns(true); table.setShrinkAllColumns(true); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fit two divs side by side horizontally? How to sit two divs side by side horizontally using css, where the direction of the container DIV is from right to left ? A: <div style="float:right;"> Right div </div> <div> Left div </div> A: <div style="width:960px;overflow:hidden;"> <div style="float:ri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Google Maps API v3: Custom styles for infowindow I've tried many of the examples from the google maps reference and from other stackoverflow questions, but I haven't been able to get custom styles on my infowindow. I am using something very similar to what was done in this other stackoverflow answer Here it is worki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Faster way to jump to specific autocomplete option Say somewhere in my Vim buffer that I have the following: function foo() { return 'funday, funky, funnel cake'; } Now I want to create a new function below this.. I start typing fun and hit Tab to bring up my autocomplete menu. In that menu, I get (in this hypo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: BootupReceiver in Android 3.1 I want to know if there are any changes in boot up event in Android 3.1+, I do not recieve it in 3.1 whereas on android 2.2 it works fine A: Yes Starting from Android 3.1, the system's package manager keeps track of applications that are in a stopped state and provides a means of contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access 2007 vba How to link a query to a button that will fill a field in a form? Since everyone has been so helpful to me as a Access/SQL/VBA newbie, I thought I'd try another question. I'm building a system tracking form for some of our information assurance processes and I've got a button on a form that I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I force a read to pass So I am writing a simple shell. The relevant codes are posted below. void sig_int_handler(int signum) { if (pid == -1) // do nothing else kill(...); } signal(SIGINT, sig_int_handler); .. while(1) { pid = -1; printf(COMMAND_PROMPT); input_len = read(...); if o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Algorithm to match a sequence in a given n*m matrix I have a matrix which is of n*m dimension and i intend to match a set of numbers with the given matrix. It is pretty straight forward if the pattern falls in the vertical or horizontal column of the matrix , but if the pattern falls in a diagonal fashion , i am un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python: print "word" in [] == False Going a bit mental here trying to work out what this does in python: print "word" in [] == False Why does this print False? A: Just like you can chain operators in 23 < x < 42, you can do that with in and ==. "word" in [] is False and [] == False evaluates to False. Therefore, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I invoke the constructor of a Scala abstract type? I'm trying to figure out how to invoke a constructor for a Scala abstract type: class Journey(val length: Int) class PlaneJourney(length: Int) extends Journey(length) class BoatJourney(length: Int) extends Journey(length) class Port[J <: Journey] { def st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Overlapping trees in L-system forest I created an a program using python's turtle graphics that simulates tree growth in a forest. There's 3 tree patterns that are randomly chosen, and their starting coordinates and angles are randomly chosen as well. I chose some cool looking tree patterns, but the problem I'm havi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Searching for unicode surrogates in Acrobat Pro using javascript I wanted to search for Japanese text using the Acrobat Javascript API (search.query). Everything works fine except for the code range 0xD800~0xDFFF (Unicode surrogate code points). I have tried copy and pasting the text I want to search for into my .j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Read a file and store arbitrary values into a variable in bash script I'm new to bash scripting and I'm having a hard time to figure out this problem. I have about two hundred files that follow this pattern: ANÁLISE DA GLOSA FUNGICIDA A ANÁLISE RESULTA EM: S='Glosa02626354' = "agente que destrói ou previne o crescim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I fix the bug in the sudoSlider jQuery plugin? I am using the sudoSlider jQuery plugin to make a html slider on my site. I have created buttons at the bottom that work as slide choosers but when it slides across it bounces back again. This is the site: http://vermilionsite.com/RedFox/index.html I can't figure...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Order of python notifications with notify() Let's say I have the following code: master_lock = Lock() x = Condition(master_lock) y = Condition(master_lock) z = Condition(master_lock) def foo_z(): with master_lock: x.notify() y.notify() z.wait() def foo_y(): with master_lock: x.notify() z...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Israel streets names storage with API to c#? I write c# code that gets as an input string an Israeli address plus additional data. I want to match only the address. i.e. "CompanyA 02-4673889 myStreet 8, myCity" "Best X-store myStreet 877 indestirial area myCity" I thought that my c# could search for a city from a 7...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Backbone Collection produces error when receiving server response I'm making a twitter client for my own friends, and im making it using Backbone.js and a php backend using Twitter oAuth API. So here's the scenario: * *user authenticates *backbone app initializes and sends a first request: window.timeline.fetch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent multiple instances of Activity but still use onActivityResult I have an activity that I want to exist only once, no matter how many times it is opened. Previously I was using launchMode singleTask, and everything was working great. However, now I need to be using onActivityResult, which for some reason is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: access QWebPage object from WebView QML element Is there a way to access the QWebPage object from WebView's underlying QWebView object? QWebView has: QWebPage * QWebView::page () const src: http://doc.qt.nokia.com/4.7-snapshot/qwebview.html#page However it doesn't seem to be exposed in QML A: I haven't tryed it, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the proper way to handle asynchronicity in nodeunit? I'm brand-spanking new to the whole stack - javascript, node.js, coffeescript, nodeunit. Think I should do it step by step? You're probably right, but I still am not going to do it. Here is the test file: testCase = require('nodeunit').testCase Server = r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Win32 memory allocation with large alignment I need to allocate large regions of memory (megabytes) with large alignments (also potentially in the megabyte range). The VirtualAlloc family of functions don't seem to provide options to do this. What I do on Linux to achieve this is to mmap a larger region - large eno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Deconstructing types in Haskell I've defined the following type in Haskell: data AE = Num Float | Add AE AE | Sub AE AE | Mult AE AE | Div AE AE deriving(Eq, Read, Show) Now how do I deconstruct it? Specifically, how would I complete a function as follows: testFunct :: AE -> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to enable GZip compression in a self-hosted RESTful WCF webservice? I have a RESTful WCF web service written in C# using .NET 4.0, and I'd like the responses to be compressed using GZip or deflate. (I might need to support compression for requests too, but that is not yet a requirement). It will be deployed as a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Regex(sed): How to form replace pattern according to a variable? I need to append a ".dev" or a ".prd" to a machine name depending on which domain they're in. The domain can be determined in the machine name, since they all follow the same pattern: hostd(..) for dev machines and hostp(..) for production machines. He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I combine multiple operator statements into one statement in PHP? For example, I've always did something like if($word=='hi' || $word=='test' || $word=='blah'... This can become quite long. If there a simple way to combine these statements into one statement? A: The best way I can think of is using in_array...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL - Transferring data I have a date column (Date, INDEX) in my MySQL database but because I have some advanced date queries to make, I have to transfer the day and month in to a new column, 'shortDate'. The advanced queries include seasonal searches, so I can search for all photos from summer/winter/autumn/sprin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a TreeView with fixed column like Blend's I am trying to implement something like this. The problem is how to have scrollbar at bottom and fixed collumn at the right ? I am using WPF 4.
{ "language": "en", "url": "https://stackoverflow.com/questions/7616734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: KnockoutJS - force number for specific field using ko.mapping plugin When I use ko.mapping.toJSON it converts any changes I made into strings and they need to be numbers. I tried using the custom mapping like so: var mapping = { 'y': { update: function(options) { return parseFloat(opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MediaWiki - four garbage characters before HTML content for 404 So I've just installed MediaWiki for the first time and am having a weird problem which I can't find a solution to. I have been crawling the help docs, searching Google and reading articles for the last couple of hours and can't find an answer. Everythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Templated function can't be found, despite being declared I have a code example here: http://codepad.org/9JhV7Fuu With this code: #include <iostream> #include <vector> #include <map> #include <list> #include <set> namespace Json { template <typename ValueType> struct Value { Value() {} Value(int) {} Val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are these symbols next to "merge mode by recursive" in git merge? When I use git pull [project name] master to update my core files, I get a bunch of green plus and red minus signals under "merge made by recursive." What are these symbols and what do they mean? Here's a screenshot: Thank you for your help. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Really simple PHP array key-value issue Let's say I have the following table in my database: Name | Description | Image App | Some description | somefile.png Another App | Another descript | anotherfile.png What I want to do is create a JSON array like this: { "App": { "name": "App"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Override 'border:none' to Overcome Safari Select Bug? We've just discovered a pretty random bug in Safari (at least on Mac). It seems that Safari doesn't like a border style applied to a <select> tag. It will do different things depending on the version of Safari, from kind of working to no drop-down to refre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ how to store data as a 32 bit unsigned int I am looking to store a piece of data as a 32 bit unsigned int in c++. Any ideas of how to do this? I was thinking about using a char somehow but im not sure how it would work A: To use cross platform standards, you can use uint32_t variable; Be sure to include "std...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: How to implement command line coloration? Possible Duplicate: color text in terminal aplications in unix I am working on a small Unix shell (written completely in C), and am wondering how to copy bash's prompt coloring technique. Are there libraries to do that? Has anyone ever tried them? A: You can use simple s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - Delayed HTML function I have an issue with doing two .html()'s in the same function cause the first one is getting overrun by the second. Any thoughts? This function is getting called when another action is taken, it is working fine, but when I put in the delay and the 2nd html() it doesn't work. Thanks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One-to-Many relationship on Core Data I am having trouble with Core Data, on a one to many relationship. I have two entities, say Class and Pupils. A class can have many pupils, but a pupil belongs to only one class. I can list the Class items and put them in a UITableView object. I can also list the Pupils items an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert an NSDictionary to a JSON object? I'm still learning JSON, and using SBJSON. How would I go about taking an NSDictionary and converting it into a JSON object similar to this: {"id":"123","list":"456","done":1,"done_date":1305016383} A: Use the category that SBJSON adds to NSDictionary: NSString *js...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: even when emacsclient is started in a terminal, window-system is non-nil I want to call some functions when I run emacsclient in a terminal emulator. The code I have works when Emacs is started in a text-only terminal. When I start Emacs in graphical mode and run emacsclient -t in a terminal, the functions do not ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to process uploaded photos in Django web app? I am building a web app using Django. I want users to be able to upload photos using an upload form, and then on submission, the server side code takes the photo, make thumbnails for it and also resize the photo to different sizes, each saved as a separate file. Thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UINavigationController, rootViewController with UITabBarController I have a UITabBarController. One tab is a UINavigationController where it's rootViewController is a subclass of UIViewController. In my rootViewController, in my viewDidLoad, I push the first of three ViewControllers. Based on which UISegmentedCon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert array of enum values to bit-flag combination How to create a bit-flag combination from an array of enum values in the simplest most optimal way in C# 2.0. I have actually figured out a solution but I am just not satisfied with the complexity here. enum MyEnum { Apple = 0, Apricot = 1, Breadfruit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: sending a file using DataOutputStream in java I am trying to build a client that sends the file size and contents to server. I am trying to use DataOutputStream. I am assuming that I need to open the file and and get size of file and read the contents and send it. But I am not sure how to implement those because I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android client socket closed randomly ONLY if using 3G connection, NOT wifi connection I have a Java network server running online on a dedicated server, and I have an Android network client written with Android SDK and java. It's working fine if the android device is connected with WIFI, but if I connect the device...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android call log reading Hello guys I am facing a problem when I read the CallLog the values of the number are 0 and when I read for example the cached name its 2 here is my code and I put the permission String[] fields = { android.provider.CallLog.Calls.NUMBER, android.provider.CallLog.Calls.TYP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }