text stringlengths 8 267k | meta dict |
|---|---|
Q: Undefined getUserId() function in MVCTable I use atk 4.1.2. I found a problem while I tried to Insert/Update my Model. It seems like because I added two fields in my table, i.e. : created_by and updated_by.
I found these lines caused the problem in MVCTable.php:
if (isset($this->fields['created_by']))
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: remove specific html tags using php Since I dont want to use stip_tags function of php instead of I want to replace <script> and </script> to empty string so that output should be alert(1).
Input:-
<script>alert(1)</script>
Output:- alert(1)
how to achieve it.
A: I guess you want to prevet XSS attacks, you sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: view.getId() returning wrong id in OnItemClickListener In my app i have a Gallery with some images in it. When the user selects an image I want to somehow retrieve the id of the selected image.
The int that is returned by getId() is -1. Why am I not getting the system id for the image that was selected?
gallery.setO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Multiple Featured Images Wordpress So my aim is to find a method of adding more thumbnails only for displaying on a custom post type, for example I wish to have a large image (not the same image) for a featured post and a different image for the default view.
A: In the end i followed this tutorial and it did exactl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to pass variable as a parameter in Execute SQL Task SSIS? I have ssis package in that I'm taking values from flat file and insert it into table.
I have taken one Execute SQL Task in that creating one temptable
CREATE TABLE [tempdb].dbo.##temptable
(
date datetime,
companyname nvarchar(50),
price decimal(10,0),... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Inserting text in teaxtarea cannot recognize new line I am reading from a <td> and inserting the text in a textarea but all texts appearing in one line. I want to keep the formatting in the textarea as the text read from the column.
$("#text").text($.trim($(this).closest('tr').next('tr').find('.mytext).text()));... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get rank of matrix entries? Assume a matrix:
> a <- matrix(c(100, 90, 80, 20), 2, 2)
> a
[,1] [,2]
[1,] 100 80
[2,] 90 20
Suppose I want to convert the elements of the matrix to ranks:
>rank.a <- rank(a)
> rank.a
[1] 4 3 2 1
This returns a vector, i.e. the matrix structure is lost. Is it possible to ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google Maps Apiv3 + Load map on page load + a is NULL First of all: The map is working.
The script is in scripts.js, which is included at the bottom of the site.
The Google maps script is included in the header (<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>).
The problem is I am getti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with NauckIT.PostgreSQLProvider I have a problem with AspSQL Provider for PostgreSQL (http://dev.nauck-it.de/projects/aspsqlprovider).
When I try to create Roles with the ASP.NET Web Site Administration Tool this message keeps coming up:
There is a problem with your selected data store. This can be caused b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mysql repair threads not spawned In my my.cnf I specify
myisam_repair_threads=4
When I add an index to large table in the show processlist I see that mysql outputs:
Repair with 2 threads |
ALTER TABLE arman.files
ADD INDEX (md5sum)
Why mysqld does not use more than 2 cores are there more tweaks in configfile ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "find" and "ls" with GNU parallel I'm trying to use GNU parallel to post a lot of files to a web server. In my directory, I have some files:
file1.xml
file2.xml
and I have a shell script that looks like this:
#! /usr/bin/env bash
CMD="curl -X POST -d@$1 http://server/path"
eval $CMD
There's some other stuff in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to expose properties of a user control in .NET for the MVP pattern
I am implementing a simple UserControl that is actually a fancy TextBox. One of its features is that you can set a formatting specification and this formatting get's applied to its contents automatically. For example, if you set the formatting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MvcMailer: The context is already tracking a different entity with the same resource Uri i cant seem to figured out why i cant install nuget pakcage
ive tried running this in visual studio 2010 package manager
Install-Package MvcMailer
but i get an error shown below
PM> install-package MvcMailer
Install-Package : T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a string instead of an array in PowerShell? I'm trying to do the following:
$files = Get-ChildItem c:\temp | Select-Object Name
foreach ($i in $files) {
Write-Host "Filename is $i"
}
Sample result:
Filename is @{Name=oracle10204.rsp}
Filename is @{Name=powershell.txt}
How do I get only the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to store an Array into an EncryptedLocalStore item? AIR I want to save my Array's strucure and load it the next time I open my AIR application. Is there a way to store it to an EncryptedLocalStore item then get it later when I re-open the app?
A: EncryptedLocalStore.setItem() method takes a byte arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: putc giving segmentation fault? The following code is giving segmentation fault....Why ????? event tried with fputc
I think there might be a silly error i am not able to get..but don't have enogh time.
Please help...
#include <stdio.h>
int main () {
// system("sudo openssl enc -base64 -in file.txt -o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: emacs standard-/buffer-display-table alterations (transliteration experiment) I adapted cyril-util.el for having transliteration of the Mkhedruli script of Georgian language. A very quick and dirty hack, but it led me to trying to learn about display-tables. The function standard-display-mkhedruli-translit flips (us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python/pygame, pass input from a class to another class there is a way to pass a value or a variable from a class to another class without having to pass through the main function
I'm using python
A: well, of course you can access other objects attributes in methods of a specific object. e.g:
class A(object):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling methods with different signatures from a method that receives a delegate type parameter I have a generics method (ParseTo) for parsing strings to other types. This method receives a delegate type parameter that contains a method to execute:
public delegate bool ParseToDelegate<T>(string value, out T result);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Popup UIPickerView (iphone) I am creating a textField which when clicked UIPickerView comes up.
When I run this code there is an error:
Thread 1:Profram received signal:"SIGABRT".
I am quite new on iPhone development, but the person in charge is away and I am taking on a project.
If you could let me know what's wron... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Include Directories for custom build step I would like to know if there is a possibility to get the list of project's include directories when building files with custom build step.
Imagine following situation: my project consists of A.cpp, B.cpp and C.blah. In project properties under the field "C/C++" -> "Gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby on Rails SMS sending I'm trying to code for an sms server using this tutorial:
http://lukeredpath.co.uk/blog/sending-sms-messages-from-your-rails-application.html
Here they advice us to use clickatell but i have a gateway that i can use which i would like to use. However i wouldn't know how to write the bits ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compile the Oracle Instant Client Libraries for PHP PDO - Linux x86_64? I'm currently trying to compile the Oracle Instant Client Libraries for PHP PDO (Linux x86_64) and it's failing on the make step. Note: this is an old experimental plugin.
I've followed the steps highlighted on this page: http://lacot.org... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python how to kill threads blocked on queue with signals? I start a bunch of threads working on a queue and I want to kill them when sending the SIGINT (Ctrl+C). What is the best way to handle this?
targets = Queue.Queue()
threads_num = 10
threads = []
for i in threads_num:
t = MyThread()
t.setDaemon(True)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Debugging on Android hardware not in OEM list I've got a PendoPad Android device that's not on the OEM list that I want to debug an app on. I've taken the time to read the Android development site, but my device isn't listed on the OEM list.
I've got Eclipse on Windows 7 installed, and I've run my application on an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: DigitalClock remove seconds I used this code for adding a clock to my app:
<DigitalClock
android:id="@+id/digitalclock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:textSize = "30sp"
/>
The problem is that it shows also seconds..t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Dump postgres data with indexes I've got a Postgres 9.0 database which frequently I took data dumps of it.
This database has a lot of indexes and everytime I restore a dump postgres starts background task vacuum cleaner (is that right?). That task consumes much processing time and memory to recreate indexes of the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Emulate mobile Safari in OS X app WebView I am trying to make an OS X app that displays a WebView of a mobile website using basic webview code, problem is I want this WebView to automatically load the mobile versions of whatever website it's on.
WebFrame *mainFrame = [web1 mainFrame];
NSURL *url = [NSURL URLWithStr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: To stop the EC2 instance after the execution of a script I configured a ubuntu server(AWS ec2 instance) system as a cronserver, 9 cronjobs run between 4:15-7:15 & 21:00-23:00. I wrote a cron job on other system(ec2 intance) to stop this cronserver after 7:15 and start again @ 21:00. I want the cronserver to stop by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to automate firefox with powershell? I am currently doing the automation with power shell and I am stuck in the following problem ,
I have automated internet explorer with scripting in power shell,
But now i need to automate Firefox using this , i have searched and not able to track down ,
Is there any way or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The usefulness of AS operator in C#
Possible Duplicate:
Direct casting vs 'as' operator?
Where could this operator be useful? Instead of writing this:
Asset a = new Asset();
Stock s = a as Stock; // s is null; no exception thrown
if (s != null) Console.WriteLine (s.SharesOwned);
You'd better write somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: div positioning adjusting the height and width I have one div positioned inside my popup and it contains the content to be displayed inside the popup .
Now , I am implementing it to have the property overflow:auto but I have one problem here.
Here is my div :
<div style="max-height:500px;max-width:500px;overflow:aut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Center page in IE I am trying to center page on IE. If I force quirk-mode by adding <!-- some comment --> before DOCTYPE declaration margin: auto; doesn't work properly and page is adjusted to the left. If I remove the comment page is centered, but some other elements are in mess. Could you give me some hints how to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I am developping a maven project using spring mvc. I have a problem with accessing properties () using @value. when i start tomcat 6, I get the following exception :
09:21:21.703 ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating hash table using perl I am trying to create hash table using perl. I have XML file as input and it contains information about diognostic tests and test description. Test number as a key and Test description as a value to the key. Then test number and string have the key -value relation.Help me to write perl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: Rendering Color Data to a Window, Win32 So I am able to create an array of color data (projecting 3d models in case you are wondering), but I need to display them in a Win32 window. I know I could draw it pixel by pixel, but that is really slow. I know that I probably need BitBlt(); I would need it anyway if I am to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: why aren't my JLabels and JTextFields showing up in the JPanel? I have a JDialog and inside it I have a JPanel that uses FlowLayout
now I've created 3 labels and text fields using the Netbeans GUI Builder, and I want to add 2 more text fields using code
I've adjusted the size of the panel so that when I add a new la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Symfony 1.4 Doctrine fixtures load individual file? I've got a working app and I want to add some fixtures but really all I want to do is load in the new fixture file.
When i run the
php symfony doctrine:data-load
Does it re-enter data that is already in the database. If not I assume I can just call this and it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add a widget (button) to HTML5 canvas in GWT In smartGWT it is possible to add another widget (seems to use an interface) to an HTML5-canvas, as you can see in this example.
Now I'm trying to figure out, if this is possible in (raw) GWT2.4 too. Has anybody of you a working example using GWT without any additional pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to improve my performance in filling gaps in time series and data lists with Python I'm having a time series data sets comprising of 10 Hz data over several years. For one year my data has around 3.1*10^8 rows of data (each row has a time stamp and 8 float values). My data has gaps which I need to identify and f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UILabel to automatic line break when line is too long My UILabel can do a line break according to the current \n . But if the line itself is too long, it won't be able to automatically do a line break. Can I do more configurations to my UILabel to achieve that?
And I've already used:
aLabel.lineBreakMode = UILineBre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Storing Loggedin User details from UI and use that in BL methods I am working in a DocumentManagement System. The users defined in the database can create/manipulate his own documents based on their access rights defined. The owner of a document can let other user access/modify the document (stored as XML Contetnt).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery ajax call returns error on successful call to a servlet I have a servlet that adds a user to a file on the server side.
I invoke it with a jqueries ajax call.
I can see on the server that the method is being called correctly and my user is added, but the error callback is being invoked on the jquery call. All... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why didn't the dialog in the class execute? Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
connect(ui->addButton , SIGNAL(clicked()) , this , SLOT(addItem()));
connect(ui->editButton , SIGNAL(clicked()) , this , SLOT(editItem()));
connect(ui->delete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: OnRender Method does not work with more than 144 controls I have a custom TextBox which overrides the OnRender method. Unfortunately, OnRender does not work properly when I add more than 143-145 TextBoxes to the grid.
This is what a windows with 160 TextBoxes looks like in the wpf designer. Each TextBox sets the bor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: kth order Fibonacci numbers series I am reading an article on Fibonacci numbers at following link
http://xlinux.nist.gov/dads/HTML/kthOrderFibonacci.html
F(k)n = 0 for 0 ≤ n ≤ k-2
i am not getting what about above statement.
For example when k = 3 and n =2, 0 <= 2 < 1 which is not making sense? can any one p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the correct ASP.NET Control event/method in which to add nested controls? What is the correct event/method in the ASP.NET life cycle to dynamically add Child Controls ?
My objective is to ensure that all the input controls on a User Control have the correct associated Validator and Label controls, based on c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why webform (asp.net-3.5)appears excluded after copying it to local system from the production server? I have jsut copied one web apllication (web project) developed in asp.net 3.5 with c# and working fine now, from the live server to my local host. My question is The form which is avialble in live server is not avi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CXF - JAX-WS server side Schema Validation does not find element definition I have a web service that defines severals schemas in the webTypes section. I define a read operation which type is define in this schema:
<xs:schema version="1.0" targetNamespace="http://example.com/webservice/service" xmlns:ns0="http://exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Glsl mod vs Hlsl fmod I've implemented the spiral GLSL shader described in this question in HLSL, but the results are not the same. I think it's because of the mod function in GLSL that I've translated to fmod in HLSL. I suspect that this problem only happens when we have negative numbers in the input of the fmod ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you append your sub-views in Backbone? I have a Backbone app that renders several related views on each page they you navigate to. For example, one page renders the following views:
*
*Context bar
*
*Drop-down menus
*Pagination
*Main table
*
*Table rows
The main table view here is the first to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Facebook, send sk and app_data in send Dialog I have an app that has a function to send app_data as part of the URL.
When the link is clicked the dialog pops up to select friends and the link at this stage is correct.
However when friend receives the message the link is to the business page no the original link.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to handle a custom protocol on Blackberry I'm trying to integrate my application with the web browser on Blackberry platform: the application should be registered as the default handler for a custom protocol (something like "myapp://link-to-resource")
How do I implement it? Is it possible in the first place?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7610640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Open any image through my app I have image on my email and I have to open it through my application just like when I press on image it gives the action sheet. I want to show my app option on it.
A: <key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>PDF</string>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to convert .exe setup file to .scr file? I am doing screen saver project so i want to convert project .exe file to scr file.
A: Just rename the file. A .scr file is identical in format to a .exe but by convention has the .scr extension. I expect that you can configure a WPF project to output a target with .scr ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resolve memory crash I'm creating an application which features having multiple animations.
There are 50 pages and on each page there is a different animation and each animation uses many images.
I'm using UIPresentModelViewController for presenting the views and
am changing images using NSTimer.
When I swipe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Integrate html form with jQuery plugin I have a HTML form which submits the data to a cgi-bin script which in turns provides some output.
I have seen this example that show a modal box with jQuery. This would be perfect for showing the output of the cgi-bin! The problem is that this example works with a
<a href> and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reference to current object in constructor I'm trying to define a class that, in its constructor, instantiates other objects and passes them a reference to itself:
var Child = function(m) {
var mother = m;
return {
mother: mother
}
}
var Mother = function() {
var children = makeChildren();
return {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to store absolute and relative date ranges in SQL database? I'm trying to model a DateRange concept for a reporting application. Some date ranges need to be absolute, March 1, 2011 - March 31, 2011. Others are relative to current date, Last 30 Days, Next Week, etc. What's the best way to store that data in SQL t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should autoboxing be avoided in Java? There are instances where a method expects a primitive type double and you pass a Double object as a parameter.
Since the compiler unboxes the passed object will this increase memory usage or decrease performance?
A: This is what Java Notes says on autoboxing:
Prefer primitiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Compact SQL Remote Access I'm kind of newbie to the compact SQL edition and willing to use it in a new project which need to store local data but I would like to access to it from a remote computer also.
Is this possible? or is it meant only to be accessed from the local application ?
To be clear, I have an applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET app doesn't want to run Okay, so, here's my problem: I have developed a .NET 4.0 (Client Profile) + SQL Server Compact application for someone and that someone reported the following issue: the application doesn't start at all. No errors, no exceptions, no messages, no nothing. The loading cursor shows up for 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any advantages to making a free static function? I have a .cpp file which has some static free functions. I know how that would help in a header file, but since the cpp is not included anywhere, what's the point? Are there any advantages to it?
A: Declaring free functions as static gives them internal lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: WatIn test innerText contains a whitespace at the end. HTML does not I'm using WatIn to automate IE9 testing of table.
Text of cell contains a trailing whitespace that is not in the HTML.
I have stepped through the WatIn code and found it is asking for innerText attribute. The value of innerText also have the trail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: object rotation is not proper - iPhone application I am facing a typical problem in rotating an object. Description is as given below
I have taken two CGPoint let say point1 and point2
point1 = (50,50)
point2 = (150, 50)
this point will draw a horizontal line.
Now i am drawing a rectangle with that point on it. Widt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to create map in parallel with scala? Suppose I have a collection which should be converted to Map, but not in one to one fashion like map method.
var map = collection.mutable.HashMap()
for (p <- dataList.par) {
if(cond1(p)) {
map += (p, true)
} else {
// do nothing
}
}
I've come ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Passing vector of Class> objects to other activity - in Android I'd like to ask what I'm doing wrong if I want to pass such data to other class:
String [] codes = {"code"};
Class<?> [] classes = { TestActivity.class };
Intent i = new Intent();
Pack p = new Pack();
p.eat(classes,codes);
i.putExtra(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning a list of wildcard matches from a HashMap in java I have a Hashmap which may contain wildcards (*) in the String.
For instance,
HashMap<String, Student> students_;
can have John* as one key. I want to know if JohnSmith matches any elements in students_. There could be several matches for my string (J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to invoke "{Model.Foo} updated" after model update? I have a javascriptMVC Model
/**
* @class Hzfrontend.Models.Warmwasser
* @parent index
* @inherits jQuery.Model
* Wraps backend warmwasser services.
*/
$.Model('Hzfrontend.Models.Warmwasser',
/* @Static */
{
findAll: "/api/warmwasser",
findOne : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: how to keep only first 50 char of a string I have a string which
x = "very_long_string_more_than_50_char_long"
I want to keep only first 50 char and delete the rest.
how would i do that?
thanks
A: use the powerful slicing mechanism:
x = x[:50]
A: You could use slicing
x = "very_long_string_more_than_50_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to send the mouse event to the ajaxSetup beforeSend? I have few buttons that call Ajax functions (submit contact form, submit newsletter, check if user is valid/already registered, check user status etc...)
I use the ajaxSetup to show a Loading Dialog every time someone click on a button in order to tell him to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Wordpress - Remove submenu from custom post type I created a custom post type named portfolio with tag taxonomy support.
Since WP does not make a difference between post tags and custom post type tags, I created a menu item Taxonomy under which I want to put categories and post tags. I managed to create the the menu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ria services how to query with Nolock - Read uncommited functionality Is there a way to implement a nolock - read uncommited functionality in specific queries in RIA Services (silverlight 4)?
In Linq To Sql i can achieve the same result by setting the isolation level of the transaction to IsolationLevel.ReadUncommi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Seeing a ViewController behind the displayed one Is it possible to view the viewcontroller behind the displayed one? I have a viewcontroller with a scrollview, which has imageviews added as subviews and would like the view that presented this viewcontroller to be visible behind the presented view controller.
I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hiding a specific no of div on page load Lets say i have following html structure-
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>blah</div>
<div>bla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: To run cmd as administrator along with command? Here is my code:
try
{
ProcessStartInfo procStartInfo = new ProcessStartInfo(
"cmd.exe",
"/c " + command);
procStartInfo.UseShellExecute = true;
procStartInfo.CreateNoW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to track direction of a motion? How do I track the direction of a motion in Android ?
Think WiiMote, it can track what direction you move it (not talking about the IR lamps), is it possible to do similar in android, if so, how?
Some basic code in either Java or B4A is appreciated, but it's enough if you tell m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically searching and choosing a network provider I'm currently developping an application that resets your connection when your signal strength is too low.
I'm trying to do this by searching and choosing your network operator (settings-> wireless and networks -> Mobile networks -> Network operators).
I no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PDF printing error I am using TCPDF to generate custom size PDF files to generate Courier Receipts. To print this receipt I am using Dot matrix printer with continuous stationery. custom Height of page is 4 inches (288.000) as per TCPDF but acrobat reader is showing minimum height is 4.12 inches. therefore at the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC3 Cookie not included in request until after refresh or visiting a second page BACKGROUND:
I'm using two MVC3 websites for mixed mode authentication. I'm authenticating a person using windows authentication in Site1, and then forwarding that person onto Site2 which uses Forms authentication. My solution was to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Constructor not working, compile error I was looking at a game engine code and I tried to reproduce myself but I got a compile error.
Main.as
package {
import flash.display.Sprite;
public class Main extends Sprite
{
public function Main():void
{
var firstDoes:AB1 = new AB1();
firstDoes.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieve Email Id from FaceBook Login in vb.net application I want to integrate Facebook with my .net application which is in vb.
I want to use facebook login as open id login to my application.
I reached to login with fb and get all basic information of my facebook profile.
But still I do not get facebook login id(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JPA createNativeQuery call procedure with non standart name I'm trying to call an Oracle procedure using Persistence API:
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void removeProcess(User user, BigDecimal processId) {
EntityManager em = emb.createEntityManager(user);
em.createNativeQuer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: prevent mobile default keyboard when focusing an from showing this is how i'm trying
<script type="text/javascript">
$(document).ready(function(){
$('#dateIn,#dateOut').click(function(e){
e.preventDefault();
});
});
</script>
but the input stills 'launching' iphone's keyboard
ps: i want to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: Launch4j JRE Installation or bundled I'll ship my application as .exe file on a cdrom.
When the end user gonna start the program, the following events should occurs (in case he hasn't got any valid JRE installation):
*
*If the user hasn't got an internet connection, the program (exe file) should use an embedded ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jBPM and Object Oriented Programming and Framework I need to ask a very general question.
I recently saw some sparks of the jBPM through tutorial, what I didn't understand, is where do we need such a tool ?
Is this tool to replace OOP programming ? A developement process ?
In the end, is it possible to generate a BP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Validate - Set all fields as required by default? I am using the jQuery Validate plugin on my form, and was wondering how I would set every field to be required by default?
I am using a custom method called 'methodname' and I tried the following code to no avail:
$.validator.setDefaults({
methodname : tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Eliminate a single element type from XML using XQUERY Here is my problem... I need to select everything in an entire xml document, but leaving out one tag. Unfortunately, this tag can vary in depth.
Using the following code sample, I would like to remove all <crud>, <crud2> and <...> (etc.) elements. <crud> could ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Javascript Object.innerHtml is not substituting the whole string parameter provided newcell.innerHTML='<td id=\"blah1\">'+BLAH+'</td>';
For some strange reason my <td>BLAH</td> is correctly rendered on the page but any attributes that I give inside the td tag just don't display. Any pointers?
Sorry if this might sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the supported operators and commands in FQL? I'm trying to compile a complete list but the sources don't agree.
Here's what I've got so far. Let me know if I'm missing anything, or if I've put anything in incorrectly.
Basic format: SELECT [fields] FROM [table] WHERE [conditions]
In the docs: now(), strlen()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .htaccess Wildcard Redirect Fix I am using the following code to redirect wildcard subdomains (*.domain.com) to their coresponding folder in /users and redirect direct requests to the /users folder to the subdomain version:
Protect Direct Access to Wildcard Domain Folders:
RewriteCond %{HTTP_HOST} ^www\.domain\.com$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add custom headers to WebView resource requests - android I need to add custom headers to EVERY request coming from the WebView. I know loadURL has the parameter for extraHeaders, but those are only applied to the initial request. All subsequent requests do not contain the headers. I have looked at all overrides ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: Logging problems when using modules individually I'm making extensive use of the logging module in all my own modules. This works fine when I create a configuration for the logging module in my main routine.
But when I want to test one of my modules individually in an interactive shell and logging.getLogger("foo") i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: App was not working in some mobile devices I developed an application. My application includes video recording and playing.
I have to play video what I have recorded from mobile. This is working in most of devices(Samsung galaxy ace,Motorola Droid x, etc.,) and not working in some of devices(Droid x2,Nexus,etc.,).
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Plone make login mandatory on every page but main page A customer wants to have its Plone site behave like this:
*
*the main page can be seen by anonymous users
*you have to be registered and authenticated to see any other page
*the site is open for registration, so the forms to authenticate and register should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lucene Proximity Search with multiple words I am trying to build a query to search an Lucene index of names with name variants.
The index was built with Lucene.NET version 2.9.2
The user enters for example "Margaret White".
Without a name variant option, my query becomes "Margaret White"~1 and it works.
Now, I can l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: xsl: Store multiple items in a variable or param for later use I need to transform an xml to some custom xml format.
In the new format i would have many sections node and for each node i am creating a unique id using:
<xsl:attribute name="identifier">
<xsl:variable name="uid" select="util:randomUUID(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create a distribution file for downloading with wget at github - no git needed I'd like users to be able to issue something like:
wget https://nodeload.github.com/opensas/play-demo/zipball/master/opensas-play-demo-bb3a405.zip
without having to clone the whole repo, nor browsing to github to manually download it
appa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difficulty installing and using Mercurial Chart extension Hi I'm having trouble installing and using the Mercurial ChartExtension
When I installed it as per instructions
First you need to install the extension; type this in your shell:
python ./setup.py install
Blockquote
I then modified my mercurial.ini f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xpath - Group matches as combined results I'm having the following problem, I want to create a Xpath expression that results into 3 matches, where match1=text1text1text, match2=text2text2text2 etc.
I'm able to find each p seperate, but i just can't 'group' them.
What the expression should say is: "after a[@class="r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.