text
stringlengths
8
267k
meta
dict
Q: Placeholder in C# expression WPF Is it possible to use placeholders in C# expression? I have a expression for filtering records in a datagrid as follows: view.Filter = item => { OrdsRlsd vitem = item as OrdsRlsd; if (vitem.OrderNo >= Convert.ToInt3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL - Select 'n' greatest elements in group The SQL MAX aggregate function will allow you to select the top element in a group. Is there a way to select the top n elements for each group? For instance, if I had a table of users that held their division rank, and wanted the top two users per division ... Users userId...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to merge two arrays with same id in PHP? Possible Duplicate: Merge arrays (PHP) This is aray my array how i merge array with his 'panid'. same 'panid' please see array and required output. show below array the 2 array contain same 'panid' but it's ingredient are different. so i will merge this 2 array in one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to open a link from custom swf player which posted on wall I'm really wondering about how youtube or soundcloud flash player on facebook wall posts can open url on another tab/window. I tried many things from navigateToURL (both url and javascript) to ExternalInterface, but I couldn't get it work. A: If you're...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Update fails - pyodbc - informix Updates to an informix database via a python script using pyodbc are silently failing. I am using the syntax as provided in the pyodbc wiki and tried manual commit as well as autocommit cursor= conn.cursor() cursor.execute("update eqpt set notes='BOB' where serialno='SAM'")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authentication, CodeIgniter templates If the user is logged in I want to show a different menu then if the user is not logged in. Is the best way to accomplish this to make just two different views, and including them depending if the user is logged in or not (check in controller) class Page extends CI_Controller { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make a list of words from text file and search these words by letters from input Ok, I'm a newbie so I appreciate any clues and hints. This is my first question here, so sorry about anything messy! I have found a lot of help with other types of lists and magic tricks, and some things, but not much, that I can use in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The right place for "io.sort.mb" in Hadoop? I am a bit confused, in the Hadoop cluster setup, in section "Real-World Cluster Configurations", an example is given where properties like io.sort.mb & io.sort.factor goes in core-site.xml. But in the default configuration files these properties appears in mapred-site.xml...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reinterpret cast floating point number to integer This question is probably "unusual", but I need to cast a float Number to an integer Number, without modifying its binary representation. For example, the float 37.5 is represented by the bytes 0x42160000 (according to IEEE 754). I need to reinterpret 0x42160000 as a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Spring MVC Validation Model I'm a noobie in Spring MVC To make Spring MVC 3 Validation fully work, Must it be that the Model Class (e.g. User class) to have a commandName as 'user'? can't it be changed? Whenever i change the commandName (e.g. 'userx'), the error messages in the JSP does not show. Is it a prerequisit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Invoking a Camel end point deployed in remote Server from JUnit test case I am a new to Camel and have to deliver a module in a very short notice. My question may be a very basic question but I would really appreciate if someone could guide me on it. The requirement is to invoke a Camel endpoint service deployed in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Test Driven Development the same as Test Driven Design? I'm starting to learn about Test Driven Development. I've read quite a few articles that talk about TDD. Some refer to it as Test Driven Development. Others call it Test Driven Design. Are they the same thing? I get the impression they are the same, but if n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: using grails security model (acegi) outside of grails I have an existing grails application that was developed using the older acegi security plugin. I would like to develop additional applications (non-grails) that uses the same security model. I have two questions: * *Can I use the Spring Security project to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Limits for Multidimensional Arrays I just made a multidimensional array that was 1024 x 1024 x 1024. I get an OutOfMemory exception. What is the largest size multidimensional array that is safe to use? I'm doing this in VB.net so all .net answers are acceptable. EDIT When I said safe, I mean, a good size for just...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using a 32bit- or 64bit specific dll depending on the process bitness I need to reference a DLL which is available in 2 versions (one for 32bit and one for 64bit). My goal is to build an web application that works on both 32 and 64 bit systems. I thought about referencing the 32bit assembly by default and using the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Editing all entries in the iPhone phonebook I have an idea and I want to know if it would be possible to implement on iPhone or not. Basically I want to access every entry on the iPhone phonebook, add a prefix before all numbers and then save it again, all without the asking the user to press save on every entry. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to transform 4 points to an xna matrix I want to develop my own AR-Library in C#. My problem is: I have the 4 corner points of my marker and want to show 3D cubes on the marker (it's a multi-marker lib), but I don't know how to get the matrices for xna. A: The term you are looking for is called "3d pose estimat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mono 2.10.5 for CentOS / RHEL 5 Until now I used THIS to install/update mono on my CentOS machines, but it seems that it's not updated since 2.10.2 anymore (may because mono isn't part of novell anymore). So is there a new location to get newer mono *.rpm from? A: I've had pretty good luck with the scripts Nathan B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Failing to install the latest version of Windows Service I am installing a Windows Service on my Desktop with a particular version. Then I revise my service and make some changes in the service.I upgrade my installer version.I make the property RemovePreviousVersion true and I do the following things below.In Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Too many php cookies Will having too many php cookies on a webpage slow it down a significant amount? On a site I've created I'm considering adding a feature, which would be nice, but require quite a few php cookies to be stored. Will this make the site slower? A: It won't, but there is limit for cookie length. Sav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set start date and end date? How to set Start Date and End Date using jQuery Mobile? For example, I selected one date (i.e start date) 24-5-2011 (May 24th,2011) then end date will be in less than or equal to 100 days from the start date. A: Try this: var start = new Date('5/24/2011'); var daysTillEnd = 100; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ninject and dynamic WithConstructor/WithMeta and RhinoMocks In my project I have an IoC container that gets initialized the usual way with a ServiceModule. When I write unit tests, I want to be able to bind to either a StrictMock, DynamicMock, PartialMock or Stub. In the past I had a FakeServiceModule that would bin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is -webkit-focus-ring-color? I want to reproduce the outline effect for focused input boxes in webkit to non-webkit browsers. I found here the default CSS used in webkit. The lines of interest are: :focus { outline: auto 5px -webkit-focus-ring-color } I tried making a search in the whole code for the defin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: OCaml: find value of specific type I have the list of some values where I need to find out which kind of value is first: type my_types = | MAlpha | MBeta of int list | MGamma of string * int let find_first where what = List.iter ( fun m -> | MAlpha -> (* iterate frough "what" to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Design Application with fragments I am starting developing a new application based on fragments. What I want to achieve is something similar to an activity group. Talking in fragments I was thinking to start create a FragmentActivity (call it TabActivity) that would manages different tabs. Every tab is compound of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parsing Datetime with timezone offsets I have these datetimes which appear to me to be in an odd standard.. 2004/05/17 21:27:16.162 GMT-7 2006/08/01 01:00:00 GMT-7 2010/11/05 13:00:38.844 US/Pacific Any ideas on how I can parse them in C#? Or has anyone seen them before? A: Maybe you could take a look at this topic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to run Applet with dependencies jar file in HTML I have a jar file containing applet files which are dependent of below additional jar file. Its running fine as standalone jar file. The applet uses: * *xmlrpc-2.0.jar *commons-codec-1.3.jar But when I tried to run in HTML as below, it's running, but attached...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PersistenceSpecification and inverse I've already posted this in the Fluent NH group a long time ago, but didn't get any answers until today. SO, here's the problem: I've got a one-to-many relationship defined and the one side has the inverse flag set. the mapping code looks something like this: public class Mapeame...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to call Java method from C++ (java returns String[])? As far as I know I can't call method from C++ that will return from Java string array, so only solution for this is loop call method that will return array elements on by one, but how can I store them in C++ array? In Java I have method: public static String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: url?id=1 How do i GET the id using a PHP MYSQL function? I am learning how to use functions to organize my code better and cant seem to workout a mysql query that requires an external variable such as the url?id=1. How is a mysql query function to get a variable from the url done? How do i achieve this? My function:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serialize class keyword benefits What can be the benefits of writing serialize keyword in below line of code ? [Serializable] public class Abc { } A: If you don't know much about serialization, check this for a start. But as the other commented, the benefit is to be able to store the state of the object (for examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Suggested Routes - Google Directions API I want to get a list of directions between two locations. Google Directions API says that the results are placed in routes array. I tried directions using API and got only a single direction, but when searched in Google Maps with the search text as "Hall Bazar, Amritsar to Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UIPanRecognizer doesn't work. My view never redrawn I've made a UIPanRecognizer like this. - (void)pan:(UIPanGestureRecognizer *)gesture { if ((gesture.state == UIGestureRecognizerStateChanged) || (gesture.state == UIGestureRecognizerStateEnded)) { CGPoint translation = [gesture translationInView...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Return max float instead of infs? I have several functions with multiple calculations that might return inf, like so: In [10]: numpy.exp(5000) Out[10]: inf I'd rather it return the maximum float value: In [11]: sys.float_info.max Out[11]: 1.7976931348623157e+308 I could put in checks for every time an inf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Finding the regex for ///? This was posted to me <*@google.com> wrote: Hi Niklas, If you just want to map this: /region/city/category/ supposing its only this valid characters: [a-zA-Z0-9_] you can do the following: - main.py application = webapp.WSGIApplication([('/([-\w]+)/([-\w]+)/([-\w]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual C++ - Unable to get Text value of listBox item, error C2872: 'Text' : ambiguous symbol myWarcraftRace->removeSkill( sysStringToCharArray( listBox_mySkills->SelectedItem->Text ) ); syStringToCharArray() does work, also the removeSkill() does work, problem is that I can't get the Text value of listBox_mySkills...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overflow to left and top? If an element has overflow: auto or overflow: scroll, and its contents overflow, then scrollbars are shown... but only if the content overflows to the right or off the bottom. Is it possible for the overflow to apply scrollbars if content is overflowing to the left, or off the top? A: What...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LazyLoad images to GalleyView - Android i've searched and didn't come across anything usefull on problem i'm facing. I fetch images from remote location and store them in local cache as they are needed, when image has been downloaded i use lazy loading to update the ImageView that requested it. It all works fine, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I get the TargetOutputs of an MSBuild task in a Rake/Albacore script? MSBuild can provide the list of project output if you define an Output element like below <MSBuild Projects="YourSln.sln"> <Output ItemName="YourProjectOutputs" TaskParameter="TargetOutputs"/> </MSBuild> Can I get that list with Rak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect / URL to /homepage/index/en one using RewriteEngine I have a .hraccess that displays homepage and language in "/homepage/index/en" style. I want to Redirect (Using 301 code) requests to "site.com" to "site.com/homepage/index/en" using RewriteEngine. I tried this: RewriteRule ^/$ /homepage/index/en [R] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: table in the android I have two table in a data base: 1) student #_id## name ## 1 Bill 2) students_mark #_id# stud_id ## date ## marks 1 1 12 50 1 1 13 30 and I need to make this all came to the table with a title or not marks should be changed and then o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does the compiler benefit from C++'s new final keyword? C++11 will allow to mark classes and virtual method to be final to prohibit deriving from them or overriding them. class Driver { virtual void print() const; }; class KeyboardDriver : public Driver { void print(int) const final; }; class MouseDriver fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Using mod_rewrite to re-order part of a url path alphabetically Any help using mod_rewrite to re-order part of a url path alphabetically would be greatly appreciated. The Problem: I need any path parameters after mysite.com/check/ to be re-ordered alphabetically and ideally converted to lower case. For example: mysi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Implement Google direction in asp.net google map direction in asp.net. How can we achive How to Implement Google direction in asp.net A: "Google Maps has a wide array of APIs that let you embed the robust functionality and everyday usefulness of Google Maps into your own website and applications, and overlay...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to structure this SQL query. Combining multiple tables? NOTE: This is not a duplicate of my other question . I have changed the table structure and need new help with a new query. So basically I'm getting notifications of new content on my website. I have 4 tables - * *articles *media *updates *comments ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a Python Distribution like ActivePython? How would I create a Python Distro like ActivePython? Basically its only for linux (Centos 5) platforms. Ideally it should work like ActivePython, as in I could just untar it on a location, e.g a nfs share /path/to/python, and get my scripts to use it? This usua...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse graphiti tutorials From where can I get the Eclipse Graphiti tutorials? For more information on this software you can get here. Also please let me know the knowledge of Eclipse plugin development and EMF is mandatory in better understanding of Graphiti? Eclipse Graphiti Link A: The tutorial is installed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to determine a clients Facebook User ID in PHP on first arrival? The situation: a random user who may or may not be registered with my site (at a different computer, lets say) signs into facebook in one tab. User then opens a new tab and goes to my website. The problem: This is the first time th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is auto outline in Webkit? What does auto mean when I write: :focus { outline: auto 5px -webkit-focus-ring-color } It is not documented here and I cannot find documentation elsewhere. A: You're using the shorthand for the outline-* properties; auto represents the value for outline-style and auto itself me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: validates_confirmation_of :password doesn't get triggered I have a very basic Admin model: class Admin < ActiveRecord::Base has_secure_password validates_uniqueness_of :email attr_accessible :email, :password, :password_confirmation end According to the manual has_secure_password also adds a validates_confirm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: (Un/De)compress a string in bash? Is it possible to compress/decompress a string in bash using stdin/stdout ? I tried this but apparently it is not supported ? hey=$(echo "hello world" | gzip -cf) echo $hey # returns a compressed string echo $hey | gzip -cfd gzip: stdin is a multi-part gzip file -- not supported I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Hidden int property validation I am trying to validate hidden integer property can you please suggest better way public class Model { [Display(Name="Theme"),Required(ErrorMessage="Please choose your theme")] public int ThemeId { get; set; } } In view @Html.Hidden(m=>m.ThemeId) And this output <inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ezSQL check affected rows With adodb i checked affected rows like this: $user_data = get_login_name($user_name, $password); //0 = id //1 = username //2 = password if (!$myDB->Affected_Rows($user_data[1], $user_data[2])) { echo "everything good"; } else { echo "bad"; } How to check it with ezSQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zend framework - access controller or model from the view I need to give the front-end designer the ability to choose whether or not to display a single xml feed or an mash-up, from the view.phtml file This means I need to be able to call a method from the controller or model which then returns a variable to the vie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android web server authentication with JsonRPC I've been doing some research and it seems my best option to go with an Android-Client/PHP-Server application is by using JsonRPC. My question is, How would an authentication mechanism work? I'd use Zend for json server and Android-json-rpc as client. Or is there a bett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The multiples of 2 Condition is not working(Counter Problem) Technically this code of mine is a kettle simulation, but the problem now is that. when it reach that 20.00 , the code for it is not working #include<stdio.h> #include<stdlib.h> #include<cstdlib> #include<time.h> //Global Declaration for waterTemperatur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @$() notation within a makefile I’ve to run a makefile (not written by me) that contains the following line: $(JAVAC) -verbose -classpath $(MY_CLASSPATH) -d $(BUILD_TMP) @$(SOURCE_FILES); Where SOURCE_FILES is previously defined as: SOURCE_FILES =$(BUILD_DIR)/sourcefiles "@$(SOURCE_FILES)" doesn't work on my machi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Verify contribution of client-server network latency in application performance We have a typical Flash+J2EE application that makes multiple requests from client to server (over Flex remoting), which is taking quite a long time on some client systems (and hence results in poor application performance on such systems...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I pass origin and destination co-ordinates to the Google Maps directions API? I'm using the google maps api for directions but i'm having problems when i try to send the origin and destination as coordinates.it says in the documentation that i can do that http://code.google.com/apis/maps/documentation/directi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Optimise MySQL ORDER BY RAND() on a filtered GROUP BY query to avoid temp/indexless join MySQL "join without index" counter is incrementing as shown in various analysis tools like mysql-tuner.pl etc, having tracked down to a query which selects a random product using RAND(), I would like to optimise to help avoid th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gzip in asp.net for Response and Request? When I use Gzip, I put some code in global.asax which zip the reponse from the server to my client. But my page contains a lot of text ( no view state - pure text). When I save it - it uploads it all as a plain text. Is there any way to zip the uploaded content ? A: You ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Webkit CSS reset There are a few CSS resets out there, but I would like one that resets all browsers to "webkit style". (Hence the webkit browsers are unaffected, just the non-webkit browsers are changed.) I've found the default webkit stylesheet here but I cannot naively copy that, since a lot of the property names...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying Terminal Base Java Application I'm migrating from .net to java and I'm not yet used in java application deployment. I'm used in deploying console base application that acts as a stand alone application , a mixed of tcp and udp servers with custom protocol. I have a requirement that my ported .net applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Warning: Pattern match(es) are overlapped when matching on strings I am trying to make a simple url route in Haskell and can't get around the warning: Warning: Pattern match(es) are overlapped In a case alternative: "/" -> ... Ok, modules loaded: Main. the snippet: {-# LANGUAGE OverloadedStrings #-} im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple WndProc functions in Win32 This might be a dumb question, but can you register multiple WndProc functions in Win32? e.g. a framework catches some messages and my app is interested in other ones - how do I catch them without modifying the framework code? A: If I understand your intention correctly, you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Creation Gadget for WSO2 BAM I am creation Gadget for WSO2 BAM dashboard. I need to add the data to the chart that gives service of monitored server as result. How can I make this data as values of charts? A: The standard way to follow is, * *You need to first expose this data through a service. Ex: Can be done ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generalized chaining of non-member functions in C++ I don't know if this can even be achivieable, but given these set of functions\class: float plus1(float x) { return x+1; } float div2(float x) { return x/2.0f; } template <typename T> class chain { public: chain(const T& val = T()) : val_(val) {} chain& ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jquery Issue About ScrollTop coding if($('html, body').scrollTop().val() > 50){ $("#scrolltop").css("display", "block"); }; Those're my codes, but of course don't work. How can I apply to it with "if" questioning.. ? A: Im not quite sure what you mean. Do you have an element "scrolltop" which you only want to dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write dynamic INNER JOIN in PDO I want to write a dynamic function for INNER JOIN in pdo. I want send table name and condition to function and create dynamic query in function. SELECT * FROM :tbl INNER JOIN :tbl2 ON :tbl1.id = :tbl2.id WHERE :tbl2.id = :value; I want to passed tbl, tbl2, tbl.id, tbl2.id, and W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP counter using files I found a really innovative and decent counter which lets me put the counter code on the main index.php page and then view the counter through my back end system, however although it kind of works it breaks the main page because of PHP errors, becasue of the old code; I know some PHP but not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert a strongname public key (snk) to ? I have a file testpublic.snk which holds a public key. I have created it with sn -p c:\test.snk c:\testpublic.snk. Now, how can I convert testpublic.snk to a string like <RSAKeyValue><Modulus>z140GwiEJvuGOVqMQUxnojILR8rn2SFOViigoloku59H5eqzqca3Hdyl/jc+Acdb5ktzhBOOyG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to lock in one thread and wait until lock will be released in another thread I just want wait in main thread until some event in run. How can I do it using java.util.concurency classes? Thanks! P.S. Does my question realy explained bad o correctness check is shit? I mean this message "Oops! Your question could...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: ASP.NET Label Inside UpdatePanel Not Updating I am new to ASP.NET and I'm trying to get a Label to update with some information that is grabbed when I hit a button. The click function is called and returns just fine (I've debugged and stepped through the whole thing). The only thing that doesn't work is where I set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: height of wrapper div to inside floated items? I have a div 'a' ( simple div) and div 'b' which is float:left; I was wondering what is the correct method to set the height of div 'a' to be a perfect wrapper for div 'b' ( in terms of height). i know there are some options : 1)set 'a' : overflow:hidden ( it works). 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to audit log member.createuser My ASP.NET application is Membership enabled and users with Administration Role can create other user with different roles. Is there an way that i can maintain an audit log of user creation, so i can keep a track that which Administrator created which user. Thanks in advance. A: S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get form validator script to work with an array? I am trying to implement the JavaScript Form Validation script from Javascript-Coder.com that can be found here. I have it working for elements on a form, but I am wondering how to get it to work with an array. Specifically I have a form on a webpage here, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use less variables with $_GET I've noticed that instead of using: http://yoursite.com/index.php?page=4 I could just use: http://yoursite.com/index.php?4 How to do this in php and JavaScript? A: In the example you have posted, now 4 is the key instead of value. If you are passing ONLY one parameter via query ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One of my queries now only returns one record after working fine for 10 years - I did not change any code I've had a mysql database on my website for about 10 years. I recently (5 or 6 months) ago had to upgrade to version 5.x and did so without any problems. My database uses four tables and has been working fine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to mock context while unit testing code using VirtualPathUtility.GetAbsolute method I am running unit tests on code which uses VirtualParthUtility.GetAbsolute, but am having problems mocking the context for this to work. I've set up a mock context with Moq as follows private Mock<HttpContextBase> MakeMockHtt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Pushing sidebar down in responsive CSS and HTML website Is there a way to make a sidebar collapse to the bottom of the page without any JavaScript when the browser reaches a certain size. I'm creating a responsive theme that can be seen at http://flexibletheme.tumblr.com/. By resizing your browser window to below 60...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: KeyguardManager FLAG_DISMISS_KEYGUARD for Service When the screen is turned on, I want to check is power button activated it, if yes, it will auto dismiss the keyguard and run the toast. When the screen is turned off, the keyguard will be re-enabled. (the code works till here) However, when the screen is OFF, and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: All Directions with google directions API Is there a way I can get all routes from my current location to "any other location"? By any other location I mean that the map should show all valid directions to locations I haven't specified. The range (in terms of distance) of the directions may be, say, 1 mile from my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LinearLayout at the top and at the bottom of the screen I have two different LinearLayouts inside one LinearLayout and I would like the first layout to be at the top and the second layout to be at the bottom. I tried with android:gravity="top" but it didn't work. Here is my xml code: <?xml version="1.0" encoding...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Printer output from java applet is no longer in vector format? I have an online sheet music generator that for draws sheet music graphics to an area about 600pixels square. This looks OK on the screen but if printed each note would look blocky. I always used to be able to print this applet in Internet explorer and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Big comments with Sublime Text 2 I would like to make comments like this in Sublime Text 2: /******************** * This is a comment * ********************/ Is there an easy way to make those automatically? Also, where can I find good documentation about such stuff. I love Sublime, but I feel it's poorly documente...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Finding Column Labels corresponding to specific columns in sql server 2005 I am facing problem, finding out specific column names. I am using SQL Server 2005 and am coding in struts 2 framework. Here is what needs to be done: I want to find out the column names which have a particular value in a particular row. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Job queuing library/software for Java The premise is this: For asynchronous job processing I have a homemade framework that: * *Stores jobs in database *Has a simple java api to create more jobs and processors for them *Processing can be embedded in a web application or can run by itself in on different machine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the performance difference between a JVM method call and a remote call? I'm gathering some data about the difference in performance between a JVM method call and a remote method call using a binary protocol (in other words, not SOAP). I am developing a framework in which a method call may be local or remote...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing push/pop in a linked list (C++) I'm trying to incorporate push/pop into a linked list and I can't seem to get it to work. When I run my test function, I set my linked list to zero and I try to push on values but the list keeps getting returned with no values in it. Could anyone possibly tell me what I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to exclude password protected posts in WordPress loop I have a custom post type that supports password protected entries. In a custom loop using a new WP_Query object, I want to exclude those password protected posts from the results. What arguments do I need set in order to do this? I am using the latest trunk ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: i written a winforms application in VB .NET in visual studio 2010 I have to run a thread create in the code. In the form1 i have a button that run the new separate thread for elaborate some data, so i need it for not freeze the form. I have inizialized thread: dim th as thread = new thread (addressof elaborate) And...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiling eAccelerator to decode PHP Coded Files By any chances is it possible to compile eAccelerator using OP Codes, to decompile the code loaded by eaccelerator_load(); and how? I Use eAccelerator 0.9.5, PHP 4.4.4. A: I think you're looking for thing similar to HipHop for php?
{ "language": "en", "url": "https://stackoverflow.com/questions/7538970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problem adding contacts informations I'm trying to add some contacts from an xml file which have been serialize with Simple xml framework and there is a weird error : ERROR/ContentProviderOperation(10727): mType: 1, mUri: content://com.android.contacts/data, mSelection: null, mExpectedCount: null, mYieldAllowed: fal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Check IF condition in Case statement of Stored procedure I am using CASE Statement in Stored procedure. I am using like create proc USP_new ( @searchtype varchar(30), @stateName char(2), @keywords varchar(300), @locations varchar(100), @searchBy varchar(20), @keywordOption varchar(5), @job...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: zeromq: how to prevent infinite wait? I just got started with ZMQ. I am designing an app whose workflow is: * *one of many clients (who have random PULL addresses) PUSH a request to a server at 5555 *the server is forever waiting for client PUSHes. When one comes, a worker process is spawned for that particular ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: Does libpcap watch sent packets? Does pcap_next display packets that were sent? For example: If I ping google.com while libpcap is listening for packets, then run pcap_next twice, will both of the returned values be a packet, or will one of them be null? Edit: Yes it does. A: Yes, it does. And here is some extra te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem finding exact regular expression pattern in C# I am finding little tough figuring out the exact Regex for myself. I have a text where I have to search for a particular html like tag. The tag is like <snippet lang="java">some java code</snippet> My text is something like This is a sample text where <snippet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to answer on GET request in asp.net I have a problem and I would really appreciate your help. An external application is sending via GET some parameters on address of my asp.net page. (something like http://mypage.com/default.aspx?id=123). I read this parameter on page load and do some other things. If I receiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Country name with space not accepted in BlackBerry ObjectChoiceField I am developing a registration page in BlackBerry app. I am sending all the fields entered to the local server.Country is one of the form fields and is in a ObjectChoiceField. Whenever user selects a country having more than one word for ex: United...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what's the best technique for selecting records with long comparison in where clause Say, I need to select records from a table and exclude records with id 1,2,5,9,15. I do this: "SELECT * FROM TABLE_NAME WHERE id <> 1 OR id <> 2 OR id <> 5 OR id <> 9 OR id <> 15" But what if I have like 1000 records and I need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7539000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }