text
stringlengths
74
309k
{"title":"Installing pyodbc fails on OSX 10.9 (Mavericks)","tags":["python","osx","pyodbc"],"question_text":"When running\n`pip install pyodbc`\n, I get\n`In file included from ...\/build\/pyodbc\/src\/buffer.cpp:12:\n ...\/build\/pyodbc\/src\/pyodbc.h:52:10: fatal error: 'sql.h' file not found\n #include <sql.h>\n ^\n...
{"title":"Retry a jquery ajax request which has callbacks attached to its deferred","tags":["jquery","ajax","jquery-deferred"],"question_text":"I'm trying to implement a system of retrying ajax requests that fail for a temporary reason. In my case, it is about retrying requests that failed with a 401 status code becaus...
{"title":"How to disable \"Save workspace image?\" prompt in R?","tags":["r"],"question_text":"When I exit the interactive R shell, it displays an annoying prompt every time:\n>\n>\nSave workspace image? [y\/n\/c]: n\nI'm always answering \"no\" to it, because if I wished to save my work, I'd do that\nbefore\ntrying to...
{"title":"Google App Engine: appcfg.py rollback","tags":["google-app-engine","rollback"],"question_text":"I'm using Windows 7 and for the life of me I cannot figure out how to call the rollback function on appcfg.py. All I want to know is what to type into the command prompt so I can rollback my app.","answer_text":"Tr...
{"title":"Help understanding jQuery's jQuery.fn.init Why is init in fn","tags":["javascript","jquery","design","init"],"question_text":"I was looking over the jQuery to better understand how it works. The constructor basically just calls\n`new jQuery.fn.init`\nI was wondering what is the point of having the init inside...
{"title":"vim: persistent :set syntax for a given filetype?","tags":["syntax-highlighting","vim","twig","macvim"],"question_text":"I'm working on a Symfony2 project which uses Twig, and the filetypes are\n`myfile.html.twig`\n. Vim doesn't automatically detect the syntax highlighting and so applies none. I can use\n`:se...
{"title":"Ruby way: catch division by zero","tags":["ruby","refactoring","divide-by-zero"],"question_text":"I have the following method to compute an average:\n`def compute_average(a,b,c,d,e)\n total = [a,b,c,d,e].sum.to_f\n average = [a, 2*b, 3*c, 4*d, 5*e].sum \/ total\n average.round(2)\nend`\nIt's nothing special, ...
{"title":"Use Rack::CommonLogger in Sinatra","tags":["ruby","logging","sinatra","rack","error-logging"],"question_text":"I have a small web-server that I wrote with Sinatra. I want to be able to log messages to a log file. I've read through\nhttp:\/\/www.sinatrarb.com\/api\/index.html\nand www.sinatrarb.com\/intro.html...
{"title":"Code to enumerate permutations in Scala","tags":["scala","permutation"],"question_text":"I coded a function to enumerate all permutations of a given list. What do you think of the code below?\n`def interleave(x:Int, l:List[Int]):List[List[Int]] = {\n l match { \n case Nil => List(List(x))\n case (head::tail) ...
{"title":"How to retrieve the GCC version used to compile a given ELF executable?","tags":["gcc","elf"],"question_text":"I'd like to retrieve the GCC version used to compile a given executable. I tried\n`readelf`\nbut didn't get the information. Any thoughts?","answer_text":"It is normally stored in the comment section...
{"title":"Any ReSharper equivalent for Xcode?","tags":["objective-c","xcode","osx","refactoring"],"question_text":"I'm a complete Xcode\/Objective-C\/Cocoa newbie but I'm learning fast and really starting to enjoy getting to grips with a new language, platform and paradigm.\nOne thing is though, having been using Visua...
{"title":"Am I missing something about LINQ?","tags":["c#","sql","linq"],"question_text":"I seem to be missing something about LINQ. To me, it looks like it's taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things.\nI mean, I could see the benefit o...
{"title":"Bitbucket fails to authenticate on git pull","tags":["git","bitbucket"],"question_text":"I use BitBucket and had to change my password because it was compromised.\n`git pull`\nremote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your...
{"title":"Perform a non-regex search\/replace in vim","tags":["regex","vim","replace"],"question_text":"When doing search\/replace in vim, I almost never need to use regex, so it's a pain to constantly be escaping everything, Is there a way to make it default to not using regex or is there an alternative command to acc...
{"title":"Exotic names for methods, constants, variables and fields - Bug or Feature?","tags":["php","unicode"],"question_text":"after some confusion in the comments to\nIs it safe to have 1 letter class names in PHP, e.g A, B, C\nI thought I make into a question. According to the PHP manual, a valid class name should ...
{"title":"rails: how to have an image for the submit tag?","tags":["ruby-on-rails"],"question_text":"I have been using submit tag helpers.\n`<%= submit_tag 'Submit' %>`\nI have an image called my_image.png.\nHow can I make the submit button be an image?\nI tried:\n`<%= submit_tag '#{image_tag(\"Login_small.png\", :widt...
{"title":"Minify\/compress CSS with regex?","tags":["php","css","regex","pcre","minify"],"question_text":"In PHP can you compress\/minify CSS with regex (PCRE)?\n(As a theoretical in regex. I'm sure there are libraries out there that do this well.)\nBackground note: After spending hours writing an answer to a\ndeleted ...
{"title":"Using new line(\\n) in string and rendering the same in HTML","tags":["jquery","html","string","newline"],"question_text":"I have a string say\n`string display_txt = \"1st line text\" +\"\\n\" + \"2nd line text\";`\nin Jquery, I am trying to use\n`('#somediv').html(display_txt).css(\"color\", \"green\")`\nqui...
{"title":"Want to exclude file from \"git diff\"","tags":["git","diff","git-diff"],"question_text":"I am trying to exclude a file (\n`db\/irrelevant.php`\n) from a Git diff. I have tried putting a file in the\n`db`\nsubdirectory called\n`.gitattributes`\nwith the line\n`irrelevant.php -diff`\nand I have also tried crea...
{"title":"maximum memory which malloc can allocate","tags":["c","memory-management","operating-system","malloc","computer-architecture"],"question_text":"I was trying to figure out how much memory I can malloc to maximum extent on my machine\n(1 Gb RAM 160 Gb HD Windows platform).\nI read that the maximum memory malloc...
{"title":"MySQL Query to calculate the Previous Month","tags":["mysql"],"question_text":"I would like to calculate total order amount in the previous month.\nI got the query for getting the data for the present month from the current date.\n`SELECT SUM(goods_total) AS Total_Amount FROM orders\nWHERE order_placed_date >...
{"title":"What is \"over-engineering\" as applied to software?","tags":["design","software-engineering","terminology","definition"],"question_text":"I wonder what would be a good definition of term \"over-engineering\" as applied to software development. The expression seems to be used a lot during software design disc...
{"title":"How to show hidden divs on mouseover?","tags":["javascript","css","html","mouseover"],"question_text":"How to simply show a set of hidden divs on mouseover.\nso if\n`#div1\n#div2 \n#div3`\nall need to be shown on mouseover, how to I do this?","answer_text":"If the divs are hidden, they will never trigger the\...
{"title":"C++ ABI issues list","tags":["c++"],"question_text":"I've seen a lot of discussion about how C++ doesn't have a Standard ABI quite in the same way that C does. I'm curious as to what, exactly, the issues are. So far, I've come up with\nName mangling\nException handling\nRTTI\nAre there any other ABI issues pe...
{"title":"Finding out what the GCC include path is","tags":["c","linux","gcc","c-preprocessor"],"question_text":"I'm trying to programmatically find the\n`#include`\npath on Linux, which as I understand it, in practice means finding what GCC considers it to be. (Is that quite true? How does Clang do it?)\nAccording to\...
{"title":"Groovy load .csv files","tags":["groovy","csv","import"],"question_text":"How to read and import .csv file in groovy on grails. I have .csv file with data and\nneed to import in to db using user interface .\nthanks in advance,\nsrinath","answer_text":"There are as always different possibilities to work with C...
{"title":"Django migration strategy for renaming a model and relationship fields","tags":["django","django-migrations"],"question_text":"I'm planning to rename several models in an existing Django project where there are many other models that have foreign key relationships to the models I would like to rename. I'm fai...
{"title":"UIScrollView custom paging size","tags":["iphone","objective-c","ipad","uiscrollview"],"question_text":"paging in UIScrollView is a great feature, what I need here is to set the paging to a smaller distance, for example I want my UIScrollView to page less size that the UIScrollView frame width.\nThanks","answ...
{"title":"Does Swift implement tail call optimization? and in mutual recursion case?","tags":["swift","tail-call-optimization"],"question_text":"In particular if I have the following code:\n`func sum(n: Int, acc: Int) -> Int {\n if n == 0 { return acc }\n else { return sum(n - 1, acc + n) }\n}`\nWill Swift compiler opt...
{"title":"What is the entry point of swift code execution?","tags":["cocoa-touch","swift","ios8"],"question_text":"There is no\n`main()`\nmethod in swift. The program must start the execution from somewhere. So what is the entry point of swift code execution and how is it decided?","answer_text":"The entry point in a p...
{"title":"C extension: <? and >? operators","tags":["c","gcc","max","min"],"question_text":"I observed that there was at some point a\n`<?`\nand\n`>?`\noperator in GCC. How can I use these under GCC 4.5? Have they been removed, and if so, when?\n`Offset block_count = (cpfs->geo.block_size - block_offset) <? count;\ncpf...
{"title":"spring: set property of one bean by reading the property of another bean?","tags":["java","spring","dependency-injection"],"question_text":"Is it possible to set the property of one bean by reading the property of another bean? For instance, suppose I had:\n`class A {\n void setList(List list);\n}\nclass B {\...
{"title":"regex to get the number from the end of a string","tags":["javascript","regex"],"question_text":"i have a id like stringNumber variable like the one as follows : example12\nI need some javascript regex to extract 12 from the string.\"example\" will be constant for all id and just the number will be different....
{"title":"Clicking app icon doesn't trigger onOptionsItemSelected()","tags":["android","android-actionbar","android-homebutton"],"question_text":"I'm currently working on an Android app. I would like to use the app icon in the action bar to navigate to the \"home\" activity. I read on\nthis\npage that all that needs to...
{"title":"Why isn't speech recognition advancing?","tags":["algorithm","speech-recognition"],"question_text":"What's so difficult about the subject that algorithm designers are having a hard time tackling it?\nIs it really that complex?\nI'm having a hard time grasping why this topic is so problematic. Can anyone give ...
{"title":"Git: warning: refname 'xxx' is ambiguous when using git-svn","tags":["git","branch","ambiguity"],"question_text":"I am using git as a frontend to Subversion (via git svn).\nSo, for every svn trunk\/branch I have remote branch in git named \"remotes\/xxx\". For example \"remotes\/trunk\", \"remotes\/coolfeatur...
{"title":"How to execute parent directive before child directive?","tags":["javascript","angularjs","angularjs-directive"],"question_text":"I'm looking to write two angular directives, a parent and a child directive, to create sortable and cloneable widgets. The intended markup is:\n`<div class=\"widget-container\" dat...
{"title":"Best way to link Redmine issue to SVN revision","tags":["svn","bug-tracking","redmine"],"question_text":"We are using Redmine for issue and bug tracking. We added SVN integration but, by doing this, it just shows SVN revisions in activity.\nIt would be great to see all SVN changes caused by a bug or issue. Bu...
{"title":"What are SO_SNDBUF and SO_RECVBUF","tags":["windows","sockets","network-programming"],"question_text":"Can you explain me what exactly are\n`SO_SNDBUF`\nand\n`SO_RECVBUF`\noptions?\nOK, for some reason the OS buffers the outgoing\/incomming data but I'd like to clarify this subject.\nWhat is their role (gener...
{"title":"'friend' functions and << operator overloading: What is the proper way to overload an operator for a class?","tags":["c++","class","operator-overloading","friend","friend-class"],"question_text":"In a project I'm working on, I have a\n`Score`\nclass, defined below in\n`score.h`\n. I am trying to overload it s...
{"title":"cleanup php session files","tags":["php","session"],"question_text":"On my website I use PHP sessions. Session information is stored in files in my .\/session path. After a few months I discovered that these session files are never deleted, by now there are 145.000 of them in this directory.\nHow should these...
{"title":"D.R.Y vs \"avoid macros\"","tags":["c++","dry"],"question_text":"I am creating my own implementation of XUL in C++ using the Windows API. The fact that the elements are constructed by the XML parser requires that they have identical interfaces, so that we don't need to write custom code for each element const...
{"title":"count the number of existing tabs in jquery?","tags":["jquery","tabs"],"question_text":"I'm using a dynamic jQuery tab widget to add\/remove tabs generated programmatically.\nHow do I check through jQuery and count how many existing tabs are present in the widget?\nI'm using this code, but it doesn't work:\n`...
{"title":"Draw on screen border in Commodore 64","tags":["retro-computing","c64","commodore"],"question_text":"Ok. I hope it does not get closed because I have this curiosity since 25 years and I would love to understand the trick.\nIn the commodore 64 the border was not addressable by the 6569 VIC. All you could do wa...
{"title":"Mercurial: Creating a diff of two commits","tags":["mercurial","diff"],"question_text":"Is there a way to get the changes of two commits with mercurial?\nThe second commit is not directly after the first one, there are some other ones between them.\nI tried\n`hg diff [some params] --change xxxxx --change yyyy...
{"title":"Ruby Classes within Classes (or Modules within Modules)","tags":["ruby"],"question_text":"As I'm reading different Ruby books, I've noticed that Ruby classes can be defined within other Ruby classes or modules. Here's an example of a class within a class:\n`class Outerclass\n def foobar\n puts \"FOOBAR\"\n en...
{"title":"What's the use of yield break?","tags":["c#","yield","iterator"],"question_text":"Possible Duplicate:\nWhat does \u00e2\u0080\u009cyield break;\u00e2\u0080\u009d do in C#?\nCan anyone see a use for the \"yield break\" statement that could not have been otherwise achieved by using \"break\" or \"return\".\nThi...
{"title":"Sort using MongoEngine?","tags":["mongodb","mongoengine"],"question_text":"How do I sort the query objects in MongoEngine, like I would in a regular mongodb query?\nhttp:\/\/www.mongodb.org\/display\/DOCS\/Sorting+and+Natural+Order","answer_text":"Mongoengine is inspired by Django's ORM, and like Django, it u...
{"title":"Android record exists() in database?","tags":["java","android"],"question_text":"I am looking to the fastest and the correct way to check if a record exists in the database:\n`public boolean Exists(String _id) {\n Cursor c=db.query(TABLENAME(), new String[] {\"1\"}, \"_ID=\"+_id, null, null, null, null);\n if...
{"title":"Setting Request Headers in Ruby","tags":["ruby","rest"],"question_text":"I have the rest client gem and I am defining a request like this:\n`url = 'http:\/\/someurl'\nrequest = {\"data\" => data}.to_json\nresponse = RestClient.post(url,request,:content_type => :json, :accept => :json)`\nHowever I need to set ...
{"title":"lldb fails to print variable values with \"error: reference to 'id' is ambiguous\"","tags":["objective-c","ios","xcode4.3","lldb"],"question_text":"Since I updated to xcode 4.3 and let it switch my debugger over to lldb, any request to print a member variable fails with this error message:\n`(lldb) print requ...
{"title":"Java default stack size","tags":["java","memory","stack"],"question_text":"I understand that each thread has its own\n`stack`\n, and primitive types and references live on stack. No object can live on stack. \nNow, my doubts are :\nHow much a stack can grow? (like, we have -\n`Xms`\nand -\n`Xmx`\nfor heap)\nC...
{"title":"Get the SRID of a geometry field","tags":["postgis"],"question_text":"I have a table with some geometry types in and need to be able to return the SRID of a given field. How can I do this. I have had a search but all I can find is the function to alter a SRID. In Oracle I am doing this:\n`A.CLUSTER_EXTENT.SDO...
{"title":"What exactly do shadow page tables (for VMMs) do?","tags":["virtualization","virtual-machine"],"question_text":"My understanding is that shadow page tables eliminate the need to emulate physical memory inside of the VM.\nie.\ninstead of:\nguest os -> vmm + virtual physical memory ->host OS -> host hardware\ni...
{"title":"iPad Retina Display Suffix","tags":["ios","ipad","retina-display"],"question_text":"I'm looking to put iPad retina (crazy!) quality images into my app for the 'New iPad's launch on the 16th Martch. However I can't find the correct suffix for my file names anywhere in the documents!\nI use @2x suffix for iPhon...
{"title":"Java SSLHandshakeException \"no cipher suites in common\"","tags":["java","ssl","sslhandshakeexception"],"question_text":"I'm using an SSLServerSocket to accept client connections on my openSUSE server, but none of them can connect. I always get an SSLHandshakeException saying\n`no cipher suites in common`\n....
{"title":"How do I change column type in Heroku?","tags":["ruby-on-rails","ruby","database","postgresql","heroku"],"question_text":"I am trying to rake the db:migrations into my heorku instance and I get an error. The FAQ described my error as below:\nCannot change column type\nExample: PGError: ERROR: column\n \u00e2\...
{"title":"how to pass array through hidden field","tags":["php","arrays","hidden"],"question_text":"here my code\n`$order[$j][0]=\"Euclidean Geomethiyil Kodpagugal\";\n$order[$j][1]=$q16;\n$j++;`\nhidden field-\n`<input type=\"hidden\" name=\"hdnTotal\" value=\"<?php echo $gtot; ?>\">\n<input type=\"hidden\" name=\"hdn...
{"title":"Can I use a single quote in a Powershell 'string'?","tags":["powershell","escaping"],"question_text":"I want to include an apostrophe in my string. Is it possible to do without using double quotes?\n`'This is a quote. Can`'t I just include a single quote in it?'\n'This is another quote that doesn\\'t work'`",...
{"title":"Is plain vanilla JavaScript better than using frameworks like jQuery or MooTools?","tags":["javascript","jquery","mootools","javascript-framework"],"question_text":"I am wondering if it is a good idea to rely on frameworks like jQuery or\nMooTools\nor should we just use plain JavaScript?\nApart from avoiding ...
{"title":"what is the fastest way to check whether string has uppercase letter in c#?","tags":["c#","string"],"question_text":"My first implementation idea is to do simply:\n`bool hasUpperCase (string str) {\n if(string.IsNullOrEmpty(str))\n return false;\n for (int i = 0; i < str.Length; i++) {\n if (char.IsUpper (str...
{"title":"Converting Roman Numerals To Decimal","tags":["java"],"question_text":"I have managed to get my code to convert most Roman numerals to its appropriate decimal value. But it doesn't work for some exceptional cases. Example :\n`XCIX`\n=\n`99`\nbut my code prints\n`109`\n.\nHere is my code.\n`public static int r...
{"title":"CardView background color states not being respected","tags":["android","android-cardview"],"question_text":"In brief:\nHow can we define color states of CardView's cardBackgroundColor property (in a ListView layout, in this case)?\n(I am using RC1 of Android L developer preview, on a phone with 4.4 installed...
{"title":"confusion regarding quartz2d, core graphics, core animation, core images","tags":["ios"],"question_text":"i am working on a project which requires some image processing, i also asked question regarding it and i got very good solution here is the link\ncreate whole new image in iOS by selecting different prope...
{"title":"Android: How can I stop an infinite animation applied on an ImageView?","tags":["android","animation","imageview","infinite"],"question_text":"I have an ImageView on which I have applied a rotate animation. Since I want the rotation to go on continuously, I gave the repeatCount as infinite in my rotate.xml:\n...
{"title":"Why is JUnit 4 on Android not working?","tags":["java","android","junit4","dalvik","junit3"],"question_text":"as the documentation of Android says, \"Note that the Android testing API supports JUnit 3 code style, but not JUnit 4.\" (\nTesting Fundamentals\n). It should be clear that JUnit 4 cannot be used out...
{"title":"Is there a medium weight font between -systemFontOfSize: and -boldSystemFontOfSize:?","tags":["iphone","ios","ipad","uifont"],"question_text":"-systemFontOfSize is too thin, and boldSystemFontOfSize too thick. I need something inbetween.\nWhen I create a UIFont like this:\n`[UIFont boldSystemFontOfSize:14];`\...
{"title":"What type of webservice works best with iOS?","tags":["php","iphone","web-services","ipad","ios"],"question_text":"I'm going to be creating an internal app for the iPhone and iPad that will keep track of sales calls, the associated quotes, photos, and drawings for those quotes. I'm still in the concept design...
{"title":"Why should the \"PIMPL\" idiom be used?","tags":["c++","oop","information-hiding","pimpl-idiom"],"question_text":"Backgrounder:\nThe\nPIMPL Idiom\n(Pointer to IMPLementation) is a technique for implementation hiding in which a public class wraps a structure or class that cannot be seen outside the library the...
{"title":"Can an object automatically delete itself in javascript once it has achieved its purpose?","tags":["javascript","oop"],"question_text":"I am wondering if it is possible for an object in javascript to delete itself once it has finished its task.\nFor example, I have the following object...\n`var myObject = Obj...
{"title":"Algorithm for selecting all edges and vertices connected to one vertex","tags":["c++","boost","graph"],"question_text":"I'm using Boost Graph to try and make sense of some dependency graphs I have generated in Graphviz Dot format.\nUnfortunately I don't know very much about graph theory, so I have a hard time...
{"title":"How do I tell if the c function atoi failed or if it was a string of zeros?","tags":["c++","atoi"],"question_text":"When using the function\n`atoi`\n(or\n`strtol`\nor similar functions for that matter), how can you tell if the integer conversion failed or if the C-string that was being converted was a\n`0`\n?...
{"title":"How to copy and paste between different tmux panes running vim instances","tags":["vim","vi","tmux"],"question_text":"Example: copy in one tmux pane (via vim), then switch to another pane (running another vim instance) and paste using the vim paste command. I know this can be done via tmux (using prefix+]) bu...
{"title":"Load JQuery into a Chrome extension?","tags":["jquery","google-chrome-extension"],"question_text":"I'm attempting to load JQuery into my Chrome extension and make it equal to an object but I'm wondering how would I go about this? basically I'd like something like...\n`jQuery = loadLibraries(\"jquery-1.4.2.min...
{"title":"Android: Fragments: setContentView alternative","tags":["android","android-fragments"],"question_text":"I'm trying to rewrite an existing project using\n`fragments`\nto port my application on tablet.\nI'm replacing activities with\n`fragments`\n.\nThe problem is that I don't know what is the equivalent to\n`s...
{"title":"Insert if not exists, else return id in postgresql","tags":["postgresql"],"question_text":"I have a simple table in PostgreSQL that has three columns:\nid serial primary key\nkey varchar\nvalue varchar\nI have already seen this question here on SO:\nInsert, on duplicate update (postgresql)\nbut I'm wondering ...
{"title":"SQL Server Management Studio alternatives to browse\/edit tables and run queries","tags":["sql-server"],"question_text":"I was wondering if there are any alternatives to Microsoft's SQL Server Management Studio?\nNot there's anything wrong with SSMS, but sometimes it just seem too big an application where all...
{"title":"Rails form validation conditional bypass","tags":["ruby-on-rails","ruby","validation","model"],"question_text":"I have a rails model that validates uniqueness of 2 form values. If these 2 values aren't unique the validation errors are shows and the \"submit\" button is changed to \"resubmit\". I want to allow...
{"title":"How do I move my local Git repository to a remote Git repository","tags":["git"],"question_text":"I have various Git projects that are on my local machine. I have a server that I would like to use as my remote Git Repository. How do I move my local Git Repositories (Projects) to my server while keeping the hi...
{"title":"Are all temporaries rvalues in C++?","tags":["c++","rvalue","temporaries"],"question_text":"I have been coding in C++ for past few years. But there is one question that I have not been able to figure out. I want to ask, are all temporaries in C++, rvalues?\nIf no, can anyone provide me an example where tempor...
{"title":"C++ inline member function in .cpp file","tags":["c++","function","inline","member"],"question_text":"I know that inline member functions by definition should go into the header. But what if it's not possible to put the implementation of the function into the header? Let's take this situation:\nFile A.h\n`#pr...
{"title":"Is it possible to grey out (not just disable) a MenuItem in Android?","tags":["android","menu","menuitem"],"question_text":"There's a question for the same functionality\non Blackberry\n, and a few different threads referred to this\nbug\n(which has since been closed without resolution as far as I can tell), ...
{"title":"Python Message Box Without huge library dependancy","tags":["python","windows","windows-7"],"question_text":"Is there a messagebox class where I can just display a simple message box without a huge GUI library or any library upon program success or failure. (My script only does 1 thing).\nAlso, I only need it...
{"title":"Images showing in simulator but not on the iPhone device","tags":["iphone","uiimage","ios-simulator","device"],"question_text":"So when I run the application from the device the pictures show up and everything works great. However, when I move to the device I run in about 10 out of 38 pictures that don't show...
{"title":"Fixed positioning\/z-index issue in mobile safari","tags":["html","css","mobile","safari","fixed"],"question_text":"So the site in question:\nhttp:\/\/kaye.at\/baby\nThe main content below scrolls up over the top of the countdown and under the navigation which are both fixed elements. This works fine on deskt...
{"title":"What is the difference between SynchronizedCollection<T> and the other concurrent collections?","tags":["c#","collections",".net-4.0","thread-safety","concurrent-collections"],"question_text":"How does\n`SynchronizedCollection<T>`\nand the concurrent collections in the\n`System.Collections.Concurrent`\nnamesp...
{"title":"Global keyboard capture in C# application","tags":[".net","events","keyboard-hook"],"question_text":"I want to capture a keyboard shortcut in my application and trigger a dialog to appear if the user presses a keyboard combo even outside of the app. Similar to Google Desktop Search's Ctrl, Ctrl to bring up th...
{"title":"\"Padding is invalid and cannot be removed\" using AesManaged","tags":["c#",".net","encryption"],"question_text":"I'm trying to get simple encryption\/decryption working with AesManaged, but I keep getting an exception when trying to close the decryption stream. The string here gets encrypted and decrypted co...
{"title":"Java 6: Unsupported @SuppressWarnings(\"rawtypes\") warning","tags":["java","compiler-construction","warnings","suppress-warnings","raw-types"],"question_text":"I moved to a new machine which has the latest Sun's Java compiler and noticed some warnings in the existing Java 6 code. The Eclipse IDE, suggested t...
{"title":"Using mac book built in camera with iOS simulator","tags":["iphone","ios","xcode","xcode4"],"question_text":"I am new to iOS application development and I am using XCode4. I am trying to develop an application which uses the camera. For testing is there a way to integrate the built in camera of mac book to iO...
{"title":"Potential Problem in \"Swapping values of two variables without using a third variable\"","tags":["c++","c","swap","order-of-evaluation"],"question_text":"I recently came along this method for swapping the values of two variables without using a third variable.\n`a^=b^=a^=b`\nBut when I tried the above code o...
{"title":"Hide select option in IE using jQuery","tags":["javascript","jquery","select","hide","options"],"question_text":"Currently I am using jQuery to hide\/show select options using following code.\n`$(\"#custcol7 option[value=\" + sizeValue + \"]\").hide();`\nThis works fine in Firefox, but doesnt do any good in o...
{"title":"What is the height of iPad status bar?","tags":["ipad","height","statusbar"],"question_text":"It is 20 pixels in iphones, but what is the height of status bar on iPad? I am thinking that it's 20 pixels because the views which I am making are of size 768 * 1004.","answer_text":"You are right, 20 pixel on the i...
{"title":"Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.","tags":["java","jar"],"question_text":"I have used\n`xuggle library`\nin my project to trans code the video from\n`mp4 to flv`\n.\nI have used\n`slf4j libraries`\nalso to support logging end.\n`import c...
{"title":"How to dynamically remove a stylesheet from the current page","tags":["javascript","jquery","css","stylesheet"],"question_text":"Is there a way to dynamically remove the current stylesheet from the page?\nFor example, if a page contains:\n`<link rel=\"stylesheet\" type=\"text\/css\" href=\"http:\/\/...\" \/>`...
{"title":"Font Awesome icons not showing in Chrome, a MaxCDN related Cross-Origin Resource Sharing policy issue","tags":["google-chrome","cdn","font-awesome","access-control","cross-domain-policy"],"question_text":"just noticed on several websites that the font awesome icons aren's showing in Google Chrome. The console...
{"title":"Unable to have Bash-like C-x-e in Zsh","tags":["bash","zsh"],"question_text":"I found the following command in Bash which Zsh does not have in the same buttons at the\nthread\n.\n`Ctrl-x-e`\nIt opens the current input in terminal to an editor.\nHow can you have the same command in Zsh?","answer_text":"I'm usi...
{"title":"Xcode Command-Slash Shortcut to Comment Only Works Sometimes","tags":["xcode","comments","keyboard-shortcuts"],"question_text":"I'm having issues with Xcode being quite unreliable when using the keyboard shortcut to comment or uncomment code\n`command+\/`\n. I can't seem to find a real pattern as to when it b...
{"title":"How does CommandManager.RequerySuggested work?","tags":["wpf","user-interface","input","keyboard","mouse"],"question_text":"The MSDN only states that\nOccurs when the CommandManager detects conditions that might change the ability of a command to execute.\nHowever I can't seem to find any traces of how this w...
{"title":"Trying to resize2fs EB volume fails","tags":["amazon-ec2","diskspace","disk-partitioning"],"question_text":"I have a 200GB EBS volume and am trying to increase the space available. I followed the instructions on:\nhttp:\/\/www.hellersoftware.com\/2012\/resize-ebs-volume-attached-to-amazon-web-services-ec2-ins...