text stringlengths 74 309k |
|---|
{"title":"Windows batch: sleep","tags":["windows","shell","batch-file","scripting"],"question_text":"How do I get a Windows batch script to wait a few seconds?\n`sleep`\nand\n`wait`\ndon't seem to work (unrecognized command).","answer_text":"You can try\n`ping -n XXX 127.0.0.1 >nul`\nwhere XXX is the number of seconds ... |
{"title":"Is there a built-in method to compare collections in C#?","tags":["c#",".net"],"question_text":"I would like to compare the contents of a couple of collections in my Equals method. I have a Dictionary and an IList. Is there a built-in method to do this?\nEdited:\nI want to compare two Dictionaries and two ILi... |
{"title":"Howto update 'title in jQuery UI Dialog?","tags":["title","jquery-ui-dialog"],"question_text":"Possible Duplicate:\njQuery ui dialog change title after load-callback\nI like to change the title from an UI Dialog after i have submitted a form in this UI Dialog. So in the callback-function after\n`load`\ni shou... |
{"title":"How do I strip non alphanumeric characters from a string and keep spaces?","tags":["ruby-on-rails","ruby","regex","ruby-on-rails-3"],"question_text":"I want to create a regex that removes all non-alphanumber characters but keeps spaces. This is to clean search input before it hits the db. Here's what I have s... |
{"title":"Auto expand a textarea using jQuery","tags":["jquery"],"question_text":"How can I make a textarea automatically expand using jQuery?","answer_text":"If you dont want a plugin there is a very simple solution\n`$(\"textarea\").keyup(function(e) {\n while($(this).outerHeight() < this.scrollHeight + parseFloat($(... |
{"title":"How to keep indent for second line in ordered lists via CSS?","tags":["html","css","html-lists"],"question_text":"I want to have an \"inside\" list with list bullets or decimal numbers being all flush with superior text blocks. Second lines of list entries have to have the same indent like the first row!\nE.g... |
{"title":"How do you crash a JVM?","tags":["java","jvm"],"question_text":"I was reading a book on programming skills wherein the author asks the interviewee, \"How do you crash a JVM?\" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory.\nAnybody has any idea?","a... |
{"title":"How to detect when a UIScrollView has finished scrolling","tags":["iphone","uiscrollview"],"question_text":"UIScrollViewDelegate has got two delegate methods\n`scrollViewDidScroll:`\nand\n`scrollViewDidEndScrollingAnimation:`\nbut neither of these tell you when scrolling has completed.\n`scrollViewDidScroll`\... |
{"title":"Loading cross domain html page with AJAX","tags":["javascript","jquery","ajax","cross-domain"],"question_text":"I'm trying to load a cross domain html page using ajax but unless the dataType is \"jsonp\" I can't get a response.\nHowever using jsonp the browser is expecting a script mime type but is recieving ... |
{"title":"Create an enum with string values in Typescript","tags":["typescript"],"question_text":"Following code can be used to create an enum in Typescript :\n`enum e{\n hello = 1,\n world = 2\n};`\nand the values can be accessed by :\n`e.hello;\n e.world;`\nHow do I create an enum with string values ?\n`enum e{\n hel... |
{"title":"Calendar Recurring\/Repeating Events - Best Storage Method","tags":["database-design","calendar"],"question_text":"I am building a custom events system, and if you have a repeating event that looks like this:\nEvent A repeats every 4 days starting on March 3, 2011\nor\nEvent B repeats every 2 weeks on Tuesday... |
{"title":"Where do I put image files, css, js, etc. in Codeigniter?","tags":["codeigniter","web-applications","frameworks","codeigniter-2"],"question_text":"Where is it acceptable to put css folders and image file folders? I was thinking inside the view folder? However the controller always reroutes the path to the bas... |
{"title":"Object.any_instance should_receive vs expect() to receive","tags":["rspec","rspec2","rspec-rails"],"question_text":"The following piece of code works as expected:\n`Object.any_instance.should_receive(:subscribe)`\nBut when using the new rspec expectation it does not work:\n`expect(Object.any_instance).to rece... |
{"title":"python tuple to dict","tags":["python","dictionary","tuples"],"question_text":"For the tuple,\n`t = ((1, 'a'),(2, 'b'))`\n`dict(t)`\nreturns\n`{1: 'a', 2: 'b'}`\nIs there a good way to get\n`{'a': 1, 'b': 2}`\n(keys and vals swapped)?\nI'm wanting to be able to return 1 given 'a' or 2 given 'b', perhaps conve... |
{"title":"CSS rotate property in IE","tags":["css","internet-explorer","rotation"],"question_text":"I want to rotate the DIV to a certain degree. In FF it functions but in IE I am facing a problem.\nFor example in the following style I can set rotation=1 to 4\n`filter: progid:DXImageTransform.Microsoft.BasicImage(rotat... |
{"title":"Why does Ruby 1.9.2 remove \".\" from LOAD_PATH, and what's the alternative?","tags":["ruby","rake","require","load-path"],"question_text":"The latest changesets to Ruby 1.9.2 no longer make the current directory\n`.`\npart of your\n`LOAD_PATH`\n. I have a non-trivial number of Rakefiles that assume that\n`.`... |
{"title":"Timeout function if it takes too long to finish","tags":["python"],"question_text":"I have a shell script that loops through a text file containing URL:s that I want to visit and take screenshots of.\nAll this is done and simple. The script initializes a class that when run creates a screenshot of each site i... |
{"title":"Java Desktop application: SWT vs. Swing","tags":["java","swing","swt"],"question_text":"I'm a web developer at day and thinking about building my first real desktop application. The idea is to build a tool that automates a very repetitive task in a web application where no API is available.\nI know I want to ... |
{"title":"iPhone: How to switch tabs with an animation?","tags":["ios4","uitabbarcontroller","uitabbar"],"question_text":"I'm switching tabs programmatically in a tab bar driven application using\n`UITabBarController.selectedIndex`\n. The problem I'm trying to solve is how to animate the transition between the views. i... |
{"title":"100% width background image with an 'auto' height","tags":["html","css"],"question_text":"I'm currently working on a mobile landing page for a company. It's a really basic layout but below the header there's an image of a product which will always be 100% width (the design shows it always going from edge to e... |
{"title":"How do you check if an object exists in the Twig templating engine in Symfony2?","tags":["symfony2","twig"],"question_text":"I have a multidimensional array where some objects exist and others don't. I keep getting a\nMethod \"code\" for object \"stdClass\" does not exist in...\n?\nThe code I am using in my t... |
{"title":"Simplest way to do a fire and forget method in C#?","tags":["c#",".net","nonblocking"],"question_text":"I saw in WCF they have the\n`[OperationContract(IsOneWay = true)]`\nattribute. But WCF seems kind of slow and heavy just to do create a nonblocking function. Ideally there would be something like static voi... |
{"title":"How to host google web fonts on my own server?","tags":["fonts","google-font-api"],"question_text":"I need to use some google fonts on an intranet application. The clients may or may not have internet connection. Reading the license terms, it appears that its legally allowed.","answer_text":"There is a tool\n... |
{"title":"Force browser to clear cache","tags":["html","caching","browser","meta-tags"],"question_text":"Is there a way I can put some code on my page so when someone visits a site, it clears the browser cache, so they can view the changes?\nLanguages used: ASP.NET, VB.NET, and of course html, css, and jquery.","answer... |
{"title":"ClassNotFoundException after ADT update","tags":["android","eclipse","adt"],"question_text":"I've recently updated Android SDK & Eclipse ADT plugin to latest version. Now when i try to run a pre-existing Android project, the LogCat shows a\n`ClassNotFoundException`\n.\nI tried to create a new device but the p... |
{"title":"Scanning Java annotations at runtime","tags":["java","annotations","classloader"],"question_text":"What is the best way of searching the whole classpath for an annotated class?\nI'm doing a library and I want to allow the users to annotate their classes, so when the Web application starts I need to scan the w... |
{"title":"How can I know if a process is running?","tags":["c#",".net"],"question_text":"When I get a reference to a\n`System.Diagnostics.Process`\n, how can I know if a process is currently running?","answer_text":"This is a way to do it with the name:\n`Process[] pname = Process.GetProcessesByName(\"notepad\");\nif (... |
{"title":"Java: Enumeration from Set<String>","tags":["java","collections","set","enumeration"],"question_text":"I have a simple collections question. I have a\n`Set<String>`\nobject. I want an enumeration of the strings in that set. What is the cleanest\/best way to go about it?","answer_text":"`java.util.Collections.... |
{"title":"How do I capture bash output to the Mac OS X clipboard?","tags":["osx","bash","terminal","clipboard"],"question_text":"Is it possible to capture bash output to the OS X clipboard?","answer_text":"The\npbcopy\ncommand does this.\nFor example, this puts the output from\n`ls`\non the clipboard\/pasteboard:\n`ls ... |
{"title":"How to update a menu item shown in the ActionBar?","tags":["android","menu","android-fragments","android-actionbar"],"question_text":"I have an Activity that has 2 fragments. Both are ListFragments and both contribute MenuItems to the Menu. I have one MenuItem that I've set the attribute android:showAsAction ... |
{"title":"Add centered text to the middle of a <hr\/>-like line","tags":["html","css","xhtml","line","vertical-alignment"],"question_text":"I'm wondering what options one has in xhtml 1.0 strict to create a line on both sides of text like-so:\nSection one\n----------------------- Next section -----------------------\nS... |
{"title":"When to use nil, blank, empty?","tags":["ruby-on-rails","ruby"],"question_text":"Is there any guidelines on how to differentiate between\n`.nil?`\n,\n`.blank?`\nand\n`.empty?`\n?\nI'm generally always confused as to when to use them in my application as they all seem to mean the same thing but have different ... |
{"title":"How to implement a custom AlertDialog View","tags":["android","alertdialog"],"question_text":"In the\nAndroid docs on AlertDialog\n, it gives the following instruction and example for setting a custom view in an AlertDialog:\nIf you want to display a more complex view, look up the FrameLayout called \"body\" ... |
{"title":"sys.argv[1] meaning in script","tags":["python"],"question_text":"I'm currently teaching myself Python and was just wondering (In reference to my example below) in simplified terms what the sys.argv[1] represents. Is it simply asking for an input?\n`#!\/usr\/bin\/python3.1\n# import modules used here -- sys i... |
{"title":"Stream vs Views vs Iterators","tags":["scala","scala-collections"],"question_text":"What are the differences among Streams, Views (SeqView), and Iterators in scala? This is my understanding:\nThey are all lazy lists.\nStreams cache the values.\nIterators can only be used once? You can't go back to the beginni... |
{"title":"Find which child view was tapped when using UITapGestureRecognizer","tags":["objective-c","ipad"],"question_text":"How do I know on which of the the child views an event occurred when using UIGestureRecognizers?\nAccording to the documentation:\nA gesture recognizer operates on\n touches hit-tested to a speci... |
{"title":"Test if an object is an Enum","tags":["c#","enums","value-type"],"question_text":"I would like to know if 'theObject' is an enum (of any enum type)\n`foreach (var item in Enum.GetValues(theObject.GetType())) {\n \/\/do something\n }`","answer_text":"The question is the answer. :)\n`bool isEnum = theObject is ... |
{"title":"The Guava library for java; what are its most useful and\/or hidden features","tags":["java","guava"],"question_text":"I have had a quick scan of the\nGuava API\nand the new collection types it provides(\n`Multimap`\nand\n`BiMap`\nfor example appear useful) and I am thinking of including the library in the pr... |
{"title":"Fold \/ Collapse the except code section in sublime text 2","tags":["sublimetext2","sublimetext3"],"question_text":"Is there any plugin or shortcut to hide all except code section in sublime text 2?\nI need to fold all except section at a time , Not fold one section at a time.\nThanks~","answer_text":"If you'... |
{"title":"SQL how to increase or decrease one for a int column in one command","tags":["database"],"question_text":"I have an Orders table which has a Quantity column. During check in or check out, we need to update that Quantity column by one. Is there a way to do this in one action or we have to get the existing valu... |
{"title":"What does the keyword \"transient\" mean in Java?","tags":["java","transient"],"question_text":"I saw somewhere\n`transient private TrackDAO trackDAO;`","answer_text":"Google is your friend -\nfirst hit\n- also you might first have a look at what\nserialization\nis.\nIt marks a member variable not to be\n ser... |
{"title":"How to stop line breaking in vim","tags":["vim"],"question_text":"I like that the long lines are displayed over more than one terminal line; I don\u00e2\u0080\u0099t like that vim inserts newlines into my actual text. Which part of .vimrc I should change?","answer_text":"Use\n`:set wrap`\nTo wrap lines visual... |
{"title":"from list of integers, get number closest to a given value","tags":["python","list","sorting","integer"],"question_text":"Given a list of integers, I want to find which number is the closest to a number I give in input:\n`>>> myList = [4,1,88,44,3]\n>>> myNumber = 5\n>>> takeClosest(myList, myNumber)\n...\n4`... |
{"title":"Ruby on Rails: Running a .rb file from IRB","tags":["ruby-on-rails","ruby","irb"],"question_text":"I am starting out with Ruby on Rails. I am currently going through a tutorial where it says that I have to run a .rb file from IRB and that that will create a .xml file in my current directory. My question is ho... |
{"title":"MFMailComposeViewController in iOS 7 statusbar are black","tags":["ios","ios7","mfmailcomposeviewcontroll"],"question_text":"i have a feedback button in my ios 7 application with MFMailComposeViewController. After the user click this button the mailcomposer open but the statusbar changed to black. Have anybod... |
{"title":"How to find which program is using port 80 in Windows?","tags":["windows","port"],"question_text":"How to find which program is using port 80 in Windows? I can't find it.","answer_text":"Start->Accessories right click on \"Command prompt\", in menu click \"Run as Administrator\" (on Windows XP you can just ru... |
{"title":"android finish activity context","tags":["android","android-activity","android-context"],"question_text":"If I have reference to context, is it possible to finish the current activity? I don't have the reference to current activity.","answer_text":"yes, with a cast:\n`((Activity) ctx).finish();`","question_co... |
{"title":"Difference between & and &&","tags":["java","operators","boolean","bitwise-operators"],"question_text":"I always thought that\n`&&`\noperator in Java is used for verifying whether both its boolean operands are\n`true`\n, and the\n`&`\noperator is used to do Bit-wise operations on two integer types.\nRecently ... |
{"title":"SQL Server database restore error: specified cast is not valid. (SqlManagerUI)","tags":["sql-server","sql-server-2008","database-restore"],"question_text":"I am using SQL Server 2008 R2 Standard (version 10.50.1600.1) for my production website and \nSQL Server Express edition with Advanced Services (v10.50.16... |
{"title":"C# DateTime.Now precision","tags":["c#",".net","datetime","precision","time-precision"],"question_text":"I just ran into some unexpected behavior with DateTime.UtcNow while doing some unit tests. It appears that when you call DateTime.Now\/UtcNow in rapid succession, it seems to give you back the same value f... |
{"title":"How to build Qt for Visual Studio 2010","tags":["c++","visual-studio","visual-studio-2010","qt","build"],"question_text":"I struggled finding a how-to which provides a stable solution for using Qt with Visual Studio 2010, so after collecting all the bits of information and some trial and error, I would like t... |
{"title":"How to create PDFs in an Android app?","tags":["android","pdf"],"question_text":"Is there any way to create PDF Files from an Android application?","answer_text":"If anyone wants to generate PDFs on Android device, here is how to do it:\nhttp:\/\/sourceforge.net\/projects\/itext\/\n(library)\nhttp:\/\/www.vog... |
{"title":"Immutable vs Mutable types","tags":["python","immutability","mutable"],"question_text":"I'm confused on what an immutable type is. I know the\n`float`\nobject is considered to be immutable, with this type of example from my book:\n`class RoundFloat(float):\n def __new__(cls, val):\n return float.__new__(cls, ... |
{"title":"AVAssetImageGenerator provides images rotated","tags":["iphone","objective-c","ios","avfoundation"],"question_text":"When obtaining a UIImage of a video via AVAssetImageGenerator, I'm getting back images rotated (well, technically they're not) when the video is shot in portrait orientation. How can I tell wha... |
{"title":"Difference between Destroy and Delete","tags":["ruby-on-rails","destroy","delete-row"],"question_text":"What is the difference between\n`@model.destroy`\nand\n`@model.delete`\nFor example:\n`Model.find_by(col: \"foo\").destroy_all\n\/\/and\nModel.find_by(col: \"foo\").delete_all`\nDoes it really matter if I u... |
{"title":"Laravel checking if record exists","tags":["php","laravel"],"question_text":"New to laravel, so excuse the newbie question but how do I find if a record exists?\n`$user = User::where('email', '=', Input::get('email'));`\nWhat would I do here to see if\n`$user`\nhas a record?","answer_text":"It depends if you ... |
{"title":"How to show \"if\" condition on a sequence diagram?","tags":["uml","sequence-diagram"],"question_text":"I was wondering, how can one represent \"\n`if`\n\" statement on a sequence diagram?\n`if (somethingShouldBeDone) {\n \/\/ Do it\n} else {\n \/\/ Do something else\n}`\nCan it be represented at all? The thi... |
{"title":"Android-L CardView Visual Touch Feedback","tags":["android","android-layout","android-5.0-lollipop","android-cardview"],"question_text":"could anybody explain to me how to implement some of the visual touch feedback that was demonstrated at Google I\/O 2014 within a CardView.\nHere is how I am using the CardV... |
{"title":"Difference between angle bracket < > and double quotes \" \" while including header files in C++?","tags":["c++","c","c++11"],"question_text":"Possible Duplicate:\nWhat is the difference between #include <filename> and #include \u00e2\u0080\u009cfilename\u00e2\u0080\u009d?\nWhat is the difference between angl... |
{"title":"Pointer expressions: *ptr++, *++ptr and ++*ptr","tags":["c++","c","pointers","increment"],"question_text":"Recently I have come across this problem which I am unable to understand by myself.\nWhat do these three Expressions\nREALLY\nmean?\n`*ptr++\n*++ptr\n++*ptr`\nI have tried Ritchie. But unfortunately was ... |
{"title":"How do you turn a Mongoose document into a plain object?","tags":["node.js","mongoose"],"question_text":"I have a document from a mongoose find that I want to extend before JSON encoding and sending out as a response. If I try adding properties to the doc it is ignored. The properties don't appear in\n`Object... |
{"title":"Does Python have an ordered set?","tags":["python","set"],"question_text":"Python has an\nordered dictionary\n, what about an ordered set?","answer_text":"There is an\nordered set\nrecipe for this which is referred to from the\nPython 2 Documentation\n. This runs on Py2.6 or later and 3.0 or later without any... |
{"title":"JavaScript: Check if a string has white space","tags":["javascript","whitespace"],"question_text":"I am trying to check if a string has white space. I found this function but it doesn't seem to be working:\n`function hasWhiteSpace(s) {\n var reWhiteSpace = new RegExp(\"\/^\\s+$\/\");\n \/\/ Check for white sp... |
{"title":"What's the fastest way to read a text file line-by-line?","tags":["c#",".net","performance","file-io","text-files"],"question_text":"I want to read a text file line by line. I wanted to know if I'm doing it as efficiently as possible within the .NET C# scope of things.\nThis is what I'm trying so far:\n`var f... |
{"title":"Broadcast receiver for checking internet connection in android app","tags":["java","android","broadcastreceiver","android-wifi","android-networking"],"question_text":"Hello I am developing an android broadcast receiver for checking internet connection.\nBut the problem is that my broadcast receiver for two ti... |
{"title":"How can I default a parameter to Guid.Empty in C#?","tags":["c#","c#-4.0","optional-parameters"],"question_text":"I wish to say:\n`public void Problem(Guid optional = Guid.Empty)\n{\n}`\nBut the compiler complains that Guid.Empty is not a compile time constant.\nAs I don\u00e2\u0080\u0099t wish to change the ... |
{"title":"navbar color in Twitter Bootstrap","tags":["colors","twitter-bootstrap","navbar"],"question_text":"How can I change the background color of the navbar of the Twitter Bootstrap 2.0.2? How can I change color of all the elements of the navbar to reflect the background color?","answer_text":"You can overwrite the... |
{"title":"How do you create a daemon in Python?","tags":["python","daemon"],"question_text":"Searching on Google\nreveals x2 code snippets. The first result is to\nthis code recipe\nwhich has a lot of documentation and explanation, along with some useful discussion underneath.\nHowever,\nanother code sample\n, whilst n... |
{"title":"Allow Google Chrome to use XMLHttpRequest to load a URL from a local file","tags":["javascript","jquery","google-chrome","xmlhttprequest","local-files"],"question_text":"When trying to do a HTTP request using XMLHttpRequest from a local file, it basically fails due to\n`Access-Control-Allow-Origin`\nviolation... |
{"title":"How can I unstage my files again after making a local commit?","tags":["git"],"question_text":"I have done the following command\n`git add <foo.java>\ngit commit -m \"add the foo java\"`\nHow can I delete my local commit now and make foo.java in an unstaged state?\nIf I type\n`git reset --hard`\n, I found tha... |
{"title":"WebDriver: check if an element exists?","tags":["java","testing","webdriver","selenium-webdriver"],"question_text":"How to check if an element exist with web driver?\nIs using a try catch really the only possible way?\n`boolean present;\ntry {\n driver.findElement(By.id(\"logoutLink\"));\n present = true;\n} ... |
{"title":"Two macs. One iPhone Developer License. Possible?","tags":["iphone","osx","sdk","certificate"],"question_text":"I work for a company that is interested in building iPhone apps. However, we are not clear on one issue:\nDoes the iPhone developer certificate work on more than one computer at a time?","answer_tex... |
{"title":"How to remove newlines from beginning and end of a string (Java)?","tags":["java","string","line","blank-line"],"question_text":"I have a string that contains some text followed by a blank line. What's the best way to keep the part with text, but remove the whitespace newline from the end?","answer_text":"Use... |
{"title":"When to use <ui:include>, tag files, composite components and\/or custom components?","tags":["jsf-2","facelets","custom-component","composite-component","tagfile"],"question_text":"I started using JSF 2.0 with Facelets recently and got puzzled by new composite components knowing existing\n`<ui:include>`\nand... |
{"title":"What is the proper way to comment functions in python?","tags":["python"],"question_text":"Is there a generally accepted way to do this? Is this acceptable:\n`#########################################################\n# Create a new user\n#########################################################\ndef add(self... |
{"title":"How can I produce an effect similar to the iOS 7 blur view?","tags":["ios","graphics","transparency"],"question_text":"I'm trying to replicate this blurred background from Apple's publicly released iOS 7 example screen:\nThis question\nsuggests applying a CI filter to the contents below, but that's a whole di... |
{"title":"What is the use of static constructors?","tags":["c#","constructor","static-constructor"],"question_text":"Please explain to me the use of static constructor. Why and when would we create a static constructor and is it possible to overload one?","answer_text":"No you can't overload it; a static constructor is... |
{"title":"Where is the *goto line* command in Xcode4?","tags":["ide","xcode4"],"question_text":"I couldn't find the goto line command in Xcode4. Where is it...?","answer_text":"Either\n`Navigate -> Jump in \"<mycurrentfile>\"...`\nor\n\u00e2\u008c\u0098\n+\nL","question_code":[],"answer_code":[],"retrieval_text":"\n###... |
{"title":"Disable JavaScript error in WebBrowser control","tags":["c#",".net","winforms","webbrowser-control"],"question_text":"I am developing a windows application with a WebBrowser control that navigates to a sharepoint site.\nMy problem is that i am getting JavaScript error.\nHow can i disable the JavaScript error?... |
{"title":"VIM Disable Automatic Newline At End Of File","tags":["vim","settings","newline"],"question_text":"So I work in a PHP shop, and we all use different editors, and we all have to work on windows. I use vim, and everyone in the shop keeps complaining that whenever I edit a file there is a newline at the bottom. ... |
{"title":"Writing your own STL Container","tags":["c++","stl","c++-standard-library"],"question_text":"Are there guidelines on how one should write new container which will behave like any\n`STL`\ncontainer?","answer_text":"Here's a sequence pseudo-container I pieced together from \u00c2\u00a7 23.2.1\\4 Note that the\n... |
{"title":"Convert Dictionary<string,string> to semicolon separated string in c#","tags":["c#"],"question_text":"Simple one to start the day, given a\n`Dictionary<string, string>`\nas follows:\n`var myDict = new Dictionary<string, string>();\nmyDict[\"A\"] = \"1\";\nmyDict[\"B\"] = \"2\";\nmyDict[\"C\"] = \"3\";\nmyDict... |
{"title":"How do I insert non breaking space character in a JSF page?","tags":["jsf","facelets"],"question_text":"How do I insert a non breaking space character in JSF page\nlike I can in HTML using\n` `\n?\nIs there such a tag in JSF?","answer_text":"this will work\n`<h:outputText value=\" \" \/>`","q... |
{"title":"How do I list all tables in a schema in Oracle SQL?","tags":["sql","oracle"],"question_text":"How do i list all tables in a schema in Oracle SQL?","answer_text":"To see all tables in another schema, you need to have one or more of the following system privileges:\n`SELECT ANY DICTIONARY\n(SELECT | INSERT | UP... |
{"title":"How to add edge labels in Graphviz?","tags":["graphviz"],"question_text":"I am trying to draw a graph using Graphviz, but I need to add labels on the edges. There does not seem to be any way to that in Graphviz. \nAre there a way out?","answer_text":"You use the\nlabel property\nattached to the edge.\n`digrap... |
{"title":"How does C compute sin() and other math functions?","tags":["c++","c","math","sine"],"question_text":"I've been poring through .NET disassemblies and the GCC source code, but can't seem to find anywhere the actual implementation of\n`sin()`\nand other math functions... they always seem to be referencing somet... |
{"title":"How to get UILabel to respond to tap?","tags":["ios","ipad","uilabel"],"question_text":"I have discovered that I can create UILabel much faster than UITextField and I plan to use UILabel most of the time for my data display app.\nTo make a long story short though, I wish to let the user tap on a UILabel and h... |
{"title":"NSURLConnection delegate methods are not called","tags":["iphone","nsurlconnection","nsurlprotocol"],"question_text":"I am trying to create a simple NSURLConnection to communicate with a server using a GET request. Connection works well, but delegates methods of NSURLConnection are never called..\nHere is wha... |
{"title":"GUI not working after rewriting to MVC","tags":["java","model-view-controller","user-interface","swing"],"question_text":"I'm practicing MVC style programming. I have a Mastermind game in a single file, working fine (maybe apart of the fact that \"Check\" button is invisible at start).\nhttp:\/\/paste.pocoo.o... |
{"title":"android: create circular image with picasso","tags":["android","bitmap","imageview","picasso","circular"],"question_text":"The question had been asked and there had been a promise made for the very version of Picasso that I am using: How do I send a circular bitmap to an ImageView using Picasso? I am very new... |
{"title":"Keyboard shortcuts in WPF","tags":["wpf","keyboard-shortcuts"],"question_text":"I know about using _ instead of &, what I'm looking at is all the\nCtrl\n+ type shortcuts.\nCtrl\n+\nZ\nfor undo,\nCtrl\n+\nS\nfor save etc.\nIs there a 'standard' way for implementing these in WPF applications? Or is it a case of... |
{"title":"Is there a way to clean up git?","tags":["git"],"question_text":"Seems like my project is getting bigger and bigger with every git\n`commit\/push`\n. Is there a way to clean up my git folder?","answer_text":"I'm not sure what you want. First of all, of course each time you commit\/push the directory is going ... |
{"title":"XML Document to String","tags":["java","xml","string","dom","xmldocument"],"question_text":"What's the simplest way to get the String representation of a XML Document (\n`org.w3c.dom.Document`\n)? That is all nodes will be on a single line.\nAs an example, from\n`<root>\n <a>trge<\/a>\n <b>156<\/b>\n<\/root>`... |
{"title":"How to format a string as a telephone number in C#","tags":["c#","string","formatting","phone-number"],"question_text":"I have a string \"1112224444' it is a telephone number. I want to format as 111-222-4444 before I store it in a file. It is on a datarecord and I would prefer to be able to do this without a... |
{"title":"Java: What does the colon (:) operator do?","tags":["java","foreach","for-loop"],"question_text":"I would look it up myself, but I don't even know what it's called. Would anyone mind explaining what it does?\nI didn't know there were multiple times the : appeared. What does it do in this case here:\n`public S... |
{"title":"Can you use an alias in the WHERE clause in mysql?","tags":["mysql"],"question_text":"I need to use an alias in the WHERE clause, but It keeps telling me that its an unknown column. Is there any way to get around this issue? I need to select records that have a rating higher than x. Rating is calculated as th... |
{"title":"Python check for valid email address?","tags":["python","regex","email-validation","email-address"],"question_text":"Is there a good way to check a form input using regex to make sure it is a proper style email address? Been searching since last night and everybody that has answered peoples questions regardin... |
{"title":"Using ANTLR 3.3?","tags":["c#","parsing","antlr"],"question_text":"I'm trying to get started with ANTLR and C# but I'm finding it extraordinarily difficult due to the lack of documentation\/tutorials. I've found a couple half-hearted tutorials for older versions, but it seems there have been some major change... |
{"title":"MySQL: How to copy rows, but change a few fields?","tags":["sql","mysql"],"question_text":"I have a large number of rows that I would like to copy, but I need to change one field.\nI can select the rows that I want to copy:\n`select * from Table where Event_ID = \"120\"`\nNow I want to copy all those rows and... |
{"title":"Positioning MKMapView to show multiple annotations at once","tags":["iphone","objective-c","cocoa-touch","mapkit"],"question_text":"I've got several annotations I want to add to my MKMapView (it could 0-n items, where n is generally around 5). I can add the annotations fine, but I want to resize the map to fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.