text
stringlengths
8
267k
meta
dict
Q: PHP Echo function I'm using a comment script on this page im building. I want for eacht page the comments to say: "Reaction on (each page different name)". So I found the line what says this but it wont grab on to the echo function. This is the line: <H3>{$COM_LANG['header']}</H3> The header is the part of "Reactio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Input content into a DIV within an HTML file from a PHP file I'm not sure if this is even possible but if it is I imagine it would be via PHP (which I am a total beginner at). Basically I have an .html file with an empty DIV tag in it and I am hoping to get the content of that DIV tag, which is stored in a .php file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Echo the results of query based on its index This is pretty basic but I can't seem to get it to work I have this query $people = "SELECT name FROM people"; $people = mysql_query($people) or die(mysql_error()); $row_people = mysql_fetch_assoc($people); $totalRows_people = mysql_num_rows($people); I can echo the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: shell scripting string replace using shell variables This is my very basic script: temp=hello while read line; do echo ${line} done However, ${line} will itself consist of "value of temp = ${temp}" I want my script to echo "value of temp is hello". I've tried doing many things, even echo `echo ${line...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update Ajax call (not content) Look at this code please - how could I kill / update or restart an ajax call (not content that Ajax calls) after the content has already been called? I mean the $('#posting_main') is called onclick and animated - how to stop ajax and make it another $('#posting_main') on another...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data structure that supports the following in O(1) time: initialization, insertion, deletion, finding an element, deleting all elements Interview Question: Propose a data structure that holds elements from 0 to n − 1 and supports all of the following operations in O(1) time: initialization, insertion of an elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Php associative array for offset from 1 to 26 I am trying to create an associative array with alphabets as keys and 1 to 26 as values which I need to use to find the offset of alphabet from 1. So array['a'] would give me 1 and array['c'] would give me 3. Is there a way to declare such an array without typing in all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determine when caret reaches the end of input box I have found this question which provides a solution to compute the exact position of the caret in a text or input box. For my purposes, this is overkill. I only want to know when the caret is at the end of all the text of an input box. Is there an easy way to do tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Black Berry Hello World Program I am learning Black berry programming. I have written a program "Hello World" using the eclipse plug in for Black Berry. Then I want to run the program using the Black Simulator from Run As --> Black Berry Simulator. A blank window is appeared. I tried to Load .cob file, still it is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SnapsToDevicePixels option I am trying to style some tabs but I ran into this issue where the color of the border changes as I resize window. First of all, I used this http://blogs.intuidev.com/post/2010/01/25/TabControlStyling_PartOne.aspx to style the tabs if you're wondering about the code. Also, here is the pic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to draw a transparent circle? I'm trying to draw a transparent circle, but it just doesn't work. when I'm drawing a bitmap it works, but a circle doesn't become transparent. Here's my code in short: Paint paint = new Paint(); paint.setAlpha(125); canvas.drawBitmap(bitmap, sourceRect, destRect, paint); // this w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: To view a result of mathematical action I'd like to show the text containing result of addition of two values: one from onespinner selected item, and another from twospinner selected item. But eclipse shows an error in line text.setText(onespinner.getSelectedItem + twospinner.getSelectedItem); What's the matter? Fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to abstract my business model using dbExpress and Delphi (maybe DataSnap as well)? If my question isn't clear, please help me improve it with comments. I'm new to Delphi and dbExpress and I'm just getting acquaintance with TSQLDataset, TDataSetProvider, TClientDataSet and TDataSource classes. The project that I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Disable the ':' character in Vim In my ~/.vimrc I have mapped ; to : so I don't have to press shift every time I want to enter a command and so I avoid typos like :W. I have mapped it using nnoremap ; :. My muscle memory is so strong however, is that I find myself frequently pressing : when I dont need to and I stil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I get the text from a dynamically created textarea using Jquery? Ok so I have this: $('a[name=writecommentsmodal]').live('click',function(e) { e.preventDefault(); var date=new Date(); var currdate=date.getYear()+" "+date.getMonth+" "+date.getDate(); var comm=new addComment("",fullname,currdate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is this ajax post giving me an error? Does an ajax post require "true" or "false" to be returned? $.ajax({ url:"http://www.xxxxxxxxxxxxxx.com/cc/validate", type:"POST", dataType:"json", data: JSON.encode($parts), complete: function(){ }, success: function(n) { console.log(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Right edge of divs not lining up when removing margin from middle columns When using the Blueprint CSS framework, I wanted to remove the margin between all columns. Unfortunately, when I remove these margins, any div that spans all columns now appears wider than the total combined width of the divs on those rows th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dumping a dynamic web page to file? I'm a C++ programmer and I'm new to web development. I need to figure out how I can log/dump the html of a dynamic 3rd party website to a static html file on my computer, every second? The dynamic webpage refreshes every second and updates a html table with latest price info. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is Python ever supposed to crash? I am running a stand-alone Python v3.2.2/Tkinter program on Windows, not calling any external libraries. Idle has been very helpful in reporting exceptions, and the program has been debugged to the point where none are reported. However, the python interpreter does occasionally c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Graphviz .dot node ordering I'm building a epsilon NFA to recognize a regular expression using the canonical construction. I'm using subgraphs to group various parts of the regular expression. The * operator is giving me particular trouble since dot has decided to move the order of the nodes around. I've tried addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to properly use jquery's tabs() function? In my Grails app, I've got a GSP that looks a bit like this: <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> <li><a href="#tabs-3">Aenean lacinia</a></li> </ul> <div id="tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AppDelegate may not respond to 'delegate' I'm getting the error 'MillersAppAppDelegate' may not respond to 'delegate'. I'm still learning all of this but don't understand entirely because I've read that this generally happens when a method isn't declared in the header file. I'm using XCode 4. Here's the part of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to combine 2 iOS navigation-based apps? I currently have two navigation-based apps, call them MainApp and SecondApp. I'd like to put the SecondApp within the MainApp. Both apps compiled and ran on my computer. However, when I copy the SecondApp's class files into the MainApp it won't compile. Is there a more ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Target all p elements that follow an h2 with CSS How can I target all p elements that follow a heading e.g.... <h2 class = 'history'>History</h2> <p>this is paragraph 1</p> <p>this is paragraph 2</p> <p>this is paragraph 3</p> <h2 class = 'present'>Present</h2> <p>I don't want to target this paragraph</p> <p>I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: using PopUpManager in a Flex 4.5 Mobile App This is more of a best practices question rater than something technical. I'm working on a mobile app using the Flex 4.5 SDK and I'm trying to figure out the best way to handle notification windows. In most cases these windows will be alerting the user to when something go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Camera.takePicture() does not return some times? I am writing an application for android to take pictures. The code does some processing after getting a frame from preview in onPreviewFrame(byte[] data, Camera camera). The problem is with function takePicture() of android.hardware.Camera that sometimes do ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "unknown option: --output" after updating Android SDK from revision 12 to revision 13 I've just updated my android development tools to revision 13. This all went smoothly and I can continue to build in eclipse as usual. However once I try to de a release build with ant my build fails with the message "unknown opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing redundant data from mysql I have a table in sql which looks like: 1 1w10 U UROK_HUMAN IIGGEFTTIENQPWFAAIYRRHRGGSVTYVCGGSLISPCWVISATHCFID... 2 1w11 U UROK_HUMAN IIGGEFTTIENQPWFAAIYRRHRGGSVTYVCGGSLISPCWVISATHCFID... 3 1w12 U UROK_HUMAN IIGGEFTTIENQPWFAAIY...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Program to tell what scripts are running in a browser? Is there a program that tells me the script that a browser executes for a particular event? for example, what script clicking on a button initiates? A: Visual Event bookmarklet enables you to see DOM0 event bound to individual elements. (source: myopera.com) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How could C++ compile when there is an undefined function inside source? Ok this might be a weird question.. Here's the thing, in the overloaded operator=, I used a clear() helper; But for some reason what I actually implemented was clear(Node *curr) instead of clear(), so there is no function named clear() in the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: rating for the business from the Google Places API I am new to this but i need some examples or tutorial to start with. have to create a web page that takes information about a business (name, address, web address, etc.) and then gets the average review rating for the business from the Google Places API. This projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to tag a certain changeset in Git? I am trying to find out how to tag a changeset that occurred earlier in the history. I am doing this as a feature part of a program, so, I can't do checkout and then tag, because the working copy may not be clean, and I dare not to modify the stash either because it may already...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: calculate a number without a variable in javascript Given this code: if(ipadmenuheight < contentheight).css('top', '' + contentheight + 44 + 'px'); Let's say contentheight=500 then this code snippet returns 50044px. How can it be a sum instead and return 544px? Do I need to use a variable or can I do this inline?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Creating a persistent event listener I am trying to figure out how to implement an event listener (unsure if this is the proper term.) I want the service, once my app is launched, to listen for the phones power status. I am uncertain to as how android handles this situation so don't really know what to sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP E-Mail Form w/Options I need to include the first code (which calls the e-mail from a WordPress options panel) in the second code where it says email@mail.com. I tried to include " around the code, but it doesn't seem to work. I also tried to strip slashes, but to no avail. How I call the e-mail <?php echo get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress jQuery fadeIn, fadeOut not working When I transfer my static HTML into a WP theme, my fadeIn effect stopped working on navigation buttons for a gallery. They no longer fadeIn/Out, but just pop up instantly. here the code: jQuery(document).ready(function($) { $("#showcase-nav").hide(); $("#showcase").ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python range weird behavior I need to check a variable, called status, of an object in python. What I am doing is the known: if p.status() in range(21,30): where p is my object. I need to check if this status is between -21 and -29, but it only works if I write the range in positive numbers instead of negative. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error, Retrieving a web page with data in Python 3 I have written a very basic Python 3 function to retrieve a web page with some data but I am getting an error message: import urllib.parse import urllib.request def fetch_web (url, par1,par2="",par3=""): values = {"s":"stor","l":"SVEENG"} data = urllib.pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can we use step in GDB without breakpoints? First, thank you for all the helps so far. In Visual Studio, we can do Debug -> Step In without setting any breakpoints. In GDB, it seems like we HAVE to use breakpoints. int main () { int a = 10; int b = 111; return 0; } My goal is to find the addresses of each...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Return Django Models for Template Rendering after an Ajax Request I would like to create an AJAX-based search for my webpage. So far I am able to send the form data and make the appropriate call to my Django model. What I am having a hard time with is just sending the Queryset back and having it rendered using the D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Short program hangs in C Every time this code runs in UNIX, it hangs and displays a new line without a prompt. It compiles without error. Anyone know what's up here? /* This program uses a Monte Carlo simulation to maximize widget profits. */ #include <stdio.h> #include <stdlib.h> // constant values used in the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the correct mysql (relational) database design structure for I have a table in my database called Resource. This has common information about a resource (a resource could be an article, a static web link, a YouTube video, or any number of other types). For my example: Table: resource primary key - id, column...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: joomla how to access menu alias from a document I have several menus that lead to the same page, but I need the page to do different things depending on the link that was clicked. (eg. site.com/monday, site.com/tuesday) How do I access a menu alias form a document with PHP in joomla 1.7? Any help is appreciated. Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Going back to code while debugging in eclipse From the createSecureConnection method in my code , i came to exception block catch (Exception ex) { ex.printStackTrace(); } Please tell me is it possible to go back to the createSecureConnection from the catch block ?? please see the scren shot here . http://imageuplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return a downloadable file link given a string with Django Given a URL string which points to a file on my local nginx instance, how do I make Django return a response that causes the file to be downloaded from nginx? I don't want Django to be opening up the file and streaming it. A: Use the X-Accel-Redirect heade...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Partial match from string array I've got a string array that looks like this: string[] userFile = new string[] { "JohnDoe/23521/1", "JaneDoe/35232/4", ... }; I'm trying the following but this will only return exact matches. I want to be able to return a match if I am searching for "23521". var stringToCheck = "235...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Trying to remove a specific character from a string I'm trying to write a quick function to remove underscore characters char yytext[25] = {"IDEN_T3FY_ER"}; char removeUnderscore[9]; int i, j = 0; printf("Before: %s\n", yytext); for (i = 0; i < strlen(yytext); i++){ if (j == 8) break; if (yytext[i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Wordpress wp_list_pages highlight current page I using this: <ul> <?php wp_list_pages("&post_type=projects&child_of=$parent_page&title_li="); ?> </ul> To get that: <ul> <li class="page_item page-item-588"><a href="#" title="One">One</a></li> <li class="page_item page-item-592"><a href="#" title="Two"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom collections and mutability in Coffeescript I'm reading about CoffeeScript and am still trying to position the language, what can be done, what are the best practices, etc; I'm more used to strongly typed languages (AS3, Java, Scala) so my two questions may make you smile a bit :) Question 1: Custom collection...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android monthly reminder application i am creating an application where one needs to stored recurring reminders in the database. i have stored the reminder record in the database where user mentions on what day of every month he will have to perform his task in a table named alert. now i want some service which can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node.js log4j-like logging system Could you recommend me a good log4j-like logging system for node.js? A: It's not a log4j port, but Winston offers some similar functionality. https://github.com/indexzero/winston A: LIGHEWEIGHT SOLUTION I have looked through many loggers, and I wasn't able to find a lightweight so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Print time stamp in kernel I'm newbie to Linux kernel. Is there a way to print from within kernel time stamp, which respects timezone and DST, as done in user space (e.g. by localtime(3))? I suspect TZ and DST live in user space land only and not relevant in context of kernel space, but I'm required to print user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does UIEdgeInsetsMake work? I'm making an app where I use UIEdgeInsetsMake for resizableImageWithCapInsets, but I don't understand how does it works exactly, UIEdgeInsetsMake has 4 arguments: * *Top *Left *Bottom *Right But they're floats so I don't know how to set that to an image, thanks! :D A: Accord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: spring context.refresh() and concurrent access I am planning to use spring as a configuration service for our enterprise application. This part has been well documented in spring reference guide and other blogs. Basically using a property file and a context:property-placeholder I plan to instantiate & populate valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSLint with multiple files JSLint works fine for just one JavaScript file. Recently, I've started breaking my program into several pieces. I don't want to be stringing the pieces each time I use JSLint to check my code. What is the standard solution to deal with multiples files with JSLint? A: There is a version of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: validate Regular Expression using Java I need validate a String using a Regular Expression, the String must be like "createRobot(x,y)", where x and y are digits. I have Something like String ins; Pattern ptncreate= Pattern.compile("^createRobot(+\\d,\\d)"); Matcher m = ptncreate.matcher(ins); Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netbeans and Xampp I installed netbeans with php plugin.I also installed XAMP.My problem is how to configure /opt/lampp/htdocs/ to my netbeans application so that I can debug and run that from the application.Problem is when I try to make a project inside from netbeans it does not allow me to create files on that lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add search terms from form to search url I am trying to create a search input to a site that add the search terms to the end of the url. This is the url in question: http://apps.ticketbiscuit.com/ticketbiscuit.website/LyricTheatreOxford/Search/ You can manually search by adding the search term to the end of the url ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DevExpress:How to programmatically remove a column from XtraReport? I have a Web application with XtraReport report. The report has several columns. Depending on a certain condition, in certain situations I do not need one of the columns to exist. What is a best way to programmatically remove it? I need not to ‘mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grails - Using JS variable in remoteFunction for controller and action args I want to call an Ajax function by using remoteFunction. But I'd like to set controller and action names with JS variables. Like this: ... var id = 1; for (var i = 0; i < updater.slaves.length; i++) { var slave = updater.slaves[...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I pass an enum in this context I want to change the below function that I have written so that it will take the Enum (MyColors in this instance) as argument so that I can use the function on any suitable contiguous Enum. Everything I have tried so far has failed so I'm stuck. private enum MyColors { Red,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting a specific input from a specific form? I'm having difficulty grabbing a specific input from a specific form. Any tips? <form id ="frm_addtag-1"> <input type="text" name="tag" id="tag"> </form> <form id ="frm_addtag-2"> <input type="text" name="tag" id="tag"> </form> <form id ="frm_addtag-3"> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: maven gae plugin questions I'm having some issues making the maven google app engine plugin work properly. First of all, I'm not even sure if the archetype I'm using is the correct one, their examples show version 0.7.0 but it seems like never versions exist (i tried 0.9.1 and that works), where can I find a overvi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How much days left from today to given date I have a date - 2015.05.20 What is the best way to calculate using python how much days left from today till this date? from datetime import * today = date.today() future = date(2015,05,20) ??? A: subtract them. >>> from datetime import * >>> today = date.today() >>> fut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to make sidebar's height equal to the content height (two columns table with divs)? I've created 2 columns layout - content div and sidebar div, with header and footer. See the live example here. How can I make sidebar's height equal to the content height (i.e. I should have something equal to the table with 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove past dates and next months dates from the current month Is it possible to remove the past dates and next month's dates from the fullcalendar? So for the current month it should display only current dates and days. A: The grid cells for the next and previous month have the class "fc-other-month", so you can t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Retrieving albums from age-restricted (alcohol) pages results in "An unknown error occurred" I've noticed when doing a Facebook Graph API call to retrieve a list of photo albums on an age-restricted page the following error occurs: {error_code: 1, error_msg: "An unknown error occurred"} I've tried both the JS API a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Factory or constructor - where to set object properties? I am a little bit confused about, what is the right place to set object properties, in constructor or in factory method, or it does not matter? In constructor: class Foo { public $bar; function __constructor($b) { $this->bar = $b; } st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: Random Sound FX on Button Click I'm trying to play a random sound FX on a button click using the soundpool. This works in the emulator but not on my device. Any clues? public class enc extends Activity { private static final String TAG = "MyActivity"; private SoundPool soundPool; private HashMap<Integ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS - UIImageWriteToSavedPhotosAlbum I wanted to use the following void API to write a captured image to the photo album but I am not very clear about 2 of the parameters UIImageWriteToSavedPhotosAlbum ( UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo ); Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: how to search one object and return another related object I am trying to create search form when user search for a course it returns list of user's names who are taking that course.So i have user table,course table and user-course join table.I want o use metasearch or ransack.But i wonder how i would use these in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redundant character in POST payload I'm building a Chrome extension in which I simulate form POST to send images over to a server. I managed to upload the file, yet its content is distorted. By comparing the byte array of the uploaded and the original, it can be observed that every byte > 127 is transformed into 2 o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Synchronized FIFO Buffer Usage I am trying to create a system where one thread A adds items to a buffer, then another thread B is responsible for reading the items in the exact order they were entered, and then doing some potentially lengthily operations on them. My best guess: Class B extends Thread { Buff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Re-Stream a MPEG2 TS PAL Stream with crtmpserver I want to build up some kind of stream wrapper: I own an old Dreambox PAL Sat Reciever with Networking. This stream I want to transcode to a lower resultion an restream it. My Goal is, to have a simple website, where this stream is embedded via rtmp. I thougt crtmps...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Undefined local variable or method `current_submission' for # I am trying to create an app for managing an academic conference. Users will sign in and submit abstracts for consideration of being presented at our annual conference. I have followed the "Ruby on Rails 3 Tutorial" for most of what I have done. My modifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does OCaml have syntax like Haskell's ++? I know OCaml has List.append, but does it have an operator like Haskell's ++? A: For lists: # (@);; - : 'a list -> 'a list -> 'a list = <fun> # [1;2;3] @ [4;5;6];; - : int list = [1; 2; 3; 4; 5; 6] For strings: # (^);; - : string -> string -> string = <fun> # "abc" ^ "def"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set up tunnel for SVN (using Cornerstone/Mac) I've been using Tortoise to checkout/commit to the svn repository. It is set up to use Tortoiseplink as SSH client (D:\TortoiseSVN\bin\TortoisePlink.exe -l foo -pw bar). I have now moved to a Mac (using Cornerstone) but I can't get the same sort of setup. Whatever I do, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two-way binding requires path or xpath I want to increase Progress-bar value based on two textbox's Text. I wrote this XAML but there is an error "Two-way binding requires path or xpath" when I do MultiBinding in ProgressBar.Value <Window.Resources> <local:Class1 x:Key="ConverterM"/> </Window.Resources> <TextB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pointer initialization in C In C why is it legal to do char * str = "Hello"; but illegal to do int * arr = {0,1,2,3}; A: As for C89: "A string", when used outside char array initialization, is a string literal; the standard says that when you use a string literal it's as if you created a global char array initial...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Controlling placement of the edit link in Orchard Is there a way to control the placement of the edit link for a content item that get's rendered when you're logged in? I'm assuming this can be done using the placement.info but I'm not sure how do it. A: No, not with placement, just with CSS.
{ "language": "en", "url": "https://stackoverflow.com/questions/7628073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a ruby IO object from request.body.read? I'm using sinatra and transloadit and sending files with xhr using valumns file uploader. I need to create a IO object and fill it with data in request.body.read How can I do that ? thank you. A: Use StringIO: require 'stringio' StringIO.new(request.body.read) Alte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot get Xcode SCM to work with Gitolite based server For whatever reason, I cannot get the built-in source control tools in Xcode 4.1 to work with the git repository I have setup on my server. The server is setup to use Gitolite. Everything works fine from the command line. I can add the remote, push, pull, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory management of NSTimer -- does it need to be assigned to a variable? Whenever I want to make a timer, I just do: [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(someMethod) userInfo:nil ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Box2D JavaScript library should I use? There are a few different ports of Box2D for JavaScript. Which one is the best? * *Box2DJS - "converted from Box2DFlashAS3_1.4.3.1 in an automatic manner" *Box2Dflash 2.0 ported to JavaScript - "one big nasty hack that just happens to work" *box2dweb - "a port of Bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: How to get arguments list of a built-in Python class constructor? I'm trying to use the inspect module, however it seems I can't use it on a built-in (native?) class, or else I misunderstood. I'm using Python 2.7 and tried with Python 3.2. This is working: >>> import inspect >>> class C: ... def __init__(self,a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Changing UITableView to clear color I want my UITableView to be completely invisible but I have set a lot of things and nothing seems to be working. I use custom table cells. This is what I set in the cell.h self.textLabel.backgroundColor = [UIColor clearColor]; primaryLabel.backgroundColor = [UIColor clearColor]; s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use to drag an image(image url only) into the droppable area to upload to the server using jquery or ajax? I want to upload an image to server through an image url. this image is dragged and dropped to a droppable area. (Or is there a way to post the Image URL to another page in the javascript function?) H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static Gmaps in winform Im trying to load a google static map in a winform. I found a control online that would helpme but i cant get it working. i got the control from Here. i was not able to drag on the control on to the form like others. i have also email the dev of the control but have not heard back yet. Any h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert Regexp in Js into PHP? I have the following regular expression in javascript and i would like to have the exact same functionality (or similar) in php: // -=> REGEXP - match "x bed" , "x or y bed": var subject = query; var myregexp1 = /(\d+) bed|(\d+) or (\d+) bed/img; var match = myregexp1.exec(subject); wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Java String to sql.Timestamp Got a String coming in with this format: YYYY-MM-DD-HH.MM.SS.NNNNNN The Timestamp is coming from a DB2 database. I need to parse it into a java.sql.Timestamp and NOT lose any precison. So far I've been unable to find existing code to parse that far out to microseconds. SimpleDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: C str functions and malloc I want to build a program which sum a big integers in C. So I'm ready with the code. The program compiling pass successfully with mingw and Visual C++ compiler. But I have a problem with the run part. The strange thing is that when I debug the program in Visual Studio there is no problems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting all for the week xx, not working properly php Ok this is what i have: function getFirstDayOfWeek($iYear, $iWeekNumber) { if ( is_null($iYear) ) $iYear = date('Y'); if ( $iWeekNumber < 10 ) $iWeekNumber = '0'.$iWeekNumber; $iTime = strtotime($iYear.'W'.$iWeekNumber); return $iTime; } $fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subselect working on dev machine, but not live, with the same database, and both running mysql 5.1 This query is working perfectly on my dev machine, a PC with mysql 5.1.53 SELECT DISTINCT * FROM posts P1 WHERE user_id IN (2,1000001) AND NOT track_id = 34 AND (SELECT COUNT(*) FROM posts P2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Post request via QNetworkAccessManager I have a problem while working with an object of QNetworkAccessManager class. I want to send a POST request to a web server. My code is QNetworkAccessManager *manager; manager = new QNetworkAccessManager (); QNetworkRequest req; req.setUrl(QUrl("http://exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I refresh or reload the JFrame? I am doing project using Java and in that I need to reload whole JFrame after clicking particular button on that JFrame. How to do this? A: Try SwingUtilities.updateComponentTreeUI(frame); If it still doesn't work then after completing the above step try frame.invalidate();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: PHP Separate admin controllers CODEIGNITER I have some basic controllers and admin controllers, I'm trying to separate them in folder to avoid things like this one: controllers/user.php -> general users controllers/a_user.php -> for admin users I've read some things about route but couldn't find a way to do that. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get all lines of a continuation line in traceback Is it possible to get all lines of a continuation line in a traceback? Example: #! /usr/bin/env python def function_with_long_name(foo, bar): raise Exception('problem?') function_with_long_name('very_important_value', 'meaningless_value') Output: $ ./test.py Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change the content of ListBox when clicked on ListBoxItem? I have a ListBox and I whant to bind it to a generic list with items of my type (SubscribeUnit). List<SubscribeUnit> Subscribes = new List<SubscribeUnit>(); where class SubscribeUnit { public string Title { get; set; } public string Link { get;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: googletest: construct fixtures with parameters? I have two implementations of an algorithm working on arrays and returning a single value, a slow and naive but correct method A and an optimized method B that may be buggy at corners of the input parameter space. Method B has branches depending on the size of the inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Polymorphism in Mongoid Is it possible to get real polymorphism in Mongoid? Example: class Company include Mongoid::Document has_many :workers, as: :workable end class Worker include Mongoid::Document field :hours belongs_to :workable, polymorphic: true end class Manager < Worker field :order has_ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7628135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }