text
stringlengths
8
267k
meta
dict
Q: PHP - checking if two dates match but ignoring the year I have an array which will output a date. This date is outputted in the mm/dd/yyyy format. I have no control over how this outputted so I cant change this. Array ( [date] => 04/06/1989 ) I want to use php to check if this date matches the current date (tod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems faced when trying to apply good Dependency Injection practice I've been using IoC (mostly Unity) and Dependency Injection in .NET for some time now and I really like the pattern as a way to encourage creation of software classes with loose coupling and which should be easier to isolate for testing. The appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript, Jquery or css3 oscilating letter animation i'm new in javascript and especially in animation. The challenge for me is to make a letter oscilate back and forth max 30 degrees from the sides. The picture i uploaded is an example of the the animation, the letter will move from the upper right corner or from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Working with JApplet with Menus I'm having problems with my code. The sub-menu for the (Music) menu should be a radio button type. Here's my first code: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class AMBAT_FLAB1 extends JApplet implements ActionListener{ JMenuBar mainBa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uploading multiple files using jsp I am creating a website where the users can upload photos,videos and also write or create posts.It's almost like a blog.I am using JSP.I have used "multipart/form data".But I am facing a problem.Whenever the user is clicking on the submit button,all the photos and videos cannot be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i add n custom-cells to my view? I have a table view, amongst the table, in each row i want to display an image to the extreme left, some string in the middle, a number after that and again a string followed by a number, n all that should be in different font styles and sizes. Now i did this using custom-cell...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create DB connection and maintain on multiple processes (multiprocessing) Similar to another post I made, this answers that post and creates a new question. Recap: I need to update every record in a spatial database in which I have a data set of points that overlay data set of polygons. For each point feature I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: get the "display" attribute of the last element Hy guys, How can I get the "display" of the last element? I'm doing this: $('.slide').filter(':last').attr("display"); but didn't work. I tried $('.slide:last').attr("display"); and didn't work too. What am I doing wrong? Tks! A: Do you mean the CSS display property?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: oracle - moving data from to identical database I have two databases with identical table layouts. There are a dozen or so tables of interest. They are a number of FK between them. I have been asked to write a stored procedure to copy data from database A to database B based on the PK of the parent table at the top ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP7 Mango - navigation inside buildings I'm currently working on a app that should be able to navigate you inside a building - the basic idea is to have the building schematics, floor by floor and on every floor it tells you where to go to get to the next one. Once you are on the next floor, you press a button and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting the character encoding in Day CQ I've got some markup that I'm adding to a page component in Day CQ that was UTF-8 encoded by the author. Initially I couldn't save it in CRXDE, b/c the editor was set to save in ISO-8859-1. I found the setting to change this, but now when the page using this component is rend...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python 3 Building an array of bytes I need to build a tcp frame with raw binary data, but all examples and tutorials I've found talking about bytes always involve conversion from a string, and that's not what I need. In short, I need to build just an array of bytes: 0xA2 0x01 0x02 0x03 0x04 Please note that I come f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: How to get dictionary values as a generic list I just want get a list from Dictionary values but it's not so simple as it appears ! here the code : Dictionary<string, List<MyType>> myDico = GetDictionary(); List<MyType> items = ??? I try : List<MyType> items = new List<MyType>(myDico.values) But it does not work :...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: Unable to parser using TouchXML I am unable to parse response recieve using Touch XML My response from SOAP <CXMLDocument 0x4b30110 [0x4b34c90]> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Outlook 2010 not launching when I debug my Outlook addin? I'm totally confused as to how to debug an Outlook 2010 addin I'm trying to develop. I created a new Extensibility | Shared Add-in project and just checked Outlook, and it's created a new project for me with a stub implementation of the Extensibility.IDTExte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to customize the data-prototype attribute in Symfony 2 forms Since umpteens days, I block on a problem with Symfony 2 and forms. I got a form of websites entities. "Websites" is a collection of website's entities and each website contains two attributes : "type" and "url". If I want to add more of one website in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Disable default button in ASP.NET Possible Duplicate: ASP.NET Canceling the Default Submit Button I have only 1 button in my ASP.NET page but when I click "Enter" key the button click function is talking place. I don't want that. Only manual click must work. How to make this? A: Set the button's UseSubmitBehavio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Find and replace a URL with grep/sed/awk? Fairly regularly, I need to replace a local url with a live in large WordPress databases. I can do it in TextMate, but it often takes 10+ minutes to complete. Basically, I have a 10MB+ .sql file and I want to: Find: http://localhost:8888/mywebsite and Replace with: http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iPhone: call and send parameters to JS function from OBJ-C Any idea how to call and send parameters to JS function from OBJ-C ?? Lets say in my html I have JS function showPieChart (parameter1, parameter2) { ... } and from my obj c class in viewDidLoad I want to call this function. Any idea or examples ? Thanks in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem retrieving dictionary from Isolated Storage During the first run, I am storing a dictionary<string,dictionary<string,string>> (lets call it CategoryDictionary). When I re-run the code (without closing the emulator), the count in the categorydictionary becomes null. Whatever I am getting from the categorydi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS PIE - border issue? Facing issue while rendering RGBA color for border. RGBA color for border radius working fine but not border color and it is not showing any border color. Is there any separate "-pie-" tag in CSSPie for use of RGBA in borders? My Code: .border{ position:absolute; right: 250px; top: 250px; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove all specific elements from Vector In fact, regarding to the title in the question, I have a solution for this, but my approach seems to waste resources to create a List objects. So my question is: Do we have a more efficient approach for this? From the case, I want to remove the extra space " " and e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL export/import data consistency problem Currently experiencing an issue whereby I am exporting a MySQL structure and data from a server into a sql file, ready for importing into a local database. When importing the sql file into a local database, numerous records are changing dramatically. The columns in questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pausing execution in custom confirm box I want to create a custom confirm box like this var should_I_move_forward = myconfirmbox(); myconfirmbox will show a popup with Yes/No button, I want to pause the execution here until user hit yes or no, how can I achieve it? i.e. same functionality as of js confirm method ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mouse click handling in As3.0 gallery I'm playing around with a gallery. I want to add some more functionality. HERE's the initial code: import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; function doSMTH(luka) { var catNum:Number = luka; stop(); goBack.addEventListener(Mouse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java send mail on Linux: Error certification I try to send mail by Java on Linux server. I setup to run on Tomcat 6, config SSL but I got an error message: Can't send command to SMTP host javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: javax.net.ssl.SSLHandshakeException: s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL - How to update atable based on an internal ordering of the table If I make a selection from my MySQL table like: SELECT * FROM mytable ORDER BY country_id, category I get the following table: +------------+----------+-------+ | country_id | category | order | +------------+----------+-------+ | 1 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Objective C: way to check for enabled flags I am using bitflag to enable/disable some functionality in my code. I have following enum. typedef enum function { function1 = 1 << 0, function2 = 1 << 1, function3 = 1 << 2, function4 = 1 << 3 }; I know that I need to use following code to check which fla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery datepicker loses focus after .("show") I'm using the range date-picker of jQuery UI. When selecting the "from date", I want to open automatically the "to date" date-picker. So, I call the .datepicker("show"). The "to date" picker is showing for a second and immediately fade away. Surprisingly, if I go to anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using UNIX SAS to ascertain Netezza DISTRIBUTE_ON key Is anybody able to provide some SAS 9.1.3 code for ascertaining the DISTRIBUTE_ON key of a particular Netezza table? have tried using the guidance here but the table comes back empty.. A: There is a nzsql command called \d which will retrieve the distribution ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create Link button in android I want to create Link button in android. Can anyone guide me in how I can create a Link button in android? A: Uri uri = Uri.parse("http://www.example.com"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); A: Simple. Just put the link in your TextV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Sharepoint Claims/c2wts issues with Performance Point/Excel Services I have created a custom claims provider to allow users to sign into SharePoint from an existing website. This issues claims including a claim of UPN in the format username@domain. The user can log in fine until I enable mapToWindows and useWindowsT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Vertical Scrollbar position in WPF DataGrid I've a datagrid in WPF, It has lots of records hence having a VerticalScrollBar, when i do some activity like delete in some where at bottom of the screen and after this activity set the first index of the row, First row has been selected but scrollbar remains at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i authenticate an html control in a .aspx page how can i authenticate an html control in a .aspx page. For eg. I have two labels :: lblusername and lblpassowrd, two textboxes to fetch the values from the user and a submit button. I want all these controls to be of html controls not the asp.net server side co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determining the location of Program Files using VBS What would a safe way of extracting the 'Program Files' directory location using VBS?. I would like to get the directory location from the environment as it will avoid localization issues as well as problems between different OS architectures (32/64 bit) and drive ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: view/edit still show in ribbon of DNN after logoff When I log off a DotNetNuke site, the view/edit options still show in the ribbon up top. Anyone run into this before? I was informed that it's a setting; however, I cannot find this. Any thoughts? All help is very appreciated. Thank you for your time. A: Personally...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android - ImageView as Offline map I am trying to implement an offline map content into my android app. I need not so much detailed map just for a specific area and mark some places over it. a zoomable and scrollable image seems to be enough for me. First question is; 1-) what is the best option for offline map in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String was not recognized as a valid DateTime im trying to parse exact a date based on the capture of information of a user from facebook. I get the error message: String was not recognized as a valid DateTime. which is the best way to parse a date in the format dd/MM/yyyy h.AddUser(r.id, r.FBid, accessToken, r.firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Prototype has a no conflict option like jQuery? I have tried Googling this but it only ever comes up with the jQuery noconflict option. I would use this but my site is very jQuery heavy and it will take quite a white, as well as this the prototype code I'm adding may be temporary and is only a few lines. If the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a table, in which rows are filled in when a user submits a form I'm wanting to create two separate pages, one with a html form on it and the other with a table on it. When the user enters data and submits the form I want the information to be displayed in the table. Would I need to use Javascript or P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pull, rebase, push, in one command (or just a few) When using Git, I often find myself doing the following when working in master: # work work work... $ git checkout -b temp $ git commit -a -m 'more work done' $ git checkout master $ git pull origin master # turns out master was updated since my previous pull $ git ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Where could I be doing wrong in this PHP ORACLE pagination script? I have this problem whereby I cannot display records from oracle database to my web application using PHP as a server side scripting language.Could someone kindly tell me where I could be doing wrong? I want by the end of the day to be able to achiev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DB information is not renderd out to Calendar I've downloaded the last fullCalendar but the information in db is not renderd out, I can see the information when I use firebug(Response and in tab JSON) , but nothing is visible in Calendar. Can someone guide me, what have I missed? A: This is what the code from your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python, Paramiko: How to do a "ssh -n user@host cmd" using paramiko? I'm trying to execute a command remotely via SSH from Python, and in this particular case need stdin to be redirected to /dev/null. That is, the same as using the OpenSSH client with its -n flag: ssh -n user@host cmd How do you achieve this (-n) w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AVAudioPlayer freezes when play first song I'm using AVAudioPlayer class to play sound in my app. When i play sound first time, screen freezes for a 2-3 seconds, then it becomes active and without freezes and delays. Even when I change sound. Here is some code: avPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: two window objects in extjs I have these two windows defined as shown below. The functionality that I desire is that initially the grid window should be hidden and the login window should be shown. After the user logs in, the login window should be hidden and the grid window should be shown. var store = new Ext.data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - text color fade in I can't find a simple solution to this problem. I am trying to fade in a color change for some text when there is an error from a button click. if (document.getElementById("username").value == ""){ //First Name $("#login_error").text("Please enetr a username!").css('color', '#FF...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Video Conference via C# I have searched for various samples online but I'm unable to find a suitable sample which is able to provide enough information. I have tried Microsoft Expression Encoder, but the delay is too huge if I use broadcast method. Directshow.net wise, the sample DxWebCam seems promising, but it lac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: function argument What is the below highlighted code intended to do ? Why don't we not use the arguments at all ? int fun( int a, int b) { (void) a; // <<< (void) b; // <<< printf("Hello World\n"); } A: It's a way of preventing the compiler from warning about "unused parameters". It doesn't actually c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: string-match problem EDIT 2: I managed to find the solution with suffix trees Tree::Suffix perl package. Thanks to MarcoS for the trie idea. I figured out from that, that suffix trees could be used as well. The Tree::Trie perl package is implemented as hash of hashes and I guess that's the reason it slow. I tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to work with null pointers in a std::vector Say I have a vector of null terminates strings some of which may be null pointers. I don't know even if this is legal. It is a learning exercise. Example code std::vector<char*> c_strings1; char* p1 = "Stack Over Flow"; c_strings1.push_back(p1); p1 = NULL; // I am puzz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using MySQL LIKE to match a whole string I have been doing a bit of searching round StackOverflow and the Interweb and I have not had much luck. I have a URL which looks like this... nr/online-marketing/week-in-review-mobile-google-and-facebook-grab-headlines I am getting the article name from the URL and replacing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: creating header with axis2 java2wsdl - how? I am using org.apache.axis2 to create wsdl. Our code is implementing ScemaGenerator and has our additions. I am trying to find a way to create the wsdl with the header definition, that will include userName and password. How can I do that through the code and not through ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Synchronize on value, not object I want to do something like this in Java public void giveMoney(String userId, int money) { synchronized (userId) { Profile p = fetchProfileFromDB(userId); p.setMoney(p.getMoney() + userId); saveProfileToDB(p); } } But of course, synchronizing o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Vaadin application, jump to page top I have a vaadin application that has an outer panel, and upload this lot, interior panels. This case the entire bottom of the page (the bottom panel) jumps. How I know this time will automatically jump to the top? The "window.getApplication().getMainWindow.setScrolleft(x)" does n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Save multiple questions in one row I need to make a scheme for an database. My problem is, that I have multiple questions they belong to one exam. That means: One Exam has multiple Questions. I don't know how I can solve that. I have try to fix it with an table between "tabQuestions" and "tabTest" but I doesn't seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: publish jekyll generated to gh-pages and not overwrite the .git in _site I am using jekyll to publish a static site directly on gh-pages branch in Github. The issue I have is that every time I run $ jekyll --no-auto /Users/khinester/Sites/tzm/ this overwrites the .git directory and I have to recreate this: $ git in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I layout a button bar with buttons of different heights? How do I go about implementing a button bar with buttons of different shapes and heights? As an example (please excuse my poor drawing skills for this quick mockup): The example bar has 3 buttons, with the middle button (3) a different shape and heig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google API 3 open Infowindow from divs outside google maps As the title states how can I with Google API 3 open Infowindow from divs outside google maps. this is what I am doing today but this only working on the last div link and not every link markerObj = document.getElementById(markerId); mar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Questions about EXIF in hexadecimal form I am trying to understand the EXIF header portion of a jpeg file (in hex) and how to understand it so I can extract data, specifically GPS information. For better or worse, I am using VB.Net 2008 (sorry, it is what I can grasp right now). I have extracted the first 64K of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: PHP - get server to ping a visitors IP and return the ping in ms I want to do as the title states. To ping a users IP and return a result in ms, for instance: Ping IP return 400ms. I have no idea how to do this but I expect it would be relatively simple. I have access to the exec() function and the functions simila...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: silverlight-4.0 INotifyDataErrorInfo with Entity Framework I am using EF 4.0 with Silverlight 4.0. I wanted to validate my Entity using INotifyDataErrorInfo. For that do I need to create duplicate class on clientside and implement INotifyDataErrorInfo ? I can not Implement it on autogenerated Entity as entity gets...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: form_tag isn't working when upgraded to rails 3.0.7 --> 3.1 Just upgraded to rails 3.1 and now my form_tag doesn't work anymore, I don't get any errors at all? <% form_tag({:action => 'search'}, :remote => true) do %> <%= select_tag "prod_id", options_for_select(["-"]) %> ... <% end %> Have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: javascript Getting distance of child element from top-left corner of Parent element Is there a way to get the offset of a ChildElement from a given parent element? for example if a DIV in contained within a parent DIV with id "xyz" is there a way to say parent = $("xyz"); child = $("abc"); child.offset(parent); Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating AnimationDrawable from assets I locate several .png files (frames of my animation) in assets folder, than I fetch them using AssetManager in my Activity's onCreate() method and fill my AnimationDrawable with them. As described in dev guide it's impossible to start Animation in onCreate() method and if I nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delete Lines in a textfile Hi I have a text file with table schema and data when user checks not schema required then i need to delete schema and leave the data . I am using StreamReader to read the file and checking one condition and it should delete all the lines in the file till it satisfies my condition . Let ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC 3 default register link not work Possible Duplicate: MVC Forms LoginUrl is incorrect I have deployed the simple mvc 3 to IIS 7.5. The register redirect url is /Account/LogOn?ReturnUrl=%2fAccount%2fRegister. It does not redirect to registration web page. It seems like the Logon problem as the thread: MVC For...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to avoid creation of foreign keys on Django Models? when i create a model with a foreign key relationship, something like this: class Post(models.Model): title = models.CharField(max_length=250) date_created = models.DateTimeField(auto_now=False, auto_now_add=True) owner = models.ForeignKey(User) wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FullCalendar alert on event date my question is: Is it possible to trigger something (ie. alert, Qtip, whatever) when today's date is the date of an event in the FullCalendar? I am using the XML from my Google calendar as the source and would like something to pop up for people's birthdays. I already have: var diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using NuGet with Visual Studio 2005 What would be the most frictionless workflow for working with NuGet and Visual Studio 2005? Is this at all possible? I understand that the plugin is only available for Visual Studio 2010, but there is still the package manager console wich seems to be nothing more than powershell....
{ "language": "en", "url": "https://stackoverflow.com/questions/7555883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to send bottom aligned background image under the fold when we resize the window height or screen size is shorter? See this example http://jsfiddle.net/nMs56/ it has an iphone image at bottom. currently when I drag browser to decrease the height background image is going towards top. But I want it as if I resiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple SelectMany in Rx I have an interface like this: interface IProcessor{ IObservable<Item> Process(Item item); } I have an array of workers: IProcessor[] _workers = .... I want to pass an item through all the workers: var ret = Observable.Return(item); for (var i = 0; i < _workers.Length; i++) { int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fixed the only one "li"? I have number of ul formed as a table. I want to fix the first "li" of each "ul" while scrolling. i have done some work but can't able to fix the issue, Here jsfiddle link: http://jsfiddle.net/thilakar/PpYpa/2/ Please help me out from the above issue. Thanks in advance. A: Use this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails parameters in form_for I am making a form for updating or saving a saved message. <% form_for @draft, :url => {:controller => "drafts", :action => "draft_actions"} do |f|%> subject <%=f.text_field :subject %> recipients <%=f.text_field :draft_recipients %> <br /> <%= f.text_area :body %> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to use Content-Encoding: gzip in a HTTP POST request? I'm trying to upload some files with compression to a server. The files will be fairly large and the server is a standard HTTP server where the interface defines that they're not compressed. Is it possible to use something like Content-Encoding to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Managing require_once in classes called by Zend and non-Zend classes I have a web Zend framework application that uses registernamespace and Zend_Autoloader_Resource to manage the requires needed for various modules. I also have a series of simple classes that will be called by cron jobs. Between the two are a num...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are my identifiers marked as not CLS-compliant? I have a some class, which contains three fields: protected bool _isRunning = false; protected readonly ParameterCollection _parameters = null; protected readonly ParameterCollection _defaultParameters = null; The assembly it is in is marked as CLS-compliant (it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set % height in fluid layout? I am designing fluid layout pages (defining everything in % in CSS) for multiple devices (desktop/tablet/mobile) Now while I do understand that giving width:100% takes the entire viewport available width (i.e. available browser area) and accordingly calculates all the % widths ? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript replace string characters I already am doing a replace for the commas in an textbox. How would I replace if there is an "$" and a comma also in the same line? function doValidate() { var valid = true; document.likeItemSearchForm.sup.value = document.likeItemSearchForm.sup.value.replace(/\,/g,''); retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django nonrel on Google Appengine 3000 file limit I followed the directions on http://www.allbuttonspressed.com/projects/djangoappengine, but afterwards realized that the resulting project has almost 5,000 files, namely because of the django directory. Am I not supposed to include django 1.3 and just use django 1.2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinForms DatagridView allows deletion via Shift + Del keys even though AllowUserToDeleteRows property is set to false I'm using the standard .Net Winforms datagridview control to display & manipulate data, however I have (or thought so) suppressed user deletion via: this.dataGridViewTestSteps.AllowUserToDeleteRows =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setNeedsDisplay for UIImage doesn't work I am trying to draw a line on an UIImage with the help of a dataBuffer when a button gets touched, but the drawRect: .. methode doesn´t get called. (so, the line i want to draw does't appear) I really don't know where the problem could be, so I posted quite a bit more code. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook PHP API | Incorrect Friend Count I'm using this to get my friends from my profile: $facebook_friends = $facebook->api('/me/friends'); it works kinda well, except the Friend count does not seem to add up, at the moment i got 193 friends but it only get 189 in the $facebook_friends array. Does this has somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sum up minima of data pairs in a matrix I would like to compare the elements of two rows in a matrix and then sum up the minima of the data pairs. For example in a matrix like this the result should be 3 (1+1+1+0) > m col1 col2 col3 col4 a 2 1 4 4 b 1 2 1 0 I tried it like this: > findmin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting specific rows from recordset I have a big database result set and I want get specific rows from them with 1 Query: 1., 60. and 61.,120. and 121.,180. ... and every 60th and 61st record until I have all, the complete result needs to be provided by 1 Query. Any idea how I can do that? The LIMIT/OFFSET is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Openx 2.8.7 geotargeting does not work I'm not able to make Openx geotargeting work - I have enabled geotargeting as described here: http://www.openx.com/docs/2.8/adminguide/Global%20settings%20-%20geotargeting, but no luck, my test banner it's still not delivered. Did someone succeeded to make it work? Thanks. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Flash Builder 4.5 (flex mobile app) I'm trying to bind to multiple tables, but for some reason, it keeps referring to the first binding I made to the first table. I binded through ArrayCollection. Is there anyway to bind to multiple tables? A: Try this: dataProvider="{new ArrayCollection(tableData1.concat(table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJS 4 - How to load grid store with its params carrying latest values from a form? I have a window with a search form at the top and grid at the bottom. User can enter values in the search form and click button - Get Records. At the click of this button, I load the store of the grid by passing the values in form...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to parse comments with EBNF grammars When defining the grammar for a language parser, how do you deal with things like comments (eg /* .... */) that can occur at any point in the text? Building up your grammar from tags within tags seems to work great when things are structured, but comments seem to throw everyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to join a closed group through a javascript graph api on facebook? Does facebook javascript api support the functionality of sending requests to join groups? I'm making a closed group for my organisation, so everything is pulled from facebook and displayed on our intranet but only if you are a member ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vim Indentation Using ">" I'm using vim under Mac OS 10.7 Terminal. My .vimrc already specify the tabstop to be 4. However, if I use shift to select multiple lines and then using ">" to indent, it will give me a indention of 8 spaces instead of 4. How can I correct that to be 4? Part of my .vimrc: set cindent set au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Isotope hash-history: prettify the hash-URL I'm using Isotope with Hash History. It works great, but I'm not happy with the URL - I'd like to simplify & clean it up. Currently using: var href = $this.attr('href').replace( /^#/, '' ); var option = $.deparam( href, true );` On this markup: <li><a href="#filter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Null Exception when retrieving connectionstring in .NET I have the following in my web.config: <configuration> <connectionStrings> <add name="strConDev" connectionString="Data Source=dbSource;Initial Catalog=CatalogInitial;User Id =DEFAULT; Password=PASSWORD" /> </connectionStrings> </configuration> I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Set variable if Request.QueryString does not exist I want to set a textbox.text to a certain value if Request.QueryString['EQCN'] does not exist. If it does exist, I would like to set it to the value of Requestion.QueryString['EQCN']. It seems that if the value doesn't exist it defaults the value to be "". A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: backup and restore clipboard data using win32 api i am looking from win32 APIs which would allow me to make a backup of the clipboard data (in memory/ file system) and later i can reset it using SetClipboardData. i have seen the win32 API set and understand that OpenClipboard, getClipboardData and SetClipboardData w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic SQL Server 2005 Pivot I have worked out how to pivot a row from a table using PIVOT in SQL Server 2005, however, I dont like the method as I have had to hard code the columns (Currency Codes) and I would like to have the Pivot select the columns dynamically. As an Example, imagine you have the following tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get "stronger" simplifications of conjunctions in Z3? Using Z3 version 2.18, I am trying to simplify formulas such as: * *(and (> (- (- x 1) 1) 0) (> x 0)) *(or (> (- (- x 1) 1) 0) (> x 0)) hoping to get something like: (> x 2) and (> x 0). I am running Z3 with the following input file where F is one of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse: Conversion to Dalvik format failed with error 1 This happens instantly when I make a new project in Eclipse. I only have 1 jar file in the project, I have tried to remove it, and add it again, several times, and cleaned the project after this. I have updated ProGuard (I think), downloaded the new version, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Mail download save in sql server Does anyone know of a script to download email from Gmail and store it to a SQL server? (for backup purposes) I am looking for a .NET solution (C#). A: EML files are plain text. Simply create a table in your database with one column (and all the others you need, that's for you to de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Rx to poll for images over an async WCF service I have an async WCF service that takes a "URI" and returns an image (as a Stream). Want I want to do is: * *Ensure a valid WCF channel exists, if no create it *Make the async service call *On success save the image to a member variable *If I get an exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }