text
stringlengths
8
267k
meta
dict
Q: Date format from 26.09.2011 to 26.9.2011 Possible Duplicate: Remove leading zeros from abbreviated date with PHP I have a problem formating date from 26.09.2011 to 26.9.2011. Of course if there is two digits month there should be two digits (26.12.2011). I am looking for answer all over web. Could anyone tell me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: jQuery Drop event is not working I facing a weird problem here. I already have a simple try-out for jquery drag-n-drop and it WORKS. However, now i wan to move the code from the try-out project to the project file i working right now. Everything is the SAME, but i just cant get the drop event to be fired. It is real...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include a PHP variable inside a MySQL statement I'm trying to insert values in the contents table. It works fine if I do not have a PHP variable inside VALUES. When I put the variable $type inside VALUES then this doesn't work. What am I doing wrong? $type = 'testing'; mysql_query("INSERT INTO contents (type,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: How to compare time to a time range specified in Prolog? Let's say i have a structure comparetime(hours,mins), when a user keys example comparetime(10,40) , the structure will make comparison on a time range specified example timing entered 1) from 10:00 to 12:00 will print a message and 2) from 18:00 to 20:00 wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count data from multiple tables using SUM I have table with positions tbl_positions id position 1 Driver 2 Lobby 3 Support 4 Constructor and in other table i have users EDIT: tbl_workers id name position position2 status 1 John 2 3 4 2 Mike 3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jetty Classpath issues I'm currently running Solr out of a Jetty container that it ships with. It runs correctly when run from the command line via: java -jar start.jar when I'm in the same directory as start.jar. Unfortunately I need to be able to launch jetty from any directory, not just the one that contains st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Google App Engine Live Updates (Python) I was wondering if it would be possible to write an application using the Google App Engine and Python to create a basic calculator? However, the real question is would it be possible to have the calculator do the math without having to refresh the page? To be more specific, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use C# example using JsonPath? I'm trying to use JsonPath for .NET (http://code.google.com/p/jsonpath/downloads/list) and I'm having trouble finding an example of how to parse a Json string and a JsonPath string and get a result. Has anyone used this? A: using Newtonsoft.Json.Linq yo can use function Select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What's the correct way to "flatten" data in mySQL from 3 dimensions to 2? I have 3 tables Labels UserValues Users Labels looks like this: 1|First Name 2|Last Name 3|Favorite Book etc... Users looks like this: 1|[phone_number] 2|[phone_number] etc.... UserValues looks like this: 1| [label_id_for_First_Name] |John...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to insert a column into a matrix, the correct Mathematica way I think Mathematica is biased towards rows not columns. Given a matrix, to insert a row seems to be easy, just use Insert[] (a = {{1, 2, 3}, {4, 0, 8}, {7 , 8, 0}}) // MatrixForm 1 2 3 4 0 8 7 8 0 row = {97, 98, 99}; (newa = Insert[a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to hide css border-right using loop for even number count in cakephp I am using cakephp and here is my sample code below along with the css i am doing <div class="thumbs"> <?php if(!empty($auction['Product']['Image']) && count($auction['Product']['Image']) > 0):?> <?php foreach($auction['Product']['I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image Editor Using PHP and Java Script How to Rotate, Edit , Add Text to an image and Save it to local folder like a image editor Based on php and java script. I already tried image rotation in PHP Image Creator. But it reduces the image quality too much. If anybody knows idea to do that please share here. Thanks A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: print System.out.println() result in console I start the simulator "Debug As > Blackberry Simulator", the debugger is attached and then I see lots of things when the simulator starts. It includes my println statements too. But i want to see my println statements only, then the debuging will be more easier.Any way? t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can set location of parent from pop up window opened by iframe. I want to set location of parent window from pop up window opened by iframe. I am writing this line of code in javascript but it is not working. window.opener.parent.location = '../Account/'; A: try window.opener.parent.location.href = '../accoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to filter Android logcat by application? How can I filter Android logcat output by application? I need this because when I attach a device, I can't find the output I want due to spam from other processes. A: put this to applog.sh #!/bin/sh PACKAGE=$1 APPPID=`adb -d shell ps | grep "${PACKAGE}" | cut -c10-15 | s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "125" }
Q: Superwebsockets Subprotocols I'm working with SuperWebSockets, and the readme.txt for the jsoncommandassembly says: * *Copy this project's output to working directory of SuperWebSocket's running container, SuperWebSocketService, SuperWebSocketWeb or your own container. Well, maybe I'm like serious tired or who ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Routing error in Ruby on Rails 3 I am new to Ruby on Rails I am getting this error uninitialized constant WelcomeController after creating the sample project. I enabled root :to => 'welcome#index' in routes.rb. A: I'm very very new to Rails and also ran into this error while following along with Rails Tutorial b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Design best practice - should an object own what is passed to its constructor? I have the following class: public class SqlCeEventStore: EventStore { private EventStoreDB db; public SqlCeEventStore(EventStoreDB db) { this.db = db; } public void Dispose() { db.Dispose(); } } My problem is thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Search form using sunspot/solr I'm using sunspot for the first time and i'm trying to setup the search. full text search seems to work fine. however, i have a form with a search box and multiple filters on boolean fields that the user can select. somehow the search box works fine but solr isn't picking up the indivi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can i make a div as non selectable from code behind I have my div as follows <div class="menu" id="admindiv" runat="server"> <ul> <li><a href="">welcome to my site<!--[if IE 7]><!--></a><!--<![endif]--> <table> <tr> <td> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to increment a variable on a for loop in jinja template? I would like to do something like: variable p is from test.py which is a list ['a','b','c','d'] {% for i in p %} {{variable++}} {{variable}} result output is: 1 2 3 4 A: As Jeroen says there are scoping issues: if you set 'count' outside the loop, you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: What does "wrong number of arguments (1 for 0)" mean in Ruby? What does "Argument Error: wrong number of arguments (1 for 0)" mean? A: When you define a function, you also define what info (arguments) that function needs to work. If it is designed to work without any additional info, and you pass it some, you are g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How can i define PDO_MYSQL in application.ini file I am try to connect mysql to zend appllication but its gives exception : SQLSTATE[28000] [1045] Access denied for user 'user'@'host' (using password: YES) resources.db.adapter = PDO_MYSQL resources.db.isDefaultAdapter = true resources.db.params.host = *host* resour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating Some thing @using (Html.BeginForm()) Helpers In Asp.net MVC3 when you write below code , it generates wrapping html itself @using (Html.BeginForm()) { @Html.ValidationMessageFor(model => model.Text) } It generates codes in below format, <form method="post" action="/Feeds"> <!-- Fields ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to select date from dropdown calender using selenium I have a dropdown calendar and I need to select a date from it using Selenium. I'm using python as my scripting Language. I'm also new to this selenium. A: For the following HTML: <select id="edit-birthday-day" class="form-select" name="birthday[day]"> <opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to turn on STDOUT.sync in ruby from the command line I have objective-C code that calls ruby scripts and monitors STDOUT. However, ruby does not seem to synchronise STDOUT by default, so I need to put STDOUT.sync = true at the beginning of the script to see output as it happens. Can I do this as a command line ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Many-to-many associations and REST? Newbie question, you've been warned! I'm trying to implement a sample Rails app with a many-to-many association, people owning movies, and I'm trying to figure out how exactly to implement the UI for it. It's my understanding that REST requires everything to be a resource, so in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rake assets:precompile is slow The command "rake assets:precompile" works very slow for me. Especially on my Amazon EC2 Micro production server which does not have a lot of processor resources. On EC2 I have to wait 1 minute or more during each deployment just for this precompile task alone. Is there a way to make i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Importing java classes into JSP That's the problem. I developed a web app with NetBeans 7, Tomcat 7 and hsqldb; on my desktop all is Ok. When I upload my java files (.class, .jsp and .jar packages) to my site and try to load a jsp page which imports a class contained in a package (class FunzioniSessione in package i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: str_replace not working I want to delete all occurrences of this substring from my html file: <span style="font-size: 12pt;">BLANK PAGE</span> I tried str_replace, thinking that would be a simple solution, but it does not work: $html = str_replace('<span style="font-size: 12pt;">BLANK PAGE</span>', '', $html); Any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: why i get a different JSON response? I wish to get the following JSON response: {"result": { "id": "226", "ends_at": "2011-06-24 00:00:00", "photo_url": "1308262872.jpg" } } but i only receive this response: { "id": "226", "ends_at": "2011-06-24 00:00:00", "photo_url": "130826287...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding Web Shortcut to iPhone Homescreen? How can I BY CODE add a web shortcut to iPhone HomeScreen? A: There is no API to do this. Your best bet is to do what many web apps do: create something that points at the part of the toolbar where the add to homescreen button exists. And pray Apple doesn't change the posit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will loadView be called if there is a nib file? If I override the loadView method, loadView will be called whether there is a nib file. If I don't override loadView and there is a nib file, will it be called ? A: Yes, loadView is responsible for loading nib files automatically from known bundles based on the class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: QVector.push_back error error in QVector<LibraryRecord> Library; Library.push_back(LibraryRecord(DateOfIssue, ReturnDate, FIO,tTekct,FName,TText)); error message: no matching function for call to ‘LibraryRecord::LibraryRecord()’ why? Constructor present //constructor LibraryRecord::LibraryRecord(QString pDateOfIs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use Calendar in Emulator? I can't see any calendar in Android Emulator. I want to use event functions in Emulator. How can i use Calendar there? Anyone knows how to do this? Thanks in Advance. A: There is no inbuilt facility in android emulator for calender control. You can create your custom Calender contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert special character to Image(Smiley) Possible Duplicate: webserivce messages in listview with smileys I created a Db and added 4 fields to it. 1. ID , 2. Position, 3. Special Character 4. URL. So I was able to display the corresponding special character when clicked. when I submit how can I convert t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to redirect an user to the same page in which he browsed after login drupal i am working on a website with drupal which has a lot of user restriction pages. when a user is guest and he need to access a webpage he will be asked for user name and password while he logged in he is redirected to the main page or acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issue in the Assets folder I had an issue where a font didnt work and it gave me a FC. So I put the font file into the sdcard, and used CreateFromFile in the typeface and the font worked! Here is the code I used for the Assets folder: holder.tv_SuraName =(TextView)convertView.findViewById(R.id.Start_Name...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery form submit not working in some reason if I use this code it sends the form in normal way not with jquery? What could be the problem? thanks <script> $(document).ready(function() { $("form#formi").submit(function() { $(":text, textarea").each(function() { if ($(this).val() === "") { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: iOS: How to read an audio file into a float buffer I have a really short audio file, say a 10th of a second in (say) .PCM format I want to use RemoteIO to loop through the file repeatedly to produce a continuous musical tone. So how do I read this into an array of floats? EDIT: while I could probably dig out the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In C++ if a pointer is returned and immediately dereferenced, will the two operations be optimized away? In C++ if I get and return the address of a variable and the caller then immediately dereferences it, will the compiler reliably optimize out the two operations? The reason I ask is I have a data structure where ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: If radio streaming's connection is bad, What have to do next? I made Radio Streaming Iphone App. And submit to itunes app stroe. But they rejected my app. This is the reason. 2.2: Apps that exhibit bugs will be rejected When the user taps on a radio, an alert is displayed stating the connection is lost and no f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining HTML form data with multi-friend selector Having a heck of a time trying to figure out how to do this. I'm trying to combine an HTML form of my making with a multi-friend selector so that people can, for example, choose an item with radio buttons, enter some text in a textarea and then use a multi-friend s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: netbeans optimize disk usage Is there some way to optimize the Netbeans IDE for PHP (and Symfony)? It's very good with code hinting, debugging etc, but the downside is that while writing code, the disk works intensively all the time which is disturbing and besides the editor slows down slightly because of the code h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How To Download a File Only If It Has Been Updated I am downloading image from the internet in SD card. First to Check the file is exist in SD Card if no then download the file. if file is already in the SD-card the check the last modified date of existing file and compare it with server file . If server image file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Handling a lot of data in Java servlet what I am trying to do is reading the latest statuses from all my facebook friends using graph api ,it takes too long , I am getting all my friends for facebook as json and I read the latest statuses from them , what I am getting is timeout , I know it will take too long to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pass an object between multiple classes? Java public class FooClass { BarClass bar = null; int a = 0; int b = 1; int c = 2; public FooClass(BarClass bar) { this.bar = bar; bar.setFoo(this); } } public class BarClass { FooClass foo = null; public BarClass(){} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WP7 Changing 1 layout element based on another Having no luck here trying to find a solution to this. I've set up a looping selector based on this guide. (I also used the ListLoopingDataSource class in Part 2 in order to have strings in my looping list). What I want to be able to do is then change another element (a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why the conflicting variables? I'm getting conflicting results between the facebook javascript SDK and the python requesthandler variables. The Javascript SDK says my user is not logged in, which is correct, while my template variable that comes from the base request handler says that my user is logged in and displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: opencart - Increase field size of address in table setting - config_address how to increase field size of address in table setting --> config_address ? Now i see in structure of config_address is Type : TEXT in phpMyadmin , so i need change from TEXT to LONG TEXT ? A: LONGTEXT can hold up to 2^32 bytes, as specifie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Graphviz the best tool for this type of graph? I want to create a graph like the one shown below... but way too complex. I want to use separate images for each of the square nodes and the same image for each of the circle nodes. I want to know whether using GraphViz is the best option or are there any other optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Length of strings in unicode are different How come the length of the following strings is different although the number of characters in the strings are the same echo strlen("馐 馑 馒 馓 馔 馕 首 馗 馘")."<BR>"; echo strlen("Ɛ Ƒ ƒ Ɠ Ɣ ƕ Ɩ Ɨ Ƙ")."<BR>"; Outputs 35 26 A: I am no PHP expert but it seems that strlen it count...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Rails Design Question - "Hot Right Now" I have multiple models on my site. There are Suggestions and Items as well as Deals. I created a template which shows what is hot right now. I want to be able to apply this to all 3 models mentioned above and was wondering the best way to approach it. Obviously, I can add "h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling different screen resolutions in blackberry with single image I have one PNG image and am applying it to all the screens as background. Its resolution is 360x480 because I started programming for 9800 simulator. I am developing for OS 6.0. When I test my app for 9700 simulator having screen resolution 480x36...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET / SQL Server - Timeout expired while searching We have a table called Purchases: | PRSNumber | ... | ... | ProjectCode | | PRJCD-00001 | | | PRJCD | | PRJCD-00002 | | | PRJCD | | PRJCD-00003 | | | PRJCD | | PRJX2-00003 | | | PRJX2 | | PRJX2-00003 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eliminating Initial keypress delay When you type into a textbox and hold a key, you get (a.......aaaaaaaaaaaaaaa), depending on the initial key press delay. addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { // Handle key press here } I'm creating a game in which the user's refle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Couchdb and Sofa Help I'm new to Couchdb just a few week back I git clone the couchdb app called sofa [what and app] . Over the week It was going great but suddenly today I stumble upon something. Here what I meant when I browse the Sofa app and try to create a Post without the title it prompt with and alert bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent a looping script from stopping when aborting the page? I've built a looping script that i want to keep it running in the background. The issue is that when i run it via the browser, it works fine but once i stop loading the page, the script stops/exists, i know that's pretty normal and makes sense, but how c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a Round Edged form in C# private static extern IntPtr CreateRoundRectRgn ( int nLeftRect, // x-coordinate of upper-left corner int nTopRect, // y-coordinate of upper-left corner int nRightRect, // x-coordinate of lower-right corner int nBottomRect, // y-coordinate of lower-right corner i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can each row in an HTML table be numbered? What I would like to do is number each row in my table. I can't manually number the table myself, as all of the info in it is retrieved from a database. Is this possible with jQuery or PHP? Here's a screen shot of the table: I tried searching for this, and did not find an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep data available for whole project access? Well. I have done a small project. But the problem is some of my required data is not available across whole project. I mean, every time I go form to form I need to open the database and fill the same data from the same SqlDataAdapter. Instead is it possible to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I play multiple songs stored in my raw folder using MediaPlayer in android? How do I play multiple songs that I have stored in a raw folder using MediaPlayer using seek and previous? Thanks. A: To play a file from your Android project's raw folder: MediaPlayer mediaPlayer = MediaPlayer.create(yourActivity, R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Place the image at random x,y of the screen and make the image invisible after certain peroid in android I need to create an image at random places. After few seconds it has to be disappeared. After the first image get disappeared the second image has to come. I used the following code to place the image at random c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to redirect form a controller and get value in jsp http://localhost:8080/LACASServer/message.jsp?forgotUser=Mail+has+been+sent+to+your+mail+address Here forgotUser is key of a map, that i set in a controller's method, which redirect to message.jsp, now how can i use it this map in message.jap to show value of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSString/NSMutableString strange behaviour OK here is nsmutablestring data = [NSMutableString stringWithFormat:@"&cb_games%5B%5D="]; Now when ever I try to print or use this string I get big number instead of %5B and %5D not sure why this is happeing any help would be apritiated thanks A: The reason you get une...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add navigation links in c# windows application I want to create a form with 2 panels in which the left panel contains links. When a link is clicked, the corresponding form should open up in the right area and should refresh when another link is clicked and should show that form. I want to do this in c# window...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hole punching over http How can I do the hole punching over http,like I have a server in godaddy Its port access for tcp listeners is closed,so can I get the client's port number from its request to an aspx page? A: If you are using java and have access to the http request on the server side, you can get the remote...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to programmatically dim Mac backlit keyboard Is there a way to programmatically dim a backlit keyboard on a Mac? A: UInt64 lightInsideGetLEDBrightness() { kern_return_t kr = 0; IOItemCount scalarInputCount = 1; IOItemCount scalarOutputCount = 1; UInt64 in_unknown = 0, out_brightness; //kr = IOConnec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Conditional injection of bean I want to have inject a bean based on a String parameter passed from client. public interface Report { generateFile(); } public class ExcelReport extends Report { //implementation for generateFile } public class CSVReport extends Report { //implementation for generateFile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Get/set data from/to input field in assets HTML file? A WebView loads HTML page from the /assets dir. When a user enters some data into a text field in that HTML file, can my WebView catch/save that data once a user preses some button or link? Also, when a user returns to that page, can I fill the text field with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom look svg GUI widgets in QT, very bad performance So I'm trying to make a gui for a guitar effects program. One goal is to allow others to design svg "skins" to customize the look. I made widgets that inherited each widget (i.e. qdial) and in the initializer load the svg file specified by the skin into a qGrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Validating XML that is a DOM document How do I validate an XML document that I already have in memory as a DOM Document? A: You can use the javax.xml.validation APIs to validate XML in memory. Below is an example of using these APIs with a JAXBSource, to validate a DOM model simply use a DOMSource. package blog.va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid stop script error in browsers I have a page of more than 2500 anchor tag to process. Now in IE it is throwing the stop script error. Is it possible to do as a batch? Taking 500 executing it and then take the another 500 executing it?? This is the code... ajaxLinks : function(el, flag) { var links = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSH smoke & mirrors Situation: I've been given SSH access to a server running LAMP (Redhat) and the brief is to migrate files and database from current live server to this new development server for testing. Further this SSH access is contained within a Protected Workspace, so basically I have to access this compani...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to find if an item in a Windows folder is really hidden from the user? I need to get the count of items (folders and files) in a Windows folder. I can easily do it based on the condition if I should include hidden items or not. But in my program I want to get the count of items that is visible to the user! i.e. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what could this generic class declaration could mean? I know this isn't a good question to ask and I might get cursed to ask it but I cannot find any place to get help on this question Below is a Generic class that appeared in my interview question (which I have already failed). The question was to tell what this C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to have footer always at the bottom of page? My page doesn't contain a lot of information, so footer is displayed somewhere in the middle of the page. How can I have that always at the bottom? A: { potition: absolute; bottom: 0; width: 100%; height: some_height; } A: This isn't a fixed position footer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Basic animation unusually slow in non-IE browsers Test page: http://adamhaskell.net/misc/dialogtest.html Tested with: Internet Explorer 9, Firefox 6, Chrome 14 The page contains a stripped-down version of a site I'm working on. It uses a custom Alert function (uppercase A to keep the standard alert available). Essen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient data structure/algorithm for transliteration based word lookup I'm looking for a efficient data structure/algorithm for storing and searching transliteration based word lookup (like google do: http://www.google.com/transliterate/ but I'm not trying to use google transliteration API). Unfortunately, the nat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JQuery: How to filter out "a" elements of an html string? So, I have an HTML string that looks just like this: <div> <div class="venue-tooltip"> Filling station <div> <a class="manage-venue-details" rel="venue-id-10" href="javascript:void(0);">Add filling station info</a> </div> </div> </div> I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for Real Time Solution : Efficient DB interaction On the container one java pplication name as sbs is deployed.On the top of it 3 other java applications are deployed let say A, B, and C. Now Application A, B, and C hits one method name as Sing(id) of application sbs which is used to play a message. sing(id)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I ignore words containing substrings using componentsSeparatedByString:? I would like to parse the following string using -componentsSeparatedByString:: CHAPTER 5. RULE OF DECISION CHAPTER 6. GOVERNMENTAL EXEMPTION FROM BOND AND SECURITY REQUIREMENTS CHAPTER 7. LIABILITY OF COURT OFFICERS SUBCHAPT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Intersection query with Lucene With Zned Lucene, when i search for field1:value1, I have 1000 hits returned. When I search for field2:value2, I have 0 hits returned. And when i search for field1:value1 AND field2:value2, I have 1000 hits returned, but I'd rather like to have 0 hits returned ! Why doesn't it do the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'open' REST framework (.Net) We have a homegrown framework that might be useful to implement REST based webservices. It is a .net c# project, used in a webapplication. What it is used like: inline substitution of template 'tags' with dynamic content. sample tag: {{recentposts window=7 max=10}} What it does: parsing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reformating associative arrays To be more specific I want to turn the following array into an associative one. The original array is indexed like [0],[1],[2],…[n]. The function I used was Set::combine of Cakephp but I couldn't recreate all three levels of the desired associative array. Array ( [0] => Array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call a JavaScript function when text is paste occurs in a text area I would like the text area to call a function when a text is pasted into the text area via mouse clicks. I am not getting it to work the way I wanted using onChange. I am aiming to build something like the Twitter tweet box. A: Use the onPaste even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to enable User to surf during ASP.NET DLL upload I am using ASP.NET as the backend for windows phone browser. Sometime I need to make changes on the ASP.NET Pages WHILE users are surfing the website. I want to know how can I provide un-interrupted service to user in such a way they can surf during ASP.NET DLL u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent Android WebView caching data Is it possible to prevent a WebView from caching data in /data/data/???/cache/webViewCache? I've set the following on the WebSettings but the cache folder is still used: webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); webSettings.setAppCacheEnabled(false); I've noticed that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: The setOnClickPendingIntent() does not work on existing widgets after device boots up I have a widget which is supposed to react on click/tap events, and it does work perfectly until I reboot the device/emulator. After a reboot, I have to manually remove all the widget instances from the screen and re-add them to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: keys and values without quotes in an Array? Help me understand this code : Array ( [font-family] => font-family: 'Abel', sans-serif; [font-name] => Abel [css-name] => Abel ) from : http://phat-reaction.com/googlefonts.php . Why there are no quotes around keys and values ? Is this valid php code ? A: W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recovering git repository from the objects directory I don't know how it happened, but I had a data loss and was only left with a .git directory containing only an objects directory. I've followed the steps from Recovering Git repository from objects only: * *Created a new directory and ran git init *Copied the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Declare a retain property in class, will the compiler add [property release] to -dealloc by default? Possible Duplicate: Is releasing memory of Objective-c 2.0 properties required? For example: @interface DataMode : NSObject { NSString * name; } @property (nonatomic, retain) NSString * name; @end Will the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scaling ImageViews For higher res phones I have a few ImageViews located near the bottom of my application. When I run in WVGA (Nexus One), everything lines up nicely with the bottom. When running on another higher res, such as FWVGA, as well as on my Droid 2, there is a space that is left on the bottom of the appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass variable from jquery to code in c# in my page i have an int variable name mySerial and i want to pass a value from a script mySerial =ui.item.Serial is not working A: You could pass this variable as query string parameter to some controller action: <script type="text/javascript"> var mySerial = '123...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simulate "Slide to Unlock" in MobileSubstrate There is a way to simulate the Slide To Unlock in the lockscreen? I've been looked for this in SBAwayController, but without any results :( Have anyone an idea? A: I believe (if I understand your question correctly) you want to have the lockbar "unlock itself". For some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make 'datetime' column ordered correctly? I have a column, it's time is 'DATETIME'. I want to output it in the order of timeline, but when I use ORDER BY create_time DESC, '2011-09-10 16:16:04' is behind '2011-07-16 03:20:01'. Seems it is treating datatime column as string. How can I handle this without cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error When getting List from a class I have a problem that, I have a serializable class which sets and gets multiple lists. I added a list into that but when I want to get that list from getter method it returns NullPointerException. That's why I mentioned here Error and Setter and Getter Methods for explaining the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting info from plain text using regexps or other, more efficient method I need to extract data from plain text returned from stripping HTML tags from a webpage. The tags were stripped out because the page consists of tabular data, but with tables nested into tables, nested into tables, and so on (really ugly H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: datetime problem in objective c currentDateTime = [NSDate date]; dateFormatter = [[NSDateFormatter alloc]init] ; [dateFormatter setDateFormat:@"yyyy-mm-dd hh:mm"]; // 1999-12-12 14:50 dateInString = [dateFormatter stringFromDate:currentDateTime]; metTime.text=dateInString; NSLog(@"date %@", dateInString); I try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read number from a file and replace it with another number 12 23 34 45 56 34 23 56 21 43 12 57 98 34 12 The above is the content of a txt file. With C, i can use fgetc(myFile) to get the first integer and store into an integer variable. I will check whether it is 12. if it is 12, i want to replace with 25. How do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7537754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }