text stringlengths 74 309k |
|---|
{"title":"How can I create a horizontal gradient background for my iOS nav bar?","tags":["ios","objective-c","ios7","ios8","rubymotion"],"question_text":"I know how to set a navigation bar background color (with barTintColor), but now I am working on an iOS app that calls for a horizontal gradient (not the typical vert... |
{"title":"JavaScript CRC32","tags":["javascript","checksum","crc32"],"question_text":"I'm looking for a\nmodern\nJavaScript implementation of CRC32.\nThis implementation\n, which may have originated from\nhere\n, and is now here,\nthere\nand\neverywhere\n, is unacceptable because it's slow (500ms\/MB), and depends on o... |
{"title":"Does a Core Data parent ManagedObjectContext need to share a concurrency type with the child context?","tags":["ios","core-data"],"question_text":"Can I set the parent context of my ManagedObjectContext to a ManagedObjectContext with a different concurrency type? For example:\n`backgroundManagedObjectContext_... |
{"title":"django render_to_response is not defined error","tags":["python","django-cms","render-to-response"],"question_text":"Hi I am getting this error, while I tried make a simple app.\n`NameError at \/first\/\nglobal name 'render_to_response' is not defined\nRequest Method: GET\nRequest URL: http:\/\/localhost:8000... |
{"title":"c++ get address of variable without operator&","tags":["c++","memory","memory-management","addressof"],"question_text":"I have got a class that has overloaded unary\n`operator&`\n. The objects of that type were created using\n`new`\n, so address of variable was accessible but now I need to use static object. ... |
{"title":"Finding a DOI in a document or page","tags":["regex","doi"],"question_text":"The\nDOI\nsystem places basically no useful limitations on what constitutes\na reasonable identifier\n. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc.\nIs there a reliable... |
{"title":"Spring 3 MVC: one-to-many within a dynamic form (add\/remove on create\/update)","tags":["java","hibernate","spring-mvc","one-to-many","dynamicform"],"question_text":"I'm looking for a solution to\nmanage a one-to-many relation within an HTML form\nusing\njQuery\n. I'm developing with\nSpring\n,\nSpring MVC\n... |
{"title":"Identifying last loop when using for each","tags":["c#","java","ruby","loops","foreach"],"question_text":"I want to do something different with the last loop iteration when performing 'foreach' on an object. I'm using Ruby but the same goes for C#, Java etc.\n`list = ['A','B','C']\n list.each{|i|\n puts \"Loo... |
{"title":"C++ static member variable and its initialization","tags":["c++","initialization","static-variables"],"question_text":"For static member variables in C++ class - the initialization is done outside the class. I wonder why? Any logical reasoning\/constraint for this? Or is it purely legacy implementation - whic... |
{"title":"How to obtain connection ID of signalR client on the server side?","tags":["c#","asp.net-mvc","signalr"],"question_text":"I need to get the connection ID of a client. I know you can get it from the client side using\n`$.connection.hub.id`\n. What I need is to get in while in a web service I have which updates... |
{"title":"Test if an argument of a function is set or not in R","tags":["r","function","variables","variable-assignment","isset"],"question_text":"I have a function\n`f`\nthat takes two parameters (\n`p1`\nand\n`p2`\n):\nIf for the parameter\n`p2`\nno value was passed to the function, the value of\n`p1`\n^2 should be u... |
{"title":"Experiences with D-programming-language","tags":["d"],"question_text":"Has someone here ever had experience with the\nD programming language\n?\nIt seems to have many nice features but will it ever reach the popularity of those currently widespread languages like C++, Java or C#?\nSo is it worth learning or i... |
{"title":"Facebook app domain name when using localhost","tags":["facebook"],"question_text":"From a tutorial here:\nhttp:\/\/ankurm.com\/blog\/api\/using-localhost-for-facebook-app-development\/1091\/\nI tried to set up a Local development Area for my Facebook app. But when I put \"\nhttp:\/\/localhost:85\/my_app\/\n\... |
{"title":"Git SVN Is Unable to Fetch from SVN Repository","tags":["svn","git","git-svn"],"question_text":"I'd like to use SVN and Git together. I have an svn repository, and I'm trying to fetch to a working directory, but I encounter an error as below.\nsvn, version 1.6.6 (r40053)\ngit version 1.7.3.1.msysgit.0\nThe sv... |
{"title":"How to localize bundle display name in iPhone app?","tags":["iphone","localization","bundle"],"question_text":"How can I localize bundle display name of an iPhone app?\nThe name displayed in iPhone main screen under app icon.\nI wish a single binary bundle package which will be displayed multilingually.","ans... |
{"title":"How to specify the character set in the HTTP Content-Type response header?","tags":["optimization","character-encoding","http-headers","content-type"],"question_text":"I had my site tested with the\nPage Speed\napp from Google and one of the suggestions was to specify the character set in the HTTP Content-Typ... |
{"title":"What's the best way to get started with OSGI?","tags":["java","spring","osgi"],"question_text":"What makes a module\/service\/bit of application functionality a particularly good candidate for an OSGi module?\nI'm interested in using\nOSGi\nin my applications. We're a Java shop and we use Spring pretty extens... |
{"title":"Difference between except: and except Exception as e: in Python","tags":["python","python-3.x"],"question_text":"Both the following snippets of code do the same thing. They catch every exception and execute the code in the\n`except:`\nblock\nSnippet 1 -\n`try:\n #some code that may throw an exception\nexcept:... |
{"title":"Android : How to detect the image orientation (portrait or landscape) picked from gallery while setting on an imageview?","tags":["android","android-imageview","android-gallery"],"question_text":"I am setting an image on the imageview picked from the gallery(camera album). If the picked image has landscape or... |
{"title":"Force Windows Batch Script Return Code 0","tags":["windows","batch-file"],"question_text":"A vendor has provided us with a Windows Batch script that needs to have a return code of 0.\nPer that vendor, there are safe to ignore messages being printed by the script.\nThe scripts are used for quiescing the applic... |
{"title":"Recursive Function palindrome in Python","tags":["python","recursion","palindrome"],"question_text":"I need help writing a recursive function which detects whether a string is a palindrome. But i can't use any loops it must be recursive. Can anyone help show me how this is done. I need to learn this for an up... |
{"title":"Python in-memory zip library","tags":["python","memory","zip","archive"],"question_text":"Is there a Python library that allows manipulation of zip archives in memory, without having to use actual disk files?\nThe ZipFile library does not allow you to update the archive. The only way seems to be to extract it... |
{"title":"Best practice: ordering of public\/protected\/private within the class definition?","tags":["oop","coding-style","class-design"],"question_text":"I am starting a new project from the ground up and want it to be clean \/ have good coding standards. In what order do the seasoned developers on here like to lay t... |
{"title":"ImageMagick Brew installation with PHP Module in Mac OS X","tags":["php","osx","imagemagick"],"question_text":"I have installed ImageMagick using\n`brew install imagemagick`\n. This all worked fine and I can run any ImageMagick command from the Terminal \/ Command line.\nNow when I try to use the ImageMagick ... |
{"title":"NSDateFormatter in 12-hour mode","tags":["objective-c","ios","datetime","nsdate","nsdateformatter"],"question_text":"I have the following code.\n`NSDateFormatter *df = ...;\n[df setTimeZone:[NSTimeZone defaultTimeZone]];\n[df setDateFormat:@\"yyyy-MM-dd'T'HH:mm:ss.SSSZZZ\"];\nNSDate * date = [df dateFromStrin... |
{"title":"Deep copy vs Shallow Copy","tags":["c++","clone"],"question_text":"Possible Duplicate:\nWhat is the difference between a deep copy and a shallow copy?\nWhat is the difference between deep and shallow copy. What type of a copy does a copy constructor do?","answer_text":"Shallow copy:\nSome members of the copy ... |
{"title":"Is std::array movable?","tags":["c++","arrays","c++11","move-semantics"],"question_text":"Is std::array movable?\nIn\nBjarne Native 2012 presentation slides\n(slide 41) it lists std::array as one of the only containers that isn't movable.\nA quick look on gcc 4.8 libraries source code seems to confirm that st... |
{"title":"$(this +\"selector\") ? $(\"img\",this) possible?","tags":["jquery"],"question_text":"I'm trying to \"select\" a img inside a $(this) selector. I know I can find it by using\n`.find('img')`\nbut is this possible:\n`$(\"img\",this)`\n?\nWhat's the most optimal way to do this?\nOriginally code\n`<a class=\"pict... |
{"title":"OneWayToSource binding from readonly property in XAML","tags":["wpf","data-binding","xaml","readonly"],"question_text":"I'm trying to bind to a\n`Readonly`\nproperty with\n`OneWayToSource`\nas mode, but it seems this cannot be done in XAML:\n`<controls:FlagThingy IsModified=\"{Binding FlagIsModified, \n Eleme... |
{"title":"Ruby on Rails - render layout","tags":["ruby-on-rails","layout","render"],"question_text":"I'm trying to split up a web site into two sections. One which should use the application layout and one that should use the admin layout. In my application.rb I created a function as follows:\n`def admin_layout\n if cu... |
{"title":"How can I get unique values from an array in linux bash?","tags":["linux","arrays","bash","unique"],"question_text":"I've got almost the same question as\nhere\n.\nI have an array which contains\n`aa ab aa ac aa ad`\n, etc.\nNow I want to select all unique elements from this array.\nThought, this would be sim... |
{"title":"adding header to python request module","tags":["python","http-headers","python-requests"],"question_text":"Earlier I used\n`httplib`\nmodule to add header in the request. Now I am trying same thing with the request module.\nThis is the python request module I am using:\nhttp:\/\/pypi.python.org\/pypi\/reques... |
{"title":"AngularJS - Testing service method that uses $http service","tags":["unit-testing","angularjs"],"question_text":"I have a function on my service that looks like something this:\n`addStatement: function(user, action, object) {\n var statement = {\n user: user,\n action: action,\n object: object\n };\n $http({\... |
{"title":"Bundle Name, Executable Name, Product Name...anything else?","tags":["iphone","xcode"],"question_text":"Bundle Name, Executable Name, Product Name... any more??\ncan someone please help clarify the use of each of these in Xcode on an iPhone project? They never fail to confuse the living bajezus out of me...an... |
{"title":"Make it possible to ONLY select one row in datagrid?","tags":["winforms","select","datagridview"],"question_text":"I want my datagrid to only allow one row to selected.\nI guess I can do this by adding code to the datagridviews selectionChanged-event, but is there a better solution?\nI would prefer to just ha... |
{"title":"PHP AWS SDK throwing unknown error","tags":["php","curl","amazon-web-services","amazon-s3"],"question_text":"I have been working with amazon S3 for media storage for a e-commerce site but I ran into this error and have no idea how to fix it:\n`Use of undefined constant CURLE_COULDNT_RESOLVE_HOST - assumed 'CU... |
{"title":"What do the columns in the Object Alloc instrument mean?","tags":["iphone","instruments"],"question_text":"I was unable to find the documentation for this. There is no Quick Info.\nThe columns have these opaque titles:\n`Category\nLive Bytes\n# Living\n# Transitory\nOverall Bytes\n# Overall\n# Allocations (Ne... |
{"title":"Convert character to its alphabet integer position?","tags":["c#","alphabetical"],"question_text":"I'm trying to find if there is a quick way to get the integer position of a character in the alphabet (C#).\nI can simply create an array and get the position, but seems there must be a \"nice and funky\" way of... |
{"title":"How can I use the python HTMLParser library to extract data from a specific div tag?","tags":["python","html","parsing","html-parsing"],"question_text":"I am trying to get a value out of a HTML page using the python HTMLParser library. The value I want to get hold of is within this html element:\n`...\n<div i... |
{"title":"What does \"The constructor ... is ambiguous\" mean?","tags":["java","eclipse"],"question_text":"I would like to know what the error message in Eclipse means:\nThe constructor Case(Problem, Solution, double, CaseSource) is ambiguous","answer_text":"The problem exists when you try to instantiate a class that c... |
{"title":"Setting the default page for ASP.NET (Visual Studio) server configuration","tags":["asp.net","visual-studio-2008","configuration"],"question_text":"When I build and run my application I get a directory listing in the browser (\nalso happens for sub folders\n), and I have to click on Index.aspx. It's making me... |
{"title":"Dirty checking on angular","tags":["javascript","angularjs","observer-pattern"],"question_text":"I was reading some article to understand a little bit more how\nangular.js\nworks.\nOne of the terms that I didn't understand is \"\ndirty checking\n\".\nWhat is it exactly? It seems like an\nobserver pattern\nbut... |
{"title":"Can a VBA function in Excel return a range?","tags":["excel","vba","excel-vba"],"question_text":"I seem to be getting a type mismatch error when trying to do something like this:\nIn new workbook:\n`A1 B1\n5 4\nFunction Test1() As Integer\n Dim rg As Range\n Set rg = Test2()\n Test1 = rg.Cells(1, 1).Value\nEn... |
{"title":"git diff on date?","tags":["git"],"question_text":"I'm accustomed to running a git comparison that will allow comparison with local git revs like:\n`git diff HEAD HEAD~110 -- some\/file\/path\/file.ext`\nIs it possible to use the date instead? And if so, how? I would like to be able insert in place of the \"1... |
{"title":"Custom seekbar thumb not transparent on Lollipop API21","tags":["android","layout","android-5.0-lollipop","android-seekbar"],"question_text":"This is my\nseekbar\n:\n`<SeekBar\n android:id=\"@+id\/seek1\"\n android:layout_width=\"fill_parent\"\n android:layout_height=\"wrap_content\"\n android:layout_margin=\... |
{"title":"Multiple Tuple to Two-Pair Tuple in Python?","tags":["python","data-structures","tuples"],"question_text":"What is the nicest way of splitting this:\n`tuple = ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h')`\ninto this:\n`tuples = [('a', 'b'), ('c', 'd'), ('e', 'f'), ('g', 'h')]`\nAssuming that the input always has ... |
{"title":"Does insertion to STL map invalidate other existing iterator?","tags":["c++","stl"],"question_text":"I used std::map in STL. Can I use iterator after some other element inserted to the map? Is it still valid?","answer_text":"When in doubt as to the semantics of an operation on a container, consult\nthe docume... |
{"title":"gitignore without binary files","tags":["git","gitignore"],"question_text":"How can binary files be ignored in\n`git`\nusing the\n`.gitignore`\nfile?\nExample:\n`$ g++ hello.c -o hello`\nThe \"hello\" file is a binary file. Can\n`git`\nignore this file ?","answer_text":"`# Ignore all\n*\n# Unignore all with e... |
{"title":"how can I convert System.Drawing.Icon to System.Drawing.Image?","tags":["c#",".net","image","icons","system.drawing"],"question_text":"I'm getting icon from another application using this:\n`Icon IEIcon = Icon.ExtractAssociatedIcon(@\"C:\\Program Files\\Internet Explorer\\iexplore.exe\");`\nhow to convert it ... |
{"title":"How to create an instance of anonymous class of abstract class in Kotlin?","tags":["java","abstract-class","kotlin"],"question_text":"Assume that\n`KeyAdapter`\nis an abstract class with several methods that can be overridden.\nIn java I can do:\n`KeyListener keyListener = new KeyAdapter() {\n @Override publi... |
{"title":"Change :hover CSS properties with JavaScript","tags":["javascript","html","css","dhtml"],"question_text":"I need to find a way to change CSS :hover properties using JavaScript.\nFor example, suppose I have this HTML code:\n`<table>\n <tr>\n <td>Hover 1<\/td>\n <td>Hover 2<\/td>\n <\/tr>\n<\/table>`\nAnd the f... |
{"title":"Joda DateTime to Timestamp conversion","tags":["java","jodatime"],"question_text":"I am trying to change the value of\n`Timestamp`\nby\n`DateTimeZone`\nin\nJoda\n:\n`DateTime dt = new DateTime(rs.getTimestamp(\"anytimestampcolumn\"),\n DateTimeZone.forID(\"anytimezone\"));\n Timestamp ts = new Timestamp(dt.ge... |
{"title":"Django Unique Together (with foreign keys)","tags":["django-models"],"question_text":"I have a situation where I want to use the Meta options of\n`unique_together`\nto enforce a certain rule, here's the intermediary model:\n`class UserProfileExtension(models.Model):\n extension = models.ForeignKey(Extension, ... |
{"title":"method with angle brackets (<>)","tags":["scala","syntax","dsl","syntactic-sugar"],"question_text":"Is it possible to have angle brackets in method names , e.g. :\n`class Foo(ind1:Int,ind2:Int){...}\nvar v = new Foo(1,2)\nv(1) = 3 \/\/updates ind1\nv<1> = 4 \/\/updates ind2`\nThe real situation is obviously m... |
{"title":"Unable to compile using Java 1.7 in Jetbrains Intellij after moving from 1.6 to 1.7 (maven based project)","tags":["java","intellij-idea","javac"],"question_text":"Using Jetbrains 11.2 project based on a Maven project. Then I required to move to 1.7. I have 1.7 installed , I updated my pom.xml and I can rebui... |
{"title":"How do you add more than one UIBarButton on UINavigationItem.rightBarButtonItem (or leftBarButtonItem)?","tags":["iphone","uinavigationbar","uibarbuttonitem"],"question_text":"I have tried this approach\/hack:\nhttp:\/\/blog.blackwhale.at\/2009\/06\/uibuttons-in-uinavigationbar\/\nThe problem is this leaves a... |
{"title":"GlassFish vs tomcat","tags":["java","java-ee","glassfish","application-server","tomcat5.5"],"question_text":"I would like to start using JEE6 in the next project that I have to work on at my job, but there is also a limitation (sort of): Tomcat 5.5\nMy question is, what improvements would bring GlassFish to t... |
{"title":"How to add grails to IntelliJ IDEA","tags":["grails","intellij-idea"],"question_text":"I want to learn grails and i want to use IntelliJ IDEA and my professor said that I could connect grails to IntelliJ IDEA but i dont know how. \nCan you please help me with clear steps on how to do so?\nThanks","answer_text... |
{"title":"Xcode 6 and Embedded Frameworks only supported in iOS8","tags":["objective-c","ios8","dylib","dynamic-library"],"question_text":"When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get:\nBuild is successful\nRuntime library loading error\nError:\n`dyld: Library not ... |
{"title":"How does product attributes and attribute options are stored in Magento database?","tags":["magento"],"question_text":"I am trying to figure out how the linkage between attribute and attribute options, and product and attributes are made in Magento. Is there any reference to how this is working? or anyone giv... |
{"title":"svn Error validating server certificate","tags":["svn","ssl-certificate"],"question_text":"If I use any\n`svn`\ncommand communicating with the remote server I get the following error:\n`Error validating server certificate for 'https:\/\/...':\n - The certificate is not issued by a trusted authority. Use the\n... |
{"title":"How to show cursor in Powershell","tags":["powershell","azure","cursor"],"question_text":"I'm new to Powershell and have to use it now that I am doing a lot in Azure.\nWhen I open the Azure Powershell window, the blinking cursor is not there and it's hard for me to tell where edit. How do I turn on the cursor... |
{"title":"Owl Carousel Won't Autoplay","tags":["javascript","html","owl-carousel"],"question_text":"I'm using the Owl Carousel on\nhttp:\/\/www.mjluxepromotions.com\/new-site\nAccording to their documentation this piece of JavaScript should work:\n`<script>\n$(\"#intro\").owlCarousel({\n\/\/ Most important owl features... |
{"title":"Custom WiX Burn bootstrapper user interface?","tags":["wix","wix3.6","burn"],"question_text":"I'm creating an installation package with WiX 3.6 primarily so I can take advantage of the\nBurn\nbootstrapping features. So far I have several MSI packages bundled together that will be installed with the built-in b... |
{"title":"Using NSURLRequest to pass key-value pairs to PHP script with POST","tags":["php","iphone","objective-c","cocoa-touch","nsurlrequest"],"question_text":"I'm fairly new to objective-c, and am looking to pass a number of key-value pairs to a PHP script using POST. I'm using the following code but the data just d... |
{"title":"If delegates are immutable, why can I do things like x += y?","tags":["c#","delegates","immutability"],"question_text":"Reading\nC# In Depth, 2nd edition\n, section 2.1.2 on combining and removing delegates.\nThe subsection title states that \"delegates are immutable\" and that \"nothing about them can be cha... |
{"title":"How can I see my applications threads while debugging in Visual Studio?","tags":[".net","visual-studio","visual-studio-2008","multithreading","debugging"],"question_text":"I would like to see the threads currently active in my application while debugging it.\nHow can I do this using Visual Studio?","answer_te... |
{"title":"Class library can't find MembershipUser","tags":["c#","asp.net","asp.net-mvc"],"question_text":"I've added a class library project to my application.\nIn one of my classes, I need to use the MembershipUser class, but the project can't find it. I've added references to System.Web, System.Web.Security, and Syst... |
{"title":"what's equivalent to Long data type in postgresql?","tags":["java","postgresql"],"question_text":"greetings all\ni want to know what's equivalent to Long data type in postgresql\nwhich i can retrieve in a long variable.","answer_text":"According to\nthe docs\nit looks like\n`bigint`\nis your friend, with a ra... |
{"title":"How to trigger component refresh from javascript in primefaces?","tags":["jsf","jsf-2","primefaces"],"question_text":"Is it possible to update a PrimeFaces component from javascript so that it would be force to refresh?\nI am making an ajax save call using this button in a dialog.\nI have attached my custom j... |
{"title":"LISTAGG in oracle to return distinct values","tags":["sql","oracle","aggregate-functions"],"question_text":"I am trying to use the\n`LISTAGG`\nfunction in Oracle. I would like to get only the distinct values for that column. Is there a way in which I can get only the distinct values without creating a functio... |
{"title":"Building Twitter profile image url with Twitter user id","tags":["twitter"],"question_text":"Is there any way of building a profile image url with user id or screen name? I store user ids in database but i don't want to store profile image url.\nedit:\nI don't want to make a api call too. I want to put user_i... |
{"title":"Webkit animation is leaving junk pixels behind on the screen","tags":["css","ios","animation","webkit","mobile-safari"],"question_text":"The following code puts a white box on the screen. If you run this on an iPad (you can adjust the pixels to run it on an iPhone, too), when you touch the box, it will scoot ... |
{"title":"Replace preg_replace() e modifier with preg_replace_callback","tags":["php","regex","preg-replace","preg-replace-callback"],"question_text":"I'm terrible with regular expressions. I'm trying to replace this:\n`public static function camelize($word) {\n return preg_replace('\/(^|_)([a-z])\/e', 'strtoupper(\"\\... |
{"title":"PHP: What does a & in front of a variable name mean?","tags":["php"],"question_text":"What does a & in front of a variable name mean?\nFor example &$salary vs. $salary","answer_text":"It passes a reference to the variable so when any variable assigned the reference is edited, the original variable is changed.... |
{"title":"How can I start the rails console and use the testing database exclusively?","tags":["ruby-on-rails"],"question_text":"I'd like to start the rails console and create database entries in a database that isn't the default database, such as the testing database. I'd appreciate any help.","answer_text":"To start ... |
{"title":"How are iterators and pointers related?","tags":["c++","stl","pointers","iterator"],"question_text":"Code with iterators looks pretty much like code with pointers. Iterators are of some obscure type (like\n`std::vector<int>::iterator`\nfor example).\nWhat I don't get is how iterators and pointer are related t... |
{"title":"How do I POST to a web page using Firebug?","tags":["http","post","firebug"],"question_text":"How do I POST to a web page using Firebug?","answer_text":"You can send\nPOST\nrequest to any page by opening console (e.g. in FireFox\nctrl + shift + k\n) and typing simple JS:\n`var formPost = document.createElemen... |
{"title":"What exactly do the Vagrant commands do?","tags":["virtualbox","vagrant"],"question_text":"There is surprisingly no documentation on what the Vagrant commands do, other than references throughout the \"getting started\" tutorial.\nWhat I've worked out so far:\n`box`\n- manage \"\nboxes\n\"\n`destroy`\n- shut ... |
{"title":"How to Delete All Items From SQLite in Android","tags":["android","sqlite","sql-delete"],"question_text":"I would like to make an app where the user clicks a button, and the SQLite database is cleared. Here's what I've tried so far:\n`db.delete(TABLE_NAME, null, null);`\nWhat am I doing wrong?","answer_text":... |
{"title":"FindClass from any thread in Android JNI","tags":["android","c++","jni"],"question_text":"Android's JNI tips page mentions this\nFAQ: Why didn't FindClass find my class?\nThey mention multiple solutions and the last option there is this one:\nCache a reference to the ClassLoader object somewhere handy, and is... |
{"title":"SQLite Delete Cascade not working","tags":["android","sqlite","cascading-deletes"],"question_text":"In Android 4.2, using SQLite 3.7.11, when I delete a row from the Quizzes table, who's schema is below, the corresponding rows in the QuizQuestions table are not deleted.\nI can't figure out what's wrong. I hav... |
{"title":"Convert XElement to string","tags":["c#","xml","linq","linq-to-xml"],"question_text":"I have a simple XElement object\n`XElement xml = new XElement(\"XML\",\n new XElement (\"TOKEN\",Session[\"Token\"]),\n new XElement(\"ALL_INCLUSIVE\", \"0\"),\n new XElement(\"BEACH\", \"0\"),\n new XElement(\"DEST_DEP\", d... |
{"title":"Alternatives to \" \" for creating strings containing multiple whitespace characters","tags":["c#","string","spaces"],"question_text":"I'm wondering if there's a more OO way of creating spaces in C#.\nLiterally Space Code!\nI currently have\n`tabs += new String(\" \");`\nand I can't help but feel that this is... |
{"title":"Is there a way to use data-template inheritance in WPF?","tags":["wpf","xaml","datatemplate"],"question_text":"Is it possible to have\n`DataTemplate`\ncomposition or inheritance (similar to \"BasedOn\" in Styles)? There are 2 instances where I need that.\nFor inherited classes: I have a base class with severa... |
{"title":"How to speed up WPF programs?","tags":["wpf","performance"],"question_text":"I love programming with and for Windows Presentation Framework. Mostly I write browser-like apps using WPF and XAML.\nBut what really annoys me is the slowness of WPF. A simple page with only a few controls loads fast enough, but as ... |
{"title":"Allow Python list append method to return the new list","tags":["python","list","append"],"question_text":"I want to do something like this:\n`myList = [10,20,30]\nyourList = myList.append (40)`\nUnfortunately, list append does not return the modified list.\nSo, how can I allow\n`append`\nto return the new li... |
{"title":"Rails : Define a unique primary key based on 2 columns","tags":["ruby-on-rails","primary-key","composite-primary-key"],"question_text":"I would like to define a unique key for records based on 2 columns : 'id' and 'language'\nto let the user submits the following strings :\n id=1 language=en value=blabla engl... |
{"title":"How do I make a Textbox Postback on KeyUp?","tags":["asp.net","ajax","asp.net-ajax","updatepanel","postback"],"question_text":"I have a Textbox that changes the content of a dropdown in the OnTextChanged event. This event seems to fire when the textbox loses focus. How do I make this happen on the keypress or... |
{"title":"Trying to manually sign android package with jarsigner.exe and install with adb.exe","tags":["android","apk","jar-signing"],"question_text":"I've been trying to use the jarsigner.exe and adb.exe to manually sign an android package and install it on a API V8 emulator. I created a simple HelloAndroid project an... |
{"title":"Django NoReverseMatch","tags":["python","django","python-2.7","django-1.6"],"question_text":"I'm making a simple login app in django 1.6 (and python 2.7) and I get an error at the beggining that is not letting me continue.\nThis is the site's url.py\n`from django.conf.urls import patterns, include, url\nfrom ... |
{"title":"Java Logging With Abstract Classes","tags":["java","inheritance","logging","abstract-class"],"question_text":"I am working on a project, and am currently working on implementing some logging with log4j and I was curious about how I should go about implementing the logs. The two implementations I am kicking ar... |
{"title":"Remove element from JSON Object","tags":["javascript","jquery","json"],"question_text":"I have a json array which looks something like this:\n`{\n \"id\": 1,\n \"children\": [\n {\n \"id\": 2,\n \"children\": {\n \"id\": 3,\n \"children\": {\n \"id\": 4,\n \"children\": \"\"\n }\n }\n },\n {\n \"id\": 2,\n \"... |
{"title":"Why are std::shuffle methods being deprecated in C++14?","tags":["c++","c++11","deprecated","c++14","stl-algorithm"],"question_text":"According to the\ncppreference.com\nreference site on\nstd::shufle\n, the following method is being deprecated in c++14:\n`template< class RandomIt >\nvoid random_shuffle( Rand... |
{"title":"Can we join two tables without primary-foreign key relation?","tags":["sql","database"],"question_text":"If we can get data from two tables without having primary and foreign key relation, then why we need this rule? Can you please explain me clearly, with suitable example?\nIt's a test database, don't mind o... |
{"title":"Can MySQL use multiple indexes for a single query?","tags":["mysql","indexing","database-indexes"],"question_text":"Imagine a table with multiple columns, say,\n`id, a, b, c, d, e`\n. I usually select by\n`id`\n, however, there are multiple queries in the client app that uses various conditions over subsets o... |
{"title":"how to send email with attachment from R in windows","tags":["r","email","sendmailr"],"question_text":"I have a scheduled R script running from a windows machine. After it finishes, I wish this script to automatically send an email with some log file attached. Using shell() with some other scripts may be poss... |
{"title":"What is the difference between split() and explode()?","tags":["php","posix-ere"],"question_text":"The PHP manual for\n`split()`\nsays\nThis function has been\nDEPRECATED\nas\n of PHP 5.3.0. Relying on this feature\n is highly discouraged...Use\n`explode()`\ninstead.\nBut I can't find a difference between\n`s... |
{"title":"Jenkins: remove old builds with command line","tags":["jenkins"],"question_text":"I delete old jenkins builds with\n`rm`\nwhere job is hosted:\n`my_job\/builds\/$ rm -rf [1-9]*`\nThese old builds are still visible in job page.\nHow to remove them with command line?\n(without the delete button in each build us... |
{"title":"PHP function to delete all between certain character(s) in string","tags":["php","string"],"question_text":"I'm interested in\n`function delete_all_between($char1, $char2, $string)`\nthat will search given $string for $char1 and $char2 and, if such has been found, clear $string from substring between these tw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.