text
stringlengths
8
267k
meta
dict
Q: How to get applications associated with a application pool in IIS7 I have a virtual directory name. For this virtual directory i have to find out the application pool associated. Once i get the application pool i have to find out all the virtual directories on this application pool.. I am using this code to find out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Redirect xsl:message to log4j I am using SaxonJ to perform XSLT transformation from Java. My XSLT files have to output any debug/info as output since my transformation logic is complex. Is there a way in which I can redirect to log4j so that I can store have the transformation information in a log file? My system ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Building LLVM on Linux Well not that anyones probably going to see this but I A) figured out that LLVM wasn't what I needed it was LLVM-gcc which you can get from sauriks repo. B) realized that the toolchain I torrented already worked minus a la libstdc++ not in /usr/local/lib/gcc/arm-apple-darwin/4.0.1/ so to get l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Magento: easy way to remove "paypal/express/review" step When ordering using paypal in magento, it takes you to paypal, paypal already displays a confirmation, you confirm, you get redirected to another confirmation page (/paypal/express/review), it is an extra step that is unnecessary for user experience, I would l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Imitating ViewState into WinForm's If it's possible it would be a great thing. So is there a way how to achieve somehow a ViewState behavior into a WinForm's Application. Like if i have a Bunch of TextBoxes ,than uses types text into them ,TextBoxes should store Their Text ,Location ,Size etc. and on Next Applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Servlet/ How to write the logs(log.debug and log.error entries) written in the server console to a separate txt file? This is my first java servlet so I would be glad if you can help me and tell me what to do in details :) I can see my program's logs in server console but I need to copy all logs including log.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nHibernate big queries timeout We are developing a new system for a customer and we have a member table with about 23600 members. And when we are trying to get them all it times out. I have used sql profiler to get the question and run it separatly and it took about 3 secs. using (ISession s = SessionFactory.OpenSes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my Google App Engine Mail API calls still result in a DeadlineExceededError despite putting them in a task queue? I have a Python function that adds a task queue for each email address in my mailing list (thousands each time I mail them). The problem is that, even though each mail was to be sent via executi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mysql insert into not work I want insert 4 datas into 4 fields and checked if 2 of them have not exists. (the data match `pid = '1' and sid '123') Here is my code, I checked several times, my mysql connect is well, my database is right, these four fields in my table. but I just can not insert. there has no warning r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF InstanceContextMode and serviceThrottling In WCF, if I specify the InstanceContextMode to be 'Single' and configure the serviceThrottling in config to be like, <serviceThrottling maxConcurrentCalls="100" maxConcurrentInstances="100" maxConcurrentSessions="100" /> Will these two settings conflict..? Thanks A: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the value at runtime Can anybody tell me how i can do this? declare @test varchar(20) set @test ='DatabaseName' select b.* from @test.dbo.Table_Name Here i am taking database from variable and using it in query. Shall do this? A: Make use of Exec command or Sp_executesql because you are building dynamic que...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a basic submission form in rails and write to a database? I'm trying to build a micro-app where a user pastes a link, clicks submit, the link is added to the database and is also shown (called from the database) in a list below the submission form. I've created a Rails app and in the index.html.erb f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can't merge models with two different entities I try to modify my model file, but when I build and run it, the console outputs the error as mentioned in the title, "Can't merge models with two different entities", I try to delete the original model file and create a new one, the error is still there. I have checked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add the unit testing functionality in existing ASP.NET MVC project? How to add the unit testing functionality (in Visual Studio 2010 Ultimate Edition) for an already existing ASP.NET MVC project? I have added Test Project to achieve TDD but it looks entirely different. Thanks in advance. A: I think the easi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OCT 1st deadline and fbs_xxx cookie I have a lil confusion regarding the changes for OCT 1st deadline. I am using FB Connect on my site and obtaining the accesstoken from the cookie $_COOKIE['fbs_xxxxx']. Do I need to change this? because according to my understanding signed_request is only available to canvas apps....
{ "language": "en", "url": "https://stackoverflow.com/questions/7607223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Do you reset a bit value in a string? In the recent interview I got a question like this : Given a string value, find out its 127th bit and reset it, do this in C language Reset means if that particular bit is 0 change to 1 and vice versa I didn't find out any algorithm for this, but I want to know about how one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to configure django environment for pycharm on windows? I am new to django development (I was working with MS and Oracle/Java stack). I now how important it is to prepare your dev environment right. I have web server with some small django project I am going to expand, pycharm IDE (checked possibilities and chos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGraph - Setting expiry? So, on facebook, the ticker shows recent stories from views to my site, now, what would i need to do to make the ticker display the fact that someone is 'viewing' a post. Anything i try just ends up saying 'viewed' a post. Is there a way to make it say 'is viewing' through opengraph? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# MVC - Get UserId from Session array I need to get the current logged in user identity through the Session array declared as below: if (user != null) { string[] UserProfile = new string[4]; UserProfile[0] = Convert.ToString(user.UserID); UserP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swipe Pages in Android I have a question that I want to Swipe Screens with touch in Horizontal Manner with Many Pages. Means the background of all these pages are same but Pages over that are different. Same as the WallPaper Screen of any Android Phone which is horizontal Scrollable and Pages are different. How to i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reflection of sky on car in Opengl es 2 in iphone/ ipad Started working on car racing game with Opengl-es 2.0 ... Wandering how to show reflection of sky, trees ,etc on a car while its moving ... i have seen many games doing so... please guide me where to start from ? Thanks A: This is called "environment mapping...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FQL requesting error String fqlurl="https://api.facebook.com/method/fql.query?query=SELECT name FROM user WHERE uid = me()"; Does anyone could tell me what's wrong with this url? I have illegalArgumentException error. A: You'll need to URLEncode the query. So, your query becomes : SELECT+name+FROM+user+WHERE+uid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Processing X509 certificate, java converts postalCode present in Subject line to its OID value When converting an uploaded security certificate to X509 format and later obtaining the subject line through following code. eg cert = (X509Certificate) cf.generateCertificate(inStream); String subject =cert.getSubjectX500...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java regular expression optimization tips I am new to Java Regular expression. We are using a pattern for matching a string. We are using this for validating a text field and it meets our requirements. But there is a performance issue in the matching. Pattern : ([a-zA-Z0-9]+[ ]?(([_\-][a-zA-Z0-9 ])*)?[_\-]?)+ * *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Why is a class' size affected when it contains only a virtual function? class classWithNoVirtualFunction { public: int a; void x () { char c; c = 'a'; } }; class classWithOneVirtualFunction { public: int a; virtual void x () {} }; class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check non-numeric characters in string I want to check whether the String contains only numeric characters or it contains alpha-numeric characters too. I have to implement this check in database transaction where about a hundred-thousand records are going to be fetched and passed through this check, so I need optimi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to upload document with metadata to SharePoint doc. library using Client Object Model? I'm developing VSTO Outlook Add-In, so I'm using SharePoint Client Object Model. Can I upload a document to SharePoint doc. library and add metadata with one action? Using Google I have found many samples where metadata is add...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: presentModalViewController fullscreenmode issue I'm trying to present this modalViewController in my app and it needs to be fullscreen. This is how I call up the ModalViewController. myViewController = [[MyViewController alloc] init]; //self.myViewController.SomeView = [[UIView alloc] init]; //self.myViewController....
{ "language": "en", "url": "https://stackoverflow.com/questions/7607271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: incorrect display lineWidth=1 at html5 canvas I have example: https://developer.mozilla.org/samples/canvas-tutorial/4_5_canvas_linewidth.html But first line is not equals 1 pixel: How can i fix this? (browser Google Chrome) A: To make life easier you can move the whole canvas by 0.5px: var canvas = document.getEl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Xcode: Creating A Popup UIViewController I would like to create a UIVewController and have it popup similar to what is shown in this image: http://i.stack.imgur.com/WzMKk.png When the user taps outside the popup window, the window (view controller) goes away. Can someone please provide some example code as far as wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 'out' keyword in C++ Is there an equivalent to the C# 'out' keyword for out parameters but in C++? I'd like to have a constructor also set a couple of references to variables where it is called. A: C#'s out means that initialization of some value is done within a function. C++ does not have an equivalent. Initializ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Not able to run doxygen script through my xcode? I have installed doxygen.dmg. I have used this link for reference: duckrowing I have followed each and every step from that. Now I am able to create html docset using that doxygen tool. But for the next steps, while generating a documentation using XCode itself using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenCV CvSeq recursive element access fails for large images? My development enviroment is Mingw32 bit CMake on Windows 7.(this same code works fine on Linux) I use cvFindContours() to detect contours using OpenCV. I use recursive method to traveser the resultant CvSeq to access the contours by level as follows: voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding custom attribute to a system class I want to add classes from System.Activites.Presentation my custom attribute. I tried to do it with emit(TypeBuilder, ModuleBuilder, AssemblyBuilder). Is it possible to change an existing type by adding an attribute to it? Or how to tell TypeBuilder, so that it uses an exist...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to replace to html code with a php function I want to replace a image with html code, that must be the output of a php function. whenever a image tag is found in an html document, it should be passed to a php function and replaced with a html strings. my expectation is like below. index.htm file contains h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I structure the file and directory Rake tasks within a regular task? I want to generate the file my.db in the db/ directory. I'm unfamiliar with how to structure the file and directory tasks within a regular task. Help! task :create, [:name, :type] do |t, args| args.with_defaults(:name => "mydb", :type => "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to know what actually is those blue blocks in Instruments? I am using Instruments to find memory leaks in my app. When a object alloc, a blue block(line) display in Instrument, like this: Screenshot of Instruments's timeline, showing the Allocations graph http://naituw.com/temp/instruments.png When the object ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I delete a file when I am watching it with a FileSystemWatcher? We know that in .NET (C# to be specific), we can use a FileSystemWatcher to detect any type of modification. public void MessageFileWatcher(string Path, string FileName) { FileSystemWatcher Watcher = new FileSystemWatcher(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 100% layout with min/max sizes which doesn't overflow I have two layout elements lets say one is 33%, the other 66%. They both use 100% of my screen size (So it is dependent on browser window). The smaller element also has a min-size property, so it cant fall below 250px; Now if the layout is at least 757px large (s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Overwriting resources during maven war overlay As I've gathered, maven-war-plugin never overwrites files which already exist in the target of an overlay. For example, if I have a war A which has a dependency on a war B, both of which contain some resource located at src/main/resources/some.xml, the resulting A.war w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3.1 and dynamic jquery ui-theme switch To be brief: application.css /* *= require_self *= require_tree . *= require vendor */ application.js //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . and vendor/assets$ tree . └── stylesheets ├── ui-themes │ ├── smoothness...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Listview Backcolor I am using vb 6.0 and i want to change the back color of the selected item. in Default by windows,the back color is blue, how can I customize the color. Thanks in advance A: Unless it is something you have a real need to do you may want to live with the default system color. There is no property ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No item is shown in ListView I have a ListView and a Arrayadapter filled with Strings. The data should be the StringArray myStrings My Code: public class Main extends Activity { private SQLiteDatabase myDB; final String MY_DB_NAME = "PizzaCounter"; final String MY_DB_TABLE = "Pizza"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Joomla good PDF viewer I'm searching for a good PDF viewer for Joomla, the problem is when there is a module in an article all the PDF viewers I tried so far show: {loadposition myposition} in place of that module. Does anybody know a PDF viewer that will show the module. I would also like it to have a header and fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF Application slowing down on i5 Processor machine One of the developed application in WPF is running very slow on i5 process Laptop. UI contains multiple user controls (200+) in nested Items control. Same application is running with good performance in one of the Desktop machine. Below is the detailed configurati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB.NET match whole word and replace I'm trying to replace a string with another but the problem is that the string is matching some other string partially. For e.g. - Dim x as String = "I am Soham" x = x.Replace("am","xx") After this replace I would only like the word am to replaced with xx but because my name also...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Publishing very slow in fatwire CMS I was trying to publisg assets from one environment to another. It was almost very slow and not progressing further. Could any body suggest what can be the issue ? A: Try segmenting your assets and publishing in smaller goups A: Sometimes it boils down to finding the culprit ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJs - Problems with grouping in grid a simple table contains - id, name, text. I need to bring these data in the grid with the grouping by the field name. In all the examples that I found (for example - paper) uses the variable already defined the data. And I need to get data from Store. ExtJs 3 The code: Ext....
{ "language": "en", "url": "https://stackoverflow.com/questions/7607324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a XML object from String in Java? I am trying to write a code that helps me to create a XML object. For example, I will give a string as input to a function and it will return me a XMLObject. XMLObject convertToXML(String s) {} When I was searching on the net, generally I saw examples about creating X...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Sharepoint2010 hiding "Edit Item" button in ribbon for a specific Custom List I am using Share Point 2010, I have requirement where i create some Custom lists in feature activation by code and i have to hide "Edit Item" in ribbon for a specific Custom List There are so many solutions available but they hide "Edit It...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sql Server Index on Bit fields I am using Sql Server 2000 and want to know why we can not create index on bit fields? A: Just a limitation of the product. SQL Server 2005+ does allow this. Because of the Tipping Point a single column bit index is unlikely to be very useful unless the values are heavily skewed (a sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Dismissing keyboard? I do have Three TextField For Name Phone and Email. On selecting each textField keyboard will appears -(void)createdTextField{ phoneField = [[UITextField alloc]initWithFrame:CGRectMake(225, 306, 90, 31)]; [phoneField setPlaceholder:REQUIRED]; [phoneField setBorderStyle:UIText...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recursing in a lambda function I have the following 2 functions that I wish to combine into one: (defun fib (n) (if (= n 0) 0 (fib-r n 0 1))) (defun fib-r (n a b) (if (= n 1) b (fib-r (- n 1) b (+ a b)))) I would like to have just one function, so I tried something like this: (defun fib (n) (let ((f0 (lambda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to Delete Facebook Messages via Facebook API? Is there a way to retrieve all Facebook Message ids with the read mailbox permission and then delete them all one by one? Everyone is crying about how it's difficult to delete your chat/message history. I wondered if there was an easy way to write an app to do this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Transform any ActionScript class in XML For a program i'm writing I need to marshal ActionScript classes to a format that is later to be read by Java (and back again). What solutions exists for such a need ? Is there a way (like when using Java through XMLEncoder/XMLDecoder) to generate that XML using standard flex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Strategy for Large Scale Analysis (on-the-fly or deferred) To analyze a large number of websites or financial data and pull out parametric data, what are the optimal strategies? I'm classifying the following strategies as either "on-the-fly" or "deferred". Which is best? * *On-the-fly: Process data on-the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add two array of objects from mysql result I have a query as follows : $q1 = " SELECT * FROM tbl_profile WHERE admin_selected = 'y' "; $res1 = mysql_query($q1); $r1 = mysql_fetch_object($res1); //print_r($r1); $q2 = " SELECT * FROM tbl_profile W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create a Java method that accepts a variable number of arguments? For example, Java's own String.format() supports a variable number of arguments. String.format("Hello %s! ABC %d!", "World", 123); //=> Hello World! ABC 123! How can I make my own function that accepts a variable number of arguments? Follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Why does element style override class that is set on element? Our problem is like this. We have piece of code like this. <div class="parent"> <div class="child"> <a href="#" class="child_item" onclick="return false;" onfocus="blur();">Item 1</a> </div> <div class="child"> <a href="#" clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chrome OS in VMPlayer Trying to create a virtual machine using VMPlayer, I discovered that as the Chrome OS is now a Release Candidate, it is only available here: http://www.getchrome.eu/download.php However, there is no .vmdk download but "Live CD" and "USB Disk Image". I've downloaded the "Live CD", but the VMPlay...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt: Properly store image resource for custom widget I'm making a custom widget in Qt, and drawing an image as its background. The background image is to be exactly the same for all instances of widgets. I'd like to know if I'm doing it in an appropriate way. Here's how I'm doing it now: // QMyWidget.h class QMyWidge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Convert C# Desktop Application Project to website I Created an application in my desktop using c#. I want to use this application in my website. Is it Possible or there is any other way. A: It is impossible unless you rewrite the application for Web. They are totally different things.
{ "language": "en", "url": "https://stackoverflow.com/questions/7607370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: click the image and remove the active class Is there a way where it is possible to remove the active class on red btn when I click on my img and then make blue btn class active? HTML <div id="nav"> <ul> <li class="red btn"><a class="tildig" href="#din_app" data-transition="fade" > <p>TIL DIG</p> </a></li> <li cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Evaluating formula in SQL I am trying to process salary details of employees depends upon some schedule using SQL Server 2005. Here some fields are evaluating from formula. like..eg. HRA=(BS+Earning1)*10/100 here formula is getting from Table, it'll vary for diff accounts(HRA, Medical Allavance etc). Value of formul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL - retrieve a value from another table if column is null Let's say I have a table setup with a few values, including a name, an ID, and a foreign key that references the ID of another table. The name can be null. When I select all the records from this table, I want to get the name if it is not null. If it is, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: vb.net Regex Improving Performance with compiling and shared variables I am writing some code that uses fixed regexs to search strings and pattern match. Its simple stuff, but I want to improve regex performance with compiling (its a high traffic website). I was thinking of compiling the regex and putting it in a Sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting return status AND program output I need to use Lua to run a binary program that may write something in its stdout and also returns a status code (also known as "exit status"). I searched the web and couldn't find something that does what I need. However I found out that in Lua: * *os.execute() returns the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: using push registry Alarm in j2me applicaiton I want to make the application where i want to set the alarm at particular time in the day.When the alarm rings the pop up message will came and the one .txt file from the application will move to the server. Does any one help me how to use set this alarm through push no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android.database.sqlite.SQLiteException: no such table: TableName I have a database [sqllite] in my assets folder and it have all the tables and fields which I have given in my query. But still while executing the app it shows some sqlite error like 09-30 13:09:53.656: ERROR/AndroidRuntime(334): Caused by: android.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to obtain information about downloads, total installation, and active installation from my published android applications programmatically? I have a few questions regarding android market(Google play). How can I list my published application by accessing from my google account? What I have done so far is using m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change the class of a input field Sorry. Let me rephrase: I want js to change to class of a input field if it is left empty; Here is my code to detect a empty field: function validateForm() { var ctrl = document.forms["form1"]["username"]; var x=ctrl.value; if (x==null || x=="") { ////////////CHANGE INPU...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Executing a thread inside AsyncTask's doInBackground() I have several AsyncTasks doing network operations. I was recently asked to add, after each of these operations, another network call that invokes a remote service sending some statistics. I'd like this statistics call not to delay 'main' network calls, and so I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Calling a method of an object through a Vector This is a part of a larger program that I'm doing where the user can create a Flight object by entering data into JTextFields. The data is stored into a Vector, called flightList. On a second panel of my JApplet, the user can use a JComboBox - flightBox - to select on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finish activity after toast message disappears? Does anybody know, if there is a possibility to do something (in my case finish activity) on toast message will be closed? A: android.widget.Toast doesn't offer any listeners for informing when it is finished. You may call Toast.getDuration() to learn how long it will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Any in-framework way to prevent Cross Site Request Forgery (CSRF) within ASP .NET 4.0 (not MVC)? Is there any in-framework way to prevent Cross Site Request Forgery (CSRF) within ASP .NET 4.0 Web forms based websites (not MVC)? I do see the framework generate __EVENTVALIDATION and __VIEWSTATE hidden form fields and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to write rspec for private method in controller with params I have controller class ApplicationController < ActionController::Base def index end private def handle_login_sequence username = params[:userName] password = params[:password] cookies[:locale] = params[:locale] rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Two Identical Code Segments, Different Results All I need to do is a simple read from a file in the same directory, but for some reason it refuses to work. It works perfectly fine in this quick test one I made after I had problems, and outputs the number of entries in the text file. #include <iostream> using std::co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JAVA nontoop/apns certificate I have java application and I want to send push notification. I use nontoop/apns library. In this line of code which certificate should I use instead cert variable? ApnsService service = APNS.newService().withCert(cert, "atajerBritecs") .withSandboxDestination().build()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run Flash in WPF i am trying to run a .swf file in my WPF application, i have created a html page and in that i have referenced my .swf file using object tag and then loading that html page in my Main Window my xaml looks like <Window x:Class="sirajflash.MainWindow" xmlns="http://schemas.microsoft.com/winfx/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: c++ cross access to classes methods I'm not very experienced in cpp (used to work in python). I have the following problem: 1) I have a main class A (a window) and the methods m_A1 and m_A2 2) I have a little class B (a dialog) with a callback m_B1 3) the class B is instantiated and destroyed inside of m_A1 4) from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Basic Authentication with Twitter and Facebook Is there a way to authenticate to Facebook / Twitter using basic authentication? the application I am working on requires posting to those two sites without the need to open the oAuth Dialog. A: Both twitter & facebook don't support basic auth. A: No, thank goodness....
{ "language": "en", "url": "https://stackoverflow.com/questions/7607433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending mail with css is not applying in zend I am using zend.Following is my piece of code in my Action ....... // create view object $html = new Zend_View(); $html->setScriptPath(APPLICATION_PATH . '/layouts/scripts/'); // assign values ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: log4net / EventLogAppender is ignoring my LogName This configuration should make my log entries end up in a custom log, right? But it ends up in the Application log. My app is running as admin. After I run my app I can confirm that the Log and event source is created by using EventLog.Exists("MyLog") and EventLog.So...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Searching for information in files in several directories I need to check several files which are in different locations for a specific information. So, how to make a script which checks for the argument word through several directories? The directories are in different locations. For ex. /home/check1/ /opt/log/ /va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Booleans in Squeryl dynamic queries I'm trying to use Squeryl (0.9.4 for scala 2.8.1) dynamic queries (.? and inhibitWhen(...)). They are working fine while I'm using String/Int/whatever fields, but seem to interfere with squeryl's syntax sugar for boolean conditions. Assuming we have a is_trusted: Option[Boolean] d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zend Framework multiple checkbox I have a multiple check box in zend framework where I have to diaplay image in place of label. For example: <label for="elId-1222"> <input type="checkbox" name="elId[]" id="elId-1222" value="1222" checked="checked" class="inputtext"> <image src="images/yes.png"> </label><br /> So...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery's fadeIn() similar functionality in Silverlight 4 I wish fadeIn() fadeOut() in Silverlight was as easy as jquery made it! I have a grid with 2 controls in it..one chart and another a textblock. At a time only one of them is visible. I wish to have a smooth transition on both of these controls whenever their v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to reference an embedded image from CSS? This is a NEW question and it is highly related to this topic: How to reference embedded images from CSS? For whatever reason I am forced to post a new thread here, so please see the original thread to understand what the issue is here. I want to create an asp.net server...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS - Log in via Webservice In my app, I have a splitview containing data aquired via a WS call. To recieve this data, the user must be logged in. To log in, I modally present a login screen when the application loads. After entering the credentials, I print out the result from a isLoggedIn WS call. This all works f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Submit Form without transferring to the target(Vaadin) I'm using an FormSender addon of Vaadin to send some data to my servlet via POST works like that: FormSender formSender = new FormSender(); formSender.setFormMethod(FormSender.Method.POST); formSender.setFormTarget("Servlet URL"); If(event.getSource() =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implement radial blur with OpenCV We would like to correct for field curvature introduced by a lens in a digital camera. We plan to use a digital unsharp mask Instead of applying a Gaussian blur we would like to try a radial blur, so the sharpening has more impact toward the edges of the image. What is simplest way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: jQuery: Scale entire div with its children? is it somehow possible to use jQuery or Javascript to scale an entire div down to 70%. E.g. I have a horizontal slider with images. On smaller screens the slider with all its images (and their captions) should be like 70% of it's original size. It's really difficult though...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: bytearray:set_size(5) fails for Lua Wireshark In a Lua-based dissector, I would like to transform a tvb content to an other tvb. The code: local strbuf = buffer(offset, strlen * 2) -- range from tvb offset = offset + strlen * 2 local inbytes = strbuf:bytes() local outbytes = ByteArray.new() outbytes:set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# FileSystemWatcher and a Timer I have this strange, yet maybe very simple problem.. I have a timer1 in my program that should start when I for example click a button. which it does.. However when I use the FileSystemWatch it does not trigger timer1 for some reason I can't seem to figure out.. is there something sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create new post with photo attached in WordPress using XMLRPC? Anyone knows how to create new post with photo attached in WordPress using XMLRPC? I am able to create new post and upload new picture separately, but looks like there is no way to attach the uploaded photo to the created post? Below is the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Exclude url from filter-mapping in web.xml I am using spring mvc and I need to exclude urls from filter-mapping. It means, I have static content like pictures and css and js ... and I need to not process these request, for example from security filter. I tried urlrewrite, but I was not able to redirect the urls dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: soap webservice with ASIHTTPREQUEST I am trying to implement my soap web services with ASIHTTPREQUEST and i am facing some error. Here is my code. [request addRequestHeader:@"Content-Type" value:@"application/xml; charset=utf-8"]; [request addRequestHeader:@"SOAPAction" value:[xmlnsString stringByAppendingS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Querying a distant table in Silverstripe model I'm trying to get a sum of a field "cost" from a page type from another page type. (ProjectCategory), like this: class ProjectCategory extends Page { static $belongs_many_many = array( 'RelateToProject' => 'Project' ); function totalCost(){ $sqlQuery = new S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Started with HDF5 I'm trying to use HDF5 in a C# .NET application on a 32 bit Win XP machine. I am a total newbie to this HDF5 stuff. I downloaded the Windows binary distribution, "HDF5-1.8.7_win_x86.zip" from http://www.hdfgroup.org/HDF5/release/obtain5.html. I can't really follow the instructions in the "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: F# Group or aggregate a record sequence/collection by a given criteria I am pretty new to functional programming and therefore F# and I have serious trouble to come up with the right solution for this problem. I have got a sequence of record types, say like: type Invoice = { GrpText : string GrpRef : int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7607490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }