text
stringlengths
8
267k
meta
dict
Q: How to add a css class to a z3c.form button I want to add the css class allowMultiSubmit to a zrc.form button to avoid multi-submit alert. The button is defined like this: from z3c.form import form from plone.app.z3cform.layout import wrap_form class MyForm(form.Form): ... @button.buttonAndHandler(_(u"S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Google authentication without user I've a device running Android and display web site that show photos from PicasaWeb. In order to show the photos the app must auth to google accounts. Until now I use 'remember me' feature but that's not stable enough. Is there a way to auth to google account using stored user na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create 'groups' that users can join, what would be a good approach? I want to build "groups" that users can join, The flow of steps and things needed is in my head but the code to build this lacks some bit since I'm still learning rails. I would like to ask some advice on your ideas best practice of what would be ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can we use jquery $.post() for using muliple urls in it var js={"studentId":$(this).val()}; $.post(url+"admin/course/getformadmissionfees",js,function(data){ $("#student").val(data.admissionFee); $("#studentform").val(data.formFee); My question can i include different url 1 url+"adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cascade Grouping sql rows into Xml nodes I have the following rows: ID|Customer | Part Number | Part Number Price | Hardware ID | Hardware Value ------------------------------------------------------------------------------ 1 | John | 15 | 10 | 1 | 1000 2 | John | 16 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone:Store & Retrieve NSMutableArray object appDelegate.categoryData = [NSMutableDictionary dictionaryWithObjectsAndKeys: categoryStr, @"name",image ,@"image", nil]; [appDelegate.categories addObject:appDelegate.categoryData]; NSLog(@"Category Data:--->%@",appDelegate.cate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cursor not incrementing updating row with start value I'm very new to SQL Server. I'm using a cursor to populate a table with ids; I just discovered cursors today. The code is running but it is populating each row with the start value. SET NOCOUNT ON DECLARE @Irow int declare @cheese int; set @cheese = (select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's difference between escape_string and real_escape_string? I'm working on dreamviewer. When i'm trying to write basic syntax it usually autocompletes. As you see it offers 2 variants for "escape": real_escape_string and escape_string. I wonder, Is there any difference between them? A: escape_string is an alia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Send Request For Web Service And Important Delegate Methods For XML Parsing I want to send request to service and in reply i am getting xml data. So, please tell me how can i send request to the web-server with check of internet connection and also let me know the important delegate methods for xml parsing. A: Firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need Removable comments in this textarea Hi I need to add some content which would be clear on click in the given below textarea. Not able to find the answer, please help me <tr><td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td></tr> A: If I understand you properly, you want to displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it a convention to prefix private classes with underscores? I have seen code in which functions/constants are prefixed with underscores. My understanding is that this indicates that they are not to be used directly. Can I do this with classes ? class _Foo(object): pass class __Bar(object): pass A: Yes;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: PHP & mySQL - ë written as ë Possible Duplicate: PHP messing with HTML Charset Encoding We've come across special characters being transformed. What is causing this? How can we fix it? For example: ë becomes ë Thank you. A: Thats a utf-8 character and you can parse it through utf8_encode() and utf8_decode() i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binding a single value within a for comprehension The Learn You a Haskell tutorial has an example of using a let binder in a list comprehension: calcBmis xs = [bmi | (w, h) <- xs, let bmi = w / h ^ 2, bmi >= 25.0] The function takes a list of height/weight pairs, and returns a list of the corresponding body-mass in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Market says app incompatible with SG2 Are there any known issues about Samsungs SG2 (2.3.4) concerning the compatibility of Apps. Many potential users of our app with a SG2 report that the Android Webstore thinks the app is not compatible and that the app is not visible on the Android Market App. Whereas the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Spinner Error : android.view.WindowManager$BadTokenException: Unable to add window I want to set the spinner value using String[] or ArrayList. I have done spinner in other activity working fine.In this activity inside the Tab acivityGroup another Tab activity. My problem is setting values into spinner. Spin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What kind of project type for TableViewSuite App I am moving from theory to some practice. I've downloaded from Apple site a couple of sample codes. The first app is TableViewSuite from https://developer.apple.com/library/ios/#samplecode/TableViewSuite/Introduction/Intro.html Looks nice and attractive. The most thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SharePoint 2007 Calculator Does anyone know how to create a simple calculator using CEWPs or Form Web Parts on SharePoint 2007? Basically all I need is two fields for input and a submit button which uses the 2 input fields in a function and then gives the answer. Sounds simple but everything I've tried (using html a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: quotes in sql query how can you add quotes in a sql query if the field names includes "-" or other charactors or if the field has a reserved name like "type" or others SELECT `enclosure.id`, `enclosure.time`, `enclosure.note` FROM tbl.enclosure LEFT JOIN tbl.book ON book.enc_id=enclosure.id WHERE `book.book_id`='2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How is fork() working when children fork? I have executed a block of code. And it is as shown below: #include<stdio.h> main() { int i=0; fork(); printf("The value of i is:%d\n",++i); fork(); printf("The value of j is:%d\n",++i); fork(); wait(); } And I got following output: The value of i is:1 The value of j is:2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A block changes its ID when moved between regions? Under Drupal 6 I have a custom block, which I have named and placed into a custom, right-hand sidebar region. This block's ID (which I have discovered from block.tpl.php, from the $block_id helper variable) is 7. I am overriding the output of this block as it displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silverlight Deep Zoom Server Control? The Silverlight Deep Zoom was one of those cool things that I heard about when it was introduced a few years ago, but I never got around to actually trying it out. But now is the time, and I was so surprised to learn how complicated it apparently is to get the thing working, tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using window.open within a modalDialog - address bar always visible? (This problem has been observed in IE9) I am experiencing some problems relating to the display of an address bar when opening a new window from within a modalDialog. The following sample page illustrates this. test.html: <!DOCTYPE html PUBLIC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating JMP instruction's address I am trying to hook a function by replacing its beginning with a JMP instruction which should lead to my function. But the problem is that I don't know how to calculate the JMP offset to target the address of my function. Well, I know how to do it if you jump forward in memory (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: correct MIN, MAX and CASE statements I like to extract MIN and MAX values from the same column. As I am using Group By so I have to use min and max. If I just use the whole column, it gives me error that you have to use aggregate function with Group By How can I do it ValueA = MAX(ValueB) + MIN(ValueB) what will be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can't generate subreport in JasperReports from Java code I have some problem with generating a subreport in JasperReports. I have 2 reports which I made in iReport. Main report: <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax.BeginForm says action doesn’t exists, however it does I am working with AJAX Helper method in one my applications, things were all good and right but suddenly am facing this strange problem i.e. in view <% using (Ajax.BeginForm("Feedback", "User", new AjaxOptions { InsertionMode = InsertionMode.InsertBefore...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: According to language change currency of zencart Am working on a zen cart project, I have used Google language converter to change the language of site, now the project demand is if "customer is in spanish google shopping and he click on my site product it take him to the product page displayed in euros and spanish...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to detect if a text-field needs to wrap in JavaScript/dojo? I have a textfield in a grid in which I wish to turn off text wrapping, but display a tooltip with the full text if wrapping is required. So, how could I detect if a field needs to wrap? I tried to query the field's length, but it was either in em or in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regarding profile url shorten I am wondering to know about this is it possible or not. If yes then please help me. I want to change this URL: http://domain.com/profile/admin to http://domain.com/admin Where admin is username of profile user. Why I am thinking it is impossible like the URL is already rewritten in .ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show Google Map in a different shape I'm trying to find (without luck so far) any examples of Google Maps that are shown in a shape that is not the standard rectangle. I know that ultimately the map IS a rectangle, but specifically I'd like examples of how I could show graphics on top of that rectangle to giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reading XML from Javascript, is it reasonably possible? I'm developing a very smooth site that will display products for a company. I'm using jQuery to display the products. Problem is, I don't want to hard-code all of the products in. I want to store all of the products (product, description, price, etc.) in XML...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle.OLEDB not visible in 32 bit SSMS 2008 This is my first post on here. I'm having trouble creating a linked server in SSMS because Oracle is not listed as a provider. However, in BIDS the Oracle provider is visible. I can connect to my database just fine. It appears that BIDS is 64 bit and SSMS is 32 bit so I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net ajax beginrequest I'm creating an asp.net application and I need to get the name of the control who initiated an asynchronous post pack from a beginRequestHandler. Here is my code: <script type="text/javascript"> function pageLoad(sender, args) { Sys.WebForms.PageRequestManager.getInstance().add_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use OpenCV/or any ported library classes in Objective-C First, I apology for this newbie question. I'm new in Objective C and OpenCV the normal method declaration in Objective-C is like that Function functionName = [[Function alloc] init]; but when I use OpenCV class it says (for example CvMat) receiver type ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get date part (dispose of time part) from java.util.Date? I want to compare the date part of two java.util.Date objects. How can I achieve this? I am not looking to comparing the date, month and year separately. Thanks in advance! A: The commons-lang DateUtils provide a nice solution for this problem: watch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to change a single querystring parameter, possibly via a control action? In the last three days I've struggled trying to find a way to accomplish what I though was supposed to be a simple thing. Doing this on my own or searching for a solution in the web, didn't help. Maybe because I'm not even sure what to look...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shortcut to make all split screens have the same width? When I open gvim -S (with a session) my split screens' widths are screwed up and I have to manually adjust them. Is there a shortcut to make all split screens the same width ? Thanks A: This should normally work:     C-w= see window-resize There are exceptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: .Net Chart control with logarithmic scale on the X-axis For a project we are using the Telerik RadChart control to display a graph on a website. At the moment the X-axis follows a normal scale but we would like to change that to a logarithmic scale. As far as we can tell the control does not allow that. Does anyone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make User Interface of add contact detail same like in iPhone Contact List? I am making an app, in which I am making custom contact list for this application, now I made add button to add contact in my custom contact list. Now I want to add all the detail (name, mobile, email, photo etc..) of contact, same li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server: alter table, how to add SPARSE definition I would like alter my table and add SPARSE option to all fields that contain a lot of NULL values. What is the right syntax for this ALTER TABLE command? A: The other answers work, but you can also get away with: ALTER TABLE #foo ALTER COLUMN bar ADD SPARSE; Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Backup sqltabledata and structure into an output file Hi currently i am developing an windows form application to backup table data and table structure to an output file and i am using 3rd party dll to back up it and i have 3 radiobuttons in which user selects 1. To backup only table data 2. To back up only table s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Graph API, mark inbox as read? Okay I think the title pretty much sums it up but I'll explain my situation anyway. I have written a desktop app using the Facebook C# SDK and Graph API which notifys me when I have new notifications and new (unread) messages in my inbox and it seems to work but the facebook g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to smoothen jquery slider? i have this jquery slider code here - jsfiddle or jquery demo now all i want to do is that i want to make the slider work more smoother please help! P.S. by smoother i mean that i drag the slider to a little distance from my mouse and it automatically gets dragged to a little more...it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Processes locking on multicore machine I recently started running my java program on my new multicore machine. I am suddenly seeing a problem which never occurred on my old single core Pentium. I suspect that the issue has to do with some sort of contention between my program and the various browsers I am running at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to export text into pdf in Java, Android? Possible Duplicate: How to create pdf files on android I need to create app for exporting text into pdf file. But I don't know how to do it, because I never used it ever. Help me please, give me an example for this task or link for tutorial. A: Some libraries in jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drop TAble if exist and then create table i am creating java application using ms access database. i have to create table "student" if not exit and if exist then drop table first then make table student. i have writing code for it. for this i have made function boolean makeTable(Connection con,String tablename) and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expose Action as Action I'm creating a framework that contains a wrapper around a library (specifically SharpBrake) that performs all interaction with SharpBrake via reflection so there's no hard dependency on the library to 3rd parties of my framework. If 3rd parties of my framework wants to use SharpBrake, they ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Stop a Service in Android when the application is not running. I have Started my service in one of my main activity class.The problem is that when my application is not running I want to Stop my service.How can i implement this.Is there any option to stop it without stopping it using any button click or other...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: HTML Element: get notified when the scrollbar appears I have a div like this: <div id='test' style='overflow:auto'> ... </div> In javascript (no jquery) How do I know when - as a consequence of the user resizing the browser - the div is showing a horizontal bar or not ? Note: I don't want only to figure if it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing Mutual fund quotes I have been looking for a while at how to retrieve financial quotes in c#, in this case, Canadian mutual funds. It seems there are 2 main sources of information for this, Yahoo and Google! Also there seems to be 2 preferred methods, API and HTML scrapping. My preference would be for an A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Logging only debug level messages to file in symfony 1.4 Most of my app logging is done at debug level because in sf 1.4 it's not used by symfony itself, and that makes it easy to see just the messages I'm interested in using something like: tail -f log/frontend_dev.php | grep "\[debug\]" This is great in the dev e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery to read and compare a word as you type I need to implement a sort of word sensing feature . What I require is to have a plugin which will read and compare a word, as I type , with a predefined word , and on successfull matches , it will display a checkbox . As in the image , once I type test and give a space...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Talend: Write data to PostgreSQL database error I am trying to write data from a .csv file to my postgreSQL database. The connection is fine, but when I run my job i get the following error: Exception in component tPostgresqlOutput_1 org.postgresql.util.PSQLException: ERROR: zero-length delimited identifier at or ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can we post image on twitter using twitter API in Android? I had successfully integrate twitter API and I am able to post text from my device but I want to know two things * *Is is possible to post Image on twitter using API in Android ? *In twitter we used OAuth.OAUTH_TOKEN and OAuth.OAUTH_TOKEN_SECRET tokens.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Error after deploying the application in appspot I get the following error in the browser when trying to access my Java application in appspot. Error: NOT_FOUND However it works fine when I run from Eclipse or ant. I have checked the logs in GAE admin console but couldn't find any error messages. I have also tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Live Scrolling Stock Ticker Looking for a scrolling stock ticker, as seen here: http://www.bloomberg.com/ - preferably run in combination with jQuery liScroller. How would I go about this? RSS? Any costs involved? Recommendations welcome. A: If your going to use a plugin like liScroller to do the ticker for you tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rendering a page in PHP: How? This may be a inappropriate question for SO, but I thought lets see :) I'm writing a website in php. Every pageload may have 10-20 DB requests. Using the result of the DB queries I need to generate a page. The page would contain a topic (should be image or text) followed by comments. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: web.config in subdirectories doesn't work with web.config presence in root directory I have 3 Wordpress installation on my webserver, one in the root folder, 2 in sub directories (iis): / /wp_one /wp_two All of them have a web.config. If I remove the web.config from the root directory, URLs in children wp works pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress image name same as page Friends, i'm stuccoed with images in wordpress - please, help me understand where search for solution. If you create webpage - www.wordpress.local/page1/01-0001 and you upload an image 01-0001 on that page, you can see, that when you'll visit www.wordpress.local/page1/01-0001, you'l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inner div should be displayed in front of outer div I have the following code and would like the inner div with the class: escaping-container to be displayed in front of the outer div with the class container. The inner div has bigger height setting than the outer div. So a part of it is cut off. Also the part that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing and Parse PayPal IPN Custom field I have setup a PayPal IPN file. When the user is at the site and press submit details about the transaction is uploaded to the db. The relevant id is sent via PayPal as the custom field. When payment complete IPN used to update DB as transaction completed based on id. All i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: how to change stylesheet when an image is clicked JS newbie here I want to have a kind of profile preview page where people can select a color (could be clicking on an image or could be a radio button) and that changes the background colors in certain divs in the preview page. IE someone clicks on the button for red...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it safe to use PHP exec() to handle system-related tasks on a server? I'm developing an application in PHP and Javascript and I need to set up disk quotas for a given user (as I'm using an FTP daemon (ProFTPd in this case) to allow for users to have their own document manager) so elFinder (which is the document m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Netty HTTP Authetication for Client Look at the test code I have written below. Using pure java I set an Authenticator and make a URI call to get some xml data and convert it to an object. I wrote the code below to test performance of hotpotato (netty) vs. pure java (no pipelining). The trouble is, I can't figure ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL SERVER - Create Table by matching rows and columns and put Y or N I currently have a table with all the data, using this data i want to create another table which could be used for auditing purpose (similar layout like pivot table) Example Below: Raw Data Name Places Visited ----------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When can multiple ServiceHost instances share the same port? Our application server exposes 5 WCF services over the net.tcp transport, all on the same port. We've been hosting these during development using WcfSvcHost and I've never had to think about how these manage to use the same port. We're moving them to a Win...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to expect that the '=' method runs for the 'session'? I am using Ruby on Rails 3.1.0 and the rspec-rails 2gem. I would like to test if some session data has been set to nil. In my controller I have: def create ... session[:user] = nil ... end In the related spec file I would like to make something like th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Touch events not get triggered on SVG document Touch events do not get triggered on SVG document when a USE element has been used to draw a shape(via, xlink:href). The USE element references another element and indicates that the graphical content of the element is drawn here. However, touch events get triggered on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't find layout ID for < 1% of users? I have an app which gets several thousand users a day. I'm getting a handful of reports through marketplace that my entry activity can't load its layout xml resource. I don't see how this could be possible?: java.lang.RuntimeException: Unable to start activity ComponentInfo{co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: how to prevent multiple inserts when submitting an ajax form On this problem some more people have stumbled and for non-ajax scenario there is already a solution : How to prevent multiple inserts when submitting a form in PHP? (answered Jan 25 '10 at 17:02) I'd like to know how could be implemented efficiently on bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android How to call OnFling when Swiping anywhere in the Activity not only in the ViewFlipper In my viewFlipper some TextViews are loaded dynamically. The size may differ which means that under the viewFlipper there could be some space left (see the green part in the screenshot) screenshot I want the onFling method ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unable to upload themes to my WordPress installation I am unable to upload themes to my WordPress installation via WordPress admin. I am getting the following error: The uploaded file could not be moved to /home/debiprasad/webapps/wordpress/wp-content/uploads/2011/09 The permission of wp-contents directory and all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tracking down null-reference error in Windows Service Application - whats going on here? I'm making a data-adapter service, and i need to take a backup of the affected tables before messing with the data. I'm using calling the external process "mysqldump.exe" and everything works fine from a command-line - but the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Browser's repainting is very slow when using jquery addClass and removeClass I have a page where I need to dynamically add or css classes. I have the following Jquery code in my page, myElementsList.addClass('AClass').removeClass('BClass') These css classes will change the color and background color of my elements....
{ "language": "en", "url": "https://stackoverflow.com/questions/7609720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Entity Framework One-To-Many Insert - Foreign Key violation I'm using Entity Framework for the first time and I'm trying to create a object with a collection (and I want all the objects in the collection to be created in database as well) but I'm having some foreign keys violations. My sample tables: table APPOINTM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using a library written in C++ from a pure C project on Linux? Found this statement over at PSE: (quoting Bob) One of my favorite tricks on Windows and Mac OS doesn't work on Linux. That trick is to write a DLL/dylib using C++ internals, export a C API, and then be able to call into it from C programs. Linux sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to correctly set icon size of a button in extjs? I'm using extjs4 and What i'm trying to do seems to be simple but i can't find a working solution for it. I have a 64*64px icon and i want my button to show it as the background image but extjs only shows the image partially.Googled on the net for a solution but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: MySQL: Return row if joined table contains least one match (Main table id equal to jid. Join based on that.) The 1st item has got 2 row in the join table. /That's great./ But 3rd item has got no row in join table. The question: How can i ignore those items that has got no joined rows? IN ONE QUERY. I tried the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: javascript window.location and IE session variables are lost I am loosing session variables when using Internet Explorer (IE 9) when using the javascript window.location function. I have noticed that the page before and the page after displays the same session ID; but the session variables are lost when the redirec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't read CLOB into string... sometimes I have an array of CLOB datatypes. In my sample data, there are two items in the array. The array is embedded in a FOR loop that will loop until all of the data is read from the array (in this case, twice). I have a function that reads the CLOB data into a string, then ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Data Service Reflection Provider in ASP.NET MVC I have a existing model with classes that reads the model from a number of files from disk. I use this in a current ASP.NET MVC project and to read the correct files from disk the classes handling the read needs a version URL parameter and a Request.PhysicalApplication...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grabbing a specific element of an array in Objective-C I'm splitting a string by ';', but want to specifically grab the first and second element. I know with PHP it's just simply $array[0], just can't find anything for this for Objective-C NSArray *tempArray = [returnString componentsSeparatedByString:@";"]; So her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to access gallery folder on an android device I want to retrieve a video or image from the gallery folder. In my honeycomb tablet I don't have a sdcard. Can anybody tell me how to retrieve the image or video in android? Thanks A: Use the MediaStore content provider to find indexed media on the device. The Galle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rotate an jpg on the iPhone I have an app that takes the photos via the camera or select it from the library and save it as jpg in the documents folder. But before saving it, I would like to rotate is by 90degrees. Hope anyone can help me out here. Thanks A: For iOS 4 and later: UIImage imageWithCGImage:scale:orien...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Daemon process cannot survive suspend I am writing daemon application for Debian Sid. It works perfectly most of the times, but dies silently after i put my laptop to suspend (or hibernate). So i have a couple of questions: * *What should I Google for solutions? *Maybe, you have any ideas what is going on? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sharepoint Client OM: Create a document in a library from an existing document template I am currently finding my feet with the Sharepoint 2010 client object model. I have a C#.net winforms application from which i need to access sharepoint. I would like to programatically create a new document in a document library...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Serializing with ProtoBuf.NET without tagging members I've read somewhere a comment by the author of ProtoBuf.NET that: There are options to automatically infer the numbers, but that is brittle and not recommended. Only use this if you know you never need to add more members (it orders them alphabetically, so addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Strange array behavior in Java This is a simple array declaration and initialization. int arr[] = new int[10]; for(int i = 0; i<arr.length; i++){ arr[i] = i; } This System.out.println(arr[000001]); to System.out.println(arr[000007]); prints out the correct values but anything above 8 System.out....
{ "language": "en", "url": "https://stackoverflow.com/questions/7609749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery/AJAX: How to pass variables to some JS-API? I have a problem with passing JS-defined Variables from an AJAX response to a JS-API, namely Googles jsapi. What I want to do is display a chart using this API and then use AJAX from time to time to reload the values from a database. So far, everything works just fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding a delay before keyup() fires in jQuery I have read through some of the suggested questions but I am not sure exactly how to implement them: * *(jquery/js) - get text from field on keyup, but with delay for further typing *How to delay the .keyup() handler until the user stops typing? *How to trigger an o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: VB6 software consuming WCF web services. Endpoints in App.config. Err VB6 has no App.config We have an EPOS system that is built in VB6. A client is using Microsoft Dynamics AX as a CRM system. A 3rd party has created the AX implementation for our client and they've exposed a set of WCF web services that we need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android layout according to language selected I would like to know if there is any good idea how to switch layouts according to application language selected - e.g. switch between left-to-right layout and right-to-left layout. Have different images or written text and ofcourse the position. I thought doing it using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Convert Unicode-Hex utf-8 strings to Unicode strings Have s = u'Gaga\xe2\x80\x99s' but need to convert to t = u'Gaga\u2019s' How can this be best achieved? A: s = u'Gaga\xe2\x80\x99s' t = u'Gaga\u2019s' x = s.encode('raw-unicode-escape').decode('utf-8') assert x==t print(x) yields Gaga’s A: Where ever yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Toast fails to show when within a AsyncTask I have a simple application which sends an image (Base64 encoded) to a server, the server gets this data fine because the PHP script sends me an email with the Base64 Data attached. However, after the task gets completed the toast never shows. How do I take the Toast get s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails 3.1 Mongoid has_secure_password I'm attempting to get has_secure_password to play nice with mongoid. I'm following Railscasts #270, however when I to signin with a username/password, I get the error: undefined method `find_by_email' for User:Class I see a similar post (http://stackoverflow.com/questions/6920...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get this element Attribute and use it on other element So... What I want is the following: When I .click an element with an id starting with 'menu' it will get its attr value='value' into a variable and use it on the next function. Here's the source: index.html <div id='menuBar' > <img id='menu01' src='/si/img/men...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Play one instance of AVAudioPlayer in the background I have several instances of AVAudioPlayer in my app (in separate classes). I have added multi-tasking capabilities to one instance but all audio now plays in the background. I added the 'App plays audio' key to my plist and: [[AVAudioSession sharedInstance] se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to return html instead of strings in php dom parser <?php $convert = function($src) { return '<div>'.$src.'</div>'; }; $doc = new DOMDocument; $doc->loadhtml(getHTML()); foo($doc, $convert); echo "after: ", $doc->savehtml(), "\n\n"; function foo(DOMDocument $doc, $fn) { $xpath = new DOMXPath($doc)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Office server mode macro I'm trying to run xls files on an open office server on Windows. I start the oo in server mode with the following bat: start soffice.exe -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service" The server is used by a Java application. The problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rounded border around img This is what I want to achieve. I want to make it as flexible as possible, so i split the png into left top corner, left, right top corner etc.. Here is what I have tried: <div class="top"> <div class="lt"> <div class="lr"> <img src='somepicture.jpg' /> </div> </div> </di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7609790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }