text
stringlengths
8
267k
meta
dict
Q: marquee show 5 pics max when i pass 10 pics i use marquee to show pics but when i pass 10 pics it show 5 pics only here's My Code : <marquee align="right" behaviour="alternate" scrollamount="4" direction="left" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=4"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding Viewstate working procedure In order to enhance performance of my application, I started setting Viewstate of controls to false. So now I'm getting: <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzU3OTU5NDI1ZGTBCxumGHfzsISSVDAeBMbSE7Fvfw==" /> After this I added 3 more labels...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add fade effect to image swap I'm looking for a solution to add a nice fade effect to a few images when I swap them. I'm new to jquery and have seen many solutions but only for a single image instead of multiples ones.Tried the z-index technique but that placed all the images on top of each other. I'm using this jqu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Batch : label length I was wondering about the maximum length of a label in a batch file. I found this Microsoft article stating: MS-DOS recognizes only the first eight characters of a batch file label; subsequent characters are ignored. They also provide an example : @echo off goto latestch :latestchanges echo tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Postgres - ERROR: prepared statement "S_1" already exists When executing batch queries via JDBC to pgbouncer, I get the following error: org.postgresql.util.PSQLException: ERROR: prepared statement "S_1" already exists I've found bug reports around the web, but they all seem to deal with Postgres 8.3 or below, wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Use of lock keyword and the new async functionality of C# 5.0 Is it still necessary to use the lock keyword on resources like SQL Compact database in methods called with async (AsyncCtpLibrary.dll)? As i understand from the talk given by Anders, the async processing all happens within the same thread, so they should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Practical Implementation for Data Warehouse Data warehousing seems to be a big trend these days, and is very interesting to me. I'm trying to acquaint myself with its concepts, and am having a problem "seeing the forest through the trees" because all of the data warehouse models and descriptions I can find online ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to open attached email image through App I want to create an app which opens image from email attachment. Here I able to open pdf which is an attachment to my email, I know the setting in info.plist only for open pdf file through my app. Can anyone tell me how to open png or jpg format image through app? Can any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB.NET - Remove Item From Multi-Dimensional ArrayList By Query? I am looking to remove an element from an ArrayList using a query, E.g. DELETE FROM arraylist WHERE (0) = "User1" (Where (0) is the index of the second dimension). Code: Dim Users As New ArrayList Users.Add({"User0", "Details"}) Users.Add({"User1", "Det...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unusual Lighting Effects - Random Polygons Coloured I am working on creating an object loader for use with iOS, I have managed to load the vertices, normals and face data from and OBJ file, and then place this data into arrays for reconstructing the object. But I have come across an issue with the lighting, at the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When using an IoC container, how to pass dynamic data / objects to a class? I have an Order class with the below constructor public Order(IProduct product, short count) { this._product = product; this._count = count; } I'm trying to setup Unity IoC container and obviously to construct the order object I'd need to k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring/Flex on Websphere I have a simple hibernate/spring/flex project. The project was developed under apache tomcat6. Can anyone point me how to proceed to deploy it on IBM webshphere v6.1? thanks A: In general it should work if you project is J2EE 1.4 and JDK 5 compatible. The most important step is to wrap an E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery parent element is hidden with child element on mouseout I am having a problem where the parent list element is being hidden along with the child, when I only want the child to hide on mouseout. Below is my code, any help is greatly appreciated! $(document).ready(function(){ $('#home').hover( funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a catch all function on a jQuery object? I was previously using the jQuery autosave plugin but have recently removed it. Some code is still trying to use this function, so how can I temporarily extend the jQuery object so there is an empty function to prevent errors until I can get through all of the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery only processing first function/block of code I have a page with three different snippets of jquery code, all doing different things. The problem is that when they are all on the page, only the first one works. I've changed the order, and regardless of the snippet, only the first one works. Is there an interna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get jquery to set value of select input when value of first select changes I'm trying to update the value of a select input when I change the value of another select input. I cannot get anything to happen on the page and want to make sure I don't have a syntax error or some other dumb thing in this code. <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting System.NotSupportedException when running WCF Service in Visual Studio 2010 I have created a WCF service using Visual Studio 2010. When i try to run the service, i get the following error File name: 'file:///H:\Personal\Visual Studio 2010\Projects\WPFBrowser\DatabaseService\bin\Debug\DatabaseService.dll' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Making report footer to appear just below the last page records I am using Crystal Reports with VS-2005. I have a report with a report footer section comprising of sum totals of a column. The problem is that in some cases, the records consume the entire page and the report footer alone appears on the next page. It l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RPN Problems (Order of Operations) I'm trying to make a simple calculator with order of operations. I had read in the Internet and found the algorithm of RPN (Reverse Polish notation). EDIT: Lets take an example: 2 * 5 - 3 + 4 Ok, I did as you both said check it out now: Proc is string array of both numbers and oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Links not working in IE8 when Application accessed with Fully Qualified Domain name My application works perfectly fine in Firefox and Chrome. But In case of IE8, everything is fine if I access the application using localhost or the IPAddress. But when I access the Application with the Fully Qualified Domain Name(Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to skip one activity in startActivityForResult? Possible Duplicate: How do you skip parts of an Activity stack when returning results in Android? I have the following activity stack A->B->C. A activity has a ui element which starts activity B. B - is an activity which displays a list and starts act...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT 2.4 CellTable issue Upgrading from GWT 2.3 to 2.4 caused a client-side exception in a class of mine that extends CellTable. There has been no loss of functionality, but the exception is a constant development annoyance. com.google.gwt.core.client.JavaScriptException: (TypeError): this.insertBefore is not a func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check the configured Xmx value for a running java application I'm creating an NSIS script, where the Xmx value for the java application being installed can be set during the installation process. I'm not sure if this parameter is being set correctly. Is there a way to check the configured Xmx value when the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How could I redirect or deny users from a particular country with my htaccess file? I looked at countryipblocks.net, and need to clarify... If I want to block users from, say, Andorra from visiting my site, what exactly needs to be added to my (already existing) .htaccess file? Do I need to simply add this block of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# regulate number of emails sent I was wondering if anyone knows a good way to regulate how many emails are sent through C#? Here is my scenario. I have a windows service that monitors three other windows services. I am using a service controller to get the status of all 3 services and if the status of any of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you implement users and group security in a web application? using php if that matters. If you create a website that has users and groups. Where do you put this in the web application? Do you just put a function at the top of every page (pseudo): if someone is in a group then they can see this page or if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL Query - Trouble with joins, filtering results I'm in way over my head with this query. Any help would be immensely appreciated. I'll try and break it down as simply as I can, but please let me know if I'm being too vague. There are four sections: criminal, family, civil, and business. Each has a judgeID and a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JPA/Hibernate with InheritanceType.JOINED doing select on subclass I have a basic inheritance hierarchy setup using JPA and Hibernate that looks something like the following: @Entity @Table(uniqueConstraints=@UniqueConstraint(columnNames="email")) @Inheritance(strategy = InheritanceType.JOINED) public class User { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jenkins File Viewer I'm in the process of setting up our builds on our new Jenkins CI server. One thing I've noticed, which I don't really like is that I can't see a difference in the changes. Jenkins knows what files have been modified/deleted but I cannot see where I can see the diff of those files? A: Jenkins do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this a cast or a construction? I'm a little confused after reading something in a textbook. Regarding the code: void doSomeWork(const Widget& w) { //Fun stuff. } doSomeWork(Widget(15)); doSomeWork() takes a const Widget& parameter. The textbook, Effective C++ III, states that this creates a temporary Widg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Complete function before starting next (fadeIn/fadeOut) UPDATED (see notes at bottom) I have created an image map and when you hover over a specific section of this image map a description will appear in a designated area (the sidebar) of my website. Each description is of varying length therefore I have not set any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you enable Sql Cache Dependency on a database and/or table solely via Sql scripts? We would like to enable Sql Cache Dependency on a database and a few tables, but we would like to avoid using aspnet_regsql.exe if possible. The database is already in our staging environment and it will be easier to just send th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get a variable from a file to another file in Node.js Here is my first file: var self = this; var config = { 'confvar': 'configval' }; I want this configuration variable in another file, so I have done this in another file: conf = require('./conf'); url = conf.config.confvar; But it gives me an error. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Evaluating expressions contained as strings I've a database which returns vaild CL expressions within double quotes. Is it possible to convert these strings to expressions. For example, I make a query from this DB via CLSQL and as a result it returns me: "(foo a b)" How should I convert this expression to: (foo a b)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Lucas Kanade Optical Flow, Direction Vector I am working on optical flow, and based on the lecture notes here and some samples on the Internet, I wrote this Python code. All code and sample images are there as well. For small displacements of around 4-5 pixels, the direction of vector calculated seems to be fine, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using Ruby to send SMSs I'm trying to code for an sms server using the following tutorial. http://lukeredpath.co.uk/blog/sending-sms-messages-from-your-rails-application.html Here they advice us to use clickatell but i have a gateway that i can use which i would like to use. However i wouldn't know how to write the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting an array of unique random numbers at insertion I found a piece of code that works well to fill an array with a unique random numbers. My problem now is, that I want to sort these numbers, but not after the array is full but as new numbers are being inserted. So as each new number is inserted into the array, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to secure/link an Air Application to a specified system I have to build (obviously using flex) an AIR application that must be linked to a given hardware (i.e. hard-disk), so it can't be copied elsewhere.. Usually using others languages, every time you open the application, a comparison between ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: zc.buildout is using the wrong python I'm using zc.buildout to generate a script called "test". I'm using that script to call my own test runner. (The available test runners for buildout do not yet use the new "discovery" feature in Python 2.7.) Anyhow, here's the relevant section in my .cfg file: [test] recipe = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: With Capybara, how do I switch to the new window for links with "_blank" targets? Perhaps this isn't actually the issue I'm experiencing, but it seems that when I "click_link" a link with target="_blank", the session keeps the focus on the current window. So I either want to be able to switch to the new window, or t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: how to detect colour from an image matlab? we are doing a mat lab based robotics project.which actually sorts objects based on its color so we need an algorithm to detect specific color from the image captured from a camera using mat lab. it will be a great help if some one can help me with it.its the video of the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: make a label textbox after click i have amount column in a table that shows on web page. what i want to do is when page open up to show amount as label. when user clicks on the amount it becomes editable like textbox. A: Do you mean something like this (using jQuery): <span id="amount">3.25</span> <input id="amount...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Template for a single dimension array with Knockout.js and ko.mapping I have a JSON string that I am mapping with ko.mapping plugin and I need to create observable bindings for one of the mapped arrays. The array is in the JSON as [1,2,3,4,5] so it has no index. I have the following code working to a certain point: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: onLongClickListener never get trigered I have a custom listView defined like this public class DDListView extends ListView implements OnScrollChangedListener { than I make an instance of it with name mExampleList I set onLongClickListener but it never get called, where is my problem ? mExampleList.setOnLongClickLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Binding on privileged ports (ports < 1024) on Mac OS X 10.6 Do you know how to remove restriction on binding to ports < 1024 with a user account that is not root on Mac OS X? A: The best way is to leverage launchd. The restriction on binding to ports < 1024 will still be there and is not likely to go anywhere, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Cron Kohana action and prevent CSRF I need to call a Kohana action through cron. I can use this code to limit only to the server IP: $allowedIps = array('127.0.0.1','::1'); if(in_array($_SERVER['REMOTE_ADDR'],$allowedIps)) Do I need CSRF prevention, like tokens? The server is a Parallel's VPS. I wouldn't think ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange Android Permissions Issue I recently decided to provide haptic feedback for the buttons in my app. I looked up how to get the Vibrator from the activity and arranged for my button object to call vibrate(). Truth be told, the first time around, I had in fact forgotten to set the permission android.permission...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get text from an EditText In my app I have an EditText that I want to get the value out of when it looses focus. How should I do this? Thanks! A: Along the lines of this should work. EditText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @override public void onFocusChange(View v, boolean hasFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Inheritance... C++ syntax I have to make a trivial class that has a few subclasses and one of those subclasses has it's own sublcass. AccountClass.h #ifndef Account_h #define Account_h class Account{ public: //Account(){balance = 0.0;}; Here's where the problem was Account(double bal=0.0){ balance = bal;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use C++11 uniform initialization syntax? I cannot understand when and how to use the new uniform initialization syntax in C++11. For example, I get this: std::string a{"hello world"}; // OK std::string b{a}; // NOT OK Why does it not work in the second case? The error is: error: no matching function for cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: With ASP.Net MVC3 unobtrusive validation, is it possible to activate real time validation before the form is submitted? When using MVC3 unobtrusive validation, the user initially fills in the form without any validation occurring. After the form is submitted and validation errors occur, validation then occurs in rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: efficient disk storage of decimal numbers in C (C89) I am writing functions that serialize/deserialize a large data structure for efficient reloading later on. There is a particular set of decimal numbers for which precision is not a huge deal, and I would like to store them in 4 bytes of binary data. For most, rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the value of a private member using reflection C# 4 I am trying to get the private member's value (Text) from NumericUpDown. public class NumericUpDown { private TextBox Text; ... ... } I am not understanding why it's not showing as a field. Maybe someone could clarify the difference...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating symbols inline that use images and text I have a circle image that's fairly large in size to make it easy to resize it smaller or larger depending on where it goes. Its meant to be a background image to a character or two of text. Basically, in a specific element, wherever the number 1 or 2 appears, I want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing jQuery Plugins using OOP I was wondering what's the current "state-of-the-art" to write a jQuery Plugins. I read a lot of different approaches and I don't know which one fits best. Can you recommondation usefull links/templates for writing jQuery Plugins using OOP. Thanks A: the basic rules are: * *Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System.Object in C#, .NET I don't really understand the second question, is my answer to the second question correct? * *Which of the following is not a method of System.Object? *What is the most generic (least derived) interface or subclass of System.Object of which it is a method? a. GetType() b. ToString() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert date yyyymmdd to yyJJJ or Julian Date Need a formula in excel and c# to convert data in "yyyymmdd" format to julian date format "yyJJJ"? Where "JJJ" is the Julian date of day submitted. Is JJJ a number from 1 to 365 or 999 or 366? I don't think its 366, but we do have leap year so it could be leap year. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Adding item to a list/collection (with MVC EF 4.1 code first) Having problem with adding item/object into a list/collection. This is what I've done so far... public abstract class Member { [DisplayName("ID")] public string MemberId { get; set; } [DisplayName("Date Applied")] public System.DateTime?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom User.Identity to add property I customize RoleProvider and MembershipProvider classes I would like to add one more property in my @User.Identity, as do so? example: @User.Identity.About => .About not exist yet I thought I'd customize IIdentity but do not know where to start. A: You need to create your own cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access error creating linked Oracle table I try to create a linked table pointing to Oracle. To make it simple, I "stole" the connection string from a manually created linked table that is working well. The code breaks in the Append, where indicated below. Any clue ? Thanks ! Sub CreaOra() Dim db As DAO.Database...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NetBeans: How to change the look and feel with respect to Operating System I developed a small desktop application in Netbeans using Java. The application is working as expected. I developed it under WIN7. When i run it on Microsoft Windows, the look and feel of UI is similar to Win XP Metal theme and when i run it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse link to external source path I have Java project that uses a JAR from another Eclipse project (open source from apache). For debug I need access to the source. I have no idea where to point the source path. Everything I tried fails. All my sources are under project/src/org/apache/.... Nota : it used to work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to hide too long texts in div elements? How can you hide the overflow in a div? Here the text just wraps down to a new line if the text is longer than the div <div style="width:50px; border:1px solid black; overflow-y:hidden"> test test test test </div> A: The CSS property text-overflow: ellipsis maybe can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How can I do $and queries against an array in Mongo? I have a collection in mongo where objects appear as follows: { name:"Scott", bio:"Stumped", roles:["USR","ADM"] } Many more roles are possible. I want to perform any combination of intersection queries, like so: db.coll.find({$and:[{roles:"USR"},{roles:{$ne:"ADM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issues with variable scope I am sure I am basically having an issue with variable scope. Knowing multiple programming languages, I just can't wrap my head around obj-c sometimes. In my webviewcontroller class I have a variable that I call using self.var I also have some delegate methods that reference a modified UIA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EditText box will not invoke the soft keyboard in many circumstances My Android application runs within a TabHost. I have 5 "sub-activities" all of which run as expected with one exception. The last item is a search feature. It is such a simple interface with just a TextView for a label, an EditText for the search f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can multiple gearman servers share the same libdrizzle queue? Can multiple gearman servers share the same gearman queue, via libdrizzle? I'm wondering if this will eliminate the gearman server as a single point of failure--if I have multiple web nodes, each talking to the same gearman server, then the site dies if g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ delete array crashes This is my code... int* getA(int no) { int *a = new int[no]; return a; } void main() { int* a = getA(10); delete []a; } When I delete the array a in main it crashes... what is the reason?? The error is "Windows has triggered a breakpoint in Final.exe. This may be due to a corru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Alternative for using Intersect operator in my sql query I have 2 tables with many to many cardinality between them. So by normalization I have created this : User UserId UserName .... 1 a 2 b UserObject UserId ObjectId 1 1 1 2 2 2 Object Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I don't know what this c# pattern/structure/code is called I've been trying to find out the name for something, but without knowning the name, I am having a hard time Googling for the answer. It's a bit of a catch 22. I was hoping that if I posted an example, someone out there might recognize it. Basically, it's a w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I cannot display dynamic page title using spring 3 and apache tiles 2.2 I have a problem using spring 3 and tiles 2.2.2 . I can't display a dynamic page title. These are my config/jsp files: layout.jsp <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="tiles" uri="http://tiles....
{ "language": "en", "url": "https://stackoverflow.com/questions/7612157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Secure data during ajax call from phonegap app to web services without cookie security I want to secure my ajax call from my app using phonegap to web services returning json. Usually when you log in a cookie security is created but I can't use cookies in my app and I would like something more secured than HTTPS. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encoding in JSF 2 + Tomcat 7 I have one form with only one single field. When I submit the form, the value of my field becomes strange. The word Extremação becomes Extremação. So, I already set UTF-8 encoding in every place on my app: <?xml version="1.0" encoding="UTF-8"?> <meta http-equiv="Content-Type" content="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show validation summary per condition in MVC3 Razor View? I am not sure whether its a good practice or not but there is a need to display Validation summary conditionally. Actually, I need to display validation summary under Yellow Square so, I created a CSS class for the same and trying to do this : @if (!Ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSNotificationCenter.PostNotificationName() with NULL object does not trigger: bug or as designed? I'm subscribing to my own notifications using code like this: NSNotificationCenter.DefaultCenter.AddObserver("BL_UIIdleTimerFired", delegate { Console.WriteLine("BaseFolderViewController: idle timer fired"); }); T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can a primary key column have duplicated values in Oracle? I have just tried to import an Oracle DB to another and it gave an error tells that duplicated values found in a primary key column. Then I checked the source table, and yes really there are duplicate values in PK, and checked PK is enabled and normal. N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jQuery UI Dialog will not close On my web page I have a button that opens a modal jQuery dialog. The code that runs when the button is clicked is as follows: $('#main-onoffline-container').append('<div id="dialog-modal-a"></div>'); $("#dialog-modal-a").dialog({ title:'Add Tags' , autoOpen: fals...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Launching multiple shell prompts from a single batch file I have a set of DOS commands that I need to run in different shell instances. Is there a single batch file I can write that would set of multiple cmd instances and execute the set of DOS commands in each of the prompts? A: Your question seems to boil down to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting a Type Assembly in Windows 8 I'm trying to use MEF in Windows 8. In order to build up my AssemblyCatalog for the container, I need a reference to the assembly. In the past, I would have just done this: var catalog = new AssemblyCatalog(typeof(App).Assembly); Mysteriously, the Assembly property no longer exi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Get sibling rows in SQL I need to get the two sibling rows of a specified row in a query. SELECT pkUserId, name FROM tblUsers ORDER BY CreateDate Gives result: 10 User1 18 User3 25 User4 79 User8 12 User2 I want a query that gives me user3 and user8 if I supply userId 25 10 User1 18 User3 --> Output 25 User4 <-- I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Animation In Android and Events On my animation I have an event listener: AnimationListener animationOutListener= new AnimationListener() { public void onAnimationEnd(Animation fadeOutAnimation) { }} How can I find out the view that the animation is taking place on? A: It is usually the case that you ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Maps API: Get zipcode Is it possible to get the zipcode of a location found using google maps api? Currently it returns the longitude and latitude, but not the zipcode. I found this for zipcodes: http://www.census.gov/tiger/tms/gazetteer/zips.txt I was going to write a script to put it in a DB, but I'm unsure...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery simple image load im getting a little issue here. Im trying to load an image, but seems it isnt correct. Im getting the data of image, but i just want to load it instead of. Whats wrong? var url = $(this).find("img").attr("ref"); $("#produto .main-photo .photo img").load(url, function() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Span matrix from relational table in R Often I use data stemming from a SQL database in R. Typically I do a lot of the juggling in SQL, but using plyr more and more recently I wondered whether it's easier in R to span a matrix from a relational data table. Here's an example. I have a table like id question answer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I call a javascript function when Checkbox is checked How can I call a Javascript function when a checkbox is checked when this checkbox is inside a gridview ? protected void AlteraStatusExpiraSeteDias_Click(object sender, EventArgs e) { for (int i = 0; i < grdImoveis2.Rows.Count; i++) { Grid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: join table and has_many relationships not working I have two items, users and posts, and a join table linking them together. The two items have a has_many relationship with each other (:through the join table). I created the join table after creating the two databases. The problem I am having is that I get errors...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Microsoft Access Database: How to Remove User & Password settings I've got a MS Access database here that I can open in Access 2007 using a modified shortcut like this: "C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE" "C:\Temp\cat32.mdb" /wrkgrp "C:\Temp\cat32.mdw" /user "admin95" /pwd "somepassword" I'm t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regarding Android CTS Error How to kill a running ANDROID CTS instance.Suppose one CTS instance is running on a terminal and if we abruptly close that terminal, that CTS instance will not be closed and when we try to start CTS again in a fresh terminal,we get this error[CTS_ERROR >>> Error: CTS is being used at the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Listen to service Status Changed How Can I make an app that listens to services for Service Status Changed event. (I don't want repeated checking on of all services) EDIT I need it to work on Windows XP / 2000 A: In Vista and above you can use NotifyServiceStatusChange API. See some sample code on MSDN. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: font-face issue in IE8 I've started using font-face for a site. I've included a free font by Fontsquirrel called Chunk Five (http://www.fontsquirrel.com/fonts/ChunkFive) that has support for IE (EOT font). However when I implement it, some letters look 'squashed' which gives it a very ugly look. Here's how it looks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating an ASM file that will return the characters located in 8 consecutive registers I have to create an ASM file for the PIC18F452 that does the following: (a) define the label MapName as the first of 8 consecutive registers containing a null-terminated string of not more than 7 characters. (b) access an 8-bit u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Variables of form __something__ What is the purpose of python variables __something__ e.g. __name__, __file__ I often see them in real python programs. Is there a list of these variables? thank you A: PEP8 covers this: In addition, the following special forms using leading or trailing underscores are recognized ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq expression builder, add conditional in divide case As part of a larger set of expressions, we have our divide case. It's simple enough protected override Expression BuildDivideExpression(Expression left, Expression right) { return Expression.Divide(left, right); } I'd like to change it so that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Plot density of periodic function I've got a vector that represents the times (in seconds past midnight) that a bunch of events happened, and I want to plot the density of those events through the day. Here's one way to do that: rs <- 60*60*24*c(rbeta(5000, 2, 5), runif(10000, 0, 1)) den <- density(rs, cut=0) plot(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MVC 2 - Cannot retieve checkbox values in MVC Contrib grid I have a checkbox on my MVC Contrib grid; <%= Html.Grid(Model.TeamMembers).Columns(column => { column.For(model => model.Surname); column.For(model => model.Forename); column.For(model => mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why isn't the exception caught by << try >>? I have a Python (Django) unit test FAIL from an exception, but the failing code is in a try / except block written for that exception. A similar block handles the exception when it is directly raised. This passes: # - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django MakeMessages missing xgettext in Windows Running Django on Windows 7. I'm currently trying to translate a couple of Django templates using the instructions found in the django book chapter 19. I've added a translation tag to the template, loaded I18N, and modified django settings. Then I run django-admin.py m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Catalyst::Controller::FormBuilder view does not render input fields I'm trying to use the example view in CPAN for Catalyst::Controller::FormBuilder, which looks like this: <!-- root/src/books/edit.tt --> <head> <title>[% formbuilder.title %]</title> [% formbuilder.jshead %]<!-- javascript --> </head> <body> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: linking facebook share api to a button image i don't want to use the default fb share button so I've created a button that symbolizes fb with nice hover, now i want to link it to the fb share api.is it possible to do that? A: You can do that using the javascript sdk and the feed dialog. Just assign your image an on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to constrain/filter More Like This results in Solr? In Solr, I am wondering if it's possible to constrain/filter the "More Like This" result set from a standard (dismax) query - e.g., without having to use the specific MoreLikeThis request handler? For example, I have a Solr index which has documents for two co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }