text stringlengths 8 267k | meta dict |
|---|---|
Q: Navigationbar is shown and but its not placed correctly in iphone When i call this method, the navigationbar is shown and its not placed correctly. Exactly navigation bar placed from 20pixels from top of simulator. How to solve this. I call this method before subclass. but next page navigation bar not placed correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate and NHibernate Validation Is it possible to validate domain model with Nhibernate validation framework in PreTranctionCommint event? If possible how we can write this event ?
A:
Is it possible to validate domain model with Nhibernate validation
framework... ?
If you really have a domain model then it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to create namespaces and classes in javascript / jQuery Just like C# or Java to put all my jQuery code in one .js file, something like this:
namespace MySite
{
class HomePage
{
function Init(params) { /*...*/ }
//...
}
class ContactForm
{
function Validate() { /*...*/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: user licencing, mobile web php I'm developing a mobile web for android, iphone & blackberry. We should enforce license for users. Let us say this product comes with 3 types of license.
*
*1 user 50USD
*3 user 100USD
*5 user 200USD
*10 user 300 USD and so on...
They say "if customer has purchased application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Add events for before/after a action of a controller in Magento I have a controller in Magento as below:
#File: ./app/local/FilFact/Test/IndexController
class FilFact_Test_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction(){
$this->_testConfig();
}
}
I need to ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to draw a layout of this type in android? I want to provide a background drawable, similar to the one shown in the figure, to a layout. How can i do it using a drawable xml? Please suggest a suitable approach to go about this.
A: It is not possible to do this with single xml drawable but probably you can club ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cakephp sha1 password saving in mysql I have forgot password feature in my cakephp application. The function for this will request the email address, find this user, generate a new password, convert it to sha1 and save it to the database, emailing the contents to the user.
Anyway I am having issues, the generated sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS: why line-height disturbs the width? How does the line-height property in CSS works? If i set the line-height equal or less than the font size, it creates the problem with layout width. Please check this jsFiddle to see the problem.
I'm using font-size 14px, and line height 14px. If you change the line-height to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display a chart in a pop-up/modal on mouse click (jquery?) without loading chart first? (mvc3/razor) I'm using the FileStreamResult (or FileResult) method to display a chart on a razor view page (from a Controller action) and this works as expected.
However, I'm wondering if it's possible to display the chart ONLY w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Searching multiple attributes for one value I am using this xpath expression
String expr = String.format("//a/b/c[@name1='%s']", name);
I am making an android app that searches a xml document for a name. I want it to search through both attributes name1 and name2 listed in the xml. As the expression is now, it s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom username/password validator Is it possible to write a custom username/password validator which will be used in the adfs signin method (on the formssignin.aspx page)?
And if so, are there any examples?
A: This article customizing-the-ad-fs-2-0-sign-in-web-pages shows how to add two factor authentication.
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Transparent PNG in PIL turns out not to be transparent I have been hitting my head against the wall for a while with this, so maybe someone out there can help.
I'm using PIL to open a PNG with transparent background and some random black scribbles, and trying to put it on top of another PNG (with no transparency), t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: cookie values disappear when traversing between content pages in my app. there's a log in mechanism which save a cookie with the info of the user who just logged in
private void CreateCookie(LoginEventArgs args)
{
HttpCookie cookie = new HttpCookie("user");
cookie.Values["name"] = args.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UML use case diagram problem with relations between actors and use cases i've been created the following diagram for forums system but i'm not sure if the relation between use cases and actors is correct.
so i want to know if my diagram is correct or if i've added too much complexity to my diagram. did i got my use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the syntax for GotoIf with & condition in asterisk server? exten => s,n,GotoIf($["${choice}" = "*"] & $["${isharvesttoday}" = "1"]?question4)
The above line is not worked in my application. Is this syntax is correct?
A: No, it isn't. This should work:
exten => s,n,GotoIf($[$["${choice}" = "*"] & $["${ishar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do parameters passed by reference in C++ not require a dereference operator? I'm new to the C++ community, and just have a quick question about how C++ passes variables by reference to functions.
When you want to pass a variable by reference in C++, you add an & to whatever argument you want to pass by reference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Editable list through html, javascript Here is the UI scenario I'm trying to develop:
There is a text box field below which there are two buttons. On clicking the first button , there will be a popup in which the user will have to add a IP address. On pressing submit on the popup , the IP address will be displayed i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modal Popup Extender: Fetch data from database then bind it to the label in the modalpopupextender I've a problem with ModalPopupExtender. I have put a label in ModalPopupExtender and trying to bind label with the value from database. When I am debugging, the value is showing on the label's text (ie there is no data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handling ascii char in python string i have file having name "SSE-Künden, SSE-Händler.pdf" which having those two unicode char ( ü,ä) when i am printing this file name on python interpreter the unicode values are getting converted into respective ascii value i guess 'SSE-K\x81nden, SSE-H\x84ndler.pdf' but i want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can we thread the web-service and insert in in custom table cell? The thing is i have to make Custom cell of UITable, i have to call large webservice with many data which will take longer tym to load it once. So i want to apply threading in it. now my que is. can we at run -time insert value one by one in custom cel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I encode the & symbol for batch requests? I have a Facebook batch request that looks like this:
https://graph.facebook.com/?access_token=ACCESS_TOKEN&batch=[{"method": "GET", "relative_url": "search?q=EMAIL@ADDRESS.COM&type=user"}]
Sending this across the wire returns:
{"error"=>0, "error_description"=>"batch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Help with shell script What does this script do?
if [ -f /../../file1] then
. /../../file1
fi
It checks if file1 exists. What does the then statement do?
A: In bash . is equivalent to source. It reads file1 and runs it in the current bash process.
A: It contains several errors.
/../../file1 doesn't make much ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Pause and Resume Downloading Files with ASIHTTP Request in iPhone I m using ASIHTTP Request sample source code for downloading urls.
My question is that how to pause and resume the downloading files.
Please Help.
A: Deprecation Notice
ASIHTTP was deprecated around 2011, if you want network connectivity now, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swedish text Localization on iphone I want to know about localization.The exact requirement is copy/paste text should be changed to swedish text accordingly while entering the text in UITextField.Can any one have source code or example link for this?
I meant the copy/paste tip text appears when editing the UITextfi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to place a star mark beside a not null textbox in winform like we can do in webform How to place a star mark beside a not null textbox in winform like we can do in webform. And does winform has a value-required validator like in webform ?
A: Use ErrorProvider control instead. It is meant for that kind of situat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Gibberish in read() buffer? I am new to C, and so I am completely confused by the following behavior. Using pipe() and fork() I am reading the output of the following trivial ruby program:
puts "success"
via a call to the read function in C:
n = read(fd[0], readbuffer, sizeof(readbuffer));
printf("received: %s", re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assembly Language: difference between ja and jg? I am having trouble understanding the difference between ja and jg for assembly language. I have a section of code:
cmp dh, dl
j-- hit
and am asked which conditional jump to hit (that replaces j-- hit) will be taken with the hex value of DX = 0680.
This would make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does PHP have an ordered dictionary? Does PHP have an Ordered Dictionary, like that in Python? IE, each key value pair additionally has an ordinal associated with it.
A: That's how PHP arrays work out of the box. Each key/value pair has an ordinal number, so the insertion order is remembered. You can easily test it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: AJAX:CalendarExtender does not localize Today I'm using the CalendarExtender from the AJAX library with the possibility of localization. Currently everything works fine except when I try to localize it for the Danich (da-DK) language. The calendar looks localized, except the part that says "Today" that remains in En... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JPA 2.0 / Hibernate and "orphanRemoval": Just replacing an entity does not remove the old one I have question regarding JPA 2.0, Hibernate and "orphanRemoval".
First my setup:
*
*Spring 3.0.5.RELEASE
*SprnigData JPA 1.0.1.RELEASE
*Hibernate 3.5.2-Final
*DBMS: PostgreSQL 9.0
I have two rather simple entity cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Python: map widgets to database for reading and editing it I am relatively new to database GUI programming, and I want to make a simple app in Python, which allows user to access and edit database. I want to view/edit tables and specific records plus generate some specific reports about stored data. For example, if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List manipulation in XUL I'm trying to figure out an easy way to edit/add/delete items on a list in XUL. My initial thought is to have a separate file to handle all of this but I'm not sure on how to affect the main XUL with another file. So far my list looks like:
<?xml version = "1.0"?>
<!DOCTYPE window>
<window ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you attribute a sale to PPC if a visitor comes from PPC but then returns to buy through another medium? On an e-commerce site, how do you attribute a sale to PPC if a visitor comes from PPC but then returns to buy through another medium?
Can we use cookies and if so how do we install this? What software could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error NoMethodError (undefined method `+' for ActiveRecord::Associations::BelongsToAssociation:0xb6c9b45c) I'm using Rails 2.3.11. I have 2 tables customers and posts:
# Table name: customers
# id :integer(4) not null, primary key
# Name ::string(255) default("Anonymous")
...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Business Layer in 3 tier Architecture I went for an interview, and was asked to show up my Business layer architecture. I have some idea about 3 tier architecture but really no idea, to what to write in front of interviewer.
So suppose my project deals with Employees of an organization, then what would i have writte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: how to use different package for different device in android? Hi i have develop a application in android which run in every device, i use different layout for different size device's but i have use some code programmatically without xml so, it create a problem in different size device.
so i require to change the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I disable the refactor preview in Eclipse? When renaming a variable using Eclipse, I always get a popup dialog showing me a preview of the refactoring. Is there some way I can disable this popup dialog? In other words, I want to place the cursor over a variable name, press alt+shift+r, edit the variable name, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can i cp migration files from one ror project to another? I just tried to cp those migration files from my former projects to my present project so that i won't generate the similar db structure again.
but after i tried "rake db:migrate" and edit some controllers it shows that it can not find those models even if it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to specify a condition in an Entity Framework join? I have a Blogs table related to BlogComments table with a FK.
I need to get, through Linq, all the BlogComments items that match a certain flag
If i do:
db.Blogs.Where(b => b.BlogComments.Where(bc=>bc.Where(bc.Flag1==true));
I get "Cannot implicity convert typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does my plugin appear under the WYSIWYG Editor in "Create new article"-Screen I have written a Wordpress Plugin and now I want, that the Plugin appears (HTML Form) in the "Create New Article"-Screen unter the WYSIWYG Editor (after installation and activation). How can this be done. In the Codex and other sources... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting transparent SVGs to work in both IE and Safari? This seems like an either or to me. I can get them to work in one or the other, but not both (while working fine in Firefox no matter how I do it).
I've been reading a lot on the subject, and unless it's already been fixed by Safari, it seems flat-out external... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which one to use Http Handler or Http Module We want to do something like we have to execute some piece of code in each request to the application. We want to use this same code in multiple applications.
What this code will do is, this will check the incoming request and according to some conditions it will decide w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When is a call to "synchronize()" not necessary in C++ AMP? Background: For a C++ AMP overview, see Daniel Moth's recent BUILD talk.
Going through the initial walk-throughs here, here, here, and here.
Only in that last reference do they make a call to array_view.synchronize().
In these simple examples, is a call to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dead sessions in apache mina We have a apache mina based GPRS gateway(server). Sometimes, usually when the connection is terminated from client side brutally i.e, power cable unplugged or any other unusual shutdown or some problem with network, it is not removed or closed at server side. It remain there, in idle sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails: redirect_to with :error, but flash[:error] empty I'm trying to do a redirect while setting the flash[:error] value. (Rails 3.0.10)
In my view I have
<p id="error"><%= flash[:error] %></p>
<p id="notice"><%= flash[:notice] %></p>
If I do a redirect_to show_path, :notice => "ok" it works fine, but if I do redi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: how to manually add simulators in blackberry eclipse? Is there any way to add a simulator manually in my eclipse? In android SDK,we have options for selecting various emulators.Likewise,is there any way so that I can choose any one from the various simulators available?
A: Yeah, it can do it. Download simulators fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When should we change a String to a Stringbuilder? In an application a String is a often used data type. What we know, is that the mutation of a String uses lots of memory. So what we can do is to use a StringBuilder/StringBuffer.
But at what point should we change to StringBuilder?
And what should we do, when we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I chain two rails Queries together elegantly? I have the following model object:
#<Insight id: 155, endorse_id: 15, supporter_id: 15, created_at: "2011-09-22 02:27:50", updated_at: "2011-09-22 02:27:50">
Where Endorse has_many insights and Supporter has many insights.
I can query the db in the following wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: QR Reader in android I want to integrate QR Reader in my android app without integrating third party tool and also need auto scan feature .I reviewed few tutorials using zxing libraries but scanning is not done in them.It generally captures image to sdcard and then access it and which doesnt give result every time..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Paypal IPN Problem I am developing a site where users can buy features using paypal. If user's paypal email is different from the email stored in our site how can i get notified about the user's payment via IPN?
A: You tagged your question with C#, so I'm assuming you're developing an ASP.NET site. And in the absen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: software developed in vb.net hanging and it is giving exceptions software developed in vb.net(communicating with serialport) hanging and it is giving these rexceptions
1.The device does not recognize the command
2.Unhandled exception has occurred in your application. If you click continue, the application will igno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: onCompletion of MediaPlayer on Android device, and resizing video I am developing an application which plays videos from a playlist. In case there is no video on the device the app dowloads it from a site and moves to the next video in the list.
It works fine on the emulator, but on the real device there is an erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to receive Google ChannelPresence in an ActionBean? I am trying to receive the disconnect google ChannelPresence in a Stripes ActionBean. I am currently using DynamicMappingFilter to dynamically map my ActionBean URLs. The disconnect presence was working perfectly when I was using a servlet that was mapped to "/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET 1.1 Captcha Implementation Compiler Error I'm quite new to ASP.NET. A client's server is running .NET 1.1 and I am trying to implement the simple captcha outlined here: http://www.codekicks.com/2008/04/implement-simple-captcha-in-cnet.html
I have the following code in captcha/BuildCaptcha.aspx:
<%@ Page Langua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding BarButtonItem To NavigationBar I Added a NavigationBar Through IB and I Tried to Add a BarButtonItem Programatically.....But it Doesn't Work.
- (void)viewDidLoad {
UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit"style:UIBarButtonItemStyleBordered target:self action:@selector(E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I fix high MultiTail CPU consumption in Perl? I have written a script with Perl that basically multitails files (using the Perl library File::MultiTail): after tailing each lines it does many other things but that's another story, so I just paste a resume based on the piece of code that's causing problems:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test the inner classes by using EasyMock I am new to the EasyMock. I need to test my class using the EasyMock, but here the problem is my class has inner class and this inner class is instatiated in the outer class's method and calling the method of inner class by passing some parameters. I am not sure how to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS inherit style I have a style set for many divs that looks similar. The only difference is that each div has different padding and margin setup. Something like this:
<div class="mainStyle" id="cc">CC</div>
<div class="mainStyle" id="bb">BB</div>
<div class="mainStyle" id="aa">AA/div>
And have:
.mainStyle {
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Task monitor and manager in C++ I'm looking to build a task monitor/manager using the Win32 API. It will be started (preferably as a windows service) with a command line argument specifying how many instances of a new process it should start.
task_man.exe 40
Will start 40 instances of the process
task.exe
Now, wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the path of my module in Drupal 7? This is my first time with Drupal 7, i wrote a test module that echo "test" , and in the menu the path is "test".
When i'm trying to access localhost/drupal/test OR localhost/drupal/admin/test it can't find it, and i see 404 or admin page.
What is the problem here?
this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java method to assign object field values with Reflection I was wondering whether it would be possible to have something like the following in Java:
public class MyClass {
private String name;
private Integer age;
private Date dateOfBirth;
// constructors, getters, setters
public void setField(S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Android default JSON example Android has default JSON support with import org.json. Is there any simple example of serializing and deserializing this way? Are there any advanced options for serializing/deserializing like references or inheritance?
Thanks
A: Try the first google hit.
What do you mean with serializin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem when connecting my device to PC? I can't connect my device Samsung Galaxy SII to my pc. I'm using Windwos XP 32-bit Operating System. I've also installed Samsung Kies. And, in eclipse i've also change the run configurations to Manual also. Why it's not connected. Anyone help me to connect that please? Advanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: htaccess confilcting rules for two different files Here are the conflicting rules
Options +FollowSymLinks
RewriteEngine on
# For www.domain.com it should go to my-index.php page
#
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^(.*)$ my-index.php [NC,L]
# For Accessing Division Page http://user1.d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't my rails controller stop execution after I returned false in a private method? When I run ajax POST delete on my follows controller, for a record that has already been deleted, rails raises error "undefined method `destroy' for nil:NilClass". But why does it still say that when I tried to render the res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse show warnings in my first android project I am using Eclipse indigo, android sdk 8 (android api 2.2). When i create a new android project using
Name:Bucky
Package: com.theboston.android.bucky
eclipse shows a yellow triangle on the Project. The yellow triangle eventually becomes red
A simple java project ansu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I substitute a left join in SQL Can anyone tell me how can I write the equivalent of a left join without really using left joins.
Select * from a left join b on a.name = b.name.
A: Although left outer joins are the recommended way of writing sql as compared to an alternative but still we can achieve left o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: where exactly do we need exception handling for web-services on iPhone I am a new iPhone developer and totally new to web-services as well. I had used http://www.sudzc.com/ to develop my obj-c code for my wsdl. I need to know that where exactly i need to handle exceptions in this code? Or the code generated by sudz ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ModelClientValidationRule conflict I have installed vs 2011 developer preview side by side with vs 2010. Now when i run my asp.net mvc 3 project in vs 2010 I am getting the following error in my project where i am using ModelClientValidationRule.
The type System.Web.Mvc.ModelClientValidationRule exists in both
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How to remove all nontext nodes from the beginning of the contents of a div? How can I remove the NonText Nodes(BR,empty <p> tags, nbsp) from the html of a div but only those which occur before the first text node appears. Just like stripping leading white space from a normal string of characters, but here to remove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I create an event in a trigger? Is it possible to create a new event from inside a trigger?
It's not something I'd particularly recomment, but I'm just wondering if it can be done.
I would like to fire a insert in response to an update, but have the insert be done delayed.
Right now I insert a value into a tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: update values dynamically ? So I have to write a program that will take formulas from the user and calculate them.
Age, Height, fights, (age+height)*fights <- user defined
10, 5, 10, 150 <- I calculate this
1, 2, 1, 3 <- I calculate this
But now let say I change the values around and I want the formu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Process does not show in android I have an application that I wrote which is the following package "com.pack" . When i launch the app, I dont see the "com.pack" in the list of processes being shown in the device in DDMS. How is that possible does anybody know why ? Here is the code and the xml manifest file.
package... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mongo db sorting on both parent and child collection fields Ok I have two Collections, Parent and Child.
A parent collection can have multiple Child documents.
Now I'd like to be able to to sort ChildCollection documents by it's own fields as well as the fields of it's parent. Is this possible? Yes, I could put it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: algorithm complexity question of f>>g & f>g f>g means that f>=g (f dominates g) and g does not dominate f.
f>>g means that cf>g (eventually) for any c>0
What's the difference?
A: An example:
f = 2n
g = n
You can see that f > g but f not >> g because you can choose c == 0.1 and then cf will never be > g.
However:
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drag and drop a hyperlink from one website (web page) to another I would like to add drag and drop functionality not just within a web page. The user would drag a hyperlink from a given web page and drop it into an area of another page. This page would then process the hyperlink on the server side.
A: Yo can get d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ISDATE equivalent of DB2 I have a table which contains date in character format . I want to check the format of date . Please let me know how i can do this in DB2. I know there is a function ISDATE but its not working in DB2. I am on AS400 using db2 as date base .. Please help me out
A: Actually, it looks like DB2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django database API (model layer) without installing django? I'm starting a new Python project where I'd love to have Django-like control over my database using models and SQLite, but I don't need all of Django. Also I don't want users to have to install any dependencies before using my product.
Are there any smalle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle "open with" without ApplicationDidFinishLaunchingWithOptions I have implemented "documents types" and when I open PDF in safari, I can "open with" my own application. However, I cannot get the newly imported URL, since the application is already launched and was just put in the background (Not being la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to read/write "binary" files form Hadoop/HDFS using RUBY gem ganapati I am using the Ganapati Ruby gem to read/write files from a Hadoop HDFS cluster as pointed out in this question - How to write and read files in/from Hadoop HDFS using Ruby?
But this works properly only for text files. How to make it work for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: StackOverflow exception in Java while iterating through a hash set I am trying to select some objects called elements kept in a hashset. I am iterating over the hashset called elements with foreach like
for( Element e: elements).
These selected elements are handled in an ArrayList<Element> el.
Actually, I haven'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: share Linkedin API I am working on LinkedIn share API, but I'm facing some problems.
My code:
public function shareAPI()
{
$datatopost ="<?xml version=1.0 encoding=UTF-8?><share><comment>hi</comment><content><title>Survey: Social networks top hiring tool - San Francisco Business Times</title><submitted-url>http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the purpose of a listener class in a large project I'm confused about what listener classes do. For example, in this project there is a listener class referenced as so:
<listener>
<listener-class>com.sun.javaee.blueprints.petstore.model.CatalogFacade</listener-class>
</listener>
Is it as the name impli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Insert update and delete checkbox datas in mysql database How to Insert update and delete checkbox datas in mysql database table.I need mysql query for all operations . I have only one database table for that operations. Thanks in advance
<input type="checkbox" name="sports" value="Cricket" /> Cricket
<input type="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redirect to subdirectory without losing the rooting to index.php I have the following .htacess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdir
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [R,L]
</IfModule>
It does what it should do - put... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: html form name= php variable I have a form (basically a test) that the users has to fill in. The question nr I get from the MySQL table but I can not get the question number carried over to the answer.php file.
form
$sql1="SELECT * FROM ex_question WHERE test_name = '$tid' ORDER BY RAND() LIMIT 5";
$result1=mysql... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ERROR: could not find gem engineyard-serverside locally or in a repository I am new to Engine Yard.
I just clone an app from the github , its already live at engine yard server.
Now when i try to push latest changes using ey deploy --ref production command it do gave me the error.
ERROR: could not find gem engineya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Customizing the show page in ActiveAdmin The default show page in ActiveAdmin is a table with one attribute per row. For my backend, this would be fine, except that I want to hide fields such as id, created_at, updated_at.
Is is possible to do that in a way similar to the index page, i.e. by explicitly listing the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: .Net Remoting : Windows Time change cause inoconsistcy state [I am C++ developer now working on C# & .net concept , So question may be very basic ]
I have a Server and Client based on .Net Remoting. Problem is that when i change windows time , Session between client and server goes for a toss. I asked expert who d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adobe Air, Actionscript 3: Programmatically set the horizontalscrollpolicy in a scroller to off I am wrapping a VGroup in a Scroller (by setting the scroller.viewport = vgroup), but I want to only be able to scroll vertically. In flex, a scroller component can set the "horizontalscrollpolicy" to "off", but programma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What happens to keystrokes when windows switch focus You know when you are sitting at your computer typing away, sometimes the window focus changes, a pop-up appears or a program starts and you lose focus on the window where you were typing.
Usually what happens is that whatever you are typing at the moment of the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to dismiss a pop up window? private void newGame() {
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final PopupWindow pw = new PopupWindow(inflater.inflate(
R.layout.settings, null, true), 300, 600, true);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tracking down memory leak in a plugin, using _crtBreakAlloc, _CRTDBG_MAP_ALLOC We have several after effects plugins that we have good evidence are leaking memory. To investigate this, I am playing around with Memory Leak Detection and Isolation in the vcc compiler/runtime. I enabled leak detection with:
#define _CR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In ASP.Net how can you update a database after sending a HttpResponse I am new to ASP.Net coding and have written a simple website.
The client sends a POST to my website. The post data is used to perform an update to my database, and save an image on the website. The Response to the client is very simple and could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate - Entity referencing itself through a join table with an additional column I have an annotated Entity called Part. It consists of an "id" and a few other variables. I have another table called "bomdefinitions". This table has three columns (qty, parent, target) (I understand target is a stupid name but I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode 4.1 editor text color problem While I editing code, the editor window suddenly become unreadable. I attached a screenshot (Left window has the problem). It happens 2 or 3 times a week. I'm using Xcode 4.1 on Lion and color theme is Midnight.
It happens also when I using Basic theme. When I use Basic theme tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Entity Framework or SQL In our company we have a lot of old Delphi applications and we want to rewrite them to .Net applications. These applications are very complex, because they stared with them 15 years ago and are still expanding them.
I'm the only (real) .Net developer in the team.
Now the head of the departmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: is there a way to tell if a web app was started from home screen icon? iOS/android? The app in question is a magazine that behaves like many of the iPad magazine apps, but it is a web page. I have a spinner that runs for the duration of the initial query setup, with a healthy additional two seconds.
this works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Child objects not binding to model in wcf web api Him
I'm using the WCF Web API for creating a restful services. I've a method with following signature
[WebInvoke(UriTemplate="AddJob")]
public string AddJob(Job job)
{
//...
}
The Job object has a child object RecurDay. the posted values from the form are not bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: [iOS]How to get the Calendar Event, one Recurrence as one event? I get calendar event as the following code:
NSDate *startDate1 = [NSDate date];
NSDate *endDate1 = [NSDate distantFuture];
NSPredicate *predicate = [eventStore predicateForEventsWithStartDate:startDate1 endDate:endDate1 calendars:calendarArray]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.