text stringlengths 74 309k |
|---|
{"title":"Using gsub to extract character string before white space in R","tags":["r"],"question_text":"I have a list of birthdays that look something like this:\n`dob <- c(\"9\/9\/43 12:00 AM\/PM\", \"9\/17\/88 12:00 AM\/PM\", \"11\/21\/48 12:00 AM\/PM\")`\nI want to just grab the calendar date from this variable (ie ... |
{"title":"Customize Android Intent.ACTION_SEND","tags":["android","facebook","android-intent"],"question_text":"I'm using Intent for sharing url and subject. In this intent filter showing all the sharing apps. i want only (facebook\/gmail\/message\/skype\/twitter) these option in popup. is this possible to customize sh... |
{"title":"How to make a new line or tab in <string> XML (eclipse\/android)?","tags":["android","xml","eclipse","tabs","line"],"question_text":"So, in my strings.xml I have a very long text which I want to format somehow.\nHow can I put a tab before the first sentence of the text? Also, what is the code for new line? Th... |
{"title":"onHide() type event in jQuery","tags":["jquery","events","javascript-events"],"question_text":"Does anyone know of an onHide() event or something similar in jQuery?\nI tried:\n`$(this).bind('hide', function(){\n console.log('asdasda')\n})`\nBut apparently that doesn't work.\nEdit:\nJust to clarify, it's being... |
{"title":"How to create a JQuery Clock \/ Timer","tags":["javascript","jquery","timer","clock"],"question_text":"I have a simple quiz application and I want display a nice timer \/ clock at the top of the page which shows the user how long they've been going for. (If I could somehow show them a timer for Total Quiz Tim... |
{"title":"question on GWT, Cookies and webpage directing","tags":["java","web-applications","gwt","cookies"],"question_text":"i am using gwt to create a website. this question is regarding a login page and cookies to save login details. GWT allows you to create a website within a single webpage.\nmy application runs on... |
{"title":"In XAML style, how to change solid background to gradient?","tags":["wpf","xaml","styles"],"question_text":"I've got a MainResources.xaml file in which I have a style that defines how each of my windows in my application look:\n`<Style x:Key=\"MainBorderStyle\" TargetType=\"{x:Type Border}\">\n <Setter Proper... |
{"title":"Rename MySQL database","tags":["mysql","database","linux","rename"],"question_text":"I created a database with the name of\n`hrms`\n. Now I need to change database name to\n`sunhrm`\n. But, It is disabled in MySQL workbench. Can I do that on the Linux server itself?","answer_text":"In case you need to do that... |
{"title":"Test Redirection with RSpec and Capybara (Rails)","tags":["ruby-on-rails","rspec","capybara"],"question_text":"I just have learnt how cool RSpec and Cabybara is, and now working around it to learn writing actual test.\nI am trying to check if after clicking a link, there is a redirection to a specific page.\n... |
{"title":"creating list of objects in Javascript","tags":["javascript"],"question_text":"Is it possible to do create a list of your own objects in Javascript? This is the type of data I want to store :\nDate : 12\/1\/2011\nReading : 3\nID : 20055\nDate : 13\/1\/2011\nReading : 5\nID : 20053\nDate : 14\/1\/2011\nReading... |
{"title":"Update an existing installation using InstallShield LE","tags":[".net","winforms","installshield"],"question_text":"We've got a a quite simple WinForms application. I've created an installation using InstallShield LE which works fine on the first install. I'd like that users will be able to run the installati... |
{"title":"Angularjs on a symfony2 application","tags":["symfony2","angularjs"],"question_text":"I'm working on a SF2 application that uses a lot of javascript on the front end.\nSF2 provides me a good way of building a nice REST app, manage my database with doctrine, use twig for templates and so on, but I would like t... |
{"title":"How to access static resources when mapping a global front controller servlet on \/*","tags":["java","servlets","resources"],"question_text":"I've mapped the Spring MVC dispatcher as a global front controller servlet on\n`\/*`\n.\n`<servlet> \n <servlet-name>home<\/servlet-name> \n <servlet-class>org.springfr... |
{"title":"Programmatically set image to UIImageView with XCode 6.1\/Swift","tags":["ios","xcode","swift"],"question_text":"I'm trying to set UIImageView programmatically in XCode 6.1:\n`@IBOutlet weak var bgImage: UIImageView!\nvar image : UIImage = UIImage(named:\"afternoon\")!\nbgImage = UIImageView(image: image)\nbg... |
{"title":"Problems to run examples in Meteor","tags":["mongodb","meteor"],"question_text":"I'm testing Meteor examples and this is what I see when I run\n`meteor`\nin todos examples:\n`Unexpected mongo exit code 100. Restarting.\nUnexpected mongo exit code 100. Restarting.\nUnexpected mongo exit code 100. Restarting.\n... |
{"title":"Cross-Domain Cookies","tags":["web-applications"],"question_text":"I have two webapps WebApp1 and WebApp2 in two different domains.\nI am setting a cookie in WebApp1 in the HttpResponse.\nHow to read the same cookie from HttpRequest in WebApp2?\nI know it sounds weird because cookies are specific to a given d... |
{"title":"Unexpected end of file error","tags":["c++","visual-studio-2008","visual-c++","compiler-errors","precompiled-headers"],"question_text":"I hope you can help me, cause I have no idea about what's going on. I'm having the following error while trying to add Beecrypt library to my project:\nfatal error C1010: une... |
{"title":"How to generate an HMAC in Java equivalent to a Python example?","tags":["java","oauth","sha1","hmac","cryptoapi"],"question_text":"I'm looking at implementing an app getting\nTwitter authorization via Oauth\nin Java. The first step is\ngetting a request token\n. Here is a\nPython example\nfor app engine.\nTo... |
{"title":"How to make Git pull use rebase by default for all my repositories?","tags":["git"],"question_text":"Is there a way to setup the host Git repository such that any\n`git pull`\ndone from its (local) clones uses\n`--rebase`\nby default? By searching on StackOverflow, I learned about\n`branch.autosetuprebase`\n,... |
{"title":"Height 100% on flexbox column child","tags":["css","google-chrome","height","percentage","flexbox"],"question_text":"I'm having troubles with a flexbox column in that children of the flex'd element don't respond to\n`height`\nin percentages. I've only checked this in Chrome, and from what I understand it's a ... |
{"title":"rails 3 - link_to to destroy not working","tags":["ruby-on-rails","ruby-on-rails-3"],"question_text":"I am trying to create a destroy link to my users controller, I am also using devise.\nHere is my code -\nView\n`<%= link_to 'Delete User?', child, :confirm => \"Are you sure you want to delete #{child.full_na... |
{"title":"Resolve IContainer","tags":["c#","dependency-injection","inversion-of-control","autofac"],"question_text":"What is the suggested method of getting the Autofac container from inside a class in the application? Does Autofac provide for resolving an IContainer property on a class or do I need to store the contai... |
{"title":"Media Player Looping : Android","tags":["android","android-mediaplayer"],"question_text":"I am having 3 secs of mp3 file. I want to play that mp3 file continuously still the user click pause button. Is there any method to loop the single file and play it again again till user pauses it.","answer_text":"`mMedi... |
{"title":"Difference between 2 dates in SQLite","tags":["sqlite"],"question_text":"How do I get the difference in days between 2 dates in SQLite? I have already tried something like this:\n`SELECT Date('now') - DateCreated FROM Payment`\nIt returns 0 every time.","answer_text":"`SELECT julianday('now') - julianday(Date... |
{"title":"When is a Test not a Unit-test?","tags":["unit-testing"],"question_text":"I am looking for rules like:\nA test is not a unit-test if:\nit communicates with a database\nit cannot run in parallel with other tests\nuses the \"environment\" like registry or file system\nWhat else is there?","answer_text":"See\nMi... |
{"title":"Difference of two date time in sql server","tags":["sql","sql-server","datetime"],"question_text":"Is there any way to take the difference between two\n`datetime`\nin sql server?\nFor example, my dates are\n`2010-01-22 15:29:55.090`\n`2010-01-22 15:30:09.153`\nSo, the result should be\n`14.063 seconds`\n.","a... |
{"title":"Best way to programmatically detect iPad\/iPhone hardware","tags":["iphone","orientation","ipad"],"question_text":"The reason I need to find out is that on an iPad, a UIPickerView has the same height in landscape orientation as it does in portrait. On an iPhone it is different. The iPad programming guide intr... |
{"title":"How do I get the font name from an otf or ttf file?","tags":["ios","uifont"],"question_text":"I have used a custom font in my previous app.\nThe file name was \"ProximaNova-Regular.otf\" and to load the font I just used...\n`[UIFont fontWithName:@\"ProximaNova-Regular\" size:20];`\nThis worked perfectly.\nNow... |
{"title":"Table name as variable","tags":["sql","sql-server","tsql","variable-names","tablename"],"question_text":"I am trying to execute this query:\n`declare @tablename varchar(50)\nset @tablename = 'test'\nselect * from @tablename`\nThis produces the following error:\nMsg 1087, Level 16, State 1, Line 5\nMust declar... |
{"title":"Allow php sessions to carry over to subdomains","tags":["php","apache","session","cookies"],"question_text":"I use php sessions (not cookies, except for session id cookie) for all user data, and when a user goes to their profile user.mydomain.com they are immediately \"logged out\" untill then remove the subd... |
{"title":"Method Within A Method","tags":["c#","methods"],"question_text":"I am creating a C# library with some reusable code and was trying to create a method inside a method. I have a method like this:\n`public static void Method1()\n{\n \/\/ Code\n}`\nWhat I would like to do is this:\n`public static void Method1()\n... |
{"title":"How to display alt text for an image in chrome","tags":["html","google-chrome"],"question_text":"The image with invalid source displays an alternate text in Firefox but not in chrome unless the width of an image is adjusted.\n`<img height=\"90\" width=\"90\"\n src=\"http:\/\/www.google.com\/intl\/en_ALL\/imag... |
{"title":"Javascript and Garbage collection","tags":["javascript","garbage-collection"],"question_text":"Is there any way to control when Javascript performs garbage collection? I would like to enable it to perform garbage collection at certain times to ensure the smooth operation of my web site","answer_text":"Garbage... |
{"title":"What is the difference between Strategy pattern and Dependency Injection?","tags":["design-patterns","dependency-injection","strategy-pattern"],"question_text":"Strategy pattern and Dependency Injection both allow us to set \/ inject objects at run time. What is the difference between Strategy pattern and Dep... |
{"title":"Find all storage devices attached to a Linux machine","tags":["linux","bash","shell"],"question_text":"I have a need to find all of the writable storage devices attached to a given machine,\nwhether or not\nthey are mounted.\nThe dopey way to do this would be to\ntry\nevery entry in\n`\/dev`\nthat corresponds... |
{"title":"Hide UITabBar?","tags":["iphone","cocoa-touch"],"question_text":"In my app I have a tab bar. And in some views I as well have a toolbar. So when I come to those views with a toolbar it looks ugly - two bars at the bottom of the view. I thought that it would be a best solution to hide a tab bar when entering t... |
{"title":"How do you view ALL text from an ntext or nvarchar(max) in SSMS?","tags":["sql-server","sql-server-2008","tsql","ssms"],"question_text":"How do you view ALL text from an NTEXT or NVARCHAR(max) in SQL Server Management Studio? By default, it only seems to return the first few hundred characters (255?) but some... |
{"title":"querySelector, wildcard element match?","tags":["javascript","dom","domparser","selectors-api"],"question_text":"Is there a way to do a wildcard element name match using\n`querySelector`\nor\n`querySelectorAll`\n? I see support for wildcards in attribute queries but not for the elements themselfs.\nThe XML do... |
{"title":"What is the difference between lowagie and iText?","tags":["java","itext"],"question_text":"What is the difference between lowagie and iText? Is this just version difference or an upgrade to the library. Which one is recommended to be used?","answer_text":"Actually, there is no difference: in iText 2.1.0. Cre... |
{"title":"mixing cout and printf for faster output","tags":["c++","performance","printf","cout"],"question_text":"After performing some tests I noticed that\n`printf`\nis much faster than\n`cout`\n. I know that it's implementation dependent, but on my Linux box\n`printf`\nis 8x faster. So my idea is to mix the two prin... |
{"title":"Why is this error appearing in chrome load resource: net::ERR_QUIC_PROTOCOL_ERROR","tags":["javascript","google-maps","google-chrome"],"question_text":"This is the error I am seeing in my Chrome's console.\nload resource: net::ERR_QUIC_PROTOCOL_ERROR\nHow can I fix it? I want to display a Google map","answer_... |
{"title":"Calculated column in EF Code First","tags":["c#","sql-server","ef-code-first","entity-framework-5","calculated-columns"],"question_text":"I need to have one column in my database calculated by database as (sum of rows) - (sum of rowsb). I'm using code-first model to create my database.\nHere is what I mean:\n... |
{"title":"Android moving back to first activity on button click","tags":["android"],"question_text":"I am writing a application where I am dealing with 4 activities, let's say A, B, C & D. Activity A invokes B, B invokes C, C invokes D. On each of the activity, I have a button called \"home\" button. When user clicks o... |
{"title":"Is C\/C++ one language or two languages?","tags":["c++","c","c++-faq"],"question_text":"Is C\/C++ one language or two languages? I heard C++ was just C with classes. Is that right?","answer_text":"C++\ndiverged from C in 1982-1983, and that's a long time in computer years. But, there are many C libraries with... |
{"title":"iPhone SDK 4 AVFoundation - How to use captureStillImageAsynchronouslyFromConnection correctly?","tags":["iphone","camera","avfoundation"],"question_text":"I am trying to use the new\n`AVFoundation framework`\nfor taking still pictures with the iPhone.\nWith a button press this methos is called. I can hear th... |
{"title":"JavaScript dictionary with names","tags":["javascript","dictionary","map"],"question_text":"I want to create a dictionary in javascript like the following:\n`myMappings = [\n{ \"Name\":10%},\n{ \"Phone\":10%},\n{ \"Address\":50%},\n{ \"Zip\":10%},\n{ \"Comments\":20%}\n]`\nI want to populate an html table lat... |
{"title":"Can't get WRITE_SETTINGS permission","tags":["android","android-6.0-marshmallow"],"question_text":"When I have a target API of 23 on Android M Preview 3, I cannot seem to acquire the Manifest.permission.WRITE_SETTTINGS permission.\n`requestPermissions(new String[]{Manifest.permission.WRITE_SETTINGS},\n 101);`... |
{"title":"ActiveRecord Query Union","tags":["ruby-on-rails","activerecord","union","activerelation"],"question_text":"I've written a couple of complex queries (at least to me) with RoR's query interface:\n`watched_news_posts = Post.joins(:news => :watched).where(:watched => {:user_id => id})\nwatched_topic_posts = Post... |
{"title":"How to enable mod_rewrite in LAMP on ubuntu?","tags":["php","mod-rewrite","ubuntu","ubuntu-12.04","lamp"],"question_text":"I'm using Ubuntu 12.04 LTS linux on my machine. I've already installed LAMP on it. Now I want to enable the mod_rewrite module. I did google a lot and tried lots of tricks but couldn't be... |
{"title":"Forcing jQuery Mobile to re-evaluate styles\/theme on dynamically inserted content","tags":["jquery-mobile"],"question_text":"Objective:\nLoad HTML content via\n`$.ajax`\n, insert it into the DOM, have jQuery Mobile apply theme styles to it.\nProblem:\nContent gets inserted but lacks jQuery Mobile theming.\nC... |
{"title":"how do I use the grep --include option for multiple file types?","tags":["shell","grep"],"question_text":"When I want to grep all the html files in some directory, I do the following\n`grep --include=\"*.html\" pattern -R \/some\/path`\nwhich works well. The problem is how to grep all the html,htm,php files i... |
{"title":"Ask for Permission for Local Notifications in iOS 8, but still have the App Support iOS 7","tags":["ios","objective-c","xcode"],"question_text":"I have an app which uses local notifications. In iOS 7 everything works fine, but in iOS 8 the app needs to ask for user permission to display notifications. To ask ... |
{"title":"Why won't .filter() work in Internet Explorer 8?","tags":["javascript","jquery","internet-explorer"],"question_text":"This is the line:\n`songs = songs.filter(function (el) {\n return el.album==album;\n});`\nThis is the error:\nObject doesn't support this property or method\nThis Works 100% fine in Chrome. Wh... |
{"title":"What is the recommended batch size for SqlBulkCopy?","tags":[".net","sql-server","performance","ado.net"],"question_text":"What is the recommended batch size for\n`SqlBulkCopy`\n? I'm looking for a general formula I can use as a starting point for performance tuning.","answer_text":"I have an import utility s... |
{"title":"How to override apply in a case class companion","tags":["scala","pattern-matching","case-class"],"question_text":"So here's the situation. I want to define a case class like so:\n`case class A(val s: String)`\nand I want to define an object to ensure that when I create instances of the class, the value for '... |
{"title":"Why is a SHA-1 Hash 40 characters long if it is only 160 bit?","tags":["encoding","hash","sha1","hashcode","base32"],"question_text":"The title of the question says it all. I have been researching SHA-1 and most places I see it being 40 Hex Characters long which to me is 640bit. Could it not be represented ju... |
{"title":"Understanding load average vs. cpu usage","tags":["linux","operating-system","load"],"question_text":"Okay, I'm very much a Windows user myself, so my knowledge of Linux-y type things is a bit limited.\nHowever it was my general understanding that \"Load Average\" is an indication of how many processed are be... |
{"title":"What is the Default ActionBar Title Font Size?","tags":["android","android-actionbar"],"question_text":"Seems to be 17dip. Just want to confirm it if anyone knows the exact size.","answer_text":"The short one\u00e2\u0080\u00a6\n`$ grep ActionBar platforms\/android-11\/data\/res\/values\/*`\nleads to\nstyles.x... |
{"title":"Safari ignoring tabindex","tags":["safari","accessibility"],"question_text":"I have 2 buttons next to a textbox and another textbox after the 2 buttons. The tabindex for the first textbox is 1000, the first button is 1001 and the second button is 1002. The second textbox has a tabindex of 1003.\nWhen I press ... |
{"title":"Difference between java.io.PrintWriter and java.io.BufferedWriter?","tags":["java","file","stream","filereader","bufferedreader"],"question_text":"Please look through code below:\n`\/\/ A.class\nFile file = new File(\"blah.txt\");\nFileWriter fileWriter = new FileWriter(file);\nPrintWriter printWriter = new P... |
{"title":"How to change where Subversion repositories are stored?","tags":["svn","visualsvn-server"],"question_text":"Newbie question: I just installed VisualSVN Server and created a repository. I noticed that it created it at C:\\Repositories. I need it stored on my D drive instead as there is more space there. I Goog... |
{"title":"What is the difference between user variables and system variables?","tags":["windows","path","operating-system","environment-variables"],"question_text":"What is the difference between user variables such as\n`PATH`\n,\n`TMP`\n, etc. and system variables?\nI accidentally deleted the user variable\n`PATH`\n. ... |
{"title":"App ready for sale, I can view it, but no one else can","tags":["iphone","itunesconnect"],"question_text":"Apple just approved my app and it says Ready for sale. I know that there is usually a delay with it actually showing up on the app store, but when I press view in iTunes in the app details, it's able to ... |
{"title":"fast algorithm for drawing filled circles?","tags":["c","algorithm","graphics","geometry"],"question_text":"I am using\nBresenham's circle algorithm\nfor fast circle drawing. However, I also want to (at the request of the user) draw a filled circle.\nIs there a fast and efficient way of doing this? Something ... |
{"title":"Android remove space between tabs in tabwidget","tags":["android","android-layout","android-tabhost","tabwidget","android-style-tabhost"],"question_text":"I have made an application which has tabs like in HelloTabActivity, there is also space between these tabs, can anyone suggest how to remove this space and... |
{"title":"Android Release Version and \"Waiting for Debugger\"","tags":["android","release"],"question_text":"I know this has been asked before but I still don't have a solution.\nMy first app: developed and debugged on my moto droid and then followed all the release steps, (exported from Eclipse, using my key to sign)... |
{"title":"Source control system for single developer","tags":["version-control"],"question_text":"What's the recommended source control system for a very small team (one developer)?\nPrice does not matter. Customer would pay :-)\nI'm working on Vista32 with VS 2008 in C++ and later in C# and with WPF. Setting up an ext... |
{"title":"Cron jobs and random times, within giving hours","tags":["bash","cron","sh"],"question_text":"I need the ability to run a php script 20 times a day at completely random times. I also want it to run only between 9am - 11pm.\nI'm familiar with creating cron jobs in linux. Although I'm not able to create any bas... |
{"title":"CSS-defined font not found","tags":["css","webfonts"],"question_text":"Possible Duplicate:\n@font-face not working on a client site?\nI have the following font files in this folder structure in my ASP.Net MVC web app:\n-[root]\n|-- Public\n||--fonts\n|||--NuvoWeb-Medi.eot\n|||--NuvoWeb-Medi.woff\nIn my CSS fi... |
{"title":"How do I get the network interface and its right IPv4 address?","tags":["c#","ip-address","network-interface"],"question_text":"I need to know how to get all network interfaces with their\nIPv4\naddress.\nOr just wireless and Ethernet.\nTo get all network interfaces details I use this:\n`foreach (NetworkInter... |
{"title":"Export only modified and added files with folder structure in Git","tags":["git","git-diff"],"question_text":"I would like to get a list of modified and added files in an specific commit so that I can export them and generate a package with the file structure.\nThe idea is to get the package and extract it on... |
{"title":"How to create a C project with CLion","tags":["c++","c","cmake","clion"],"question_text":"since CLion has released a month ago there aren't many documents about it. So I'm confused about how to create a c project with CLion, when I want to create a new project I just asks the name of the project and creates a... |
{"title":"Vim : changing text between html tags","tags":["vim"],"question_text":"I just wonder how to change the text between html tags right from the normal mode, like the way we can change text within double-quotes thanks to\n`ci\"`\n?","answer_text":"For working between tags replace the\n`\"`\nwith a\n`t`\n, as in\n... |
{"title":"Zend Framework 2 - Layout and variable","tags":["layout","zend-framework2"],"question_text":"i have a layout used by all my views and i need to assign a variable from a controller to this layout , if i use this method on a controller it doesn't work :\n`public function indexAction()\n{\n return new ViewModel(... |
{"title":"Change figure window title in pylab","tags":["python","matplotlib"],"question_text":"How can I set a figure window's title in pylab\/python?\n`fig = figure(9) # 9 is now the title of the window\nfig.set_title(\"Test\") #doesn't work\nfig.title = \"Test\" #doesn't work`","answer_text":"If you want to actually ... |
{"title":"C++: const reference, before vs after type-specifier","tags":["c++","reference","const"],"question_text":"What is the difference between the arguments in:\n`int foo1(const Fred &arg) {\n...\n}`\nand\n`int foo2(Fred const &arg) {\n...\n}`\n?\nI don't see this case covered in the parashift FAQ.","answer_text":"... |
{"title":"Map implementation with duplicate keys","tags":["java","duplicate-data","guava","multimap"],"question_text":"I want to have Map with duplicate keys, I know there are many Map implementations(eclipse shows me about 50), so I bet there must be one that allows this. I know its easy to write your own Map that doe... |
{"title":"How many concurrent requests does a single Flask process receive?","tags":["python","flask","wsgi","gunicorn"],"question_text":"I'm building an app with Flask, but I don't know much about WSGI and it's HTTP base, Werkzeug. When I start serving a Flask application with gunicorn and 4 worker processes, does thi... |
{"title":"Image width\/height as an attribute or in CSS?","tags":["html","css"],"question_text":"What's the \"correct\" semantic way to specify image height and width? In CSS...\n`width:15px;`\nor inline...\n`<img width=\"15\"`\n?\nCSS seems like the right place to put visual information. On the other hand, few would a... |
{"title":"how to fill a list with 0 using python ","tags":["python","list"],"question_text":"I want to get a fixed length list from another list like:\n`a = ['a','b','c']\nb = [0,0,0,0,0,0,0,0,0,0]`\nAnd I want to get a list like this:\n`['a','b','c',0,0,0,0,0,0,0]`\n. In other words, if\n`len(a) < len(b)`\n, i want to... |
{"title":"How can I run a PHP script in the background after a form is submitted?","tags":["php","scripting","background"],"question_text":"Problem\nI have a form that, when submitted, will run basic code to process the information submitted and insert it into a database for display on a notification website. In additi... |
{"title":"What is the difference between Visual Studio Express 2013 for Windows and Visual Studio Express 2013 for Windows Desktop?","tags":["windows","visual-studio-2010","visual-studio-2013"],"question_text":"What is the difference between Visual Studio Express 2013 for Windows and Visual Studio Express 2013 for Wind... |
{"title":"How to define unidirectional OneToMany relationship in JPA","tags":["java","jpa","jpa-2.0"],"question_text":"I have a following problem with entity mapping in JPA. I have two entities, first one is Lookup and the second is Text which represents translations for entities. Now I need to bound Lookup to the Text... |
{"title":"What is the relationship between virtualenv and pyenv?","tags":["python","virtualenv","virtualenvwrapper","pyenv"],"question_text":"I recently learned how to use virtualenv and virtualenvwrapper in my workflow but I've seen pyenv mentioned in a few guides but I can't seem to get an understanding of what pyenv... |
{"title":"Running Python on Windows for Node.js dependencies","tags":["python","windows","node.js","npm"],"question_text":"I am getting into a Node.js codebase which requires that I download a few dependencies via NPM, namely jQuery.\nIn attempting to run\n`npm install jquery`\n, I keep getting this error:\n`Your envir... |
{"title":"What is SQL injection?","tags":["sql","sql-injection","security"],"question_text":"Possible Duplicates:\nXKCD SQL injection - please explain\nhttp:\/\/stackoverflow.com\/search?q=sql+injection\nCan someone explain SQL injection? How does it cause vulnerabilities? Where exactly is the point where SQL is inject... |
{"title":"Backbone routes without hashes?","tags":["javascript","backbone.js"],"question_text":"I'm using backbone for a current project. I was wondering if it's possible to do routing without hashes\n`#`\n, like davis.js does.\nThanks!","answer_text":"You need to enable pushState\n`Backbone.history.start({pushState: t... |
{"title":"git .ignore not working in a directory","tags":["git"],"question_text":"I have the following .gitignore file\n`# file named .gitignore\nsystem\/application\/config\/database.php\nsystem\/application\/config\/config.php\nsystem\/logs\nmodules\/recaptcha\/config\/*`\nHowever when I add any changes in config and... |
{"title":"How to stop UITextView from scrolling up when entering it","tags":["iphone","uitableview","uitextview"],"question_text":"I have a\n`UITextView`\nincluded in a\n`UITableViewCell`\n. The layout is correct when the views are initially displayed, but once I click in the\n`UITextView`\nit automatically scrolls up ... |
{"title":"How do I create a parameterized SQL query? Why Should I?","tags":["sql","vb.net"],"question_text":"I've heard that \"everyone\" is using parameterized SQL queries to protect against SQL injection attacks without having to vailidate every piece of user input.\nHow do you do this? Do you get this automatically ... |
{"title":"How to limit RDLC report for one page in a PDF ?","tags":["pdf","rdlc","report","viewer"],"question_text":"I have a RDLC report and I am displaying it on the Report Viewer Control in my front end application. I am able to view the report perfectly.\nBut the problem arises when I try to export the report to a ... |
{"title":"Creating and writing lines to a file","tags":["vbscript"],"question_text":"Is it possible to create a file and write lines to it in vbscript?\nSomething similar to\necho in bat\nfile (\n`echo something something >>sometextfile.txt`\n).\nOn execution of the vbscript depending on the path of the script would cr... |
{"title":"Swift different images for Annotation","tags":["ios","swift","mkmapview","mkannotationview","mkpointannotation"],"question_text":"I managed to get a custom icon for a annotation pin in Swift, but now I am still stuck using 2 different images for different annotations. Right now a button adds a annotation to t... |
{"title":"Cross Browser Dom Ready","tags":["javascript","javascript-events","onload-event"],"question_text":"I inherited this piece of code and it seems suboptimal and possibly incorrect since it's adding event listeners on both the window and document objects. However, it is working properly except for blackberry 5.0.... |
{"title":"Javascript array length incorrect on array of objects","tags":["javascript","arrays"],"question_text":"Could someone explain this (strange) behavior? Why is the length in the first example 3 and not 2, and most importantly, why is the length in the second example 0? As long as the keys are numerical, length w... |
{"title":"Razor in-line if statement not working?","tags":["asp.net-mvc-3","razor"],"question_text":"I've got an exception throwing at this line, and can't figure out why...maybe someone else can spot it\n`<img src=\"@{Model.Image != null ? Model.Image.FileName : \"\";}\" width=\"200px\" id=\"ImagePreview\"\/>`\nThe ex... |
{"title":"Timeouts WCF Services","tags":["wcf","configuration","timeout","wcf-binding"],"question_text":"How do the timeouts work in WCF? I know for example that you can configure\nsendTimeout\nand\nreceiveTimeout\nfor a clients binding. But how do they work?\nMSDN describes\nsendTimeout\nas:\nA TimeSpan value that spe... |
{"title":"Why is it good save to save sessions in the database?","tags":["php","performance","codeigniter","session","security"],"question_text":"I have seen that codeigniter have facility to save session values in database.\nIt says saving session in database is good security practice.\nBut I think saving session in d... |
{"title":"java generics obj instanceof T","tags":["java","generics","instanceof"],"question_text":"Is there a way to determine if an object is an instance of a generic type?\n`if(obj instanceof T){...}`\nThat clearly doesn't work. Is there an alternative? Like I want to use java reflection to instantiate a class and th... |
{"title":"What are the most commonly used runtime exceptions in java?","tags":["java","exception","runtime"],"question_text":"As a java programmer who wishes to perfect his programming skills, I often come across the situations that I have to create a runtime exception. I know it's a good practice if one use wisely.\nP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.