text
stringlengths
8
267k
meta
dict
Q: umbraco authorization problems I inherited an umbraco website from another developer and am having problems with authorization. The website seems to deny authorization to anonymous users even though I have set authorization to allow users="*". Is there something else I should be doing in umbraco? A: It was file p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android : What use is MediaController's AnchorView? I would like my MediaController to hide only when the user touches only the bottom half part of the screen, because i have some buttons on the top part that need to be accessible with one click. That is, without the first click being intercepted by the MediaContro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Images mess up my table layout Here is the test file: http://www.nicoeinsidler.bplaced.net/test/mail_test.html If there are no pictures everything works fine as expected, but as soon as I add picture to it they break my layout. <img src="https://img.skitch.com/20110930-e89yb812kuhisgsuhf896aepnx.png" alt="http://www...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: COUNT(DISTINCT X) MySQL Query doesn't give results I need In MySQL I have a query to count all of the browsers from a page_views table that I want to aggregate. Here's my query: SELECT Browser, COUNT(*) FROM page_views WHERE PageID = 58 GROUP BY Browser; which gives, for example: Chrome 14 Firef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows Explorer Shell Extension: recursive delete via ITransferSource::RemoveItem? I'm implementing a Windows Explorer Shell Extension for a networked file system on Windows 7, and I've hit a snag while implementing the Delete functionality. Let's say my remote filesystem hierarchy is as follows: Dir1 +-Dir2 | +-A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic Multi-Column SQL I have two tables with structures like this: VelocityBase Aisle | ItemId | ConfigId | InventSizeId | InventColorId | InventLocationId | DataAreaId | VelocityCategory VelocitySalesCount ItemId | ConfigId | InventSizeId | InventColorId | InventLocationId | DataAreaId | Sales Every row in the B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Need simple SQLite database example Possible Duplicate: sqlite example program in android I need to open a database where I know the path/name, I need to read a known value, and write a value. I don't want to write 100 line "helper classes," I simply want to use the classes/functions that already exist. Can anybo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Tooltip not working with my css Why doesn't my tooltip work with my css in here? http://jsfiddle.net/BG4Sn/ Please see the jsfiddle, the problem is, that with my css included, the tooltip won't show up true box tooltip after mouse enter on links tooltip1 & tooltip2 & tooltip3 . When I remove the link to my css in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Output precision is higher than double precision I am printing some data from a C++ program to be processed/visualized by ParaView, but I am having a problem with floating point numbers. Paraview supports both Float32 and Float64 data types. Float64 is equivalent to double with the typical limits +/-1.7e +/- 308. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: count tabs gather data from tabbed delimited text .JSX Adobe InDesign I need to know how to read data from tabbed delimited text file in order to export merged documents to correct location. -- will always be 4th tab 2nd row (group number) directory will be named by group number -- have directories already created b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Know Active Timer In Android, after starting any timer using TIMER or CountDownTimer, is there any way to track them? For example, if we start 5 timer and we want to stop the second one(or update it), how to do that stuff? Thanks in advance. A: put all of them in a list, set timer's tag an id (id from the list) and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can FindComponent Be Used To Find A Ruler on a PageControl Created at Runtime Actually I am using a ImageEN TRulerBox and a TAdvOfficePager (TMS) rather than a TPageControl; however, the TAdvOfficePager functions the same way as a TPageControl aside from property names. Two ImageEN TRulerBoxes and a TImageENView are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery event delegation variable scope with consecutive calls With event delegation in jQuery 1.6, you can respond to events that have bubbled up to a common parent. A sample implementation is like this: (function($){ $.fn.myeventhandler = function () { return this.delegate('a.next, a.prev', 'click customEve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: display:table adds padding/margin in webkit browsers but not FF or IE I'm working on some boxes where I'm forced to using the following css on a div in order to make it look right: display:table; It works fine in Firefox + Internet Explorer, but I just noticed that it adds a 1px border/margin/padding in webkit brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Extreme XSLT XML Flattening I have the following input XML file: <root> <a> <b>1</b> </a> <c> <d> <e>2</e> <f>3</f> or <e>3</e> </d> <g h="4"/> <i> <j> <k> <l m="5" n="6" o="7" /> <l m="8" n="9" o="0" /> </k> </j> </i> </c> </root> I would like to use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I get "undefined method" calling by Rails model, but works fine calling by Rails console I receive undefined method scan for User:Class when scan method (line 13: last = resp.headers['Link'].scan(/\d+/).last) is called by Rails User model (inside class method self.create_user(auth)) : class User include Mongoid:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XCode include necessary header files In Eclipse you can press Cntrl + Shift + O and all of the necessary includes will be added to your file automatically. Is there anything similar to this in XCode? A: No, there isn't. You have to add them yourself.
{ "language": "en", "url": "https://stackoverflow.com/questions/7611665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hashing function of any live object (hash table)? Not sure whether it is sensible reopen my earlier thread on Hashing URL. Nonetheless, I am still curious know how this work undercover. Assumption: We have a hashtable with n (where n < Infinity) element where asymptotic time complexity is o(1); we (CLR) have achieve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: fatal: remote error: Could not find Repository octocat/myapp I am using Git for the first time and just forked one open source project following GitHub's instructions. I am able to clone my fork on local computer but I get an error when running these commands: $git remote add upstream git://github.com/octocat/myappn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Recommendations for optimizing NHibernate with Large Amounts of Data I have a rather complex mapping for some of my class objects for NHibernate. I have everything mapping correctly; however, it is taking approximately 10-15 minutes to save the items and over 21 minutes to load them, which of course is unacceptable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I fix the indentation of selected lines in Visual Studio In vim I can use = to reindent badly indented lines so foo; bar; baz; becomes foo; bar; baz; Is there an equivalent keyboard-shortcut for visual studio? Where can I find a list of such shortcuts for future reference? Edit: Is there a way to do fix...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Populate Object using Ajax and Jquery As the title says, I'm trying to populate the properties of an object using jQuery-Ajax. I've been trying to find the right way to do it for hours, but couldn't make it work... This is my code: function Persona(){ this.nombre; this.apellido; this.buscarNombre= funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Relative positioning of geom_text in ggplot2? I am using geom_text to annotate plots in gglot2 and I want use relative positioning rather than absolute. That is, I want a position of (0.5, 0.5) to be dead center regardless of the x and y axis limits. Is that possible? Alternatively I could of course transform a rela...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to initialize constant member C array in an Objective-C class? how can I create a constant C array member in an Objective-C class? The lifecycle should be limited to the classes lifecycle and I don't want to use malloc. At the moment I'm doing this: @interface Bla { int myArray[3]; } @implementation Bla { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to manage Infopath VSTA code Situation We are currently developing a Sharepoint 2010 site that uses Infopath 2010 forms. However most of these forms require more advanced functionality thus these became Adminstrator-approved forms and have c# code on them (VSTA). Question Since each infopath form would have its...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Regarding the differences between malloc and new in terms of their respective mechanisms of handling memory allocation? What are the differences between malloc and new in terms of their respective mechanisms of handling memory allocation? A: * *malloc doesn't throw bad_alloc exception as new does. * *Because m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to represent current state or status and maintain data/referential integrity? - Database Design I have a table that maintains specific business transactions, let's call it LOANS. Each record can at any given time have one of several "states", for example "in re-payment / open", "defaulted", "voided", or "paid". ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: getting current latitude and longitude I want to get current location, I see with this code but how can I assign to this latitude and longitude to label when click a button? -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Internet explorer z-index issue On this website: http://rwl.rwlwater.com/ when I have more menus, it moves the search bar on the next line, but it's still visible over the featured slider. In firefox this doesn't happen and the search bar is not visible. I tried changing the z-index for the slider div, for the searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JS/JQuery: I'm trying to move an li node under the one it matches $(document).ready(function() { var a = $("li.comment").attr("id"); var b = $("li.comment[id='"+a+"']"); var c = $("li.comment > div.comment-body div > p > a").attr("href"); var d = $("li.comment > div.comment-body div > p > a[href='"+c+"']"); var e = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I securely add a random padding to all ASP.NET AJAX HTTPS responses? Apparently, it is possible to leak data in an SSL connection based on the size of the HTTPS request and response. Considering the complexity of the ASP.NET pipeline, how do I securely add a random amount of data that rounds each size up to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Accessing Visual Studio 2010 debugging website I am going to develop a ASP.net website for mobiles. But I found that my mobile cannot access the website during debugging the website. How to let the VS 2010 can be accessed form my mobile during debugging website? A: To be able to access it and debug it from your mob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .Net DLL referencing another DLL I have one .Net 4.0 dll project that references third party PDF converter DLL. I have exposed this dll for COM. Now when I am trying to add my .tlb file to VB6 project it comes up with runtime error. Error says the dll which is third party pdf converter cannot be found. Is there any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Displaying XML with XSLT formatting in MVC I'd like my view to display a raw XML file formatted with an XSLT file inside an iframe. The XML file actually shown is variable and depends on the user's selection from a form (the XML file's address is determined in the controller). Is it possible to return the XML inform...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: the connection with the server was terminated abnormally xmlhttp I have this asp page test1.asp in the same server (different website) than this webservice. Thing is when i try to run this code sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT" result = HTTPPost(sUrl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Retrieve all folder in a directories and change all folders' name that are in it I want to retrieve all folders in a directory folder and change all the subfolder that in it. For example, in root folder Root, I want to change all subfolders A, B, C, D, .. to 1,2,34,... May I know how can I do it with php? Thanks. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android StartActivtyForResult() from a Service First I'm sorry for my english that is not so good :). I am facing a problem to develop my app. That is a general architecture scheme of my solution. http://i.stack.imgur.com/ooTmE.png To be quick, the app has to decode code bare but with two possible ways: * *using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a reliable way to send email without having the senders smtp? My application will be used in a manner that the user is remote from his computer running the application, receiving data via text messages sent periodically from the PC. Im sending the text message via email, using the number@carrierdomain.com....
{ "language": "en", "url": "https://stackoverflow.com/questions/7611730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: honeycomb - add custom button to taskbar While in the application, is it possible to add a custom button to the taskbar thats displayed at the bottom of the screen (next to Home, windows buttons)? A: No, sorry, you cannot add things to the system bar ("the taskbar thats displayed at the bottom of the screen") excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing an unknown type (?) object to a function as a parameter in objective-c How do I pass an unknown type (?) object to a function and then set it to a local ones value in objective-c? The unknown object is an n-th item of a JSON value. I use the JSON framework. [giveMeTheNthObj:[items objectAtIndex:indexPath.row...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where is my mistake using JavaScript and jQuery I have a question actually I need one if/else for hide or show one div, I had wrote the following function but it didn’t work: jQuery(document).ready(function(){ /*show div OtraUniversidad when option:selected = 165*/ var optionValue = $("#Universidad option:select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AsyncTask Issue related to Notifications and IntentService I have a pretty weird problem. I'm setting a notification in my Service in order to launch an Activity. When the Activity launches, an AsyncTask is started. This is how I set up the notification: CharSequence tickerText = getString(R.string.notificationTextU...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Touch events in blackberry torch 9810 doesn't works properly I have written a mobile application for android. When I test it on Samsung Galaxy SII it works like a charm. Same app when I tried on blackberry Torch2 9810 then it works pathetic. The Problem is with touch events. I am using JQuery mobile touch events. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I trigger Button's OnClick event from Javascript in an asp.net application which is using Callback? I'm using Callback, on a asp.net webforms project. When clicked button, it is working great. However I have a textbox, when user press 'enter' it must trigger button. So I did it, function search_enter(event) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails nested models hey I asked a question here Rails association help , this person directed me to learn nested attributes here , http://railscasts.com/episodes/196-nested-model-form-part-1 , and here http://railscasts.com/episodes/197-nested-model-form-part-2 . The link_to 's to add fields wont respond to anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get ".is" to work in older versions of Internet Explorer I'm not getting ".is" to work. It's working great in IE9, firefox and other modern browsers but not IE8 or IE7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I capture a field name (not field value) with Javascript? I'm trying to find out how I can use javascript to capture the name of a field and assign the name to a variable. I've done a good amount of searching, but I can only find out how to capture the value of a field and not the name of the field itself. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to use a web framework for a simple website? The site won't be that complicated and will resemble a modern blog (users, messages, news and other similar features). Do I need to use a framework for this, and if so, which is best? Pyramid, Django? A: You certainly don't need a webframework to create a simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mod_rewrite from a subfolder with a querystring to a folder or file I am trying to redirect from: http://www.example.com/folder/product.aspx?prodid=146 to http://www.example.com/folder2/folder3/ The folders referred to here don't really exist. There are other rewrite rules in place which redirect transparently to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a similar way to AlternateItemTemplate to do this I know that with a repeater I can use AlternatingItemTemplate and SeparatorTemplate to adopt a variety of alternating items or for the latter a consistent style / attribute between items. But in my latest task, I require a SeperatorTemplate but only after ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Query - Select Statement I have a table where the data could be like these below: CusID | Name | State | PhyAddress 160285 | FYZPZ | NULL | 0 160285 | FYZPZ | NJ | 1 160285 | FYZPZ | NJ | 1 or CusID | Name | State | PhyAddress 160285 | FYZPZ | NJ xx | 1 or CusID | Name | State | PhyAddress 160285...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ctypes definition How could I write the definition copied bellow using ctypes? unsigned char* x = new unsigned char[10]; Thank you. A: Depending on how you need to use x, you probably want ctypes.create_string_buffer. x = ctypes.create_string_buffer(' ' * 10);
{ "language": "en", "url": "https://stackoverflow.com/questions/7611771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: JavasScript Object Literal to jQuery Plugin Could someone explain how to convert the following structure into a jQuery plugin - as I'm really struggling here. I'm mainly lost with object properties, methods - how can they be converted to a single plugin: var objLit = { thisObj : null, propOne : 125, prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database structure / defined and undefined field values I am using MySQL and have an articles table which has 2 columns: currency and price, but an article can also have a negotiated price, so I can't determine currency and price values. What should I do to be able to have defined and negotiated prices? A: If the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Counting substrings in C A friend of mine needed help counting the occurrences of a substring in a string, and I came up with the following code. Does anyone know a better method to do this? #include "stdio.h" #include "string.h" int main(int argc, char *argv[]) { char str1[50], str2[50]; int i, j, l1, l2, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio Add-In To Automatically Attach to Development Server Is anyone aware of a Visual Studio 2010 Add-In that will automatically allow you to attach to a running instance of the ASP.Net Development Server? And if there is more than one currently running, display a quick dialog that lets you choose from a li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java, Spring best practices to use variables in properties files I use org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. There are 3 properties files. So if properties duplicate - last wins. The first file contains all properties, others substitute some properties. I use e.g. variable like log...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select statement with variables, but not work i try to select statement with variable, but not work maybe i miss something. <!--Get data from user--> <?php while ($row_settings = mysql_fetch_array($rs_settings4)) { $get_id_friend=$row_settings['friend_id']; } ?> <!--Get data from user--> <d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java library to split text into smaller files I am looking for a java library that allows me to specify max size or max number of lines in output files, and then splits a large xml/text file into smaller files. I saw that there is a 2 year old question on SO for the same, however the answers there were for specific ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CXF 2.4.2: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http I have a service client generated from wsdl. I am trying to call the remote service and I recieve the conduit initiator error seen below. I have tried numerous solutions without success. I found solutions (old posts)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Refreshing website not changed after modification in Django I am new to Django. Recently I am doing a project from my peer. It's a small web interface in Django. I made some changes to the source code and I am sure I made it in the right way. The weird thing is that when I refresh the page, nothing changed. However,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accounting format issue when exporting I have managed to get the report I am working on looking how I would like, setting a column to display using the accounting format which works perfectly when previewing/printing. However when I try and export this it loses this accounting format and defaulting to it's original ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting a factor to numeric without losing information R (as.numeric() doesn't seem to work) Possible Duplicate: R - How to convert a factor to an integer\numeric in R without a loss of information The following fact about the as.numeric() function has been brought to my attention > blah<-c("4","8","10","15") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Getting Started with MVCScaffolding I have gone through many of the MVC tutorials and now I want to create a prototype mvc app of an existing database. I have installed the MVCScaffolding package and I want to use it with an existing database. Has anyone found steps to go about doing this? I have looked but have be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: IOS: don't change color UIButton when it's pushed when I push a custom UIButton it change its color and become more dark but I want that its color don't change when I push it, how can I do this? A: you need to set the buttons colors for each control state you want to customize
{ "language": "en", "url": "https://stackoverflow.com/questions/7611812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove scroll ability from GtkSpinButton I find that GtkSpinButton can be useful for controlled input numbers on GTK GUI. But here are some nice features of GTK button which can be unwanted in many cases. If we have GtkSpinButton inside scrolledwindow then user can accidentally change value, or GtkSpinButton can tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Navigation Bar background is hiding right button and cannot remove it on next views I'm using the category below to programmatically change the navigation bar background into my app. It works fine but I cannot see the right button I added in the nav bar. The button seems hidden as tapping on right side nav bar still...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multi-line NSAttributedString with truncated text I need a UILabel subcass with multiline attributed text with support for links, bold styles, etc. I also need tail truncation with an ellipsis. None of the open source code that supports attributed text inside UILabels (TTTAttributedLabel, OHAttributedLabel, TTSty...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Can someone explain what REF, CREATEREF, DEREF, KEY in Entity SQL do? I can't find good documentation on these operators. Can someone provide some examples of use and explain what they do? A: Entity SQL's CREATEREF reference: http://msdn.microsoft.com/en-us/library/bb386880(v=VS.90) It's used to "Fabricates referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Julian Day to ISO 8601 string in SQLite I have a table that stores date/time values as julian days in SQLite (using the julianday() function). I can't seem to figure out how to convert them back to ISO 8601 style strings (YYYY-mm-ddThh:m:ss.sss) when I read them? A: Just feed the Julian day number to the datetime f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: nginx + uwsgi 502 Bad Gateway python I'm running a script in python and takes a long time to process. The thing is if the function takes to long to run, i guess the nginx has a timeout, in his configuration and that prevents somekind of errors, and prevents the function to run completely. I just want to know were i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Higher Query result with the DISTINCT Keyword? Say I have a table with 100,000 User IDs (UserID is an int). When I run a query like SELECT COUNT(Distinct User ID) from tableUserID the result I get is HIGHER than the result from the following statement: SELECT COUNT(User ID) from tableUserID I thought Distinct imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails syntax "render json: @products" I've been using rails in windows for some time, and i've decided to try it on linux recently. So i've been setting everything up, but now the project i had created on windows doesn't run properly on ubuntu: it fails to interpet the following syntax: render json: @products Produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Razor intellisense and code formatting with MVC 4 I have just integrated MVC into my Asp.Net website project. Its working, but my Razor code is missing formatted as code (e.g. yellow background for the @ character. Additionally there is no intellisense: Here are my MVC related references from web.config <add assemb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Writing Views using Jquery UI widgets Our company is about to start a new web based product on asp.net mvc. We have different clients who require different themes on our application. To make user interface to support different themes, we are thinking to develop our UI completely using JQuery UI widgets (buttons, dro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What may be the reason for JMS or OS not to recognize connection drop? We have a system with servers communicating over JMS. Sometimes some of the servers can not reconnect after loosing connection to JMS. Loss of connection happens when server restarts, bad network... The reason that prevents reconnecting is "Clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when trying to install RVM on Linux Mint: No command RVM found I'm following this tutorial: http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/ When I get to the part where he tells us to modify the .bashrc file, I get stuck. For one thing, the .bashrc file is nowhere to be found. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert a json formatted string into a json array in javascript I am using the $.post() method to retrieve a json formatted string which looks like this: {elementid:10},{elementid:11},{elementid:12},{elementid:14},{elementid:15} In the success callback function of $.post(), I would like to loop the values of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: An alternative to Android's webview Does anyone knows an alternative to Android's webview component ? For some reasons, it's functionality's are insufficient for me : I need to be able to catch every single request to some url, when i'm browsing a wml page (wap). Anyway, I need to be able to do stuff that Android's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Change language of the ios application I've put my app settings into iPhone Settings panel. I want to switch between languages independently of the iPhone system language. Is it possible? I'm using this advice: How to force NSLocalizedString to use a specific language But it translates only string inside app, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: does not recognize query string containing ' I am querying some data from the database and inserting data. Whenever the user inserts with ' I have a problem that the query does not regconize. How can I get rid of that? should I use: string.replace(''', '"') ? or any other trick? Thanks in advance. A: You should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: moq returning dataReader I'm having a strange experience with moq/mocking. Im trying to mock the data going into a method so that i dont have to have adatabase available at test time. So im loading in some data ive previously seralised. Loading it into a dataTable, then creating a data reader from there, because my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking if Two Massive Python Dictionaries are Equivalent I have a massive python dictionary with over 90,000 entries. For reasons I won't get into, I need to store this dictionary in my database and then at a later point recompile dictionary from the database entries. I am trying to set up a procedure to verify t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to load data while scrolling horizontally and on a DIV overflow? I’m working on this horizontal scrollbar that grabs content from the database when you scroll to the farthest right. Here's an example of what we want to do: http://designarchives.aiga.org/#/entries/%2Bcollections%3A%2250%20Books%2F50%20Covers%20of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sorting an NSMutableArray of objects in cocoa gives SIGABRT I am creating a program that requires me to build an NSMutable array and then add objects to that array as buttons are clicked. After the user has clicked all the buttons that they want (therefore adding all the objects that they need into the mutable array...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generic method with a generic interface I'm trying to create a generic method where the type is a generic interface. private void ShowView<T>(string viewName) where T : IView<Screen> { IRegion mainRegion = _regionManager.Regions[RegionNames.MainRegion]; T view = (T)mainRegion.GetView(viewName); if (view...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: It seems that I have a rounding issue with SAS PROC FORMAT It seems that I have a rounding issue with SAS PROC FORMAT. The code is as below: proc format; value testf -1.85E-13--1.85E-13 = 'negative' 0-0 = 'zero'; run; data test; input number best32.; cards; 0 ; run; data test2; set test; f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP pass a var into $_FILES inside function I am working on an admin area that will have file uploads on several pages. Regardless of the name of the form field I want to do some specific processes, but I'm a bit stuck on how to do this in a function. I have the code below, which I knew going in wouldn't be correc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect IBeam cursor Is there a way for detect IBeam cursors on windows from c++ code? I wonder is it even possible, for example just the MS Word has several IBeam like cursor (eg. text near or below the IBeam). Thanks, Abe A: I think there are two ways you can go about this, the easier way requires Vista. Both sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write a jQuery/JS function so that it returns a value? How do I write a jQuery function so that it returns a value that I can access outside the function? I did something like this but when I tried to access it outside the function, it says "undefined": $(document).ready(function(){ function add(y, z) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling Service Now Webservice with .Net I am trying to call Service Now's webservice from .Net and I can make it work fine for inserting a record, but I can not get any GETs to work. Here is my working INSERT code: public void insertTable(string tableName, string schema, string columnInfo, string shortDesrcipt, st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamics CRM 2011 E-Mail Router & Exchange 2010 Cluster Error "Incoming Status: Failure - No results were found" I have what seems a common problem setting up the router to handle incoming mail, but after spending a couple of days implementing the suggestions I ran out of ideas. The situation is as follows: All oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extjs, How to remove tab panel's content I want to destroy the tab panel's content because when I open the panel again, it remains the before contents. so it show 2 same content. So I want to put the code to destroy tab panels content into beforeclose event handler. and I tried like this, tempTab.on('beforeclose',fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to make a php array I tried transfer $str to be an array group. $str = '1,2,3,4,5'; print_r(array($str)); //this get Array ( [0] => 1,2,3,4,5 ) I tried compact print_r(array(compact($str))); // Array ( [0] => Array ( ) ) but how to make $str to be Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SVN without server for our Visual Studio development Security is not an issue for our small team. Is there any compelling reason why we might need to use an SVN server of some sort, rather than just using files on a network share somewhere? EDIT Sorry--I don't think I communicated very well. I want to use SVN for ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get Files count from FileSystemWatcher Created event? I'm wondering if there's a way to get the amount of files that are going to be copied? What I mean is following... I'm writing an app that contains grid, which functions like windows explorer. When I'm drag-droping files, they are copied to a destination folder a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building queries with PDO? I have some ancient code which I want to convert to PDO: <?php function build_query() { // db connection here $the_query = ""; if ( empty( $_GET['c'] ) ) { $the_query = "select * from table1"; if ( ( isset( $_GET['y'] ) ) && ( isset( $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error using Code-first in EF with an Existing Database I followed Using EF “Code First” with an Existing Database tutorial step by step but getting the following Error : Invalid column name Category_CategoryID Following is the code Excerpt : public class Product { public int ProductID { get; set; } public s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Minimum time lock in java I'm looking for a way to limit access to a method in java to no more than once every X seconds. Here's my situation : I want to run this code in parallel with multiple threads : private MyService service; public void run() { // Send request to remote service InputStream response = s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Object Not Found Exception in hibernate I am really stuck at this error org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.my.farmer.vo.crop.CropProfile#genus] at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:375) at org.hibernate.event.def.Def...
{ "language": "en", "url": "https://stackoverflow.com/questions/7611896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }