text
stringlengths
8
267k
meta
dict
Q: jquery ui: Is there a way to distinguish a 'real' event from an api call? I am using tabs from jquery ui where a select-callback is included, working as expected. At one point of the script I need to do a select-method call that also triggers the callback which is not wanted at that point. What I am looking for is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: T4MVC and testing with MvcContrib.TestHelpers issues with static linked content I'm trying to write some tests around some code previously written before I start mucking with it. I'm running into issues where the controller method references some of the static variables that T4MVC makes for images and links. It is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to scale text's size along with TextBox's size in the WPF? When I resize Window of the WPF application, all textboxes are also resized. The problem is that size of the text in the textboxes doesn't change. How can I achieve scaling the size of the text along with the size of the textboxes? Edit: Actually, it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JFormattedTextField to format percent numbers? I would like to format a float number as a percent-value with JFormattedTextField that allows inputs from 0 to 100 percent (converted to 0.0f-1.0f), always shows the percent sign and disallows any invalid characters. Now I have experimented a bit with NumberFormat.getPe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to use php to make a request to another server and get its response? For instance user.php -> make a post request to a server http://www.exampe.com, example.com redirects to user.php and puts some post parameters as well to user.php. I want a function in php to do that? Anyone with a solution for me?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database schema of messaging application In my messaging application, The features I want to provide are: * *Sending a message to multiple people *Receiving message sent to a user *Showing message in groups divided by the users, Like in facebook message *But when a user will send a message to multiple people, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Pop navigation controller and select tab? Hi guys I have a navcontroller inside a tabbar. When I select a button inside the root view controller I push another view controller. In it I take some user input and have a finish button. My problem is that when the user selects this button I want to go straight to anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to add window android.view.ViewRoot$W@44da9bc0 -- permission denied for this window type I have prefer this post for example but I got the error at adding viewgroup into the windowmanager object, I have used the same class for the Service as posted into the question with no change where I can mistake I didn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Creating a closure I want to create a closure (function generator) to raise a number to a power, without using a specific Clojure library to accomplish this task. Right now, I can do this with loop .. recur. (defn exp1 [in-num in-exp-multi] (loop [num in-num exp-multi in-exp-multi] (if (> exp-multi 1) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: cancan & many_to_many associations I'm trying to write a rule for many_to_many association. Because of the association table some results are duplicated. The code in my ability is: I have many Users that have many Groups and i want to show all Post that their author belongs to a group the same as the current_user's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how important is it to declare the correct variable type If I have a number only between 1 & 10 is it overkill declare it as int or should you use short, Long, sbyte? int x = 5; or sbyte x = 5; A: int is handled faster on 32 bit processors, since its size is equal to CPU register size. If you don't have additional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with style on GWT Designer I'm trying to create a login view with GWT Designer. I have the styles using twitter bootstrap. I have this structure I have this result This padding and margin are killing me, I have all css with padding and border set to 0 but it makes no difference...and I have also set those ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set setMaxMapTaskFailuresPercent in hadoop's new api? Before, you could set max failures percent by using: JobConf.setMaxMapTaskFailuresPercent(int) but now, that's obsolete. job.getConfiguration().set("mapred.max.map.failures.percent", "100"); doesn't seem to work as well. What is the proper way of doing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC 3 multilingual website with Mustache templates Was just wondering what the best approach is when creating a multi-lingual website that uses Mustache templates (or any other templating library). If for example you had the following template: <table class="tablesorter zebra-striped"> <thead> <tr> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sharedobject don't remember data? I have this code for sharedobject: var mySharedObject = SharedObject.getLocal("republicofcode"); mySharedObject.data.clientID = my_vars.clientID; mySharedObject.data.question = my_vars.question; mySharedObject.data.answer = my_vars.answer; mySharedObject.flush(); Next time when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: schema and table design with auto_increment field that is not a key I've an invoice number, this number is associated to a special document. This document has an id, formed by a progressive number and the current year, like this 222-2011 223-2011 224-2011 ... every year the progressive number restart from 1 1-2012 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Forking an Apache License v2 open source project and copyright notices I'm planning to fork an open-source project which is licensed under Apache License v2. Most of the existing sources have a copyright notice in the heade, Copyright bla bla, Inc. If I change some these sources in my fork (even if only marginally),...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What encryption method should I use on iOS Android Apps: AES128 or 3DES I have been given the choice by a client of AES128 or 3DES encryption. I have to roll it out on both iOS and Android. Which will be easier to do? Are there libraries for both iOS and Android? Full or Partial answer would be great (i.e. if you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to unload the files loaded by the "require" statement in rails I have bunch of classes files = ["payment_type","payment_type_ticket_mapping","price_modifier_ticket_delta_mapping","user","revenue_type","revenue_type_group","tax","tax_type","punch"] files.each {|file| require file } that are required to fulfill ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sharepoint 2010: Programmatically access a documents metadata via a link Is it possible to (in code) access the metadata of a document stored in a library via a link to that document? A: Get SPFile object using the SPWeb.GetFile method, then use the Item property of that object to get access to the ListItem accompa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE7 & IE6 CSS bug I have a problem with our website at www.eat.vn. The site is fine in Firefox, Chrome, IE8 & IE9 and Safari, but in IE6 and IE7 we have a problem with a main design element. Please see the attached image and you will understand that the stacking effect on the tabs is not what I wanted. I have tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: matplotlib, rectangular plot in polar axes Is it possible to have a standard rectangular (aka Cartesian) plot, but displayed on a polar set of axes? I just want the masking appearance of the grey border provided by the polar() function, but I do not want to convert my coordinates to polar, and use polar(). A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android View.Gone doesn't works I have a problem with a textview in android. I made programatically a tablelayout, and i made 9 tablerows in a for (while i have data... make more tablerows). I have 8 columns with data, thats ok. But i have 3 columns that i want to put invisible, because i want data from that textvie...
{ "language": "es", "url": "https://stackoverflow.com/questions/7570002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Algorithm to multiply 64-bit numbers using 32-bit unsigned integers I have 64-bit numbers (63 bits + sign bit), represented as two's complement numbers, stored in two unsigned 32-bit integers. struct Long { uint32 high; uint32 low; } How can I implement a multiplication algorithm, using just 32-bit numbers,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Control Scaling Problem in Windows 7 I have some custom user controls in my .net winforms program that do not display correctly when the user has selected larger text size. This setting: My controls look like this, Instead of like this, The bill to area and ship to area are both custom controls. I don't know if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subtract SQL DATETIME from datetime.now() in Python I have a DATETIME field in SQL. Its content is: 2012-08-26 13:00:00 I want to know how much time has passed from that date until now. In Python 2.7, it's easy: import time,datetime start = datetime.datetime.strptime('2012-08-26 13:00:00', '%Y-%m-%d %H:%M:%S') end ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hibernate/JPA persistence.xml leads to SAXParseException when deploying to Jetty as WAR I'm having trouble getting an application running on Jetty. If I run the app using the maven jetty plugin i.e. mvn jetty:run It all runs fine. If I package the app as a war and try to deploy to a Jetty server manually I get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get a hold on a nested span How can I get a hold on the h2 span element? div#content div.view-content div.view-row-item h2 span { ... is not working... A: If you're using FireBug, you can right-click the span tag and 'copy css path' and that will give you the complete path to the element starting from 'html' A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Random select value in array and next apply to jQuery function I have this function that returns a random color, but I want to apply it to jQuery .animate() function. How can I do that? var colors = ["rgb(120,25,25)", "rgb(50,100,130)", "rgb(30,95,45)", "rgb(55,30,90)"]; function randomBackground() { return color...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate entity modification/deletion invalidates query cache involing same entity name? I read from some blogs that The timestamp cache keeps track of the last update timestamp for each table (this timestamp is updated for any table modification). If query caching is on, there is exactly one timestamp cache ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ErrorException: Catchable Fatal Error: Object of class could not be converted to string - Caused by dropdown menu but why? I have the following code, which retrieves the page slugs from the database which are needed to then create a related sub page: $builder->add('subtocontentoptions', 'entity', array( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Convert Excel macro to C#? I have an Excel file (.xlsm) with a macro in it. I want to upload this Excel file onto a server and have C# do it's work on it instead of the VBA macro. The macro looks pretty simple, but I do not understand it well enough to convert it to C#. Below is the macro code: Sub publishpages() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Search into a database using a form with various options I have an .asp page and I am using VBscript. basically I have a database with country, partner type and phone columns. I know how to load these into a recordset and display them into an .asp page. I am using a dropdown for Partner Type and Country, and I am u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing an array of strings from managed C# to unmanaged function using P-Invoke Is it possible to pass a string array from managed C# to an unmanaged function using P-Invoke? This works fine: [DllImport("LibraryName.dll")] private static extern void Function_Name(string message); While this: [DllImport("LibraryNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mysql Query is searching for column name instead of value What's wrong with this query? SELECT `category`, ( SELECT `name` FROM `city_names` WHERE `city_code`=`units`.`city_code` )as `cityName`, `email` FROM `units` WHERE ( SELECT COUNT(*) FROM `pesqui...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generic mapper instead of having numerous individual mappers I am using ASP.NET MVC 3 with Razor and Autofac for dependency injection. I am thinking of creating a generic mapper. Currently I am using AutoMapper for the mapping between my domain and view model. It can be any mapping framework, but I am using AutoMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Initializing several ivars of the same type with same object? So, this is pretty standard memory management, from what I understand: ClassName *temp=[[ClassName alloc] init]; self.ivar=temp; [temp release]; This is to avoid the memory leak created by just doing this: self.ivar=[[ClassName alloc] init]; Cool. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help with Selenium Webdriver download? I have Selenium IDE and i want to install Selenium Webdriver. 1) Can anyone tell me where can i download selenium webdriver. i don't see any link available in the documentation. 2)Can i use selenium webdriver with PHPUnit? I see some materials saying php is not supported in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to rotate view to landscape mode in block-based animation My application contains a Tab Bar Controller and Navigation controller. Its totally in Portrait mode. Now I have a table view in 2nd tab, clicking on each row of table view will push another view controller which will show a graphical chart, now I want th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Servlet and serial port We need to develop centralized device management based on java. So Could you tell me how to write servlet to read serial port from client with usb token? A: Not easily. In order to access resources on the client outside of the protected "sandbox" in the browser you will have to do it using a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recover unconnected tables from ibdata1 I'm encountering data loss of mysql, below is the steps: 1.I converted Table_A from MyISAM to InnoDB (with innodb_file_per_table OFF), saw the ibdata1 size increased; 2.Turned ON innodb_file_per_table; 3.Converted Table_A to MyISAM back, ibdata1 didn't shrink; 4.Converted Tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# code to execute code in another application domain? I have a program that executes for 24 hours, then restarts. How can I shift main() from into a separate application domain, which is torn down and refreshed every 24 hours, in order to completely eliminate any potential memory leaks? A: I've created a class tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In C#, how can I access an object's objects when bracket notation doesn't work? I have an object of objects, and I'm not sure how to access the values. Here's a picture from the VS debugger: the object in question is bounds. I'd like to get the value 7, 14, 157 and 174 like so: bounds[0] //Should equal 7 bounds[3]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Magento - Upload file during registration I want every user, that registers on my Magento instance, to upload a certificate that shows me that he registered a business. I already added the fields in the template. But how can I fetch the file and save the filename / contents in the customer record? Is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the alternative to putting UIWebView inside UIScrollView I have gotten UIWebView inside UIScrollView to work, so far anyways, and I have just seen mention on Apple's site that doing so is not advised. So OK, what's the alternative? I need to display web pages, and I need them to be scrollable, such that if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Replace Text Inside Tag with No Attributes I'm looking to replace the text inside a <nobr> but I can't figure out how. It would be easy if I could do: $('nobr:contains("Due")').replace('Due Date'); but there's another <nobr> that has the word "Due" in it and I don't want that affected. What's the simplest wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is my AJAX content already crawlable? I have build a site based on Ajax navigation. I have build it that way, that whenever someone without javascript visits my site, the nav links, which usually load content via Ajax, are acting like normal links and the user can browse through the pages as usual. Since, Google bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove the strange border from shadow in Firefox? See this fiddle in Firefox http://jsfiddle.net/qwbpZ/4/ On hover you will see this grey line It's fine in Google Chrome but this grey border is appearing in other browsers. How can I solve this? CSS a, a:visited {color:#fff} .btn { display: inline-block;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ASP.NET MVC view state Can anyone explain me how view state is handled in ASP.NET MVC 3. I know that in MVC view state is not there. But just wanted to know how exactly is the data handled from one page to another page. For eg.: I have two view in my classes "Create" -> creates a new person and "Index" -> displays t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Manage static Resources in spring mvc I am building an application with Spring MVC and jquery for UI. The UI developer is designing the pages using jQuery without using any server (as it is not required). The pages are integrated by developers in the application. The issue here is that the UI designer is using rela...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do single-sign-on (SSO) between two web apps, PHP and Java EE? I have an existing Java EE web application running on GlassFish 3.1. Sign in works fine through the jdbcRealm configured in GlassFish 3.1. Someone on another team is developing a separate web application in PHP, the boss doesn't want the user of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dynamic modal height with SimpleModal I'm using SimpleModal to display a modal whose height needs to change in response to a dropdown list change in the modal that repopulates a portion of a dialog. The problem I'm running into is that SimpleModal doesn't resize the height of the modal when the selection changes. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use System::Net::Mail in console application How i can use this >> System::Net::Mail; namespace in c++ console application? Maybe im asking fool question but im new in cpp please help A: see msdn static void CreateTestMessage2( String^ server ) { String^ to = L"jane@contoso.com"; String^ from = L"ben@con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Apache Logs: Count top 10 URLs by bytes served I have an Apache log format file. Example string: fj5020.inktomisearch.com - - [01/Oct/2006:06:35:59 -0700] "GET /example/When/200x/2005/04/27/A380 HTTP/1.0" 200 4776 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" where 4776 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't my tests working for this form? In Firefox, if I try to submit a post without a title, I get: 1 error prohibited this post from being saved. But when I run my test. It's a different story. My Post model has validates_presence_of :title. My test looks like: require 'spec_helper' describe 'Users' do it '...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why do I need to define custom constructor? If I have a class, let's say, extended from DialogFragment and define custom constructor for it, why should I define a default one? If I wouldn't I get the error message if runtime change occurs. A: I suspect the problem is that in Java, the compiler creates a parameterl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Putting image tags into php Hello im using page nation which is amazing but now im trying to print off there avaratar im using this code echo "<IMG SRC=\"$list['avatar']\" WIDTH=\"268\" HEIGHT=\"176\" BORDER=\"0\" ALT=\"\" \/>";; but im getting this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to omit some objects from the index with Hibernate Search? We want to enable fulltext search on a Hibernate database for only some objectes of a specific entity. Is there a way to prevent hibernate search from indexing some instances of this entity? We do not want to filter the search results, we just want some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: parent object specific layouts I'm developing a rails app with a model consisting of items that belong to companies. There are multiple users for this system and I want any user who logs in and looks for a specific item (belonging to a company) to see the company logo and letter head etc. as background. i.e. each it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best strategy for automating multiple builds from a single white-label xcode project? I'm researching the best approach to automating our build process. I've got my own ideas (through experience on a previous non-iOS project) but need good arguments for and against various possibilities. Objective: A single xcode pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Repository Pattern and MVC help I'm new to C# and ASP.NET MVC and i'm trying to understand the repository pattern. I've read a whole lot of articles, but I just don't understand how to use it. I'm currently using LINQ to SQL to access my SQL Server 2005 database and for testing purposes I created two tables. I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to place different JQuery codes in one line? How can I put this in one line? $("#welcome").delay(100).fadeIn('slow').delay(100).$("#slogan").slideDown(1000); The following code works: $("#welcome").delay(100).fadeIn('slow').delay(100); but not if I place the slogan code after it. A: Use callback function of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to store/set configuration settings for a C# application? I have some values that I want to be able to set, and the application to load them from some kind of file. The only concept I can think of, is a simple txt file, that might have the following lines: DatabaseName = "DB1/test" DatabasePassw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: A demo page for latest WebSocket protocol I've been searching all over the web for simple page that demos WebSocket. But all the examples I find seem to support an older protocol, failing to work in Firefox 6 and Chrome 14. For example: http://html5demos.com/web-socket I'd just like to see some workable demo somewhe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: include function xy() of a wordpress plugin I want to build a WordPress admin dashboard widget which should return some information from another plugin. This dashboard widget should read the functions of this plugin here: http://plugins.svn.wordpress.org/wp-document-revisions/trunk/wp-document-revisions.php So my co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object returned from function and copy constructor There is such code: #include <iostream> class A { public: int a; A() : a(0) { std::cout << "Default constructor" << " " << this << std::endl; } A(int a_) : a(a_) { std::cout << "Constructor with param " << a_ << " " << this << std::e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove "Welcome to"... on Drupal's seven theme I'm trying to remove the text "Welcome to" on the Drupal theme seven. I want to keep my site name though as it stands it says "Welcome to Site Name" at the top left. I just want it to say "Site Name". A: this text will be removed automatically once you create a new co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a nested JSON request with Python A user needs to pass a json object as a part of the request. It would look something like this: {"token" :"ayaljltja", "addresses": [ {'name':'Home','address':'20 Main Street', 'city':'new-york'}, {'name':'work', 'address':'x Street', 'city':'ohi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does Facebook have a maximum number of API connections? If the answer is yes, then what is it? By maximum number of connectioned allowed per application I mean how many instances of the same api/key can be used to get the friends list at any one time, will Facebook block too many requests? EDIT I have been looking a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Comparison gives different results in Coffeescript/Javascript and Ruby Example: [42] == [42] The result of the comparison gives different results: CS/JS: false Ruby: true On the other hand: 42 == 42 gives the result: CS/JS: true Ruby: true What is the reasoning behind this? A: The other answerers have done a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to declare structures of data that should only be used in a certain context, C++ I'm having a rather general design problem and would like to solve it nicely. I'm writing remote control drivers in an embedded C++ project. There will be two types of remote control: joystick or radio. As I'd like the actual remote...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to map an XML to Java objects by XPaths? Given the XML example: <fooRoot> <bar> <lol>LOLOLOLOL</lol> </bar> <noob> <boon> <thisIsIt></thisIsIt> </boon> </noob> </fooRoot> Which should be mapped to: class MyFoo { String lol; String thisIsIt; Object somethingUnrelated; } Constrain...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Downloading files in a webpage I need to make the user able to download a file from my webpage on clicking a link on my website I tried <a href='./image.ext'>Download file</a> By it just opened a new window and i need to right click and select "save page as" What I am expected is ,after clicking my link user mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Please give me some advice on how to evaluate a maximum region which covers all given regions? Suppose I have dozens of geographic regions, which can be defined through the use of the following c/c++ structure: typedef struct tagGEOGRAPHIC_REGION { float fNorthMost; float fSouthMost; float fWestMost;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Validate and Ajax - resetting validation after fail I have a form using jQuery and the Validation plugin. One element uses Ajax to check if a username is in use. When testing with a username known to be in use, it works correctly and highlights the field stating the username is in use. However, when I chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unable to use Diazo (plone.app.theming) on Centos I made a webportal on my mac using plone4.1 and Diazo. Now, I'm trying to deploy it on my server (CentOs) where there is yet another site with plone4.0.5 + collectivexdv. When I run the site (in a brand new buildout) with my diazotheme I obtain this lines via shell (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CSS z-index not stacking correctly I am having trouble with CSS z-index stacking. HTML: <ul> <li><a href="#">Title 1</a></li> <li class="dropMenu"><a href="#">Title 2</a> <div class="containerDropDown"> <ul class="menu"> <li><a href="#">Lorem ipsum link</a></li> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make loadingDialog disappear when twitter4J page completes I'm using Twitter4J and a WebView. A circular progress bar (spinner) is displayed in onPageStarted. This dialog is hidden in onPageFinished. The problem is that the spinner never disappears. Adding logging statements to onPageStarted and onPageFinished, this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Additional Cell Actions in Excel 2010 I'd like to extend the MS Excel 2010 by adding some more "Additional Cell Actions". (accessible via cell right-click > Additional Cell Actions). Specifically, I'd like Excel to: * *recognize five-to-eight digit numbers as Part Numbers with action: "Open URL to technica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 32-bit dll not working in 64-bit os I created a dll file built (Project:win32 app, ATL and COM object using Visual studio 2008) in 32 bit. In win 7 32 bit OS, After registering my dll i'm getting "ABC" option in context menu(on right click). Now i move to win 7 64 bit OS. Dll loaded successfully, but i'm not getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Indoor tracking (IMU + tags) this is another question about indoor tracking using inertial (smartphone + aceel + gyro) Firstly, I would like to say that I have read almost every post on stackoverflow talking about this subject. And I know that to track a position We will have to integrate TWICE the accel and that is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to configure an Ultra Sonic Sensor in Matlab? I would like to Configure an ultrasonic sensor for triggering purpose in matlab. How to configure the ultrasonic sensor for triggering Video capturing device ? A: you'll have to configure & access your device via the data acquisition toolbox.
{ "language": "en", "url": "https://stackoverflow.com/questions/7570205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Organizing application in layers I’m developing a part of an application, named A. The application I want to plug my DLL into, called application B is in vb 6, and my code is in vb.net. (Application B will in time be converted to vb.net) My main question i, how is the best way for me to organize my code (application...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC 3 Razor - Windows Authentication Failing Every Request I've been fighting this issue for far to long. Basically, I'm building a corporate intranet site (first one in MVC 3) and I cannot get any authorization checks to function. Even the basic "Intranet" project type fails to work. Interestingly, the "Wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting with Javascript whether a Browser supports Web Open Font Format (Woff) or not i have to detect with JS (jQuery) wether a browser supports Woff and then add a class to the body. Something like this: if(woffIsSupported){ $('body').addClass('modern'); } is this somehow possible? Thank you for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: OpenGL ES stencil operations In reference to the problem diskussed in article OpenGL clipping a new question arises. I am implementing the clipping for a node based 2D scene graph. Whenever the clipping boxes are axis aligned I am using the glScissor like proposed in OpenGL clipping. I have sucessfully implemented ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git restore file date creation after clone on windows I have my remote repository on win server 2003 and after cloninig project from etalon all dates of file creation became dates of cloning. This is OK, but I need to restore dates of creation for files as dates of the first file commit. As I know there is some ways...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any reason to write a database column between square brackets? I am maintaining a database created by another person in SQL Server. In one table I found a column whose name is between square brackets. The name of the field is desc and it is stored in the table as [desc]. The other fields are stored without ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I access private constants in class attributes in VB.Net? I have an API that I created and currently utilize successfully in C#. I am trying to create an example of interacting with the API in VB.NET (so that the QA without C# experience can still utilize it for creating automated tests). In C# I do the fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to guess the nationality of a person from the surname? What approach can I use to predict the nationality of a person from the surname? I have a huge list of texts and surnames of authors. I would like to identify which texts have been written by latin-language speakers and which texts have been written by nativ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Access Session in WCF service from WebHttpBinding I'm using WCF service (via WebGet attribute). I'm trying to access Session from WCF service, but HttpContext.Current is null I added AspNetCompatibilityRequirements and edited web.config but I still cannot access session. Is it possible to use WebGet and Session toge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MVC 3 routing help with dynamic route Im trying to do something like this: routes.MapRoute("Product", "{product}/{id}", new { action = "Product", controller = "Home", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Linkify text - Spannable Text in Single Text View - As like Twitter tweet I have a textView and text like "This is the Simple Text with KeyWord and the Link to browse" in the above text i want to make.. clicking on the Link goes to open that URL AND clicking on that KeyWord open a new Activity in my applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Apple Push APNS Sometimes not arriving I have an app which is already on the app store, I also have a server that sends push notification to the iphone. My problem is that sometimes, the notification does not arrive to the iphone, and this only happened after there was no apns communication to the apple push server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resize parent view if subview changes size I'm new to Cocoa and I'm programming a custom InspectorView. A parent view (InspectorView) contains several subviews (InspectorCategories). If I uncollapse a category (subview) I have to resize/relayout my parents view? I found out that this is not possible through autores...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I render page in IE9 as IE8? I am trying to render a page in IE9 as IE8, as I am seeing some strange rendering in IE9 which I am not sure how to sort out at the moment. I am using this meta tag: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> But I am still seeing the rendering issue in IE9, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handle a link in the Android browser/webview to start directly an application I want my application to be opened from a link, by following the directions of Make a link in the Android browser start up my app?. Well, it works fine (most of the time.... this is the reason I am asking for help). My html link is <a href...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails - Store unique data for each open tab/window I have an application that has different data sets depending on which company the user has currently selected (dropdown box on sidebar currently used to set a session variable). My client has expressed a desire to have the ability to work on multiple different data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get access to embedded assembly's metadata using IMetaDataDispenser.OpenScope? I have a .NET solution which consists of several projects. It's possible to say that one of these projects is logically a primary one and all others are secondary. Our team has decided to build the project the next way. The main pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jqgrid .clearGridData() not working in firefox I am using jqgrid 3.6.4. The following is a snippet of my code: jQuery("#lookupTable").clearGridData(true) .addRowData('id',objArray5); The problem that I am facing in firefox and chrome and not in IE, is that the grid is not getting cleared....
{ "language": "en", "url": "https://stackoverflow.com/questions/7570261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }