text
stringlengths
8
267k
meta
dict
Q: In Django how can I create a user and a user profile at the same time from a single form submission I am using extended version of the UserCreationForm to add users via my own template, which is working well. I would also like to include, as part of the same form template, a custom field from my userprofile model, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to use Active Directory to house information about outside domain computers for PHP LDAP query later? For an intranet website. I have considered using Active Directory, LDAP, queried via PHP for security. That is I would query AD for the user, let this have access so x webpage or x control on that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIScrollView prevent scrolling in one direction regardless of contentSize/Offset I have a UIScrollView with paging enabled but I would like to be able to prevent the user to swipe to the next page or back to the previous page in some cases. For instance someone could be passing a test with ten questions (one questio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Xcode 4 - svn problem So I created a new project wrote some code and now I just imported my project into my svn server. I just checked out the project and I am getting this message 'Test_project'is locked for editing and you may not be able to save your changes. Do you want to unlock it? when I click on unlock ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to save textcolor on textview by using NSUserdefaults I am the beginner of iphone developer,my problem is how to save the textcolor on textview. i want to taken 3buttons in each one set one color.when i tap the button.what the button had color text write on textview and at the same time save the feature also.whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: First elisp attempt - minor mode for tab key not being invoked on tab? I've decided to get my toes wet with a bit of lisp, since I want to make emacs behave a little better when I hit TAB. My command works fine. It just performs indent-for-tab-command and if nothing happens, it performs tab-to-tab-stop, on the ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: struts 2 Action within action Can i get the response of an action inside other when the second one is still in progress. for example : i need to display a page that is called under some action which is still running and may be acting as a listener to events always.
{ "language": "en", "url": "https://stackoverflow.com/questions/7584993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Horizontal Scroll View I have a horizontal scroll view, and inside I have a number of image views, they go across the screen and altogether are wider than the screen. I've tried to scroll through them using touch, but nothing happens, am I missing something? A: Inside HorizontalScrollView, put a LinearLayout with o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Basics of ScrollView in Iphone I started with a view based template where I added a scroll view from IB in view Controller.xib Then in MyViewController.m in method - (void)viewDidLoad 1)added 5 imageview with images in that with proper x and y 2)Then I set the contentSize 3)then [scroll setContentOffset:CGPointMake(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to copy text from commandline mode in Vim while searching There is already a question regarding how to copy text in commandline in Vim. There are two alternative answers: * *":p, and *Ctrl+F, followed by finding the previous command. But these methods don't work when the previous command is a search. That is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android ActionBar Tab Color I have added ActionBar tabs to my application. Default color for that underline is light blue. How do I change that color or style for selected tab ? A: For anyone wants to change actionbar color/background in code, you can do something like this final ActionBar actionBar = getActionBar(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: IE6/7 divs float without width problem when cleared (in a fixed width parent div) HTML: <div id="container"> <div id="div1">div one floats to the left</div> <div id="div2">div two floats to the left</div> </div> CSS: #container{ width:200px; background:gray; } #div1 { float:left; background:red;} #div2 { float:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Send on Socket while listening I have programmed (in JAVA) a socket using simple examples in the web. I can either send or listen at one time - as far as I understood. Isn't there a possibility where I can send/listen/receive full duplex? Thank you very much. A: You can send and receive using two different threads...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Create Table Error Thanks for all the help everyone provides. I am trying to run my DDL statements and I am getting a weird error. If I copy and paste the ddl it works, but when I try to run it from a *.sql file, it gives an error. Here it is: mysql> source createtable.sql ERROR 1064 (42000): You have an error i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exception Stack Trace difference between Debug and Release mode The code below generates different exception stack trace in both debug and release mode: static class ET { public static void E1() { throw new Exception("E1"); } public static void E2() { try { E1(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Borders around groups of plots I've got 16 plots on a page, arranged in a 4x4 grid. I'd like to have a border around each set of 2x2, but can't work out how to do it. I initially used layout(matrix(c(1,2,5,6,3,4,7,8,9,10,13,14,11,12,15,16), 4, 4, byrow=TRUE)) to create the correct layout, but, as far as I know, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: positioning and font size issues on iPhone Safari I'm trying to make this website: http://501commons.org render the same on iPhone as on other browsers. On Android it works just fine. I have already added the -webkit-text-size-adjust: 100%; to the body style, which helped a little. What is still not working are t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling FB.login with to get permissions throw an error in IE I'm calling in canvas: FB.login(function(){}, { scope:'publish_stream' }); On Firefox and Chrome shows popup with permission dialog. But on IE there is error (see attach.) : An error occurred with my_app_name. Please try again later. My FB.init: FB....
{ "language": "en", "url": "https://stackoverflow.com/questions/7585022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XSS With MongoDB / Django Forms I am running a 100% NoSQL backend (MongoDB) and developing using Django. The application I am building has a lot of different forms, and for a variety of reasons, I am trying to avoid using Django.Forms because they are complicated and do not seem to be very flexible. How worried do I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing a SMS message count sequence I am trying to implement a message counter(to count number of characters entered in an SMS), which should count from 160 down to zero(for the first page) increment the second page and then do the count all over again but this time start from 159 down to 0 for subsequent page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DIV Overflow:scroll - disable page scroll whilst mouse is inside Is it possible to disable the ability for the mouse wheel to scroll the page whilst it is inside a certain DIV. That way it can only scroll the div and not the page. JQuery libraries are installed so I imagine it would be something along the lines of ....
{ "language": "en", "url": "https://stackoverflow.com/questions/7585031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Macro does not work in a duplicate worksheet Good morning. I have a Microsoft Excel Macro Enabled Workbook with two worksheets: let's say Sheet1 and Sheet2. In Sheet2 I have a combo box (form control) that works as a table sorter. This table will be also in Sheet2. The combo uses the following code: Option Explicit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hybrid between AutoResetEvent and ManualResetEvent I was wondering if there is any hybrid EventWaitHandle that will auto-reset it's state as AutoResetEvent is doing when .Set() is invoked and simultaneously will allow everybody who did .WaitOne() to pass the same as ManualResetEvent is doing. The only one solution i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Overflow issue in google chrome See this page in Chrome: http://jsbin.com/onariz/ Now it looks normal: Ok. Now if you have a scroll wheel on your mouse this is where you are going to want to use it. Click with the scroll wheel in the scrollable area of the page and drag your mouse to the corner. Now -- what the hec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ReSharper "Possible NullReferenceException" wrong with FileInfo? I just started using ReSharper and I'm trying to identify why it thinks this code is wrong. var file = new FileInfo("foobar"); return file.Directory.FullName; It highlights file.Directory as a "Possible System.NullReferenceException". I'm not sure how...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: localstorage lib that supports like queries I am looking for a javascript lib that lives on top of localstorage that supports like queries. This in itself would be easy to write, but I wouldn't want to reinvent the wheel. What localstorage libs do people use? A: If you want an SQL interface in JavaScript, use the W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use data frame as an element in list? I tried to assign a data frame as an element to a list, but after the assignment I found that the data frame has been changed to a list with values from the first column of the data frame. For example the following code : dfm <- data.frame(x=1:2, y=3:4) print(dfm) l <- li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to share share widgets pointers with another widgets I have a kind of video player application written in QT, the idea is that I can click in an video frame and the app will get the coords and color information from this exact pixels, so far so good the application already works as spected, but the thing is that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to dynamic cast/ensure typesafety from collection with varying generics I've decided to use generics in my design, which works fine. Only when I get to abstraction, I got stuck. I'm collecting different instances implementing the same interface with a different generics. To save those in a list, I need to use wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Assert multiple change expectations within a single lambda request I have a test like that: lambda { post("/api/users", parameters) }.should change(User,:count).by(1) lambda { post("/api/users", parameters) }.should_not change(ActionMailer::Base, :deliveries) But I want to do it like that: lambda { post("/api/users...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Run commands in GNU Screen windows from .screenrc Is there a way to send a sequence of commands to GNU Screen windows from my .screenrc? It seems like this should be easy to do: .screenrc: startup_message off screen -t "RAILS SERVER" <send command to last created window> <my alias to cd Rails project> <send command ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: mysql won't import database dump file on Windows XP I created a data base using mysql. I used MySQLDump to create one database backup file in text format (MySql 5.5 on Windows XP). The database is local on my machine (local host). I am having trouble using the MySQL command to load the dump file to restore the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code First with an existing database I have a table in database which points to itself, i.e. parent_id >> category id. This is the ER diagram I have modelled this table like following, but it gives *Error : 'Category': member names cannot be the same as their enclosing type : public class Category { [Key] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to prevent a certain mdichild form from getting focus/activation when switching between other mdichild forms using Ctrl+Tab? C# In my mdi application i have four mdichild forms, one of them is used as a background and holding some controls.. How to prevent this background mdichild form from getting focus/activat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I only display records which have not yet reached their expiry date (field)? In my app I can add offers and give them a start and end date, the offers are displayed as partials. How can I go about only displaying them if the start date is todays date or earlier and the end date has not yet been reached? So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to delete files from DDMS by programmatically? I've listed the File from DDMS using final String[] files = fileList(); lv = (ListView)findViewById(R.id.list); lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); lv.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_multip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect the status of a printer paper i need to get paper status information from a printer. I have a list of esc/pos commands. I'm trying to send these comands with escape function http://msdn.microsoft.com/en-us/library/windows/desktop/dd162701%28v=vs.85%29.aspx This is my code type TPrnBuffRec = record buffleng...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multithreaded use of Regex Given the following from MSDN: Regex objects can be created on any thread and shared between threads. I have found that for performance, it is better NOT to share a Regex instance between threads when using the ThreadLocal class. Please could someone explain why it runs approximately 5 t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jQuery is not a function I am trying to install a simple news ticker jQuery plugin to the home page of a website built using Joomla 1.5 No matter what I do, I always get the error jQuery("#js-news").ticker is not a function despite the files are loaded correctly and the $ sign is replaced with jQuery to avoid confli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google-style file for C++ for emacs I use the google-style file for emacs. It also looks like a good one to start learning some emacs lisp, not that long. However there is sth I am trying configure in that file, maybe some already did that before, for coding a class, I wrote, namespace A { class A_A { public: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java time class Ok this is homework and i am struggling a bit, i cant figure out what to pass in toString method and i am not quite sure my methods for getting the current and the elapsed time are correct. I then have to pass this to the main method and display the times in output statements. That is not really my p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding A Column To Access Database, Visual Studio Not Updating Column List I have a project with a dataset of an access database file. I opened up the DB file in access, added a column to a table, closed VS2010 & reopened and still it is telling me that the new column is not there in the Data Sources window, even af...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EasyMock to test SecurityException I am trying to use easyMock to write a test, that tests SecurityException in the following code. eg. for NumberFormatException I use the below. EasyMock.expect(mockEntityManager.find(UserProfile.class,"abc")).andThrow(new NumberFormatException()); Any ideas on what to expect t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Style with image as parameter I wonder how can i parametrize an image source inside an style, and this style is used inside another style. Let me try to be more clear. I defined an style for buttons, the style has an image. Then i have another style. On that style, I have two buttons (i´ve applied the button style),...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Turn on screen on device How can I turn the sceen on ? I tried something like this adb -d shell am broadcast -a android.intent.action.SCREEN_ON It really should work, I send broadcast intent it is received by the system, but the screen doesn't turn on I do not understand what is the problem, is it possible to tur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to prevent webkit from going back in history when scrolling horizontally? The title should say it all. Chrome + safari goes back in history when scrolling to the left using a trackpad, very annoying if you expect a horizontal scroll. I was hoping to be able to disable it using: document.addEventListener('mousewh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CGRect to UIImage I have this code: CGRect visibleRect; visibleRect.origin = mainViewController.scrollView.contentOffset; visibleRect.size = mainViewController.scrollView.bounds.size; I want to store the content inside visibleRect in a UIImage. Is that possible? A: This code may work: UIGraphicsBeginImageContext(v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF dependency between controls I have 3 textboxes their visibility depends on checkbox. I want to set IsEnabled = false on all textboxes, when checkbox.IsChecked = false and IsEnabled = true when IsChecked=true. How can I achieve this dependency in XAML? thanks. A: you can bind between named elements, and as long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML Mixed Encodings? First I would like to say thank you for the help in advance. I am currently writing a web crawler that parses HTML content, strips HTML tags, and then spell checks the text which is retrieved from the parsing. Stripping HTML tags and spell checking has not caused any problems, using JSoup and G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vim NERDTree colors I want to change default blue color of folders How to set it? A: If you want to customize file colors based on extension, I created this plugin. You can use it with vim-devicons, but If you don't have it, you can add this line to your .vimrc and it will highlight the filenames: let g:NERDTreeFi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Connect to Vbulletin forum with android app I'm trying to make a small app that connect to a vbulletin forum to retrieve the numbers of unread subjects in user panel. I found how to retrieve info from a website, but the problem is I have no idea how to login to the forum. Can someone give me an advice or a least a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could not load file or assembly 'app_code' or one of its dependencies when impersonating I made a web site with VS2010 and publish it on IIS7. It runs fine but it can't connect to an OLAP server so I had to setup impersonation. Impersonation runs fine in debug on my dev machine, but when I publish this on the server...
{ "language": "fr", "url": "https://stackoverflow.com/questions/7585126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add fraction constraint to a column in oracle I am using oracle 10gr2. I am trying to enforce a constraint on a column called "score" such that only fractions can be entered. More specifically, a the format should contain one digit in the numerator and one digit in the denominator, such that a user can only enter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I change message in DuplexSessionChannel (tcpTransport) in WCF custom channel? I implement IDuplexSessionChannel on my Custom Channel because I use tcpTransport. In that custom channel, I cache service call response(client side caching). But it has errors. In IRequestChannel it works fine. How can I change m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Issue: line not showing in non-compatibility view in IE 8 I am having an issue with <hr> in IE8 (normal view) This is my CSS styling for that: #ViewName hr { background-color: #CCCCCC; border: none; font-size: 14pt; } I can see the horizontal lines in IE8 (compatibility mode) but not in normal mode...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Update Progress on processing after fileupload I have a webform with two upload controls and a number of textfields. When the button is pressed the files get uploaded and then get processed. The upload takes no time, but the processing does. I know I can't have an upload control in an update panel, so I can't work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3 getting wrong count in query I'm trying to get the number of messages that haven't been read. The Message model has a column called read_at. If the message has been read there is a value in read_at, if it's unread then that value is nil. I have one read message and one unread message. I get 0 unread messages...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transform array to list I have the following fragment of code: public void doSomething() { float array[] = new float[2]; array[0] = (float) 0.0; array[1] = (float) 1.2; someMethod(array); } public void someMethod(Object value) { //need to convert value to List<Float> } As you can see above I want to con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I find the newest .pl file in a directory and all its subdirectories using Perl? How can I scan an entire directory's contents, including its subdirectories' contents, and find the newest .pl file within them using Perl? I want to build a sorted array/list of the full file paths of all .pl files within a dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Grails data not saving In the basic CRUD model, from the create view, I have the following code to save an item: println params def newItem = new ProgressItem(name: params.name, comment: params.comment, status: params.status, itemsGroup: params.itemsGroup); //add itemsGroup: based on itemsGroup.id newItem.save() re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java EE Platform or Java EE Technolgy? I'm reading a book about Java EE. In that book Java EE is referred to as the 'Java EE Platform'. Why is the term 'Platform' being used here? I think it should be Java EE Technology without Platform being appended to it. Platform normally means OS and architecture. So, it doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I redirect two pages in a single COMMAND? I want to redirect two pages at once. if(any statement) { Header("Location: http://example.com/page.php"); Header("Location: folder/page.php"); } else { echo " comment "; } Will this work? Found a solution see on comments. A: No. Why on Earth would you want to? Even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I place numbers at the end of an int (not summing)? I'm busy with making an expression tree for school, I've already build the part in which the tree is being made and printing the result of the arithmetic expression also works. There is this extra part to complete the assignment, I'd just like to make that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Piping unzip in a SAS infile Suppose I do the following in SAS: filename tmp pipe 'unzip -c -qq ./data_xml.zip'; libname tmp xml xmlmap=TMMap access=READONLY; data header; set tmp.header; run; data owners; set tmp.owners; run; This will unzip the data_xml.zip file and use the SAS xmlmap file to generate two dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calculate APR (annual percentage rate) Programmatically I am trying to find a way to programmatically calculate APR based on * *Total Loan Amount *Payment Amount *Number of payments *Repayment frequency There is no need to take any fees into account. It's ok to assume a fixed interest rate, and any remainin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C++ won't let me use a struct as a template argument Perhaps it is a header problem of sorts... But this is what's happening: The compiler is giving me an error on the line: Queue<Email> mailbox; This is the error: ..\EmailSystem.h:25: error: ISO C++ forbids declaration of `Queue' with no type ..\EmailSystem.h:25: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using WebClient.DownloadString() return odd characters sometimes Possible Duplicate: Characters in string changed after downloading HTML from the internet To reproduce my issue have a look a the following code snippet: const string url = "http://serienjunkies.org/serie/glee/"; var webclient = new WebClient(); var...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add mapview and buttons in the same layout? I am trying to create a layout consists of mapview and textfield and buttons align at the bottom of the layout I tryied using this xml file : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deleted file remains in NSBundle I recently deleted a file within Xcode. After I deleted this file I cleaned up the project (Shift+cmd+K). For one or other reason the system shows the warning after the cleaning process has been finished successfully: no rule to process file '$(PROJECT_DIR)/json2.js' of type sourceco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to write c++ webservice in linux machine using fast_cgi module where apache being the webserver I am looking at writing c++ webservice for linux with apache being the webserver.i am working on linux for first time so i needed your help. Am following the instructions given by Fast_Cgi site. * *I have downloade...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Slow repaint underneath dragged object on X... Can Qt force drag and drop operations to be internal only? I'm implementing Qt's drag and drop API across Windows and X. When I pick up an object in the app running on X and drag it, it leaves a white ghost trail of itself on the window underneath, as if the window unde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: MPMoviePlayerViewController Not Rotating until app restart K here is an interesting problem We have an app that is presenting with unusual behavior If you install that app (from either test flight or via xcode debug) onto a "clean" device (where the app has not existed before or has been previously delete) when the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a Firefox 7 compatible plugin for Aptana Studio 3? My installation of Firefox was recently updated to version 7, and I see now that the Aptana Debugger 1.7 extension is not compatible. It looks like reverting to Firefox 6 may not be an option...it seems they do not keep all of the old versions around. Is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Run a php script from a java class Possible Duplicate: Execute external program from Java Is it possible to Run a php script from a java class. My project is a struts2 frame work web application. Its purely a java webapp We use a php script to run some daily cron jobs. It was written in php by an ex-employee. Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WebView, add local .CSS file to an HTML page? In android I'm using WebView to display a part of a webpage which I fetched from the internet using HttpClient from Apache. To only have the part I want from the html, I use Jsoup. String htmlString = EntityUtils.toString(entity4); // full html as a string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Hibernate update query Any one tell me the HQL for this SQL code UPDATE ModelClassname SET ClassVariablename=ClassVariablename+10 WHERE ClassVariableId=001; A: There is no point using HQL to do that, you can use direct SQL if you want to do that, through a JDBC query (or even through a Hibernate query, you can us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Convert a char to a String I want to convert a char to a String in the following way: char aaa = '\uE001'; I want to obtain a string with the value of "\uE001" so I can use substring(2) to obtain only "E001". Is that possible? Please help A: Well, the character itself is a single character, U+E001. It has the hex ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gerrit Update Patch to Latest Code How do I update my patch on gerrit to latest code without making any merge commits? My patch is a few commits behind and I don't want to make a new patch on gerrit. A: git rebase origin/master Works and will fix conflicts when needed.
{ "language": "en", "url": "https://stackoverflow.com/questions/7585225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nivo Slider Bullets "are not centered" after adding more Slides i'm using Nivo Slider in my Wordpress and vBulletin with a Iframe . but when i added more slides the navigation bullets turned to the right , and are not centered anymore. i just know about CSS an NO jquery. how can i solve this problem ? ScreenShot : h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to validate a field of Zend_Form based on the value of another field? I'm trying to add a custom validator to a field. It should take into account the value of another field. E.g. field A should be at most B+50%. I've made a class implementing Zend_Validate_Interface, but apparently Zend Form only sends in the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: One custom handler for different request url's in ASP.NET web site I am doing a small ASP.NET 2.0. site refactoring. Currently there is the following folder structure: /siteroot/services/home/service1 /siteroot/services/home/service2 /siteroot/services/home/service3 ... all the folders (service1, 2, 3) contain an a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ArrayList passing by reference with dates object? I pass dates to an ArrayList but when I change the Date object, all the Dates inside the ArrayList will change. This is an example: Date currentDate = new Date("6/10/2011"); ArrayList<Date> datesList = new ArrayList(); currentDate.setDate(currentDate.getDate() + 1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: symfony setting value of specific checkbox widgets in form I have a widget defined with a series of checkboxes that is essentially used to build up a bit flag. So I have a DB column 'access_bits', and I have several checkboxes generated on in the form class, in the format of 'access_bits[]', with the appropriate val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone CoreData: Sort with umlauts I have an app that fetches data (a list of countries) from an sqlite database. The countries are in German and contain umlauts, for example Österreich. I want to fetch those countries sorted by name and would expect Österreich to be near other countries with "O", but it is at the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Dependency tree from spring batch configuration Having a spring job definition: <job id="footballJob"> <!-- Step bean details ommitted for clarity --> <step id="playerload" next="gameLoad"/> <step id="gameLoad" next="playerSummarization"/> <step id="playerSummarization"/> </job> Can I progmatically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between String.Sort and Greater Than/Less Than Operators VB.Net I have a simple routine to find the next object based on a name property in an un-ordered collection of objects. I go through the collection and collect all the names in a List(of String) adding any names that are > my current name, which sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identifying something on the screen I'm curious as to how the CodedUI Test functionality in Visual Studio works. I can see how it can identify keypresses and what's typed by querying the keyboard state, but I'm having a hard time figuring out how (i.e. code-wise) it identifies what button was clicked, where that but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A basic question on java/maven/testng I am using RHEL 5. I want to be able to write a basic Java class, write corresponding test methods using testNG and be able to say something like "mvn install" which will run test cases and install the built jar. Is there something called maven plugin to support testNG on RHEL? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access an array of structs in simulink? I have the problem, that I have to access a funktion form a dll in matlab/Simulink in the rtw. This should work with a s function, but I have the needed parameters in a array of structures organized. The question is now how I can reach them when I want to call my DLL fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to disable form submit with an input button that is an image How do I disable the form from submitting? I have tried the following chunk of jQuery with no success - any ideas? http://pastebin.com/W7hjaSe0 $('#signup').submit(function(){ $('input[type=button]', this).attr('disabled', 'disabled'); }); A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create folder and set ACL with web deploy How do I create a folder using microsoft web deploy? Also, when I have created that folder how do I set the ACL on it? Can I do so when publishing to file system using Visual Studio? Or do I have to publish to a server that has IIS Web Management Service (WMSvc) enabled to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Twitting URLs with # in them and getting their count The goal here is to be able to "tweet" a link of the format www.example.com/page.aspx#1, and get the number of "tweets" for that link... Basically, what the out-of-the-box Twitter button does for any normal link. Reason for this is because the page displays differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modern Master Detail Pattern I am going to create new Financial web application using Asp.net MVC fully ajax, hosted on customer intranet. i have Company setup screen, Company Model is shown Below. Company {Main Company info, Bank info} .|_Regions - each :{Region info, Contacts} ...|_Districts - each : {dist...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ win32 changing the application display name I've developed a win32 api application using c++. It was developed using visual studio 2010. When i started developing i gave it a codename and now when it's done i would like to change the applications name, but don't know where to change it (i'm quite new to win32 an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving and Closing an Excel File Created in C# .Net Using Excel Office Interop dll I'm having a really hard time finding good documentation on how to properly close and save an Excel file using the Exce; Office Interop dll. Basically, I have everything working with regards to creating a new Excel workbook and fillin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: python: what's the point of adding`__dict__` to `__slots__` The whole point of __slots__ is to save space. But I saw people add __dict__ to it so that new attributes can be added. Isn't this defeating the goal of __slots__? A: Yes. If you want __dict__, then just don't use __slots__.
{ "language": "en", "url": "https://stackoverflow.com/questions/7585284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to define new Model in ATK4 From: http://agiletoolkit.org/learn/understand/model/add class Model_MyModel extends Model_Table { function init(){ parent::init(); $this->addField('name'); } } From: http://agiletoolkit.org/intro/models class Model_MyModel extends Model_Table { function...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Drawing a dynamic shape in iphone I am trying to create a simple circle by subclassing the UIView which I am able to do. But now I want to do various operations over it, such as Rotate, Pan, Scale, etc by various touch events. How can I do these? A: Just make custom object so u can get event for particular of.
{ "language": "en", "url": "https://stackoverflow.com/questions/7585300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How-to's for MySQL InnoDB (insert) performance optimization? I'm still struggling with the performance of my MySQL database using the InnoDB engine. Especially the performance of data insertion, minor the performance of running queries. I've been googling for information, how-to's and so on, but I found most informa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: how to set custom destination properly in drupal url I'm trying to place the destination in a drupal path like this: http://myhost/root-folder/node/100/delete?destination=node/150?nid=300 It's a little bit unusual in terms of drupal terminology, but this is my requirement. When I visit the above url it's shows me a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }