text
stringlengths
8
267k
meta
dict
Q: Scoring a Javascript Quiz Script Hi I some javascript code written to quiz the user on 5 questions and then in theory output their score. As far as I can tell the questions are being scored, I just can't figure out how to output the response. I am having no issues fetching the correct html elements and displaying th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any way to link to the background image url in CSS without providing the full url (ie. local path)? Say for example I have embeded the following CSS file: http://site.com/tpl/theme_name/stylesheet.css In the header of my site... http://site.com and the CSS file contained the following (in one of its lines) backgro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding TinyMCE instances using ajax - Grails I have a page when user can add 0 to N TinyMCE editors that need to have some div soup around it. I have the html code in a gsp _template because it is more then a few lines and I didn't want to stuff it in javascript. Basicaly everytime user clicks "add editor", an ajax ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create a loop structure to display all integer values BETWEEN the smaller and larger number provided? Working on a homework assignment and am stuck with this task: Create a loop structure to display all integer values BETWEEN the smaller and larger number provided. Not looking for just an answer in code form. Woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7540997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: getting the port number of a website How can i obtain the port number of a website using a program. Is there any method / way that i can use to know the port number of a website ? Or, if i know that my port number 52970 is connected with 212.58.241.131 this ip , can i know the port number with which the port numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Web Start and Main Class I made an application and i would have an auto-update at start. Reading on stackoverflow many people suggest Java web start. So with Netbeans i enabled web start configuration and soon on. It generated launch.jnpl html , jar file and lib folder. In the main of program i insert Download...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SkinnableContainer+Layout vs Group+Rect+Hgroup I'm trying to add a custom background to my horizontally laid out container. There are two ways mentioned to accomplish this: * *Use a SkinnableContainer with a HorizontalLayout *Use a Group with a Rect and another HGroup inside it. Which is a better option accord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web2py AJAX autocomplete and auth.user_id I got these tables db.define_table('sender', Field('id'), Field('user_id', auth.user_id), Field('name'), # e.g. Daniel Field('email'),# e.g. daniel@daniel.com Field('opening'), # e.g. Dear Daniel ...) db.define_table('receiver', Field('id'), Field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Manual installation of a Perl Module I have downloaded the module Digest::SHA1 and extracted it to a directory (../Digest-SHA1-2.13/) , then copied all the SHA1.* files into (../Digest-SHA1-2.13/Digest) and in the perl script, I did : use Digest::SHA1; launching the script like this: perl -I ../Digest-SHA1-2.13/Dige...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Facade Design Pattern - Implementation I am referring the book Elements of Reusable Object Oriented Software by Eric Gamma on degign patterns. I however understood the concept of Facade pattern, but still not able to understand the implementation points which has been given in the book as I am little poor with the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Caching specific Javascript and CSS files How can I cache a few specific JavaScript & CSS files. I found advice from this site to put this in my .htaccess file AddOutputFilter DEFLATE css js ExpiresActive On ExpiresByType application/x-javascript A2592000 But it is incomplete. What is .htaccess and how do I create ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is "refs/heads/master" same as "refs/remotes/origin/master" in Git? The question is simple: is refs/heads/master the same thing as refs/remotes/origin/master? If it is not in some cases, how can I know when it is not and what it is then? A: They are two different symbolic names that can point to different things. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Losing xml data when parsing date and time in Savon I'm using Savon in my RoR app. This is my call to the service: client = Savon::Client.new(MY_SOAP_CLIENT) response = client.request :wsdl, :get_history do soap.body = "<startDate>2011-09-23</startDate><endDate>2011-09-24</endDate><userId>3</userId>" end And I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to switch graphes (on Neo4j)? How do I come back on the Neo4J graph after using g = new TinkerGraph() I guess it's something like g.loadGraphML(...) EDIT: Your answer helped me to better understand how loadGraphML() works, but it didn't solve my problem. I'm going to rephrase my question. I use Neo4j and Gre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Node.js Installation Errors on Mac OSX: [Errno 13] Permission Denied error I am trying to install node.js on Mac OSX. I'm following this guide: http://theoutliers.com/getting-started-with-nodejs-on-mac-osx/ I'm currently at the "make" step. but I get an error: [Errno 13] Permission Denied error: '/usr/local/include/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pinging an IP range with Scapy I'm attempting to write a Python script which uses the Scapy module to ping an internal IP range to determine which IP's are online. I've got this so far: #!/usr/bin/python from scapy.all import * conf.verb = 0 for ip in range(0, 256): packet = IP(dst="192.168.0." + str(ip), ttl=20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do you treat a ReferenceProperty like a boolean in AppEngine Datastore? I have a model which might reference another model and which has a completed_on date. class Game(db.Model): challenge = db.ReferenceProperty(Challenge, required=False) completed_on = db.DateTimeProperty(default=None) I'd like to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dragging and dropping a button in iphone I need to drag and drop UIButtons(image) on bigger UIImageView. I want to implement following functionality - * *While dragging if the button is inside UIImageView then only it should drop,else it should not drop *When touching down and dragging it should immediately cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP 301 redirect giving a 302 instead On Sept 1st, I did a 301 on my web page: http://www.gameaudio101.com/toolbox.php and it redirects to http://www.gameaudio101.com/jobs.php The problem is that over time, the new page was never indexed. The original still shows up in google search. Both pages are identical but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I rollback a transaction using Unit of Work and Repository patterns? I have a user repository, which does all the user data access. I also have a unit of work class that manages the connection and transaction for my repositories. How do I effectively rollback a transaction on my unit of work class, if an erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can i call method from .net console application under custom user? I have a console application and i would like to call method from it under another user. Can i specify this user and password in attribute to method? A: No, this is not possible. You can't have a single method run under a different user context.
{ "language": "en", "url": "https://stackoverflow.com/questions/7541064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Asp.net profile property not serializing properly in Silverlight app lately I have been messing around with the Silverlight Business Application template to get me used to silverlight / wcf ria services. I have encountered a wierd issue that I don't know how to solve. So far all I've done was created a new profile p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Global Objects when using Mono with MonoMac How do I declare global instances of objects? When using C# and .NET I would do something like this: public static program { public static Foo MyFoo = new Foo(); static void main() { MainForm = new MainForm(MyFoo); } } however with Mono/MonoMac the main functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use EF entity classes in WCF I'm creating an app based on SOA, I've created WCF Service Project using Framework 4.0, in that I'm using Entity framework, in WCF operation Contract method I'm using the class generated by the EF, but the WCF can't recognize these objects, when I checked those classes in designer mode, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moose - coercing from Num to ArrayRef[Num]? Ok, what am I doing wrong - Moose is ignoring my coercion: package moo; use Moose; use Moose::Util::TypeConstraints; subtype Bar => as 'ArrayRef[Num]'; coerce 'Bar' => from 'Num' => via { [ 10 ] }; # this doesn't seem to be getting called has x => ( is => 'rw', i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: disable click on certain area with a transparency picture or javascript better? I have one of the area that I don't want to be click at all on my site but just can see let say its a video so I will only allow them to use the control player but not using the play/pause by clicking on the video like what youtube or an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby: unexpected results for multidimensional array initialization I know this is probably not good Ruby style, but i'm learning... what's going on here? Specifically, why is the first row of my array a duplicate of the second row, when I think I'm initializing (copying) the values of the array parameter testa into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: submitting different ajax loaded with the same custom submit button So it's kind of complicated what I'm trying to do. So let me give an example of code i got working first: {im using jquery rotate plugin} $("#img").rotate({ bind: { click: function(){ postlogic(); $(this)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7541087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the simplest database implemented on the iPhone? For each row in a database1 , compare the data in the cell at index 1 to each row in an existing database2 at cell index 1, and if there is a match, then change the value of the cell at index2 of database2 from 1 to 0 2 NSDictionaries? A: If the data is genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error with nested_form gem: wrong number of arguments (4 for 3) I have been struggling with this one for days and can't seem to figure out what's wrong. I'm attempting to allow polymorphic file attachments to a model Item, which belongs to model Location. My routes are defined as: resources :locations do resources...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Haskell - Find the longest word in a text I've got a problem about to write a function to find the longest word in a text. Input: A string with a lot of word. Ex: "I am a young man, and I have a big house." The result will be 5 because the longest words in the text have 5 letters (young and house). I've just started...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Writing a javascript library I want to write a JS library and handle it like this: var c1 = Module.Class(); c1.init(); var c1 = Module.Class(); c2.init(); And of course, c1 and c2 can not share the same variables. I think I know how to do this with objects, it would be: var Module = { Class = { init...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Logic of installation location of R packages under Linux What's the logic behind the different installation locations of various R packages? I seem to have packages installed in several different locations on my linux machine. Is this typical behavior and if so what is the rational for installing a package in /usr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to check if font-face feature is available via javascript There is a way to check whether font-face feature is available or not through javascript? A: Sounds like a job for Modernizr.
{ "language": "en", "url": "https://stackoverflow.com/questions/7541102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the cause of this error "Uncaught ReferenceError: Invalid left-hand side in assignment" Possible Duplicate: Uncaught ReferenceError: Invalid left-hand side in assignment I cannot provide any code because I feel it will take the thread away from the root question and lead to suggestions for hacks, jquery, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Image Libraries I'm working on a PHP application that needs to obtain data from a topographical map (different elevations denoted by different colors). I need to do two things: * *Using this map (800x600), find a way to determine the exact pixel location of a particular city. For example, San Francisco is loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Canceling onkeypress event after changing focus My users want this form to advance focus to the next field when enter is press instead of submitting the form. I've added an onkeypress handler to the test input to change the focus when enter is press. In the code below, when keydown function changes focus, I see the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining variables in control structures According to the standard, what is the difference in behavior between declaring variables in control structures versus declaring variables elsewhere? I can't seem to find any mention of it. If what I'm referring to isn't clear, here's an example: if (std::shared_ptr<Object> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: domain aliases and Google App Engine I have a Google Apps domain at www.openstv.org that I use for email and a website. I recently created a Google App Engine app at stv.appspot.com and it can also be accessed at opal.openstv.org. I would like to: * *Use www.opavote.org for my Google App Engine app instead of opa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display contents of a Directory Android I am trying to display the contents of /data/dalvik-cache through the following program but it returns a NULL pointer exception. After a bit googling i found out that i don't have permissions to read the contents of /data folder.My phone is rooted and is there a way to display...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the creation of multi-dimensional arrays so slow in Scala? Consider this code: Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Array(Arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Define a macro off of the content of a macro Is it possible to define a macro off of the content of a macro? For example: #define SET(key,value) #define key value SET(myKey,"value") int main(){ char str[] = myKey; printf("%s",str); } would result in int main(){ char str[] = "value"; printf("%s",str);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get access to system folders when enumerating directories? I am using this code: DirectoryInfo dir = new DirectoryInfo("D:\\"); foreach (FileInfo file in dir.GetFiles("*.*",SearchOption.AllDirectories)) { MessageBox.Show(file.FullName); } I get this error: UnauthorizedAccessException was unhandled Acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to group any consecutive numbers or items of a given series I am trying to group any consecutive numbers or items of a given series. all consecutive number 1 is return as a sublist. (defun length1-to-atom (l) (loop for x in l collect (if (= (length x) 1) (car x) x))) (defun group-series (n list) (length1-to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: write to specific position in .json file + serilaize size limit issue C# I have a method that retrieves data from a json serialized string and writes it to a .json file using: TextWriter writer = new StreamWriter("~/example.json"); writer2.Write("{\"Names\":" + new JavaScriptSerializer().Serialize(jsonData) + "}"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: openGL context in console I'd like to use certain functions of openGL, but nothing related to rendering visual content. Is there way to create it without ANY dependencies (not to windows, nor some package[SDL, SFML, GLUT])? Only libraries allowed are those without external libraries, just like GLEW which I use. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Shared memory in Unix I am creating a Daemon in Unix that will have exclusive access to a serial port "/dev/tty01". I am planning to create a Master - Slave process paradigm where there is one master (the daemon) and multiple slaves. I was thinking of having a structure in "Shared memory" where the slaves can access...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails rspec controller test ActionController::RoutingError My routes looks like this resources :stores, :except => [:destroy] do resources :toys, :member => {:destroy => :delete} end my objects controller spec look like this require 'spec_helper' describe ToysController do describe "GET index" do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing datetime 24hs to AM/PM format with Entity Framework I am new with Entity Framework. I am having problems comparing datetime values since in my SQL Server database the datetime values are stored as 24hs format and the application is taking the time format as A.M./P.M. format. I tried to parse the fields but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to remove the delay of UIButton's highlighted state inside a UIScrollView? I have noticed a slight delay on the highlighted state of a UIButton when touched down if it is inside a UIScrollView (or a table view). Otherwise, the highlighted state is pretty much instantaneous. I surmise this must be by-d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: JQuery SVG and font coloring How do I change the color of text using JQuery SVG? I currently have the following code: <html> <!-- jquery imports here --> <script type="text/javascript" charset="utf-8"> $(function() { $('#myContainer').svg({}); var svg = $('#myContainer').svg('get'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem about common class first of all, sorry for title, but is very hard explain good in few words. Then il problem is this. I have two class(object): Tclass1 and Tclass2. These are indipendent from them and both classes(objects) call a third class(object): for example Tclass3. As i can share info of Tclass3 betw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Trouble Setting Up SSH Keys for Git in Mac OS X Lion I'm following the instructions on Github for installing the SSH Keys, but after I enter the passphrase twice, I keep getting this message in the terminal, "open .../.ssh/id_rsa failed: No such file or directory." Is this a permissions thing or something? I'm tryin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: image servlet in the spring setup I have a application set up with Spring and Struts. I am trying to display an image in the jsp using the servlet. In the servlet i need to fetch the image to be displayed from the db for which dao is required. To create the dao bean defined in the application context i used springC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting the background color of an NSView I want to set a custom view (not the main one) with a custom NSColor background ([NSColor colorWithPatternImage:[NSImage imageNamed:@"pattern.png"]]). I've tried making a custom view class: .h #import <AppKit/AppKit.h> @interface CustomBackground : NSView { NSColor *bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Two-way beautifier integration with Mercurial We have a very diverse team of developers. Each developer prefers a very different source code indentation and formatting style. Beautifier/pretty printer tools exist that can output in each of these developers' preferred styles. Our code is stored in a Mercurial reposit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Transformations seem to work improperly Ok, so I have a weird problem with OpenGL in landscape mode on iOS. From what I've read on the internet I have to rotate the scene myself, so I did that like this: void GameViewController::onSurfaceChanged(int width, int height) { float aspect = (float)width / (float)height; f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: just can add limited dynamically user control in updatepanel Sorry for my language problem :D I've written below code and I have no problem with that but I can add more than 6 user control(DriverInfo.ascx) dynamically. I've tried a simpler code with a single textbox instead of user control but it does not work for m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is it possible to make a div width auto BUT now more than x pixels/inches? in CSS I was just wondering if it's possible to give a div a width of auto (expandable) but also not allow it to expand more then x amount of pixels? A: Yep, you can use the style, max-width div { width: auto; max-width: 100px; } A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read information from shared memory in Java? Is it possible (and if yes - how) to read information from a Shared Memory on Widows system? I would like to get details from a Shared Memory block, created by Core Temp program, as described here A: You will need to create a JNI module. There is no standard Java ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Escape HTML in markdown in HAML Is it possible, in Rails 3.1, to escape HTML in markdown in HAML to avoid XSS? I mean when you do something like: :markdown Hello #{@user.name} Thanks. A: For now I created this: module Haml::Filters::SafeMarkdown include Haml::Filters::Base lazy_require "rdiscount", "peg_mark...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Knowing the genre for a certain artist using freebase I am new at freebase , I just need to get the genre for a certain artist using MQL Thanks A: This will give you the first 100 musical artists with their name, genres, and Freebase IDs. [{ "type":"/music/artist", "id":null, "name":null "genre":[], }]​ To...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing jquery static util methods I understand the concept of extending the jquery.fn to place your custom functions on the prototype chain of a jquery object, but in my case some of my utils don't need to be attached to a selector. I'm basically looking for a static method. So I wanted to know of any pitfalls of w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: HTML within JSON HTML within JSON I know its not the done thing and should be avoided so hopefully someone can give me some tips here. I am running server side checks which return JSON. The server returns a code to determine what type of MessageBox to show (0: YESNO, 1:OK etc.,). Dependent on the server query, I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Practice: Multiple Forms Is it considered best practice to have multiple forms in an HTML document when each of those forms performs a different action? Here's what I'm doing: I am making a search page that will query my database with several differently formulated SQL queries. This page has three types of s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing Javascript objects in Java I have a Java object, and in it exists a spatial shape defined by a String of "well-known text". On mouseover of this object in my GWT UI, my code passes this String to Javascript through JSNI, which in turn does a bunch of parsing and creates appropriate Bing Maps API shapes. A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web Application Error: Sequence contains more than one element I have a web application that was working fine but does not work anymore. It even works on my development computer (hooked up to a local database), but not on production. So on my development computer, I change the connection string to hit the production...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to get the assets used in iOS built-in controls? Is it possible to get the assets (the PNGs) used in some iOS built-in controls like the slider, switch or stepper? A: You can do this with the UIKit Artwork Extractor which runs in the iOS Simulator and produces a directory with the files on your deskt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Spotify + Facebook integration - Hitting the pause button on Facebook pauses my native mac client almost instantaneously. How is this done? Just as the question reads. If I goto my FB Activity, it shows the track that's being played and a pause button. If I hit "Pause" it pauses my native spotify app instantaneously...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does running a cronjob in shared webhosting (in CPanel) support mod_rewrite'd URLs? I'm currently developing a PHP application where I have SEO friendly URLs, I'm planning on once finished production stage (off localhost) to purchase some shared webhosting and schedule a cronjob for one of the files. Now I'm wonderi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a "appears in all" (set division?) operation built into MySQL? Sorry for the simple question, but I didn't know the proper way to word it to get useful results. I was wondering if there was a function in MySQL that supports a "has all" relationship. The term that I think I'm referring to is set division (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add route after Application_Start I am working on a site where the user is going to add pages to the site, and I was trying to use routing to immediately have the page available after creation. For example, the user may create an About page, and right now I put some logic in the controller when the page is added. if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoose and field types - Number returns object, String returns string? Say you define a Mongoose schema like so aSchema = new Schema count: Number text: String A = mongoose.model "A", aSchema db = mongoose.connect "mongodb://localhost/test" a = new A a.count = 99 a.text = "foo" a.save (err) -> A.findById ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: deleteObject deletes but leaves empty rows in the sqlite3 database? I need to delete the selected row of the database shown in updatePick, but can't seem to get the managedObject that's supposed to be in the [context deleteObject:managedObject]; line correct. Here's the deleteUpdate method: -(void)deleteUpdate { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perforce doesn't know that I have changes to submit I'm new to Perforce. I'm much more comfortable with Git and some Subversion. Anyway, this is what happened: * *I created a branch for myself in p4v located in location A on my machine. *I created a Java project in location B, and copied it into location A on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Eclipse OSGi run configuration Is there any way to add OSGi Run configuration to Eclipse Indigo if there's no such section in a templates panel on the left of "Run Configurations" dialog box? A: Download the Eclipse IDE for Java EE Developers package. It looks to me that PDE is required for the OSGi Framework laun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why my CSS does not position my div to the right side of the page? I have a div element which contains the language selection links like below: <head> ... <link rel="stylesheet" type="text/css" href="css/page.css"> </head> <body> <div id="#language"> <a href="#french">French</a> | <a href="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove default focus from textbox in asp.net using css and javascript I have a login form where the user cicks on the "txtUsername" which is a simple text box then it is highlighted with yellow border by default but I want to remove that. How to do that? As If I manually add some css styles I can change the focus e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling Multiple Strings And Ints In An Array I am trying to create an app in which I have an array(?) that holds the name and other information(2 strings, 3 ints) of the user. I also want the user to specify how many names the app can hold. I was wondering exactly how would I do this? I was wondering if I can use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populating a calendar based on RSS feeds I am trying to build a calendar in php which will display events on my website. My requirement is to populate the calendar with events from different websites, which publish an RSS feeds of their events. In my initial attempt I parsed the events based on the <pubDate> tag and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serializing XML from Browser DOM doesn't create an XML declaration Okay, so we have a webapp that's communicating with a web-service via XML. As of now we're assembling those XMLs by just hacking Strings together (and sending that via XMLHttpRequest/POST). I'm of a mind to re-factor that into using the facilities f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to make usercontrol on topmost in wpf? I have a grid which contains three rows. First row contains which show toolbar. Second row contains which shows status bar. Third row contains the Listbox which is data bound to observable collection. When some conditions are met I need to show popup. I thought to use popup...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I parse emails in realtime as they are recieved I need to build an email parsing script which would parse emails that would come into an inbox and dump the contents into a database, while at the same time make a curl request with details parsed from the email. At this moment I'm quite stuck on implementing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: UIWindows class subviews method missing Im just going through a video tutorial on swaping views. see code below please: NSArray *subs = [window subviews]; The "window subviews" code simply returns the views into the array subs. But I checked the UIWindow class and I cannot find the property "subviews". Please help, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is Dalvik and dalvik-cache? I know this may be a basic question in Android. But what is Dalvik and dalvik-cache? A: Dalvik is the java based Virtual Machine that runs Android Apps on Android. Dalvik-cache is the cache area for Dalvik VM, it is created when the Dalvik VM optimizes your app for running. You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Bingo Board: Generating unique values I'm having trouble generating unique values which do NOT repeat for this bingo board. My code is relatively simple: I use a nested for loop to generate the values with some print statements; upon each nested iteration, I check to see if the value generated exists within the arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to implement glob.glob currently my os.walk code list's all the files in all directories under the specified directory. top = /home/bludiescript/tv-shows for dirpath, dirnames, filenames in os.walk(top): for filename in filenames: print os.path.join([dirname, filename]) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regular Expression to show files with 15 characters QUESTION 1 (13 marks) On gaul, change your working directory to /bin/ (a)What will you get when executing pwd command? Explain why did you get that output? (b) Use a Unix command to display the file names (do not display any of the directory contents, if any) i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I plot a gradient line in HTML canvas? I am trying to draw a line which is a gradient. How is that possible in canvas? A: Yes. Example: // linear gradient from start to end of line var grad= ctx.createLinearGradient(50, 50, 150, 150); grad.addColorStop(0, "red"); grad.addColorStop(1, "green"); ctx.strokeSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Mysql concatenation fields update `users` set `email` = 'web+'.`id`.'@gmail.com' Can i achieve this. Basically all that i am trying to do is updating email id in a special faction i.e insert the row's primary key between PLUS(+) and AT(@) in web+@gmail.com A: Use CONCAT: UPDATE `users` SET `email` = CONCAT('web+',...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to show comments on nodes that are on the Drupal 7 default home page (promoted)? I have a Drupal 7 installation with a default front page and a few article nodes "promoted to the front page". These are displayed as teasers and in node--article.tpl.php I have a template for my teasers and this all works fine. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql grant all privileges is not getting applied I issue the following command to allow root login from any host GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION; FLUSH PRIVILEGES; but it does not update? mysql> show grants; +-------------------------------------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ListView and BeginEdit method I have a ListView. When I call listview.SelectedItems[0].BeginEdit(), it is able to correct the selected item. What event needs to be called, when I end edit my item, for example, press such button as "Enter"? At first, when the user selects ToolStripMenuItem it is occurs so event: priv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Split words with JavaScript, but skips some words before "\" I have a string: "a","b","c" and I can split those words to: a b c using Javascript, but how about: "a,","b\"","c\,\"" How do I get: a, b" c," A: Still not sure if this is one string? But if it is... and this is the only instance of it that you wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make my BlackBerry java program wait till a core app is opened before proceeding? My BlackBerry Java program opens the calender app. After that is opened I want it to do something but I currently just use a 250 millisecond delay before that happens. Sometimes the calender take longer or shorter to open. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't access special key in array in php when I use following code foreach($admin_info as $key => $val) { echo $key." ".$val."\n"; } I will get true result: id 1 username Moein7tl password 0937afa17f4dc08f3c0e5dc908158370ce64df86 mail moein7tl@gmail.com added_time super_admin last_time last_ip see_user_per ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: CRM 2011 GROUP and COUNT I am trying to GROUP the CRM records that have the same "Owner" name and also get a count of the records for each GROUP. So I have a DLL that runs on a schedule and pulls the info down from CRM 2011. But I can't seem to get it to group and do a count of the records for each group. For exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does a commit disappear from the log of one file? So I made a change to a file, pushed it to our main repo, saw it there. David pulled from that repo and did -- well, something -- and couldn't see my change. Since David is a typical Microsoft victim, I asked him to push what he had back to the repo and I'd loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Window operations with JQuery? I want to open a new window with width 600 and height 300 Does jquery have a function to do it ? A: No, jQuery doesn't have any method for that. You just use plain Javascript. Example: var handle = window.open('NewPage.html', '_blank', 'width=600,height=300');
{ "language": "en", "url": "https://stackoverflow.com/questions/7541327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: MVC3, Razor view, EditorFor, query string value overrides model value I have a controller action that takes a DateTime? via the query string as part of a post-redirect-get. The controller looks like e.g. public class HomeController : Controller { [HttpGet] public ActionResult Index(DateTime? date) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7541328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }