text stringlengths 74 309k |
|---|
{"title":"ffmpeg.c what are pts and dts ? what does this code block do in ffmpeg.c?","tags":["c","ffmpeg"],"question_text":"In simple terms what are pts and dts values?\nWhy are they important while transcoding [decode-encode] videos ?\nWhat does this code bit do in\nffmpeg.c\n, what is its purpose?\n`01562 ist->next_p... |
{"title":"how to persist cookies between different casperjs processes","tags":["node.js","session","cookies","phantomjs","casperjs"],"question_text":"this is a question about how to persist cookies from one casperjs page to another..\nso basically i got a nodejs file that spawns casperjs as a worker to do certain tasks... |
{"title":"Styling Form with Label above Inputs","tags":["html","css"],"question_text":"I would like to produce the following form style:\nName Email\n[.................] [.................]\nSubject\n[.................]\nMessage\n[.........................................]\n[.........................................]\n... |
{"title":"MySql: Show columns but exclude everything except the field names","tags":["mysql","table","describe"],"question_text":"I'd like to pull a table's field names from MySql into python, and I know that\n`'show columns from project'`\nwill work. And I've read that you can add 'WHERE ...' to restrict it to just ce... |
{"title":"rspec route testing and hosts","tags":["ruby-on-rails","ruby","rspec","host","hostname"],"question_text":"I see I can test routes with rspec like this:\n`get(\"\/\").should route_to(\"welcome#index\")`\nbut I have constraints based on the hostname or parts of hostnames and redirects between several ones. How ... |
{"title":"How to round time to the nearest quarter hour in JavaScript?","tags":["javascript","time"],"question_text":"For example:\n`Given time: 08:22 => Rounded to: 08:15\nGiven time: 08:23 => Rounded to: 08:30`\nShould be pretty simple. But all I was able to produce is lengthy, not very good code to solve the issue. ... |
{"title":"How to set Column Type when using EPPlus","tags":["epplus"],"question_text":"I'm using\n`EPPlus`\nto generate\n`Excel`\nfiles, in DAL I'm populating\n`DataTable`\n, filling data into table, and passing table to Presentation Layer. From there I'm using\n`LoadFromDataTable()`\nmethod to generate\n`Excel`\nfile.... |
{"title":"Bind to a method in WPF?","tags":[".net","wpf","data-binding","xaml"],"question_text":"How do you bind to an objects method in this scenario in WPF?\n`public class RootObject\n{\n public string Name { get; }\n public ObservableCollection<ChildObject> GetChildren() {...}\n}\npublic class ChildObject\n{\n publi... |
{"title":"why gradient descent when we can solve linear regression analytically","tags":["machine-learning","linear-regression","gradient-descent"],"question_text":"what is the benefit of using Gradient Descent in the linear regression space? looks like the we can solve the problem (finding theta0-n that minimum the co... |
{"title":"Ajax File Download using Jquery, PHP","tags":["php","jquery","ajax"],"question_text":"I want to use the ajax functionality to download whereby the user will click the download link which will (using ajax and $_GET) access a PHP file which will process the sent $_GET variables and access the correct file for d... |
{"title":"Can jQuery check whether input content has changed?","tags":["javascript","jquery","input","onchange"],"question_text":"Is it possible to bind javascript (jQuery is best) event to \"change\" form input value somehow?\nI know about\n`.change()`\nmethod, but it does not trigger until you (the cursor) leave(s) t... |
{"title":"Using a variable with the same name in different spaces","tags":["c++","c","variable-declaration"],"question_text":"This code compiles, but I have a run time error in\nVisual Studio\n:\nRun-time check failure #3 - the variable 'x' is being used without being initialized...\n`int x = 15;\nint main()\n{\n int x... |
{"title":"git working on two branches simultaneously","tags":["git","branch"],"question_text":"I have project with many branches.\nI would like to work on\nseveral\nbranches simultaneously without switching back and forth with\n`git checkout`\n.\nIs there any way I can do that besides copying whole repository somewhere... |
{"title":"Rails: I can't call a function in a module in \/lib - what am I doing wrong?","tags":["ruby-on-rails","ruby"],"question_text":"I know I'm doing something stupid or failing to do something intelligent - I'm frequently guilty of both.\nHere's an example of what's causing me pain:\nI have a module saved in \/lib... |
{"title":"node error cannot find module already installed","tags":["node.js","module","npm"],"question_text":"[root@zexu websocket_start]# npm ls -g installed\nnpm WARN ls doesn't take positional args. Try the 'search' command\nnpm WARN websocket-server@1.4.04 package.json: bugs['web'] should probably be bugs['url']\n\... |
{"title":"How does the Python conditional operator workaround work?","tags":["python","indexing","boolean","conditional-operator"],"question_text":"From what I have read, I found that a built-in ternary operator does not exist (I will be happy to know more about it.).\nI found the following code as a substitute:\n`def ... |
{"title":"how to align text vertically center in android","tags":["android","android-layout","text"],"question_text":"I have arabic text, therefore I set gravity to right in order to start text from right side. Text starts from right now. But another issue is text starts to render from the top of the page. But I need t... |
{"title":"Read a XML (from a string) and get some fields - Problems reading XML","tags":["c#",".net","xml","parsing","xml-parsing"],"question_text":"I have this XML (stored in a C# string called\n`myXML`\n)\n`<?xml version=\"1.0\" encoding=\"utf-16\"?>\n<myDataz xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance... |
{"title":"How to capture a backspace on the onkeydown event","tags":["javascript","onkeydown"],"question_text":"I have a function that is triggered by the\n`onkeydown`\nevent of a textbox. How can I tell if the user has hit either the backspace key or the del key?","answer_text":"Try this:\n`document.addEventListener(\... |
{"title":"Unique key vs. unique index on SQL Server 2008","tags":["sql","sql-server","sql-server-2008","tsql","sql-server-2008-r2"],"question_text":"I have a table called\n`countries`\nand I define the\n`country_name`\ncolumn to be unique by creating a \u00e2\u0080\u009cIndex\/Key\u00e2\u0080\u009d of type \u00e2\u0080... |
{"title":"What is your preferred style for naming variables in R?","tags":["r","coding-style","naming-conventions"],"question_text":"Which conventions for naming variables and functions do you favor in R code?\nAs far as I can tell, there are several different conventions, all of which coexist in cacophonous harmony:\n... |
{"title":"RedirectToAction not working","tags":["asp.net-mvc"],"question_text":"I tried using a\n`RedirectToAction`\nafter I have done a post to the controller and saved but the URL does not change and the redirect does not seem to work. I need to add that the redirect does enter the controller action method when I deb... |
{"title":"Getting the substring from a certain character in NSString","tags":["iphone","objective-c","nsstring"],"question_text":"If I have an NSString that is initially:\n`\"ABCDE*FGHI\"`\nHow do I make it turn into\n`\"FGHI\"`\nIn other words, everything from the asterisk onwards is kept.\nLikewise, how would I turn ... |
{"title":"How to display encoded HTML as decoded in MVC 3 Razor?","tags":["asp.net-mvc","asp.net-mvc-3","c#-4.0","razor"],"question_text":"I'm using Razor in MVC 3 and Asp.net C#.\nI have a View with the following code.\n`model.ContentBody`\nhas some HTML tags.\nI would need display this HTML content as\nDECODED\n.\nHo... |
{"title":"What's the easiest way to remove empty NSStrings from an NSArray?","tags":["iphone","objective-c"],"question_text":"In PHP it's one line of code:\n`$array_without_empty_strs = array_filter($array_with_empty_strs);`\nWhat's the objective C equivalent?\nUPDATE - Added the following test code to illustrate the u... |
{"title":"What is the difference between square brackets and parentheses in a regex?","tags":["regex"],"question_text":"Here is a regular expression I created to use in JavaScript:\n`var reg_num = \/^(7|8|9)\\d{9}$\/`\nHere is another one suggested by my team member.\n`var reg_num = \/^[7|8|9][\\d]{9}$\/`\nThe rule is ... |
{"title":"The relative virtual path '' is not allowed here","tags":["asp.net","visual-studio-2010"],"question_text":"Any ideas what this problem is? cheers","answer_text":"It looks like you're trying to pass\n`MapPath`\na page-relative path (\n`..\/.....`\n) instead of a virtual path (\n`~\/.....`\n).","question_code":... |
{"title":"Is there a vim plugin for preview markdown file?","tags":["vim","markdown"],"question_text":"I love the marked and Mou editor which have the great capability to preview the rendering result on the fly. So I'm wondering is there a way to do the sam thing in vim?","answer_text":"You're in luck - I've just writt... |
{"title":"How can I disable PHP's \"easter egg\" URLs?","tags":["php"],"question_text":"I recently found out about the so-called\n\"easter egg URLs\"\nin PHP:\nThese are the four QUERY strings you can add to the end of a PHP web page to view a (somewhat) hidden image or web page:\n`?=PHPE9568F36-D428-11d2-A769-00AA001A... |
{"title":"Amazon EC2 keypair recovery","tags":["amazon-ec2"],"question_text":"I need to know of any way to access a running instance in Amazon EC2.\nI DON'T have the original keypair \".pem\" file\nI DO have access to the aws management console\nTerminating\/rebooting is not feasible\nthe closest to my question I have ... |
{"title":"Get array of property value of each object in another array without a for loop","tags":["objective-c","ios"],"question_text":"This might be a basic question, but I can't seem to find an answer.\nSuppose I have an NSArray (carArray) with objects of a certain type (Car).\nIs it possible to get an NSArray (color... |
{"title":"Get a CSS value from external style sheet with Javascript\/jQuery","tags":["javascript","jquery","css"],"question_text":"Is it possible to get a value from the external CSS of a page if the element that the style refers to has not been generated yet? (the element is to be generated dynamically).\nThe jQuery m... |
{"title":"How can I tail a remote file?","tags":["perl","scripting","ssh","tail","netcat"],"question_text":"I am trying to find a good way to tail a file on a remote host. This is on an internal network of Linux machines. The requirements are:\nMust be well behaved (no extra process laying around, or continuing output)... |
{"title":"What is the meaning of id?","tags":["objective-c","types"],"question_text":"I am (trying to) learn Objective-C and I keep coming across a phrase like:\n`-(id) init;`\nAnd I understand\n`id`\nis an Objective C language keyword, but what does it mean to say \"the compiler specifically treats\n`id`\nin terms of ... |
{"title":"uWSGI can not load libssl.1.0.0.dylib","tags":["osx","uwsgi","libssl"],"question_text":"When I call\n`uwsgi`\n, it always shows the following:\n`dyld: Library not loaded: libssl.1.0.0.dylib\n Referenced from: \/Users\/xingshi\/anaconda\/bin\/uwsgi\n Reason: image not found\nTrace\/BPT trap: 5`\nHere is all th... |
{"title":"Android JUnit Testing ... How to Expect an Exception","tags":["android","testing","junit"],"question_text":"Im attempting to write some tests using the built in android Junit testing framework. I am running into a problem with a test where I am expecting an exception to be thrown. In JUnit, the annotation for... |
{"title":"Doctrine_Core::getTable()->findAll() how to specify order?","tags":["php","symfony1","doctrine"],"question_text":"When using a\n`Doctrine_Table`\nobject, is it possible to specify the order of the returned collection when using\n`findAll()`\nor\n`findByWhatever()`\n?\nIn the\ndoc's\nI see some stuff about\n`g... |
{"title":"Proper way to stop TcpListener","tags":["c#","sockets","networking","tcplistener"],"question_text":"I am currently using TcpListener to address incoming connections, each of which are given a thread for handling the communication and then shutdown that single connection. Code looks as follows:\n`TcpListener l... |
{"title":"How to change the star images of the RatingBar?","tags":["android","ratingbar"],"question_text":"With\n`Android SDK 1.1 r1`\n, is there any way to change the\n`RatingBar`\nwidget class's star image with my own? Is this possible at all? If so, then how?\nThanks.","answer_text":"Not sure about 1.1, but with 1.6... |
{"title":"Recursively ignoring files in the entire source tree in subversion","tags":["svn","tortoisesvn","version-control"],"question_text":"I am not new to Subversion, but I have up till now used Tortoise and never the commadn line. My question is, how do I ignore all files like *.o from the ENTIRE source not just th... |
{"title":"JSF request scoped bean keeps recreating new Stateful session beans on every request?","tags":["java-ee","jsf-2","ejb-3.0"],"question_text":"I'm building my first Java EE application using JSF, PrimeFaces, Glassfish and Netbeans. Because I'm new, it's possible I'm approaching the core problem wrong.\nCore pro... |
{"title":"Generic way of sorting JSON array by attribute","tags":["javascript","arrays","json","sorting"],"question_text":"I found out how to sort a JSON array at\nhttp:\/\/www.devcurry.com\/2010\/05\/sorting-json-array.html\nNow I want to sort it in a generic way; so that my sorting function knows which attribute to s... |
{"title":"Defined Edges With CSS3 Filter Blur","tags":["css3"],"question_text":"I am blurring some images with this code\n`img {\n filter: blur(5px);\n -webkit-filter: blur(5px);\n -moz-filter: blur(5px);\n -o-filter: blur(5px);\n -ms-filter: blur(5px);\n}`\nThe edges of the image get blurred too though. Is it possible... |
{"title":"Clone isn't cloning select values","tags":["jquery"],"question_text":"I didn't expect it but the following test fails on the cloned value check:\n`test(\"clone should retain values of select\", function() {\n var select = $(\"<select>\").append($(\"<option>\")\n .val(\"1\"))\n .append($(\"<option>\")\n .val(\... |
{"title":"C# LINQ First() faster than ToArray()[0]?","tags":["c#","linq"],"question_text":"I am running a test.\nIt looks like:\nmethod 1)\n`List<int> = new List<int>{1,2,4, .....} \/\/assume 1000k\nvar result ErrorCodes.Where(x => ReturnedErrorCodes.Contains(x)).First();`\nmethod 2)\n`List<int> = new List<int>{1,2,4, ... |
{"title":"Questions to answer before proposing to use a new language?","tags":["clojure"],"question_text":"What are the technical questions I simply must have answers for before I approach someone about introducing a new language?\nI'm looking for the list of technical questions that without a really good answer, I sho... |
{"title":"PHP ZIP files on the fly","tags":["php","forms","zip"],"question_text":"What's the easiest way to zip, say 2 files, from a folder on the server and force download? Without saving the \"zip\" to the server.\n`$zip = new ZipArchive();\n \/\/the string \"file1\" is the name we're assigning the file in the archiv... |
{"title":"Where exactly can I download the latest version of Scene Builder for Java?","tags":["java","scenebuilder"],"question_text":"I've searched around Oracle's sites and cannot find the actual executable to download. I get sites that point to older versions, or to the source of Scene Builder instead. I'm looking fo... |
{"title":"Why is *.tar.gz still much more common than *.tar.xz?","tags":["compression","zip","decompression","lzma","xz"],"question_text":"Whenever I see some source packages or binaries which are compressed with GZip I wonder if there are still reasons to favor gz over xz (excluding time travel to 2000), the savings o... |
{"title":"Get the year from specified date php","tags":["php","date"],"question_text":"I have a date in this format\n`2068-06-15`\n. I want to get the year from the date, using php functions. Could someone please suggest how this could be done.","answer_text":"`$date = DateTime::createFromFormat(\"Y-m-d\", \"2068-06-15... |
{"title":"How to apply same function to every specified column in a data.table","tags":["r","data.table"],"question_text":"I have a data.table with which I'd like to perform the same operation on certain columns. The names of these columns are given in a character vector. In this particular example, I'd like to multipl... |
{"title":"Any difference between \"await Task.Run(); return;\" and \"return Task.Run()\"?","tags":["c#","async-await"],"question_text":"Is there any conceptual difference between the following two pieces of code:\n`async Task TestAsync() \n{\n await Task.Run(() => DoSomeWork());\n}`\nand\n`Task TestAsync() \n{\n return... |
{"title":"How can I force ng-click to take precedence over an ng-blur event?","tags":["angularjs","blur"],"question_text":"When I click the save button it triggers an ng-blur event, how can I make the buttons ng-click event to trigger instead? I still want the ng-blur event to trigger if I click outsida the button or i... |
{"title":"drop trailing zeros from decimal","tags":["python","decimal"],"question_text":"I have a long list of Decimals and that I have to adjust by factors of 10, 100, 1000,..... 1000000 depending on certain conditions. When I multiply them there is sometimes a useless trailing zero (though not always) that I want to ... |
{"title":"How to hide the navigation bar in the page - wpf","tags":["wpf","uinavigationbar"],"question_text":"I want to hide the navigation bar in the page created using wpf. i have tried ShowsNavigationUI = false. but still it displaying the control.\nGeetha.","answer_text":"just tell in Your page Container , you want... |
{"title":"Fragment - removeGlobalOnLayoutListener IllegalStateException","tags":["android","android-view"],"question_text":"I'm trying to get the height and width of an\n`ImageView`\nin a\n`Fragment`\nwith the following\n`ViewTreeObserver`\n:\n`import android.view.ViewTreeObserver;\nimport android.view.ViewTreeObserver... |
{"title":"C++ Equivalent of %ld in Java for String.format()","tags":["java","string.format"],"question_text":"For instance,\n`%11.2lf`\nin C++ becomes\n`%11.2f`\nin Java.\nHow about for long format?","answer_text":"As you may have worked out, it's not necessary to specify the\n`l`\nflag. According to\nthe docs\n, a dec... |
{"title":"Django URLS, howto map root to app?","tags":["django","django-urls"],"question_text":"I am pretty new to django but experienced in Python and java webprogramming with different frameworks.\nI have made myself a nice little django app, but I cant seem to make it match www.mysite.com as opposed to www.mysite.co... |
{"title":"What is the purpose of the server.php file in Laravel 4?","tags":["php","laravel","laravel-4"],"question_text":"In the\n`\/app\/`\ndirectory in Laravel 4, there is a file called\n`server.php`\n. The contents of this file look like this:\n`<?php\n$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n$uri =... |
{"title":"Ruby 1.9.2 and Rails 3 cannot open rails console","tags":["ruby-on-rails","ruby","linux","ruby-on-rails-3","rubygems"],"question_text":"`[gkaykck@main myApplication]$ rails console\n\/usr\/local\/lib\/ruby\/1.9.1\/irb\/completion.rb:9:in `require': no such file to load -- readline (LoadError)\n from \/usr\/lo... |
{"title":"\"UpdateSourceTrigger=PropertyChanged\" equivalent for a Windows Phone 7 TextBox","tags":["c#","silverlight","windows-phone-7"],"question_text":"Is there a way to get a TextBox in Windows Phone 7 to update the Binding as the user types each letter rather than after losing focus?\nLike the following WPF TextBo... |
{"title":"LINQ Lambda Group By with Sum","tags":["c#","linq"],"question_text":"Hi I can do this in method syntax but I'm trying to improve my lambda skills how can I do:\n`SELECT SUM([job_group_quota]) as 'SUM'\nFROM [dbo].[tbl_job_session]\nWHERE [job_group_job_number] = @jobnum\nand [job_group_ID] like @sess\nGROUP B... |
{"title":"How do I make my Perl scripts act like normal programs on Windows?","tags":["windows","perl"],"question_text":"I want my Perl scripts to behave just like any other executable (*.exe file).\nWhen I double-click on\n`myscript.pl`\nI want it to execute instead of opening in a text editor.\nI want to run\n`myscri... |
{"title":"C++ trying to swap values in a vector","tags":["c++","vector","swap"],"question_text":"This is my swap function:\n`template <typename t>\nvoid swap (t& x, t& y)\n{\n t temp = x;\n x = y;\n y = temp;\n return;\n}`\nAnd this is my function (on a side note v stores strings) call to swap values but whenever I try... |
{"title":"Why does PHP consider 0 to be equal to a string?","tags":["php","string","numbers","evaluate"],"question_text":"I have the following piece of code:\n`$item['price'] = 0;\n\/*code to get item information goes in here*\/\nif($item['price'] == 'e') {\n $item['price'] = -1;\n}`\nIt is intended to initialize the i... |
{"title":"How can I add Version info to my Console Applications?","tags":["delphi","ide","console-application","versioning"],"question_text":"It appears to be what console application projects generated by IDE's intrinsic wizard cannot have version resource\nmanaged by IDE\n`<- note the emphasis here`\n.\nIs there any ... |
{"title":"RabbitMQ 3.3.1 can not login with guest\/guest","tags":["rabbitmq"],"question_text":"I have installed the latest version of RabbitMQ on a VPS Debian Linux box. Tried to get login through guest\/guest but returned with the message\nlogin failed\n. I did a little research and found that for security reason its ... |
{"title":"Rails' ActiveRecord serialize :attr method gives \"Missing Class or module error\"","tags":["ruby-on-rails","ruby","serialization","activerecord"],"question_text":"I'm trying to serialize a simple attribute in an ActiveRecord model, and Rails 2.3.4 doesn't like it.\n`class Shopper\n serialize :tags\nend\n>> a... |
{"title":"Guard::RSpec error: No cmd option specified, unable to run specs","tags":["ruby","ruby-on-rails-4","rspec","guard","specifications"],"question_text":"After upgrading to guard 2.6.1 guard stopped executing specs for changed file\n`13:27:09 - INFO - LiveReload is waiting for a browser to connect. \n13:27:09 - I... |
{"title":"Save cURL content result into a string in C++","tags":["c++","curl"],"question_text":"`int main(void)\n{\n CURL *curl;\n CURLcode res;\n curl = curl_easy_init();\n if(curl) {\n curl_easy_setopt(curl, CURLOPT_URL, \"http:\/\/www.google.com\");\n curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);\n curl_easy_s... |
{"title":"How do I switch my CSS stylesheet using jQuery?","tags":["jquery","css","themes","stylesheet"],"question_text":"What I'm working on is simple.\nYou click on a button\n`(id=\"themes\")`\nand it opens up a div\n`(id=\"themedrop\")`\nthat slides down and lists the themes. (I only have two at this point)\n`<butto... |
{"title":"Get int from String, also containing letters, in Java","tags":["java","integer"],"question_text":"How can I get the int value from a string such as\n`423e`\n- i.e. a string that contains a number but also maybe a letter?\n`Integer.parseInt()`\nfails since the string must be entirely a number.","answer_text":"... |
{"title":"Django - Get only date from datetime.strptime","tags":["python","django","datetime"],"question_text":"I have start date field in database as date (not datetime). In my save method in forms.py I'm using\n`datetime.strptime(date_string, '%Y-%m-%d')`\nto convert string to date. The method returns me formatted da... |
{"title":"How can I make a WPF window maximized on the screen with the mouse cursor?","tags":[".net","wpf","dual-monitor","maximize","windowstate"],"question_text":"According to the MSDN documentation for the\nWindowStartupLocation Property\n:\nSetting CenterScreen causes a window to be positioned in the center of the ... |
{"title":"What is the difference between a click and mouseclick?","tags":["c#","winforms"],"question_text":"What is the difference between a click and mouseclick?","answer_text":"Assuming you're referring to WinForm Control events, from the MSDN documentation for\nControl.Click\n:\nThe Click event passes an EventArgs t... |
{"title":"No property found for type error when try to create custom repository with Spring Data JPA","tags":["java","spring","repository","spring-data-jpa"],"question_text":"I have a Media entity that has some basic fields for files uploaded by the user. For saving the bytes of the files uploaded, I want to create a c... |
{"title":"Is there a way to zoom the Visual Studio text editor with a keyboard shortcut?","tags":["visual-studio","visual-studio-2010"],"question_text":"Yesterday I found myself needing to zoom my Visual Studio 2010 text editor and was without a mouse (don't ask). Typically I do this by holding down\nCTRL\nand scrollin... |
{"title":"Django post_save preventing recursion without overriding model save()","tags":["python","django","django-signals"],"question_text":"There are many Stack Overflow posts about recursion using the\n`post_save`\nsignal, to which the comments and answers are overwhelmingly: \"why not override save()\" or a save th... |
{"title":"CodeIgniter: Decision making for creating of library & helper in CodeIgniter","tags":["design","codeigniter","design-patterns"],"question_text":"After developing in CodeIgniter for awhile, I find it difficult to make decisions when to create a custom library and when to create a custom helper.\nI do understan... |
{"title":"Android Google Maps: disable dragging in MapFragment","tags":["android","google-maps","drag","mapfragment"],"question_text":"Can I disable drag functionality when the user tries to drag the map with his fingers without disturbing the Zoom in and Zoom out?\nAny one please suggest an idea of doing this!\n Thank... |
{"title":"implicit conversion of an Objective-C pointer to 'void *' is disallowed with ARC","tags":["objective-c","core-audio","automatic-ref-counting"],"question_text":"What does this mean and what alternative do I have?\n`implicit conversion of an Objective-C pointer to 'void *' is disallowed with ARC`\nI am porting ... |
{"title":"Add java library to Android Studio project with maven repository","tags":["java","android","maven","gradle","android-studio"],"question_text":"I want to try this\nlibrary\nin my android project. I am using\nAndroid Studio 0.4.6\n.\nThe\nREADME.markdown\nfile tells me to insert this inside\npom.xml\n:\n`<!-- i... |
{"title":"How to view the identity of person who signed the apk on Android device?","tags":["android","certificate","signature","apk"],"question_text":"I need to view who signed the application I have installed onto my device. Is this generally possible to do on the device or on PC?","answer_text":"(assuming you can ob... |
{"title":"How to add string objects to NSMutableArray","tags":["objective-c","nsmutablearray"],"question_text":"I have an NSMutableArray named randomSelection:\n`NSMutableArray *randomSelection;`\nI am then trying to add strings to this array if certain criteria are met:\n`[randomSelection addObject:@\"string1\"];`\nI ... |
{"title":"Sql server real datatype, what is the C# equivalent?","tags":["c#","sql-server"],"question_text":"What is the C# equivalent to the sql server 2005 real type?","answer_text":"it is a Single\nsee\nhere\nfor more info on SQL Server to .Net DataTypes","question_code":[],"answer_code":[],"retrieval_text":"\n### TI... |
{"title":"What are the Clojure time and date libraries?","tags":["clojure"],"question_text":"I couldn't find libraries dealing with Time and Date in\nhttp:\/\/clojure.org\/libraries\n. Are there any, or is this something I have to figure out how to do directly with Java?","answer_text":"clj-time\nis a wrapper around Ja... |
{"title":"In eclipse, reveal current file in filesystem","tags":["eclipse","plugins","filesystems"],"question_text":"In eclipse, is there a way, to reveal the currently selected file in the filesystem.\nI currently need it to open in explorer, but it could also be in finder or nautilus.\nBasically, I do not need the \"... |
{"title":"Is it bad to explicitly compare against boolean constants e.g. if (b == false) in Java?","tags":["java","coding-style","boolean"],"question_text":"Is it bad to write:\n`if (b == false) \/\/...\nwhile (b != true) \/\/...`\nIs it\nalways\nbetter to instead write:\n`if (!b) \/\/...\nwhile (!b) \/\/...`\nPresumab... |
{"title":"How can I reorder rows in sql database","tags":["sql"],"question_text":"Is it possible to reorder rows in SQL database?\nFor example; how can I swap the order of 2nd row and 3rd row's values?\nThe order of the row is important to me since i need to display the value according to the order.\nThanks for all the... |
{"title":"What does \"@UIApplicationMain\" mean?","tags":["swift"],"question_text":"I just created my first Swift project, and in the AppDelegate.swift there is a line above a class declaration why is it here?!\n`...\nimport UIKit\nimport CoreData\n@UIApplicationMain \/\/ <- WHY IS IT HERE?\nclass AppDelegate: UIRespon... |
{"title":"Autoloading classes in PHPUnit using Composer and autoload.php","tags":["php","namespaces","phpunit","autoload","composer-php"],"question_text":"I have just installed PHPUnit version 3.7.19 by Sebastian Bergmann via Composer and have written a class I would like to unit test.\nI would like to have all my clas... |
{"title":"java.util.logging.Logger doesn't respect java.util.logging.Level?","tags":["java","logging"],"question_text":"In plain Java SE 6 environment:\n`Logger l = Logger.getLogger(\"nameless\");\nl.setLevel(Level.ALL);\nl.fine(\"somemessage\");`\nNothing shows up in Eclipse console.\nl.info(\"\")\nand above works jus... |
{"title":"MySQL datatype INT(11) whereas UNSIGNED INT(10)?","tags":["mysql","types","int","unsigned-integer"],"question_text":"in MySQL if we create a field dataType of\n`INT`\nand does not specify any length\/values then it automatically became\n`int(11)`\nand if we set the attribute\nUNSIGNED\nor\nUNSIGNED ZEROFILL\n... |
{"title":"Count of \"Defined\" Array Elements","tags":["javascript","undefined"],"question_text":"Given following array:\n`var arr = [undefined, undefined, 2, 5, undefined, undefined];`\nI'd like to get the count of elements which\nare\ndefined (i.e.: those which are\nnot\n`undefined`\n). Other than looping through the... |
{"title":"NULL pointer with boost::shared_ptr?","tags":["c++","boost",null,"pointers","shared-ptr"],"question_text":"What's the equivalent to the following:\n`std::vector<Foo*> vec;\nvec.push_back(NULL);`\nwhen dealing with\n`boost::shared_ptr`\n? Is it the following code?\n`std::vector< boost::shared_ptr<Foo> > vec;\n... |
{"title":"jquery e.target.hasClass not working","tags":["jquery","events","onclick","classname"],"question_text":"I dynamically create a new\n`div`\n(with a \"textbox\" class and ID), and some other elements inside of it, and later on in my code I bind that\n`div`\nto the click event, and display the element clicked, l... |
{"title":"Calculating Time Difference","tags":["python","time"],"question_text":"at the start and end of my program, I have\n`from time import strftime\nprint int(strftime(\"%Y-%m-%d %H:%M:%S\")\nY1=int(strftime(\"%Y\"))\nm1=int(strftime(\"%m\"))\nd1=int(strftime(\"%d\"))\nH1=int(strftime(\"%H\"))\nM1=int(strftime(\"%M... |
{"title":"Scroll part of content in fixed position container","tags":["css","overflow"],"question_text":"I have a\n`position: fixed`\ndiv in a layout, as a sidebar. I've been asked to have part of it's content stay fixed to the top of it (internally), and the rest to scroll\nif it overflows the bottom of the div\n.\nI'... |
{"title":"SOAP faults or results object?","tags":["web-services","exception-handling","soapfault"],"question_text":"I was having a discussion about this with a co-worker and we couldn't come to an agreement, so I wanted to get your thoughts. I have my own opinions on this, but I won't spoil it for you.\nWhen should I b... |
{"title":"How to add all items in a String array to a vector in Java?","tags":["java","string","arrays","vector","add"],"question_text":"My code looks like this :\n`Vector<String> My_Vector=new Vector<String>();\nString My_Array[]=new String[100];\nfor (int i=0;i<100;i++) My_Array[i]=\"Item_\"+i;\n......\nMy_Vector.add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.