text
stringlengths
8
267k
meta
dict
Q: Wordpress: WP_Query search criteria on 'post_name' I'm using WP_Query (pretty standard). It all works great. However, I have a particular modification to make, where, if the user enters the specific post name in the URL, the search will return only the post that matches that post_name value. See my code below with a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using PHP, how can I make a cookie expire after the browser is closed? Using PHP, how can I make a cookie expire after the browser is closed? A: Just don't set an expiry time. That will make it a session cookie. This is mentioned in the documentation for the expire argument to setcookie: If set to 0, or omitted, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Custom JSP tag does not render dynamic body content I have created a new JSP tag (in a Struts 1.2.9/Java 5/Tomcat 5.5 web application), which renders content within the tag body, when the logged-in user has one of the given roles. <?xml version="1.0" encoding="UTF-8"?> <%@ attribute name="userRoles" rtexprvalue="fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp menu control not looking properly in view page source from browser I have a problem with asp menu control. I want to display my menu orientation as horizontal. It is looking fine when i debug, but when i see the viewsource of my page it is displaying vertically and my sub items also displaying. See the below two...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I control column size for enums? This is with EclipseLink via JPA, where I let it create the tables for me. The back end data base is Derby for development mode, and I expect to use MySQL or something else for deployment. In my entity I have an enum: @Entity public class Thing implements Serializable { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring Import Can't See Resources I'm using Spring to handle my dependency injection and I am currently writing a jar that makes use of a homegrown logging-1.0.jar that I also made some time ago. I am writing this inside Eclipse, which may be important. That logging-1.0.jar has a critical config file in it called lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternatives to NOP for shellcode nop sleds Does anyone know of any online source that provides instruction alternatives to a NOP opcode ? Like 'xchg ax, ax' and the likes. I'm pretty sure that there is also a tool for it, can someone point me to that direction please ? A: Some shellcode engines contain nop sled ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Control Android TextView visibility run time programmatically In my Java Android application, in run time according to a condition I need to setvisible false in a TextView. How to do it run time programmatically? A: You're looking for the setVisibility method in View. textView.setVisibility(View.GONE); textView.set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Why are my requests from urllib2 delayed with Apache2? I'm dealing with two internal web servers, one running Apache2 on Ubuntu Server 10.04, and the other IIS on Windows Server 2008. When I hit either of the root URLs from a web browser with a cleared cache, calling the server by IP address, both pop up with no de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: submit form in spring MVC by clicking on Link Is there any way to submit the form in spring MVC by clicking on Link or do I need to use the javascript submit method Thanks A: Use JQuery on submit function as the event on url click: $('#formName').submit();
{ "language": "en", "url": "https://stackoverflow.com/questions/7600269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Break activity classes into multiple files This is the main activity I am trying to move like classes to a new file Once I do, I am not able to successfully call the class The following code generates a null pointer, though the pointer is not null I cannot simply change the savedTrainInfo class to static be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java: How can we create callback function when "function pointer is prohibited"? Possible Duplicate: What's the nearest substitute for a function pointer in Java? Callback functions in Java I would like to ask some concept of the term callback. What is the main purpose of using callback? Is it only for doing some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to change PRIVATE data memebers of a CLASS illigaly? Possible Duplicate: Is it possible to access private members of a class? Is it possible to change PRIVATE data memebers of a CLASS without Member function or Friend function,by creating object of that class and accessing address of that created o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way of limiting the depth of the trace generated by xdebug? The question says it all, really. I am trying to figure out why a php app is misbehaving, but the sheer amount of data thrown at me by xdebug makes it hard to understand the flow. If I could set the depth of the trace such that any call more than...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: nUnit Exception on a 64 bit Machine I have an MVC 3.0 app. My testing framework is nUnit 2.4.8.0. I started this code on a 32 bit machine, and recently started using a 64 bit machine. I just as recently upgraded the project to .NET 4.0. My application runs fine - I am able to hydrate my objects from the database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: In my string, there is a character that I cannot identify that seems to be a space (Regex) I have a string that I need to parse using regex. This string is: http://carto1.wallonie.be/documents/terrils/fiche_terril.idc?TERRIL_id=1 Crachet 7/12 What I try to do is to separate the url and the comment, so I tried: (\S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python: why "IndentationError: expected an indented block" for this code? Refer to Listing 9. Iteration and a dictionary >>> d = {0: 'zero', 3: 'a tuple', 'two': [0, 1, 2], 'one': 1} >>> for k in d.iterkeys(): ... print(d[k]) File "<stdin>", line 2 print(d[k]) ^ IndentationError: expected an indented b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: High performance "contains" search in list of strings in C# I have a list of approx. 500,000 strings, each approx. 100 characters long. Given a search term, I want to identify all strings in the list that contain the search term. At the moment I am doing this with a plain old dataset using the Select method ("MATCH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: removeEventListener() with a callback with a different context I'm writing a mobile app in PhoneGap, but there seems to be an issue with Webkit and its ability to remove event listeners from its event list when there's a scope context change on the callback. Below is an example: Function.prototype.bind = function(s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Valgrind memory leak reported in QT list append I am using a serializer in QT C++. It looks ok but valgrind (memcheck tool) is reporting a memory leak on this function. Valgrind cmd: valgrind --tool=memcheck --leak-check=full QDataStream &operator>>( QDataStream &in, QList<AppNodeRecord *> *objAppNodeListRecord) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a pid_t to a string in c I am experienced in Java but I am very new to C. I am writing this on Ubuntu. Say I have: char *msg1[1028]; pid_t cpid; cpid = fork(); msg1[1] = " is the child's process id."; How can I concatenate msg1[1] in such a way that when I call: printf("Message: %s", msg1[1]); The proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent javascript from being cached in browser I'm currently working on a webapp and the Javascript is revised fairly often. However, the changes don't occur until the browser cache is refreshed manually. Is there a way to implement cache-refreshing automatically through code for Chrome? Thanks. A: You can put som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android smoothScrollBy behaving badly I have a ListView that I am calling smoothScrollBy() on. 95% of the time, the smoothScrollTo() behaves as intended. However there are times that it does not end up in the intended spot! I have verified that I am giving it the same value. I notice that the smooth scrolling is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Find Command that returns line number of the string I have a bunch of files organized into directories..All these are text files (c/c++). I am trying to understand this code and i need to look at the declarations of many variables..How can i use find command to get the exact location( File Name with line number(s) )...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Wordpress Sticky Posts with Custom Post Types So i need the ability to have a featured or "sticky" post in wordpress, and it occurred to me! Why not use the Sticky Posts facility, but after doing a bit of reading it seems that Wordpress decided to not include support for it in latest releases and they don't seem to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to sort search result in reverse order of publication date in Google books? Google books provide sorted by date option on the left column to sort searched books. But the result seems that publication date is in descending order ( from latest to oldest). This may not be fit for finding the oldest if there are tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What do I need to know going from Java to JavaScript? This isn't as progressive as it sounds. Im not taking the whole "Oh I know Java, that must mean I can write in JavaScript too!" attitude. I have some education on Java under my belt, but now find myself having to do some PHP web development (which I have little...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to invalidate or somehow refresh the cache on MvcSiteMap Currently I have an MvcSiteMap integrated with my ASP.Net MVC app. I need to be able to invalidate or refresh the cache to force a read of the MvcSiteMap. Currently it's cache is set in the web.config to X minutes. It would be nice if I could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issues with SBTableAlert.. It shows the alert but not UITableView I don't know if anyone has any experience with SBTableAlert. It looks awesome, but not much documentation. It is also not calling any of the functions that UITableView would use. Can any one help with following code. //load the bookmarks and setup th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there usually include_path/htaccess restrictions on hosts? My .htaccess file looks like this: php_value include_path "/home/username/public_html/site" and is the same location as the include path. It's causing a 500 internal service error, but was working fine locally. I'm digging around to try and find somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sorting ListBox with MVVM code binding I have a ListBox which happily displays data using a code-behind MVVM object. However, I want to sort the entries and so I thought an intermediate CollectionViewSource might work. But instead the program crashes on startup. Original xaml extract: <ListBox SelectedItem="{Binding...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Chracter codes in sql 'like' queries? I have been putting some data I have into my database. One of the files was somehow corrupted or something - it randomly has the character with value 6, ACK, in various unexpected places in place of real letters. This is causing me various problems with duplications in my databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using JqueryUI slider to range filter Datatable results I am using the plugin the ColumnFilter to render filters for each column in Datatables. ColumnFilter renders two input boxes (From & To) in order to perform 'range' filtering of a table. I am trying to replace these input boxes with a jqueryUI slider but cannot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# 3.0 Casting an interfaced generic type Given these base classes and interfaces public abstract class Statistic : Entity, IStatistic { protected abstract IStatisticsRepository<IStatistic> Repository {get;} ... public class AverageCheckTime : Statistic ... public interface IStatisticsRepository<T> : IReposito...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a nonstatic member function? I am being told that I can't use the 'this' keyword in a class function. I'm coming from c# and i'm used to this working, but the compiler tells me that it can only be used within nonstatic member functions. D3DXVECTOR3 position; void Position(D3DXVECTOR3 position) { this.po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Rails API design without disabling CSRF protection Back in February 2011, Rails was changed to require the CSRF token for all non-GET requests, even those for an API endpoint. I understand the explanation for why this is an important change for browser requests, but that blog post does not offer any advice for how a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Values are incorrect while using String.Format I need to convert a decimal value into something like 0.3 = USDC000000000030 The code i wrote is as below. transactionAmount = String.Format("USDC{0}", ((int)(amount*100)).ToString("D12")); However, it is working for some values perfectly like the example given a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript: to change class width from 0% to 100% and from 100% to 0% non stop The code below changes the width of the "inner" class from 0% to 100%, so the bar is filled progressively with the green color. But this is incomplete because once the width is 100% I need it to go back to 0% and then to 100% and so on .....
{ "language": "en", "url": "https://stackoverflow.com/questions/7600353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting List of Volumes always Says C:\ Why The Following Code always reports C:\ although It reports different Device Name handle = FindFirstVolumeW(volName, sizeof(volName)); do{ wchar_t wVolName[MAX_PATH]; QString::fromWCharArray(volName).toWCharArray(wVolName);//make a copy of volName on wVolName ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSRS report to display Outlook type calendar - People x Days x Activities I am after a pattern/view/opinion/tip/weblink from an SSRS/SQL expert on how I might create a report that enables me to list something like the following: [----Person----]  | [29-Sep-11] | [30-Sep-11] | [01-Oct-11] | [02-Oct-11] | [03-Oct-11]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Symfony 2 unique validator I'm trying to validate a form with some fields that need to be unique - username and email address. If I submit the form I get a database error. I want to use a validator like I did for everything else - right now I'm trying to use custom getters and isvalidUsername functions in the obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Validating names in textboxes in PHP, HTML or Javascript When I type in a name in a textbox on a form, how can I validate that name before the user clicks submit? I see this all the time in CMS and in some forums and never been able to figure it out. Joe A: That depends entirely on what you want to validate. Are yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Browser unable to open php page? First of all I am showing the PHP code .... <?php echo ("hello"); echo exec("sendip -v -p ipv6 -6s 2001::100 -p tcp -ts 21 -td 21 2001::200 2> &1"); echo ("hi"); ?> When I entered the command through linux command line it is working fine.The command is sending a tcp ipv6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby on Rails and facebook I am trying to write a code in ruby on rails that would go into facebook and pull out data to populate my database based on key words that I manually add inside the code. Anyone has done something similar or can help me with it by pointing me towards the right direction? Also I need the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure Joomla 1.7 SMTP email with a google apps email address I have a fresh Joomla 1.7 install. I have a valid, confirmed, working google apps email that I can log into via the web client. I have pop and imap enabled. Configuration within Joomla Global Configuration Tab in the Mail Settings section is as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't figure out how to get rows based on column values that aren't identical My problem is this: Say I hypothetically have a table called fastfood which has one field called fastfood_chains that have values of "Awesome Wendys" and "Peanut Chuck" Then I have another table called fastfood_info that has a field "fas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jBCrypt fails to verify password I'm working on encrypting passwords for my application since the password will be stored in the shared preferences I found bcrypt and read a lot of good things about it but I can not get it to work I'm using jBCrypt. I followed the instructions and did this as a test String hashed = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display specific fields from a CSV file I'm very new to PHP. I have looked around at other questions but none of them seem to provide a solution, so hopefully someone can help! I have a csv file, but wish to pick out individual fields instead of displaying a whole column. Is this possible with php? My code so far (b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mvc logging: [LogRequest] vs OnActionExecuting i'm a .net/c# noob (long-time servlet/java developer) i need to add logging to my mvc application. i want it to be fairly cheap performance-wise, and simple to configure. what i would initially like to do is log each incoming controller action. it occurred to me that th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XPath Query C# to pull out nodes dynamically I am having to write a XPath Query to pull out the answer for a question based on the question id. The question id is passed dynamically to the query. I cannot use LINQ as the solution is in NET 2.0. Please find the XML file below <?xml version="1.0" encoding="utf-8" ?>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Modify UISearchBar width in a UITableView header I'm running the following snippet of code (in ViewDidLoad method of a UITableViewController) to create a UISearchBar and add it to a UITableView header. UISearchBar search = new UISearchBar(); search.SizeToFit (); // How to modify width? TableView.TableHeaderView = se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 generate migration - no up or down method Just learning rails, am on to migrations and it all started off pretty logically until I hit something odd going on in the code; rails generate migration AddRegionToSupplier The above produces a migration file with only a "def change" method in it. I googled this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to change/prioritize function execution in flex? So basically I have a component with my event dispatched: <components:MyComp id="Id" myDispatchedEvent(event)/> In script tags I have that function: private function myDispatchedEvent(event:Event):void { //Here I have my static function with title and handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pydev with Scapy Gives "Unresolved Import" Error I'm trying to write a program that uses the scapy modules. I'm using PyDev for my development but it keeps giving me errors when I import certain parts of the Scapy module. I'm pretty sure I have my import paths in PyDev set up correctly. I've looked at some of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sqlalchemy joined alias doesn't have columns from both tables All I want is the count from TableA grouped by a column from TableB, but of course I need the item from TableB each count is associated with. Better explained with code: TableA and B are Model objects. I'm trying to follow this syntax as best I can. Tryi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate list view I am developing a final year project and I am stuck at a point. I have to retrieve names of doctors from my database (MySQL database) and show it in a list view. I was able to establish a connection with the server and retrieve values, but when I tried to show the values in a list view, the applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Django to summarize Report I'm trying to produce a table that will show the total maturity amounts for each financial institution that a plan has. A plan is the term I use for person. So each person can have multiple investments. I'm having trouble creating a table that will do this correctly. Currently I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What source comments does Xcode recognize as tags? This is mostly for curiosity's sake. I've known for awhile that Xcode is capable of recognizing comments in the form of // TODO: Something I don't feel like doing now. Adding that line to the source of a file will cause that TODO comment to show up in Xcode's naviga...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How to send message to news feed with facebook sdk php I would like to send message to news feed of user, i'm doing it with the code bellow but it does not go to news feed, it only go to user page. <?php require "src/facebook.php"; $facebook = new Facebook(array( 'appId'=>'xxx', 'secret'=>'xxx', 'cookie'=>true )); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinRT - SnapsToDevicePixels? I can't find the SnapsToDevicePixels in the WinRT (.NET 4.5) framework for Windows 8. How come? Was it removed? Are there any other alternatives to decrease bluriness in Windows 8 Metro applications? A: Also see UseLayoutRounding. This can get rid of blurriness on images as well. A: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Detailed documentation of Z3 INI options Is there any detailed documentation of the INI options of Z3. I had to do a trial and error approach to figure out the best options for my QF_BV problems. I am still not sure if there are more options that would make my z3-run faster. It would be great if someone can point to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I read from a File to an array I am trying to read from a file to an array. I tried two different styles and both aren't working. Below are the two styles. Style 1 public class FileRead { int i; String a[] = new String[2]; public void read() throws FileNotFoundException { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot get context to launch intent I've made a separate class to launch and intent as the class I would like to launch the intent from is a thread and does not inherit from activity and would not launch startActivity. Every time I launch the app I get a null pointer exception for the context. public class ToLaunch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Switch focus between opened dialogs is there any way to programmatically switch focus between shown dialogs? To resume... I need method dialog.requestFocus(), but there is no some like that... Thanks... A: Well this thing that you want to do it is not user friendly you shouldnt do things like this. The dialogs are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent page scrolling when scrolling a DIV element? I have reviewed and tested the various functions for preventing the body ability to scroll whilst inside a div and have combined a function that should work. $('.scrollable').mouseenter(function() { $('body').bind('mousewheel DOMMouseScroll', function()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Strange Swing compile-time accessibility error Here is the code - import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingUtilities; public final class SetLabelForDemo { public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: is it possible for an app to insert an event at a specific date in Facebook Timeline? Is it possible for an app to insert an event at a specific date (in the past) in Facebook Timeline? A: You can publish an action on behalf of a user at a specific point in time by setting the action's "start_time" property to a da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Conditional Where statement syntax or some other solution @MallUnit is a parameter with value 'Unit 401,Unit 402,Unit 403' I would like to have a conditional where statement. Assume that before the AND there are other conditions that work just fine. Basically, if ScheduledMallUnitTypeID is null evaluate using the IN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SP2010 Client Object Model 3 MB limit - updating maxReceivedMessageSize doesnt get applied I am using Client Object Model to interact with Sharepoint 2010. When I tried to upload documents greater than 3 MB using Client OM, it gave an error Bad Request. Microsoft suggests this to fix the problem. I tried that and up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Regex to validate a string I'm trying to validate a string in an xsd that requires the use of a regex. The string will take the form of the following... JOE~PETE~SAM~BOB and the following are considered valid... JOE ~PETE JOE~SAM~ ~~~BOB JOE~PETE~~ also, each of the names between the ~ can only be a maximum of 6 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auditing HttpInvoker invactions The server, a stand-alone SE application running Spring 2.5.6 and an embedded jetty. Clients, Swing application, connects to the server using HttpInvoker. There are a lot of services exposed by the server and now, new requirements have emerged saying I need to log (almost) every invoc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Server timeout issue when getting a large amount (500000) of records from a SharePoint 2010 list I am working in SharePoint 2010, I want to get 500000 "Announcement" list items from the current spweb. I have a server timeout issue and the code is given below. SPList list = web.Lists["Announcements"]; SPQuery query= ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to prevent specific comma delimted values being parsed (C#) Possible Duplicate: Dealing with commas in a CSV file I am currently parsing values from a CSV file and adding them to a datatable. The csv file contains 5 columns and am parsing each row before adding it to the datatable. After parsing the csv, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net MVC3: Set up Routing to handle multiple unique ID's? I'm building an MVC application that consists of entities that can be referenced by two different unique ID's, an ugly system generated ID, and a more user-friendly 5 character "Short Code". For example, I would like my end-users to be able to type the fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any windows API to let me re-log in a "locked" windows 7? I've built a program running on windows 7 to communicate with a usb device "power mate". When I leave my computer, I always press "WIN+L" to lock my computer, and when I get back, I press "CTRL+ALT+DEL" and enter my password to log in the computer. At the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery and Restful WebServices Security I have a project with the following aspects: * *Frontend web application made in PHP, jQuery (Ajax) with a local database for aspects like end users authetication and configuration of the frontend web application. *Backend REST Web Services (running in other domain and mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Inner classes with method names and different signatures than the outer class I know how to get this code to work, but I'm curious why the compiler is not able to figure out that the call is to the outer class method: public class Example { public void doSomething(int a, int b) { } public class Requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: When hover too fast between elements, double elements show When I hover between elements very quickly, two or more elements will show. If move slowly, it works perfect. Here's the code: $("#services_menu a").hover(function(e) { var id = this.hash; $("#services_description div:visible").not(id).fadeOut('fast', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript loop json for value and apply if condition met If I had the following JSON, [{},{"param":"#content","value":"K2-12M","quantity":1,"q_id":3,"clear":1} {"param":"#content","value":"K2-12F","quantity":2,"q_id":3,"clear":0}] In js/jquery, how would I loop through, and if any of the items have "clear":0, then...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Effect of TCP_CORK I'm having a use case where I'm sending data via TCP/IP in one direction. I'm doing this via multiple send()-calls with very small (in relation to the size of an ethernet frame) payloads (without any flags for the send()-call). To prevent bloating up my small payload packets to the size of a full ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What HTTP header should a REST client pass for the IP Address of a web client? I am developing a web service that another group is developing a web front end against. My web service needs to do some IP Address logging of the web client, so I need the web front end to pass me the IP Address of the actual user in a H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Css asp:menu floating I'm having an issue with CSS (not sure). Actually I'm new to CSS, and I'm trying to understand it. Ok, let's take a look: * *I've created an WebApplication (ASP.Net web) with Visual Studio 2010 *And I decided to use the original template given by VS 2010 *I've tried to make the default men...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When Deploying MVC 3 Application to IIS 7 The index pages load fine but when I select Menu item 404 Error Pops I have BIN deployed my MVC 3 application to my local IIS7 server. It runs fine in Visual Basic. But in IIS 7 only the index pages for my views are accessible. If I select any menu item it throws this error:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTPS WCF Basic HttpBindings getting HTTP 403 I have an HTTPS webserver on WCF hosted under IIS 7.5. I have set the SSL settings to require SSL and ignore client certificates. When I try to add the web reference in Visual Studio, I get the following error. How do I fix this problem? I can see that it's trying to re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error Displaying Facebook Social Plugins Im having problems using the Facebook social plugins. If its important, I use GWT to display the code inside an HTML widjet I put this in my html <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d....
{ "language": "en", "url": "https://stackoverflow.com/questions/7600521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: Should I / What to throw when authentication is excepted? I am writing a small library, and in which I need to access several different type of files. While the access method itself is different for each kind of file format, they seem to have a lot in common, and I put an interface in the class hierarchy, in w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Draw background image in gtk - none of my attempts work I've been trying to set a background image on a gtk widget without success, even after trying 4 different approaches. The following program contains 3 approaches (the 4th approach involves no code). I compiled it using MinGW (g++ 4.5.0) and gtkmm 2.4. The APPRO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: trying to track down a Memory Leak using open CV and SDL The program main loop below is where I am having troubles finding a memory leak. I run Top and every time I loop through taking a picture and printing it, I lose memory that is never recovered even upon exit. I have run valgrind and some results are at the bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex: Optional HTML tags in HTML? I need to parse some values from HTML. I'm using the following regex to parse out some groups, but am having difficulty when there are optional tags in the middle of the HTML. I need some rule to pull out the values from repeated version of the HTML page, even when the optional tag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Add video to an iPad application Possible Duplicate: Using MPMoviePlayerViewController in SDK 3.2 for iPad I am writing an application for iPad. till now I have a splash screen then a home screen. Home screen has 6 buttons. Pressing a button on the second or home screen takes you to the third screen which has two...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange character rendered correctly in notepad, but as a control character elsewhere I have a .csv list of businesses. The file has some strange characters in. For example, in this field: Stocktonon-Tees, the first hyphen, between Stockton and on seems to be a character with the value 6 rather than a hyphen, with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Supply specific implementation to an interface dependency only for a specific component I implemented Decorator pattern on BooCustom public class BooDefault : IBoo{} public class BooCustom : IBoo { public BooCustom(IBoo boo) { } } than I have a component Foo public class Foo : IFoo { public Foo(IBo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails association I have following tables: create table files ( id int auto_increment primary_key name varchar(255) ) create table users ( id int auto_increment primary_key name varchar(255) ) create table admins ( file_id int user_id int ) I would like to be able to say get the user names of the file admin. How do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: call a function for :condition in association I want to display sent messages by the user. Problem is drafts and sent message contents are stored in the same table, so I want to put a condition on the following association from user.rb has_many :sent_messages, :class_name => "Message", :foreign_key => "user_id", :c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Explorer doesn't release IDataObject when doing a drag/drop I'm implementing drag-and-drop in my application. I'm having a problem with Windows Explorer not releasing my IDataObject after a drag-and-drop operation. To isolate the problem, I've implemented a very simple drag-and-drop source that should compile in m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AES cryption quellcode I need a small, like a two pieced, version of an AES encryption. I googled and found AES - Advanced Encryption Standard (source code), but the code seems to be written for Windows and I need a multi-platform one. Is there any other small version of an AES encrpytion known or a fix for the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2008 Sessions We are extremely new to ASP.net...actually working with an outside consultant which I don't currently have access to. I am looking for: * *Good documentation/best practices for session and session management. I'm finding some info now: http://support.microsoft.com/kb/317604 *Review of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you handle form validation, especially with nested models, in Node.js + Express + Mongoose + Jade How are you handling form validation with Express and Mongoose? Are you using custom methods, some plugin, or the default errors array? While I could possibly see using the default errors array for some very sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: RESTful ASP.NET webservice - How can I return JSON-serialized Dictionary? I have a RESTful web service that returns JSON-serialized data. It can successfully serialize a Dictionary<string, string> object, but I would like each function to be able to return Dictionary<string, object>. When I return Dictionary<string...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is the user email address always returned from requestWithGraphPath:@"me"? Is the user email address always returned from the Facebook Graph API when a user has authorized my app and I call requestWithGraphPath:@"me" ? Or is it possible for a user to hide it in their privacy settings? Thanks! A: It will only be re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }