text stringlengths 8 267k | meta dict |
|---|---|
Q: parsing text file in objective C i am trying to parse a text file saved in doc dir below show is the code for it
NSArray *filePaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *docDirPath=[filePaths objectAtIndex:0];
NSString *filePath=[docDirPath stringByAppendingPathCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to trigger jQuery from GMaps infowindow I want to trigger jQuery from a GMap info window. I have these code for my GMap:
var theContent = "<form action='#' method='post' onSubmit='return false;'><input type='text' name='firstname' />";
theContent += "<input type='submit' value='Save' /></form>";
var infowindow ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: get_class_var on child class I have the following setup:
abstract class AParentLy{
private $a;
private $b;
function foo(){
foreach(get_class_vars(get_called_class()) as $name => $value){
echo "$name holds $value";
}
}
}
class ChildClass extends AParentLy{
protected $c='c';
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WebView is not getting display in the AlerDialog I am trying to display 'WebView' in 'AlertDialog'.
For that I referred one of the question posted here: Displaying WebView in AlertDialog
It successfully opens the dialog window. But I dont know some how its not showing the web content.
This is my 'print_webview' fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - Problem with the Serializable interface I have been using the Serializable interface to pass an object from one activity to another. I am using putExtra on the sender side and getSerializable on the receiver side. Everything works fine but I have received (for the first time) the following error report:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the most effective way to move items within a vector? I've seen some special cases where std::rotate could be used or a combination with one of the search algorithms but generally: when one has a vector of N items and wants to code function like:
void move( int from, int count, int to, std::vector<int>& numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Machine-readable (WebIDL) reference for JavaScript / HTML5? I'm looking for a machine-readable reference of JavaScript classes (members, methods, parameters...), especially related to the HTML5 standard (canvas, storage, etc.).
All I have found so far is the specs on the W3C site, which include a part of the specifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: WebClient Retry Is it possible to retry a webclient request? On the odd occasion my application will throw an error when attempting to connect to an xml web service but if I retry, it works OK. I'd like it to retry 2 times before throwing an error unless someone has a better solution :)
private void ApplicationBarLo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cached data not expiring in Sinatra/memcached app I have a Sinatra app on Heroku and I fetch data from many 3rd party APIs and store it in memcache, to speed up load time.
But the data is not updating: the data that is loaded in the first time after enabling the plugin stays in the memcache all the time and it does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIProgressbar update method Hello i'm trying to write a method that update a UIProgressbar !
The problem is that when both of values arrive fine to the method (NSLog display values)
the division operation generate a bad_access when i run the application !!
I tried many messages from both value like intValue/inValue ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Start Alarm on Android without having the application running My idea is to set an alarm for a specific date in my application, but I want to be able to have the alarm ringing at the set date, even if my application isn't running at all.
How can I achieve this?
Thanks in advance!
A: I'd start a service when the dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What data does Bing maps send and receive from the Microsoft servers? I have a Bing Maps control in a silverlight application.
The application is to be deployed on a company network which has a very tight security policy and so they need to know what data is going to be sent/recieved over the connection to the Mic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: List to appear on clicking event I want to have a child list appear on clicking a point of the parent list (similar to how clicking can minimize and maximize the content table in Wikipedia articles), how can I achieve it?
I've learned basic HTML years ago, and can't remember how to do this even if I did learn it. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I redirect all Sub folders and directories to the main root excluding files? Basically I have a CDN setup.
/public_html/
index.html
/files/
image/
video/
video2/video2
I want to redirect ALL sub folders and directories to the main folder - except file extensions, so if someone loads a file, I want that to l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change webview color at time of loading URL? In my app,
I open a url in webview,
But it takes some time to open a url in webview,
Within that time webview shows white background,
I want to change that background.
I try with
webView.backgroundColor=[UIColor blackColor];
It"s not work for me
So,How can i do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DevExpress: How to change the backcolor of a SearchLookUpEdit control I want to change the BackColor of the PopUp control that is shown if you select the DropDown button in an SearchLookUpEdit but I can't find an appropriate property to do this.
Btw. I use a defaultLookAndFeel object with Style set to "UltraFlat" s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hibernate criteria results I think this is a very simple question. but unfortunately I cannot find a solution.
I have a mysql database table called "Invoice" having "inv_No","inv_netvalue","inv_date" inv_No is the primary key. I want to get a Invoice object according to a given inv_No. I used a critaria. But this r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use Scroll on JPanel? (Swing) I'm actually having no problem when dealing with the JScrollPane with JTextArea...
But here... I have a JPanel. And I wanted to use Scroll on it.
Take a look on my JPanel here Image Preview.
I wonder how to do it in netbeans. I think I should do a bit of customized coding.
So, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any way to get JSON data of a Google Doc SpreadSheet using jquery without make the doc public? I am trying to get data from a Google Doc Spreadsheet, using javascript and jQuery, in order to do some math with the numbers.
With the next code I got it, for public spreadsheets:
function getdata( key, wid, f )
{
ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: RMI stub for JMX in tomcat I am creating an RMI stub for JMX similar to the instructions in this blog post, and it opens a listening port as expected. When I try to connect to the port with JMX I get the following error:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: jmxr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to manipulate objects after adding them to a view This is a very elemental question about object-orientated programming- so sorry in advance if this is obvious.
I have a view and add several objects to this view (as subviews). I do this programatically. Every object get's an individual ID so that I can later tel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: refresh jquery mobile text inputs I have been working with JQM for a couple of weeks and after studying various examples and reading the docs, I cannot seem to find a way to refresh text inputs in a success callback. Is this possible with v1.0b2. I can refresh(reset) other elements just not text inputs. Any help wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I do inline Razor code within some HTML? What I want to do:
<div class='duck@if (this.Model.quacker) { -noisy }'>quack</div>
ie. either
<div class='duck'>quack</div>
or
<div class='duck-noisy'>quack</div>
However I can't quite get the syntax right. I tried @:-noisy but that generates errors such as
Make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add total column to cross tab pivot query How do I add a total column to this query?
SELECT YearOfAccount, [Completed] AS Closed, [Open] AS Opened
FROM
(SELECT YearOfAccount, Status, CaseCode
FROM Records ) myRecords
PIVOT
(
COUNT(CaseCode)
FOR [Status] IN
( [Completed], [Open])
) AS pvt
Currently I am getting ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement the clear Button Functionality for Edittext that are same as calculator? I am going to Implement the Calculator type application in my application.
I have successfully implement the all functionality.
Buit stuck with the lastSingle character clear button that is available as "C" on any other calcula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic resource injection in EJB3? I know how to do resource injection to get JMS queue in EJB, just like the following sample, it's easy to get QUEUE1. But if I have lots of queue, and I don't want to change code when there is a new queue "QUEUE4".
Is it possible to get the resource dynamically or any suggestion f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows phone 7 scrollviewer problem I am not able to scroll through the page in wp7 . eventhough i have added scrollview it still doesnt work.
<phone:PhoneApplicationPage
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namesp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to redirect request from a filter to desired servlet with post DataParameter? I am using following code to redirect a request from filter to servlet and jsp by using following snippet of code :-
String redirectedServlet = "servletLcation"+"?parameter=abc";
response.sendRedirect(redirectedServlet.trim());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Redirecting inside the controller I do some postdata handling on my webpage, but need some help with the redirecting.
How can i redirect as the code below does not work? I've breakpointed it and it enters RedirectToRoute function but goes to the return :(
if (Session["auth"] != null)
Redi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does OpenWrap cause my projects to fail with a "InitializeVisualStudioIntegration" compilation error? Suddenly I cannot compile the following openrasta projects (see errors at end):
*
*OpenRasta.Codecs.WebForms
*OpenRasta.Hosting.AspNet
This has happened after I did two things:
*
*I installed the latest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to override 'Save As' event in Excel XP COM add-in I am working on a C# COM add-in specifically targeting Excel XP. I need to display my own 'Save As' dialog rather than the normal Excel dialog.
I tried handling the applicationObject.WorkbookBeforeSave and ActiveWorkbook.BeforeSave events and setting the 'ref bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to control the HTML CakePHP creates i'm working on an application built on the CakePHP framework and that uses AJAX (with jQuery).
I'm having troubles using the jQuery plugin "tablesorter" with AJAX-modified tables, since I think my View isn't producing the output it's supposed to : table structure in the actual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET DataPager not working with ListView I have a problem with DataPager with ListView, I am using ASP.NET with VB.NET. I have searched for the answer, but I just can't seem to get it to work. Whenever I binded the data, the front page was okay, tried second page, still the same data, etc. Then I tried rebinding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compile a quotation into a public static method of a new type in F# I am playing with type providers and I am trying to compile a quotation into a public static method of a new generated type. Here is what I have:
let CreateType<'i> name methodName quotation =
let assemblyName = new AssemblyName(Name = "t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: javax.naming.NoInitialContextException getConnection Exception javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
null
when i run below code this is the exception i am gettin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: GridViewRow Column visible true,false How can I get a Product_ID from a gridviewrow without creating a column because every time I have to make the column visible and invisible to perform gridview data operation.
Thanks in advance.
A: Make it part of one of your columns using a label similar to this:
<asp:Template... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fetch particular HTML contents from remote URL? I want to fetch particular HTML contents from remote websites url.
The website URL is as follow,
http://www.realtor.com/realestateandhomes-detail/10216-Montwood-Drive_El-Paso_TX_79925_M78337-06548
I want to fetch some specific information from above website u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically close Java Tray Balloon I am using java.awt.SystemTray to create and manage the tray icon and balloon messages. Everything works fine.
But I would like to know whether it is possible to close or fade the message after it is displayed.
Right now, the user needs to click the balloon or close it, othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: User search use MySQL LIKE or integrate a search engine (such as solr, sphinx, lucene etc.)? In my mysql db I have a user table consisting of 37,000 (or thereabouts) users.
When a user search for another user on the site, I perform a simple like wildcard (i.e. LIKE '{name}%}) to return the users found.
Would it be m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: tableview cell value I am making an iphone application. In one of the view of the application I have implemented the table view. On each table view cell I have put one or two buttons. Now I want that whenever I click the button it give me the value of cell. How can I do it if anybody has an idea about this please le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get confused of some rails concepts, needs some explanations I got confused of some Rails' concepts like: gemset, rubygems, bundler . I have following three questions:
1. After I installed the RVM tool, what are the correct steps to setup the development enviroment for creating a rails project (say rails v2.3 projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change a ListView image item's source when selected Below is a sample of what I am after:
I have decided to implement that using a ListView (tried a custom control based on Selector but I could not managed to output anything satisfying).
My list displays fine but I am struggling to find how to change the image sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to decrypt excel file 2007 by POI 3.8 if it is protected by "Restrict Editing" In excel 2007, we can Protect Workbook by select "Protect Workbook" on menu and select "Protect Structures and Windows".
I have file with extension ".xlsm" and it is protected like the way above. I have password of this file and I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to obscure the id in a url (ruby on rails) I have a web app made with Ruby On Rails. For now when I want to display an object I have to access the following page: http://mywebapp.com/object/1234 with 1234 the id of the object.
I would like to encode that object id and have the following result: http://mywebapp.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fix first four numbers in textbox PHP I want to restrict first four number in textbox in PHP, Here's my sample code:
<label>Number </label>
<input name="phone" type="text" class="required" id="phone" value="<?=$phone_number?>" maxlength="11" />
Anyone can help?
A: Like this...
$phone_number = '0116' . $_POST['phon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Specifying Maven memory parameter without setting MAVEN_OPTS environment variable I was wondering if it is possible to specify Maven memory boundaries with a syntax similar to:
mvn -Dtest=FooTest -DXmx=512M clean test
I tried a couple of variations till now, unsuccessfully.
I am aware of MAVEN_OPTS environment vari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do I know, when the player stops playing? public function videoPlayer()
{
connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: uploading video in Facebook, ¿parameters? I'm uploading a video to facebook form my iphone app. More customized is better. I would like to know how many parameters I can set in params, and what are them. but i'm not able to find it, any help?
This is the function:
[facebook_ requestWithGraphPath:@"me/videos"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: draggable element color changed back when refreshing The draggable elememnt color will be changed to #DF2525 when stop dragging. But the color is changed back to original one when page is refresh. I want color won't be changed back when refreshing.
Is there anyone know solution? Thanks in advance.
$(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you set up the correct HTTP Response object for a Range request coming from BITS (Background Intelligent Transfer Service)? I have a requirement to implement a web-service that can issue files to the bits (Background Intelligent Transfer Service). The language is ASP.NET (C#). The problem I am having is wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set image width to span tag I have this html code
<ul>
<li><a href="#"><img src="path_to_image1"><span>some text</span></a></li>
<li><a href="#"><img src="path_to_image2"><span>some text</span></a></li>
<li><a href="#"><img src="path_to_image3"><span>some text</span></a></li>
</ul>
Images are of differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot find -lgcc -s while Compiling C program with GCC I am trying to compile a C program with gcc using the below command
gcc -r client.c -o exe
But getting these errors, and no generation of exe file:
/usr/bin/ld cannot find -lgcc -s
collect2: ld returned 1 exit status
Anyone tell me what I am missing an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Where is the best place to format Model properties in ASP.NET MVC(3)? I've been looking a lot recently as best practices within the ASP.NET MVC framework, specifically around sparation of concern. My question here is, if I have a property on a model, where is the best place to do some formatting on that property?
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why i can't get my GPS position? i'm trying to get my GPS position and update with it a textview (tv2) that it is on the top of the Activity. My Activity shows the camera view and captures GPS coordenates and it haves to write them on the textview. It also get's compass & accelerometer data, but it is not the proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP redirection without header I want to redirect a PHP page and post data to that page without using Header("Location:http://www.example.com").
If anybody knows please help me.
I tried some Zend functions also. Please explain anybody clearly.
Thanks
A: You cannot redirect to a POST.
You can redirect to a GET and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Smarter where clause? I've been experimenting with LINQ to SQL recently and have a quick question.
The basic premise is I have a search request which contains a Make and Model which I use to search a DB containing cars.
The expression for my Where Clause is shown below:
.Where(c => c.make == search.make && c.mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: test over 3rd dimension MATLAB I have a 3d array. 1st dim is xcoordinate of pixel
2nd dimension is y - coordinate of pixel.
3rd coordinate is time (or could be though of as the frame number).
I want to do a test to see if any pixel is equal to zero for every single frame (along 3rd dimension).
How would I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prompting for authorization when accessing protected external resources in Chrome I'd like to embed external, NTLM authorization protected resources (pictures) from another domain (say, secret.com) in my web page (say, mypage.com). The mypage.com server has no access to those resources, but the end user does. Also, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby: dynamically generate attribute_accessor I'm trying to generate the attr_reader from a hash (with nested hash) so that it mirror the instance_variable creation automatically.
here is what i have so far:
data = {:@datetime => '2011-11-23', :@duration => '90', :@class => {:@price => '£7', :@level => 'all'}}
cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: startActivityForResult problem I have ActivityA calling ActivityB using startActivityForResult. If I open a browser from ActivityB and surfing a bit, my ActivityB gets killed and it doesnt know anymore that it should return anything to ActivityA.
//ActivityB.getCallingActivity() == null
As a result of this the onAc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What type of code that interprets correctly in procedural programming will cause an error when included in a class (outside of a function)? I'm new to oop and was surprised to see that code that worked properly in procedural programming,
<?php
$number_of_floors = 5;
$stairs_per_floor= 10;
echo $total_stairs= $number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to extract parameters from a list and pass them to a function call What is a good, brief way to extract items from a list and pass them as parameters to a function call, such as in the example below?
Example:
def add(a,b,c,d,e):
print(a,b,c,d,e)
x=(1,2,3,4,5)
add(magic_function(x))
A: You can unpack a tu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Mail functionality using OPA import stdlib.web.mail
from = {name="name" address={local="username" domain="gmail.com"}}
to = {name="name" address={local="username" domain="gmail.com"}}
r = Email.try_send(from, to, "Subject", {text = "This is Great!"})
server = Server.one_page_server("Mail", [], [], r)
the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regex - URL extension redirect help I have a couple of domain extensions that I'd like to redirect to specific pages.
Like example.de has to redirect to example.de/de/ and example.fr to example.fr/fr/.
How can I achieve this? I'm new to regex.
A: You will edit your .htacess file and put something like to :
Redirec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot parse JSON data jQuery autocomplete I am having trouble getting autocomplete to work, and I believe it is because of parsing.
JavaScript code:
$('#id_emp_name').autocomplete({
source: '/mycompany/employees.json',
minLength: 1,
dataType: 'json',
delay: 0,
parse: function(data) {
va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validate image size in carrierwave uploader All uploads should be at least 150x150 pixels. How to validate it with Carrierwave?
A: It surprised me just how difficult it was to search around for a clear-cut way to validate image width & height with CarrierWave. @Kir's solution above is right on, but I wanted to go a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Dijit events not working in dynamic panes Can someone tell me why none of the following will work?
EDIT
(Just incase the link goes down this question is about how you can't seem to fire events in a page that is loaded into a dijit pane. This is applicable for Firefox 6.0.2, Crome 12.0.742.100 and Opera 11.00.1156 )
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Oracle query Java EE, Entity Manager If I have an Oracle database, with structure, SCHEMA/TABLE1 SCHEMA/TABLE2 and I want to create a query to select all rows from Table1, would it be,
"Select x from SCHEMA.TABLE1 x"
A: If you have an entity such as:
@Entity
@Table(schema="SCHEMA", name="TABLE1")
public class Tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to call the ok button in the EditTextPreference I have an EditTextPreference in the PreferenceActivity. When user click the EditTextPreference will show a dialog. In the dialog, user can input a value, and the dialog has "OK" and "Cancel" buttons. I want to call the click event of ok button to check the value,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to match whitespace, carriage return and line feed using regular expression in PHP? I am working with a regular expression in PHP. I have the following string:
<img
src="/files/admin/hotel_website.gif" alt="Go To The Hotel's Web
Site" align="absmiddle" border="0" class="hotel_icon" />
This string contains ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: What does joomla 1.7 lack in comparison with drupal 7 Drupal is considered as more powerful among the two. However, with release of joomla 1.6 some new features have been added like Nested Categories, Granular ACL System, Tableless Core Components etc which were lacking in comparison with drupal previously. So is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework, how to manually produce inner joins with LinQ to entitites Let's imagine I have an table called Foo with a primary key FooID and an integer non-unique column Bar. For some reason in a SQL query I have to join table Foo with itself multiple times, like this:
SELECT * FROM Foo f1 INNER JOIN Foo f2 ON... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to arrange the divs in the page like google map or other map site We are now trying to build a map library like google/bing/yahoo,we will use it offline.
However I found that I have no idea about how to arange the divs in the page,since there are some many different types of divs.
1) the map tiles (small image 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: vkontakte api for C# I want develop a music finder program. I choose music database, vkontakte. But I can't find the vkontakte api example for c# .
A: https://github.com/grunichev/rhythmbox-vkontakte
http://silverlightvkapi.codeplex.com/
http://xternalx.com/sexy/vkontakte-c-api/
A: Vkontakte api .NET wrapper
A: S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HTML Interface for a java chatclient I have this project thats about to start. We're making a Chatclient that we want to integrate to a webapp.
We have the following requirments:
- Java server
- Java client
We've practically compleated the coding of both the client and server, but the thing is that we want to int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Minimize form to system tray I want to hide my form while keeping my application running in background.
I've used notifyIcon and it remains always visible.
I've used "this.Hide();" to hide my form but unfortunately my application gets close (no exception).
I am also using threading and this form is on second thread.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to use time format on Java I have 2 variables: first variable for hours and second variable for minutes. But format for this data is "24 hours", but I need resulting string similar "5:30 pm".
How can I format my time for this format?
A: Since you already have the hours and minutes as variables, date and date fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: greyscale Iplimage to android bitmap I am using opencv to convert android bitmap to grescale by using opencv. below is the code i am using,
IplImage image = IplImage.create( bm.getWidth(), bm.getHeight(), IPL_DEPTH_8U, 4); //creates default image
bm.copyPixelsToBuffer(image.getByteBuffer());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: splitting a string into N number of strings I want to split a string into N number of 2char strings. I know I must use String.subSequence. However I want it to keep creating these until the string is > 2
A: Try this:
int n = 3;
String s = "abcdefghijkl";
System.out.println(Arrays.toString( s.split("(?<=\\G.{2})(?=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How can i map a POJO to a directory with ApacheDs? i have downloaded ApacheDS as my LDAP server, now i am trying to map a pojo to a directory, is there any ODM (Object Directory Mapper) out there? i mean something like Hibernate but for LDAP.
i have found s2Directory and LDAP-ODM, but the tutorial and user support ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to programatically get ALL (read and unread) messages from gmail, read status, etc? I have a customer service web app requirement, which requires that I work pull & integrate data from Gmail, eBay, Amazon, and Paypal. My solution is going to be developed in ASP.Net 4 with C#.
The issue that I'm running into is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find the number of numeric starts with and find the top 3 count among them? I have a list which contains numeric strings. The numeric strings in list may start with any number from 1 to 9 (it doesn't start with "0"). Now i need to find three top occurrences in the list.
Ex:
1234
2345
2343
4356
6434
2343
2222
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Custom right-click menu - OnAction works straight away rather than on button-press I'm creating a custom menu in Excel which consists of various sub-menus. It's for picking various machinery items and there's about 250 possible outcomes.
In any case, I've got the menu built and want it so that the .Caption is entere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading values into an array from two different arrays iphone sdk Here I am having a situation, I'm using the following code:
int x=0;
for (int i=0; i<=[arrayDeals count]-1; i++) {
x++;
//NSString *deal = [arrayDeals objectAtIndex:i];
combinedArr = [[NSMutableArray alloc]initWithObjects:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cruisecontrol.net build number doesn't increment We use Cruise Control .Net as our build server. For our version numbering we use SvnRevionLabeller with the following config
<labeller type="svnRevisionLabeller">
<major>0</major>
<minor>1</minor>
<versionFile>VersionInfo.cs</versionFile>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: htaccess conflicting with wordpress htaccess I have the following code in my htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
Rewrit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex to match any character or fullstop? I'm trying to create a regex that takes a filename like:
/cloud-support/filename.html#pagesection
and redirects it to:
/cloud-platform/filename#pagesection
Could anyone advise how to do this?
Currently I've got part-way there, with:
"^/cloud-support/(.*)$" => "/cloud-pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: use case for getProductAdditionalInformationBlock in magento I'd like to put some additional info under each item in the cart. I have this info already saved in table "sales_flat_quote_item" in "additional_info" field. So the question is only how to show it globally at all places where the items are shown.
I saw in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java ScrollPane overlapping contents I'm having what I am sure is very much a beginners problem with my JScrollPanes. The problem is that the vertical scrollbar overlaps the components within the enclosed panel (on the right hand side). It becomes a bit of a pain when the scrollbar overlaps the drop-down bit of JCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: passing command line parameter to spring config I want to laod the spring context file based on the command line. Basically I am going to get the region from the command line and instanciate the beans in the context file based on region. Is there a way to pass the command line param to FileSystemXmlApplicationContex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting browsers that don't support onunload/onbeforeunload Of all the browsers, it seems that only Opera doesn't support onunload/onbeforeunload events. (It's been fifteen years now, Opera!) Solutions for this issue have been covered many times, here for example: onbeforeunload support detection
Unfortunately, as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Removing license I'm nearing the end of my master's thesis, which was done in collaboration with a local company. I used their computers during the work, but they could not provide me with a Visual Studio licence, thus I used my own MSDN Academic Alliance licence. Now that I'm leaving the company, I need to remove t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Applying .gitignore to committed files I have committed loads of files that I now want to ignore. How can I tell git to now ignore these files from future commits?
EDIT: I do want to remove them from the repository too. They are files created after ever build or for user-specific tooling support.
A: After editing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "580"
} |
Q: HTML table that uses rowspan and colspan gets overlapped by the next element I am designing a very simple table that contains a data element's properties. This element will be used to represent each element of a AJAX response in a kind of list.
The table is using "rowspan" and "colspan" to enlarge some cells. The p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: X-Cart stopped working, it seems like it goes somewhere and never comes back I am facing a very strange issue in X-Cart, I am working on localhost. It was working fine and now it is not working anymore. It shows nothing but a blank page, it seems like it goes somewhere and then doesn't come back.
We installed anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I log progress of multiple sql queries in a single JdbcTemplate execute() and PostgreSQL I have a SQL script with many statements which I execute using JdbcTemplate.execute(). Some queries are slow and I'd like to write progress of the whole script to the logs.
As it stands, I only get logs written once all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling Objective-C class from basic C, xcode project I am try to implement an cocoa application For USB Detection. Whenever user connects the USB it automatically detected, this entire part is one C program (Normal C) is orking Fine.
My need is if the system detects a particular USB device, I want to call another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does the dollar sign mean in PHP? What does the dollar sign mean in PHP? I have this code:
<?php
class Building {
public $number_of_floors = 5;
private $color;
public function __construct($paint) {
$this->color = $paint;
}
public function describe() {
printf('This building h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7527999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: handling line breaks in primefaces textarea submitted value I have a primefaces textarea. User simply enters multiple lines in it and submits the form. In my backing bean, value is split at line-breaks. Each line is validated. The valid lines are removed from the string and invalid lines are kept, and again sent to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7528001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSSQL 2008 R2 Selecting rows withing certain range - Paging - What is the best way Currently this sql query is able to select between the rows i have determined. But are there any better approach for this ?
select * from (select *, ROW_NUMBER() over (order by Id desc) as RowId
from tblUsersMessag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7528003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.