text stringlengths 74 309k |
|---|
{"title":"Insert text at cursor in a content editable div","tags":["javascript","contenteditable"],"question_text":"I have a contenteditable div where I need to insert text at the caret position,\nThis can be easily done in IE by\n`document.selection.createRange().text = \"banana\"`\nIs there a similar way of implement... |
{"title":"Convert a List<T> into an ObservableCollection<T>","tags":["c#","windows-runtime"],"question_text":"I have a\n`List<T>`\nwhich is being populated from JSON. I need to convert it into an\n`ObservableCollection<T>`\nto bind it to my\n`GridView`\n.\nAny suggestions?","answer_text":"ObservableCollection < T >\nha... |
{"title":"Explain this snippet which finds the maximum of two integers without using if-else or any other comparison operator?","tags":["c","algorithm","math","bit-manipulation","max"],"question_text":"Find the maximum of two numbers. You should not use if-else or any other comparison operator. I found this question on... |
{"title":"Which DATATYPE is better to use TEXT or VARCHAR?","tags":["mysql"],"question_text":"This question is based on two things\nperformance\nand\nsize\nWhich DATATYPE is better to use TEXT or VARCHAR? Based on performance which will affect and which will impove?","answer_text":"It depends on what you're using it fo... |
{"title":"What is the difference between signed and unsigned variables?","tags":["language-agnostic","variables","unsigned"],"question_text":"I have seen these mentioned in the context of C and C++, but what is the difference between signed and unsigned variables?","answer_text":"Signed variables\n, such as signed inte... |
{"title":"Auto logout with Angularjs based on idle user","tags":["angularjs"],"question_text":"Is it possible to determine if a user is inactive and automatically log them out after say 10 minutes of inactivity using angularjs?\nI was trying to avoid using jQuery, but I cannot find any tutorials or articles on how to d... |
{"title":"Textarea Auto height","tags":["javascript","html","css"],"question_text":"I want to make height of textarea equal to height of the text within it (And remove the scroll bar)\nHTML\n`<textarea id=\"note\">SOME TEXT<\/textarea>`\nCSS\n`textarea#note {\n width:100%;\n direction:rtl;\n display:block;\n max-width:... |
{"title":"easy idiomatic way to define Ordering for a simple case class","tags":["scala","case-class"],"question_text":"I have a list of simple scala case class instances and I want to print them in predictable, lexicographical order using\n`list.sorted`\n, but receive \"No implicit Ordering defined for ...\".\nIs ther... |
{"title":"What is jQuery Unobtrusive Validation?","tags":["javascript","jquery","asp.net","asp.net-mvc","validation"],"question_text":"I know what the jQuery Validation plugin is. I know the jQuery Unobtrusive Validation library was made by Microsoft and is included in the ASP.NET MVC framework. But I cannot find a si... |
{"title":"Error opening SupportMapFragment for second time","tags":["android","android-maps-v2","supportmapfragment"],"question_text":"When opening my SupportMapFragment (Android maps v2) for a second time (calling setContentView) I get the following error:\n`01-28 16:27:21.374: E\/AndroidRuntime(32743): FATAL EXCEPTIO... |
{"title":"C++11: why does std::condition_variable use std::unique_lock?","tags":["c++","multithreading","c++11","mutex"],"question_text":"I am a bit confused about the role of\n`std::unique_lock`\nwhen working with\n`std::condition_variable`\n. As far as I understood the\ndocumentation\n,\n`std::unique_lock`\nis basica... |
{"title":"How can I get a Bootstrap column to span multiple rows?","tags":["css","twitter-bootstrap"],"question_text":"I'm trying to figure out how to do the following grid with Bootstrap.\nI'm not sure how I'd create the box (number 1) that spans two rows. The boxes are generated programmatically in the order they are... |
{"title":"How can I create a bar in the bottom of a Java app, like a status bar?","tags":["java","swing","netbeans","statusbar"],"question_text":"I am in the process of creating a Java app and would like to have a bar\non the bottom of the app, in which I display a text bar and a status (progress) bar.\nOnly I can't se... |
{"title":"How to install Laravel's Artisan?","tags":["php","laravel"],"question_text":"I want to create migrations in Laravel but according to the\ntutorials\nI need the Artisan CLI. The\n`php`\ncommand works fine and I'm on Windows. I type in\n`php artisan`\nor\n`php artisan list`\nand I get the following error:\nCoul... |
{"title":"storing money amounts in mysql","tags":["mysql","floating-point","currency","money","fixed-point"],"question_text":"I want to store 3.50 into a mysql table. I have a float that I store it in, but it stores as 3.5, not 3.50. How can I get it to have the trailing zero?","answer_text":"Do not store money values ... |
{"title":"how to set proxy for command prompt?","tags":["windows","proxy","command","prompt"],"question_text":"I am unable to install SASS through command prompt.\nI tried below steps\nc:\\gem install sass\nI am getting below error.\nERROR: Could not find a valid gem 'sass' (>= 0), here is why:\n Unable to download dat... |
{"title":"BASH copy all files except one","tags":["bash","scripting","copy"],"question_text":"I would like to copy all files out of a dir except for one named Default.png. It seems that there are a number of ways to do this. What seems the most effective to you?","answer_text":"Should be as follows:\n`cp -r !(Default.p... |
{"title":"How do I know if a mysql table is using myISAM or InnoDB Engine?","tags":["mysql","innodb","myisam","storage-engines"],"question_text":"In MySQL, there is no way to specify a storage engine for a certain database, only for single tables. However, you can specify a storage engine to be used during one session ... |
{"title":"Mock functions in Go","tags":["unit-testing","mocking","go"],"question_text":"I'm learning Go by coding a small personal project. Even though it's small, I decided to do rigorous unit testing to learn good habits on Go right from the start.\nTrivial unit tests were all fine and dandy, but I'm puzzled with dep... |
{"title":"Is there a shorthand way to return values that might be null?","tags":["c#","null-coalescing-operator","null-coalescing"],"question_text":"How can I write a shorthand of the following scenario?\n`get\n{\n if (_rows == null)\n {\n _rows = new List<Row>();\n }\n return _rows;\n}`","answer_text":"Using\nnull-coa... |
{"title":"\"No unexpired provisioning profiles found that contain any of the keychain's signing certificates\" Horror","tags":["ios","xcode","keychain","provisioning-profile"],"question_text":"I have seen a few other questions that addressed this topic but none like mine. Yesterday I innocently added a device to the li... |
{"title":"round() in Python doesn't seem to be rounding properly","tags":["python","floating-point"],"question_text":"The documentation for the\nround()\nfunction states that you pass it a number, and the positions past the decimal to round. Thus it\nshould\ndo this:\n`n = 5.59\nround(n, 1) # 5.6`\nBut, in actuality, g... |
{"title":"Legality of COW std::string implementation in C++11","tags":["c++","c++11","stdstring","copy-on-write"],"question_text":"It had been my understanding that copy-on-write is not a viable way to implement a conforming\n`std::string`\nin C++11, but when it came up in discussion recently I found myself unable to d... |
{"title":"Why use Ruby instead of Smalltalk?","tags":["ruby-on-rails","ruby","smalltalk","seaside"],"question_text":"Ruby is becoming\npopular\n, largely from the influence Ruby on Rails, but it feels like it is currently struggling through its adolescence. There are a lot of similarities between Ruby and Smalltalk --\... |
{"title":"Traits and abstract methods override in Scala","tags":["scala","traits"],"question_text":"I have a base abstract class (trait). It has an abstract method\n`foo()`\n. It is extended and implemented by several derived classes. I want to create a trait that can be mixed into the derived classes so that it implem... |
{"title":"C++ template function inside template class","tags":["c++"],"question_text":"I have this code:\n`template <class T>\n class MyClass {\n public:\n template <class U>\n void foo() {\n U a;\n a.invoke();\n }\n };`\nI want it in this form:\n`template <class T>\n class MyClass {\n public:\n template <class U>\n vo... |
{"title":"Creating a config file in PHP","tags":["php","configuration-files"],"question_text":"I want to create a config file for my PHP project, but I'm not sure what the best way to do this is.\nI have 2 ideas so far.\n1-Use Variable\n`$config['hostname'] = \"localhost\";\n$config['dbuser'] = \"dbuser\";\n$config['db... |
{"title":"Str_replace for multiple items","tags":["php","string","str-replace"],"question_text":"I remember doing this before, but can't find the code. I use str_replace to replace one character like this:\n`str_replace(':', ' ', $string);`\nbut I want to replace all the following characters\n`\\\/:*?\"<>|`\n, without ... |
{"title":"Placing a custom view based UIBarButtonItem in the navigation bar without default horizontal padding","tags":["iphone","ios","uinavigationbar","uibarbuttonitem","uinavigationitem"],"question_text":"How do I remove the horizontal padding to the left and right of custom left and right UINavigationBar items? The... |
{"title":"Is there a decorator to simply cache function return values?","tags":["python","caching","decorator"],"question_text":"Consider the following:\n`@property\ndef name(self):\n if not hasattr(self, '_name'):\n # expensive calculation\n self._name = 1 + 1\n return self._name`\nI'm new, but I think the caching cou... |
{"title":"PostgreSQL: insert from another table","tags":["sql","postgresql","table","insert","append"],"question_text":"I'm trying to insert data to a table from another table and the tables have only one column in common. The problem is, that the TABLE1 has columns that won't accept null values so I can't leave them e... |
{"title":"Correct Singleton Pattern Objective C (iOS)?","tags":["ios","objective-c","singleton","grand-central-dispatch"],"question_text":"I found some information in the net to create a singleton class using GCD. Thats cool because it's thread-safe with very low overhead. Sadly I could not find complete solutions but ... |
{"title":"Max return value if empty query","tags":["c#",".net","entity-framework","linq","lambda"],"question_text":"I have this query:\n`int maxShoeSize=Workers.Where(x=>x.CompanyId==8).Max(x=>x.ShoeSize);`\nWhat will be in\n`maxShoeSize`\nif company 8 has no workers at all?\nUPDATE:\nHow can I change the query in orde... |
{"title":"How do I get textual contents from BLOB in Oracle SQL","tags":["sql","oracle","blob"],"question_text":"I am trying to see from an SQL console what is inside an Oracle BLOB.\nI know it contains a somewhat large body of text and I want to just see the text, but the following query only indicates that there is a... |
{"title":"How to implement multithread safe singleton in C++11 without using <mutex>","tags":["c++","multithreading","c++11","singleton","atomic"],"question_text":"Now that C++11 has multithreading I was wondering what is the correct way to implement lazy initialized singleton without using mutexes(for perf reasons).\n... |
{"title":"VB.NET: how to prevent user input in a ComboBox","tags":[".net","vb.net","combobox"],"question_text":"How do you prevent user input in a ComboBox so that only one of the items in the defined list can be selected by the user?","answer_text":"Set the \"DropDownStyle\" property of the combobox to DropDownList. T... |
{"title":"How does JavaFX compare to WPF?","tags":["wpf","javafx-2","javafx"],"question_text":"I'm mostly a C# programmer, I stopped writing Java about 10 years ago, but I try to keep up with the technology in Java by reading articles, talking with friends, etc.\nI've heard about the new rich GUI framework called JavaF... |
{"title":"Passing variables in remote ssh command","tags":["linux","bash","shell","ssh"],"question_text":"I want to be able to run a command from my machine using ssh and pass through the environment variable $BUILD_NUMBER\nHere's what I'm trying:\n`ssh pvt@192.168.1.133 '~\/tools\/myScript.pl $BUILD_NUMBER'`\n$BUILD_N... |
{"title":"MKMapView zoom to users location on viewDidLoad?","tags":["iphone","objective-c","cocoa-touch"],"question_text":"I'm trying to zoom a map into the user's current location once the view loads, but I'm getting the error \"**\n* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Inv... |
{"title":"difference between two arrays","tags":["php"],"question_text":"I have following two arrays. I want the difference between these two arrays. That is, how can I find the values that do not exist in both arrays?\n`$array1=Array ( [0] => 64 [1] => 98 [2] => 112 [3] => 92 [4] => 92 [5] => 92 ) ;\n $array2=Array ( ... |
{"title":"How to search for one value in any column of any table inside one MS-SQL database?","tags":["tsql"],"question_text":"Is there a way to search for one value (in my case it is a UID of the type char(64)) inside any column of any table inside one MS-SQL database?\nI'm sitting in front of a huge database without ... |
{"title":"How to connect mongodb clients to local Meteor MongoDB","tags":["mongodb","meteor"],"question_text":"How can I connect Robomongo (or any other mongodb client) to the mongodb instance that is created by my local Meteor application?","answer_text":"Ensure Meteor is running on localhost. Open a terminal window a... |
{"title":"ASP.NET MVC 4 Editor Template for basic types","tags":["asp.net-mvc-4","mvc-editor-templates"],"question_text":"I've created a template for Number input and if I do\n`@Html.EditorFor(model => model.SomeValue, \"Number\")`\nit works fine and the template is used.\nHowever that doesn't work:\n`@Html.EditorFor(m... |
{"title":"tools to generate database tables diagram with postgresql?","tags":["postgresql","diagram"],"question_text":"are there any Free tools to generate tables diagrams with postgresql?","answer_text":"I love\nschemaspy\nfor schema visualisations. Look at the sample output they provide, and drool. Note the tabs!\nYo... |
{"title":"not showing Android And AVD manager in eclipse","tags":["android"],"question_text":"i have installed Andorid SDK...i installed Android Plugin also..but eclipse not showing Android And AVD manager and it is also not showing ANDROID in windows->preferences also...help me out..","answer_text":"I know by now you ... |
{"title":"How do I add BundleConfig.cs to my project?","tags":["asp.net-mvc","asp.net-mvc-4","visual-studio-2013"],"question_text":"I have an ASP.Net MVC project and I want to implement bundling, but everything I can find on the internet directs me to open\n`BundleConfig.cs`\nin\n`App_Start`\n- however this file does n... |
{"title":"Python 2.x gotcha's and landmines","tags":["python"],"question_text":"The purpose of my question is to strengthen my knowledge base with Python and get a better picture of it, which includes knowing its faults and surprises. To keep things specific, I'm only interested in the CPython interpreter.\nI'm looking... |
{"title":"xcode\/storyboard: can't drag bar button to toolbar at top","tags":["ios","xcode","navigation","uibarbuttonitem"],"question_text":"I have a view controller that is the detail view of a table. When you click on the row of the table it takes you to the detail view. The detail view is embedded in a navigation co... |
{"title":"Firebase data structure and url","tags":["data-structures","nosql","firebase"],"question_text":"I'm new in Firebase and nosql so bear with me to use reference to sql.\nSo my question is how to structure the data in firebase?\nIn firebase, is that mean every \"new firebase\" = \"new Database\" or \"table\" in ... |
{"title":"Comparing two NSDates and ignoring the time component","tags":["iphone","objective-c","nsdate"],"question_text":"What is the most efficient\/recommended way of comparing two NSDates? I would like to be able to see if both dates are on the same day, irrespective of the time and have started writing some code t... |
{"title":"how to sort STL vector","tags":["c++","stl"],"question_text":"i want to sort a vector\n`vector<myclass> object;`\nwhere as myclass contains many int data variables, how can i sort my vector on any specific data variable of myclass.","answer_text":"`std::sort(object.begin(), object.end(), pred());`\nwhere,\n`p... |
{"title":"Is programming a subset of math?","tags":["math"],"question_text":"I've heard many times that all programming is really a subset of math.\nSome suggest\nthat OO, at its roots, is mathematically based, but I don't get the connection, aside from some obvious examples:\nusing induction to prove a recursive algor... |
{"title":"Is there any way to put extras to Intent from preferences?","tags":["android","android-intent","intentfilter","extras"],"question_text":"Hi i'm launching activity from preferences screen. Activity is shared among three preferences.\nI wonder if i can set extras for this activity in xml\n`<Preference\n android... |
{"title":"Stack overflows from deep recursion in Java?","tags":["java","functional-programming","stack","overflow"],"question_text":"After some experience with functional languages, I'm starting to use recursion more in Java - But the language seems to have a relatively shallow call stack of about 1000.\nIs there a way... |
{"title":"Javascript object bracket notation on left side to assign","tags":["javascript","reactjs","ecmascript-6","webpack"],"question_text":"I haven't seen this syntax before and am wondering what it's all about. The brackets on the left are throwing a syntax error: \"unexpected token {\"\n`var { Navigation } = requi... |
{"title":"Objective C: convert a NSMutableString in NSString","tags":["objective-c","nsstring","nsmutablestring"],"question_text":"I have an NSMutableString, how can I convert it to an NSString?","answer_text":"Either via:\n`NSString *immutableString = [NSString stringWithString:yourMutableString];`\nor via:\n`NSString... |
{"title":"Maximum execution time in phpMyadmin","tags":["php","mysql","database","xampp","execution-time"],"question_text":"When I try to execute (some) queries in phpMyadmin I get this error\nFatal error: Maximum execution time of 60 seconds exceeded in\n C:\\xampp\\phpmyadmin\\libraries\\dbi\\mysql.dbi.lib.php on lin... |
{"title":"Lollipop's backgroundTint has no effect on a Button","tags":["android","xml","android-layout","android-studio","tint"],"question_text":"I have a Button in my Activity, and I'd like it to have my theme's accent color.\nInstead of making my own drawables like we had to do pre-Lollipop, naturally I'd like to use... |
{"title":"How to remove unused C\/C++ symbols with GCC and ld?","tags":["c++","c","gcc","ld","strip"],"question_text":"I need to optimize the size of my executable severely (\n`ARM`\ndevelopment) and\nI noticed that in my current build scheme (\n`gcc`\n+\n`ld`\n) unused symbols are not getting stripped.\nThe usage of t... |
{"title":"How do I create a crontab through a script","tags":["linux","shell","ubuntu","cron","crontab"],"question_text":"I need to add a cron job thru a script I run to set up a server. I am currently using Ubuntu. I can use\n`crontab -e`\nbut that will open an editor to edit the current crontab. I want to do this pro... |
{"title":"JQuery\/Javascript: check if var exists","tags":["javascript","jquery","variables"],"question_text":"Possible Duplicate:\nHow can I check whether a variable is defined in JavaScript?\nIs there a standard function to check for null, undefined, or blank variables in JavaScript?\nI have a script that occurs in t... |
{"title":"Randomize a sequence of div elements with jQuery","tags":["jquery","html","sorting","html-manipulation"],"question_text":"I'm trying to do my frist steps with jQuery but I have some trouble to understand how to find a list of child elements from a div parent element. I'm used to work with ActionScript 2 and A... |
{"title":"Using sed, Insert a line below (or above) the pattern?","tags":["scripting","sed","awk"],"question_text":"I need edit a good number of files, by inserting (2) lines either right below a unique pattern or above it. please advise how to do it using sed, awk, perl or anything else in shell. thanks\n`some text\nH... |
{"title":"How to use Joda-Time with java.sql.Timestamp","tags":["java","postgresql","timestamp","jodatime"],"question_text":"I Have a\nprepared statement\n`INSERT INTO mst(time) VALUES (?);`\nwhere time is of type\nTimestamp\nin a\nPostgreSQL\ndatabase.\nI am inserting a\nJoda-Time\nDateTime\nobject, or I should say I ... |
{"title":"Override a method at instance level","tags":["python"],"question_text":"Is there a way in Python to override a class method at instance level?\nFor example:\n`class Dog:\n def bark(self):\n print \"WOOF\"\nboby = Dog()\nboby.bark() # WOOF\n# METHOD OVERRIDE\nboby.bark() # WoOoOoF!!`","answer_text":"Yes, it's ... |
{"title":"How do I attach the debugger to IIS instead of ASP.NET Development Server?","tags":["asp.net","debugging"],"question_text":"I have an ASP.NET website and when I press F5 it automatically attaches to the ASP.NET Development Server, how do I attach to IIS worker process instead when I press F5?","answer_text":"... |
{"title":"Get position\/offset of element relative to a parent container?","tags":["javascript","position","offset","zepto"],"question_text":"I'm used to working with jQuery. In my current project however I use zepto.js. Zepto doesn't provide a\n`position()`\nmethod like jQuery does. Zepto only comes with\n`offset()`\n... |
{"title":"How to convert an enum type variable to a string?","tags":["c++","c","preprocessor","ansi-c"],"question_text":"How to make printf to show the values of variables which are of an enum type? For instance:\n`typedef enum {Linux, Apple, Windows} OS_type; \nOS_type myOS = Linux;`\nand what I need is smth. like\n`p... |
{"title":"Why are arrays covariant but generics are invariant?","tags":["java","arrays","generics","language-design","covariance"],"question_text":"From Effective Java by Joshua Bloch,\nArrays differ from generic type in two important ways. First arrays are covariant. Generics are invariant.\nCovariant simply means if ... |
{"title":"Scala equivalent of java.util.ArrayList","tags":["java","scala","arraylist"],"question_text":"I am doing a project in Scala, but am fairly new to the language and have a Java background. I see that Scala doesn't have ArrayList, so I am wondering what Scala's equivalent of Java's ArrayList is called, and if th... |
{"title":"How do I remove minimize and maximize from a resizable window in WPF?","tags":["wpf","user-interface","resize","pinvoke"],"question_text":"WPF doesn't provide the ability to have a window that allows resize but doesn't have maximize or minimize buttons. I'd like to able to make such a window so I can have res... |
{"title":"How to easily consume a web service from PHP","tags":["php","web-services","visual-studio","wsdl"],"question_text":"Is there available any tool for PHP which can be used to generate code for consuming a\nweb service\nbased on its\nWSDL\n? Something comparable to clicking \"Add Web Reference\" in Visual Studio... |
{"title":"Create SQL INSERT Script with values gathered from table","tags":["sql","sql-server-2008"],"question_text":"I need to create a INSERT script in order to insert in another database the same data.\nIf in SQL Server I select \"Script table as > INSERT To\" I can easily recreate the skeleton for the INSERT statem... |
{"title":"Use a fork of Restkit on github via cocoaPod?","tags":["objective-c","ios","restkit","cocoapods"],"question_text":"restkit is using in a different way the oauth2 protocol, I need to change the code to be able to use it in my way :\nFrom :\n`\/\/ OAuth 2 valid request\nif (self.authenticationType == RKRequestA... |
{"title":"How can I easily add storage to a VirtualBox machine with XP installed?","tags":["storage","virtualbox","hard-drive","virtual-drive"],"question_text":"When I installed Windows XP on a\nVirtualBox\nmachine, I made the hard drive only\n10 GB\nsince and assumed it would\nexpand\nin size (as do hard drives in\nVM... |
{"title":"How to ignore namespace when selecting XML nodes with XPath","tags":["xml","xpath","namespaces","xml-namespaces"],"question_text":"I have to parse an XML document that looks like this:\n`<?xml version=\"1.0\" encoding=\"UTF-8\" ?> \n <m:OASISReport xmlns:m=\"http:\/\/oasissta.caiso.com\/mrtu-oasis\/xsd\/OASIS... |
{"title":"Get raw POST body in Python Flask regardless of Content-Type header","tags":["python","flask","wsgi"],"question_text":"So, while ago I asked similar question:\nHow to get whole request POST body in Python (Flask)\nAnd I got an answer that actually\n`flask.request.data`\nis the raw POST BODY. But that seems to... |
{"title":"GDB: print variables in Hex or Decimal format","tags":["gdb"],"question_text":"Currently, when I print the value of a variable\n`v`\nin GDB (\n`print v`\n) I get an integer.\nIs it possible to have GDB print such integer variables in Hex or binary?","answer_text":"Sure it is, try these:\n`# Hex\np\/x v\n# Bin... |
{"title":"Android UI Thread Message Queue dispatch order","tags":["android","android-asynctask"],"question_text":"While working with retain Fragments in Android to hold an AsyncTask during configuration changes, which i guess it's the best approach, some doubts appear in my mind about UI Thread's Message Queue invocati... |
{"title":"Authenticating against Active Directory with Java on Linux","tags":["java","authentication","active-directory","ldap"],"question_text":"I have a simple task of authenticating against Active Directory using Java. Just verifying credentials and nothing else. Let's say my domain is \"fun.xyz.tld\", OU path is un... |
{"title":"Get path object from file","tags":["java","file","path"],"question_text":"Is it possible to get a Path object from a\n`java.io.File`\n?\nI know you can convert a path to a file using\n`toFile()`\nmethod, but I couldn't find the opposite conversion. Is there a way to do this in Java 6 or lower?","answer_text":... |
{"title":"How to remove an id attribute from a div using jQuery?","tags":["javascript","jquery","html","image"],"question_text":"I want to remove the id attribute from this image:\n`<img width=\"270\" class=\"thumb\" id=\"thumb\" height=\"270\" src=\"img\/1_1.jpg\" \/>`\nI tried doing this:\n`$('img#thumb').RemoveAttr(... |
{"title":"Make a link have 100% width","tags":["css"],"question_text":"I have a box that is X px wide. And in it i have a list (\n`<ul>`\n) with link elements (\n`<li><a ..><\/a><li>`\n)\nHow can i with CSS make the link clickable outside the text and in 100% width of the box. Making each line in the box clickable :D",... |
{"title":"Border around tr element doesn't show?","tags":["html","css","table"],"question_text":"It seems like Chrome\/Firefox do not render borders on\n`tr`\n, but it renders the border if the selector is\n`table tr td`\n.\nHow can I set a border on a tr ?\nMy try, which doesn't work:\nHTML\n`<table> \n <tbody>\n <tr>... |
{"title":"PHP server on local machine?","tags":["php","local"],"question_text":"I'm trying to build a php site and I'm wanting to test my php files without uploading them to my host. Basically testing them on my own machine before I upload them.\nThis question has probably been asked a million times, but I can't seem t... |
{"title":"How to create a blank transparent png in objective c?","tags":["objective-c","ios","uiimage"],"question_text":"How can I create a blank png UIImage in Objective C programmatically (let's say 36x36 px)?\nThanks :)","answer_text":"You can open an image context, and then harvest its content immediately, without ... |
{"title":"how to hide keyboard after typing in EditText in android?","tags":["android","android-edittext"],"question_text":"I have a\n`EditText`\nand button aligned to parent's bottom.\nWhen I enter text in it and press the button to save data, the virtual keyboard does not disappear.\nCan any one guide me how to hide ... |
{"title":"ERROR: Failed to build gem native extension - Error installing mysql2","tags":["mysql","ruby-on-rails","ruby","rubygems","bundler"],"question_text":"error while running bundle install\n`Installing mysql2 (0.3.11) with native extensions \nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native e... |
{"title":"Disabling Log4J Output in Java","tags":["java","logging","log4j"],"question_text":"How can one quickly turn off all Log4J output using a log4j.properties file?","answer_text":"Set level to OFF\n(instead of DEBUG, INFO, ....)","question_code":[],"answer_code":[],"retrieval_text":"\n### TITLE:\nDisabling Log4J ... |
{"title":"C++ Build Systems - What to use?","tags":["c++","build"],"question_text":"I'm looking at starting a new project in C++ - just in my own time initially - and I'm investigating the build systems that are available. It would appear that the answer is \"Many, and they're all awful\".\nThe features that I specific... |
{"title":"Using a cursor with dynamic SQL in a stored procedure","tags":["tsql","stored-procedures","dynamic-sql"],"question_text":"I have a dynamic SQL statement I've created in a stored procedure. I need to iterate over the results using a cursor. I'm having a hard time figuring out the right syntax. Here's what I'm ... |
{"title":"Dynamically changing the fragments inside a fragment tab host?","tags":["android","android-fragments","android-tabhost","fragment-tab-host","android-nested-fragment"],"question_text":"I have one main activity which is fragment activity here I am setting two tabs with two fragments A and B in the B fragment I ... |
{"title":"Migrations for Java","tags":["java","ruby-on-rails","migration"],"question_text":"I use both ruby on rails and Java. I really enjoy using migrations when I am working on a rails project. so I am wondering is there a migrations like tool for Java? If there is no such tool is it a good idea to use migrations as... |
{"title":"MSBuild in TeamCity of Visual Studio 2012 solution","tags":["visual-studio-2010","visual-studio","visual-studio-2012","msbuild","teamcity"],"question_text":"I have a VS 2012 web project \/sln that I am trying to build in TeamCity. it uses .NET 4.5 which is installed on TeamCity.\nThe TeamCity server has\nVS 2... |
{"title":"Android unit test case automation: Robolectric library vs Android Testing framework","tags":["android","unit-testing","junit","continuous-integration","robolectric"],"question_text":"Wondering which one is the better choice to write unit test cases for android apps and libraries: Using Robolectric library or ... |
{"title":"insert vs emplace vs operator[] in c++ map","tags":["c++","map","insert","operators","emplacement"],"question_text":"I'm using maps for the first time and I realized that there are many ways to insert an element. You can use\n`emplace()`\n,\n`operator[]`\nor\n`insert()`\n, plus variants like using\n`value_typ... |
{"title":"Auto-increment primary key in SQL tables","tags":["sql-server-2008","ssms"],"question_text":"Using Sql Express Management Studio 2008 GUI (not with coding), how can I make a primary key auto-incremented?\nLet me explain: there is a table which has a column named \"id\" and the items of this column are set to ... |
{"title":"Vim: Difficulty setting up ctags. Source in subdirectories don't see tags file in project root","tags":["vim","ctags"],"question_text":"I'm trying to get setup with (exuberant) ctags on Vim today and am having difficulty getting it to work properly. I generate my ctags file on the command line with with:\n`cd... |
{"title":"Why can't enum's constructor access static fields?","tags":["java","enums"],"question_text":"Why can't enum's constructor access static fields and methods? This is perfectly valid with a class, but is not allowed with an enum.\nWhat I'm trying to do is store my enum instances in a static Map. Consider this ex... |
{"title":"Rails 3.1 serving images from vendor\/assets\/images","tags":["ruby-on-rails-3","ruby-on-rails-3.1","asset-pipeline"],"question_text":"I am trying to put some external images (used by a jQuery plugin) to vendor\/assets\/images in my Rails 3.1 app. Problem is that when I try something like:\n`<%= image_tag \"u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.