text stringlengths 8 267k | meta dict |
|---|---|
Q: How to improve request time to a WCF Service from Silverlight? I have a Silverlight project in a solution of Silverlight Application. I also have a WCF service hosted in the same solution which exposes some method to the Silverlight app.
When I make a call to the service method from Silverlight it takes 4 seconds t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE (again) messes up template, float problem I'm coding my template and everything works and shows well in Chrome and Firefox, but again... Internet Explorer messes the whole thing up.
I tried looking for solutions but I'm stuck here.
Here is a link to the website. If you can look at it real quick in chrome/firefox ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl how to strip nested bbcode tags? Here is the code:
use perl5i::2;
my $string = '[size 9]Some larger text. [i]Italic[/i] here.[/size]And [b]bold[/b] text.';
$string =~ s/\[(.+).*?\](.+)\[\/\1\]/$2/gi;
$string->say;
The result is here:
Some larger text. [i]Italic[/i] here.And bold text.
Is there a single re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to show running time in terminal? I am using Python for a while and I learned that by some method like timeit() I can estimate the running time of my programe.
But, is it any way that when my programe finished in the terminal, it also print out the running time?! (any terminal command do that?!)
A: Use the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SUP101: blackberry I've been following the SUP101 tutorial for both IPhone and Blackberry.
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01208.0152/doc/html/vhu1236620712162.html
I managed to make both work.
But, when I tried to launch the SUP101 tutorial for Blackberry on a device I ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: li:odd li:even not working I have this piece of code in my Wordpress theme:
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$ ('ul li:even').addClass('even');
$ ('ul l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Allow any character in URL I want to deliver an URL using Post in HTML/PHP with codeIgniter. So I output my URL's BASE64-Encoded in a hidden field because the URL is crawled from Googles response Page and nearly any character can be in the URL. As I'll only use my website on a local server (it's a SEO tool for my co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TSQL-Join on own table, selecting the latest row only I have a table tbl_Partner (shortened) with two "duplicate" partners:
RecordID (GUID) | RISEID (varchar(40)) | UpdateCounter(int) | etc. ...
-----------------------------------------------------------
12345678-9012-3456-7890-123456789012 | RISE123 | 0
87564321-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to know file creation date I have a files list which contain the directory of file. I want to know file creation date of that files. I used fileInof.CreationTime. But It is not displayed creation date. How I can know about this.
'Get file info
Dim FileInfoVar As FileInfo = New FileInfo(Server.MapPath("~/Imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference in blocking between sys.log() and console.log() and console.error()?
*
*Is any one of sys.log(), console.log(), console.error() blocking? (var sys = require("sys");)
*How is sys.log() different from console.log();
A: From Firebug Wiki:
console.log writes a message to the console. You may pass as man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: /dev/rfcomm0 goes stale, but I can see Bluetooth device is still sending data I am working with a Bluetooth sensor device on Linux. I use the standard tools to connect to it on a serial port, so:
$ sudo rfcomm connect 0
Connected /dev/rfcomm0 to 00:07:80:93:52:3B on channel 1
Press CTRL-C for hangup
I have a Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I remove linked library from executable file All.
Someone created an executable file.
# ldd test_bin
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4082d000)
libA.so.0 => /usr/lib/libA.so.0 (0x408fe000)
libB.so.0 => /usr/lib/libB.so.0 (0x4093e000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to call external server page with PHP that includes JS? There is a website which includes a JS code. Normally, when the page is opened by a user this JS code starts manually and provides a link about 10 seconds.
I am trying to catch this link. In PHP, I call this page with file_get_contents function, however as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert string into datetime Using VB.Net
When i click the gridview column, that selected column items should appear in the datetime picker
GridView Column value is string, datetime picker datatype is datetime
Code
Private Sub gridview1_CellContentDoubleClick(ByVal sender As System.Object, ByVal e As System.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When changing schemas must I update the receive pipeline component?
There was a failure executing the receive pipeline: Reason: No
Disassemble stage components can recognize the data.
I had some sort of automate generated schema (.xsd) and needed to add two columns and added those manually.
Then I updated the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shockwave Adobe Flash Player - get video duration in javascript I have a flash video and a embed code which display it.
I want to get the video duration in javascript.
Is it possible?
Embed code is like this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="myFlashMovie" alig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: error in file input hi guys this error is rendered when i submit my form
this error is
File 'captured_photo' exceeds the defined ini size
i made a trial to change the php.ini to 10M but still has the error
$uploaded_photo = $this->createElement('file', 'uploaded_photo')
->setLabel('upload image 2:')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any difference in following 2 jquery code snippet? Is there any difference in following 2 jquery snippet? Both gives same output but does any one have any advantage over other or they are just one's choice to write like this to do the thing.
Snippet 1:
div = $("#myDiv");
div.append("<ul>");
$.each(cobj, fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: files related to process core dump creation in linux kernel just need to look for process core dump creation in linux kernel. Can anybody please point me out what files to see for x86. Specifically, i'll be looking for if the procedure can be tweaked to pass on certain information via proc file system from the user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does google map use Canvas to make distance measurement not SVG? I use chrome debug tool to compare google map and other maps.
I found for the distance measurement function, google map use canvas to draw the path and some others use SVG.
I assume that maybe this is because canvas is faster. But SVG have many goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Actor-based distributed concurrency libraries for Ocaml and other languages Question
Can anyone recommend a library for Ocaml that offers an actor-based concurrency model for distributed computing?
Note here the "actor-based" and "distributed" - I'd like the actor-based model, but also I want seamless handling of di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: event to identify Call Answering In Android Hi i am developing call recording application. I want to know call answering event. For example if the user lift the call then i have to start recording. How to know whether he answered a call or not
A: http://peacemoon.wordpress.com/2009/08/06/android-listening-to-incomi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why "int main(anything_you_type)" doesnt produce any error? Here I have written my name in main argument declaration but still this program works and did not give any warning.
#include <stdio.h>
int main(Mr32)
{
printf("why this works?");
return 0;
}
Whenever I write anything in place of mr32 , The code s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Help parsing text file in python Really been struggling with this one for some time now, i have many text files with a specific format from which i need to extract all the data and file into different fields of a database. The struggle is tweaking the parameters for parsing, ensuring i get all the info correctly.
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert string date to system datetime in C# I want to convert string date to system datetime in C#. The user enters date through textbox and it should be converted as to datetime. I trid following code but its not working...
DateTime ToDate = Convert.ToDateTime(txtToDate.Text);
DateTime FromDate = DateTime.Parse(tx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it necessary to always Select()... new{Anon}... AsEnumerable...Select(new EntityType{}) every time? I keep running into a pattern whereby I want to select rows from an Entity Collection (EF4) and use the data to create new rows in a different entity collection.
The only way I have found to do this is to perform t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any tool to help writing programing article with MS Office Word All! When I use MS office 2010 Word to write an article about Java, I always need to embed some Java code into the document. I wonder whether there is such a plugin for Word, or another software tool, that can help me do such a job.
Especially features ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSF 2.0,partially rendered form field input value not updated in the bean I have an Edit product form which is pre-populated with values from DB . User can change one or more values and post the form back. One input field called t:inputFileUpload is rendered only after an ajax request ,if the user opts to change pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: dojo.declare: unknown base class - dojo.Stateful So I'm learning Dojo and seeing what I can do with it - I do apologise if this is a stupid question but I can't find a solution.
My code:
dojo.require("dojo.Stateful");
dojo.declare('W.Model',dojo.Stateful,{
foo:'bar'
});
The error:
Uncaught Error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trigger the second jquery calendar I have two jquery calendars in my page( #from and #to). My question is how to popup the second calendar("#to"), after selecting the date in first calendar ("#from") popup.
Thanks in advance.
A: You need to call .datepicker( "show" ) function in onSelect function
$( "#from" ).date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is it possible to access cross site POST method in Extjs4 i try with this code it is possible to access get method but i wont to access post method so how can i do that
Ext.define('User', {
extend: 'Ext.data.Model',
fields: ['id', 'name', 'email']
});
var store = Ext.create('Ext.data.Store', {
mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to apply a refactoring script just for its side-effects? I've got a library that was changed to introduce a factory method to replace a constructor (the reasons aren't important right now, in the current case it was for improved type inference mostly).
Assuming that there is an Eclipse refactoring scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Android NDK and ALSA Hello I have a library that is compiled under the Android NDK. This library for audio uses ALSA.
Question - is it possible to play audio in Android through the ALSA? If so, whether it is necessary for this to compile ALSA for NDK?
A: There was alsa-lib project in external in android sources. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to continuously monitor the directory using dnotify /inotify command I am new to dnotify/inotify command. Can any one help me how to write a script such that it continuously monitors a directory and indicates that there is some change or modification to it.
A: As I said on https://superuser.com/a/747574/28782, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Adding click event to Window or document buggy in IE Using the prevel framework to add a event is done like below
pl(window).bind("eventname",handlerFunction);
So I did this
pl(window).bind("click", function (ev) {
if (ev.which == 1) {
alert("Clicked");
}
});
On clicking the document or window I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Geting json response from Google places API in android My simple android application uses google places api to get the latitude and longitude of a place. I am getting the json response from the google api as below
{
"results" : [
{
"address_components" : [
{
"long_n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom single KeyValuePair class vs NSMutableDictionary I came into a situation where I had to write a loop with a good amount if iterations and in this loop I had a NSData object that I had to associate with a key. This lead me to search for a simple objective-c _KeyValuePair_ class but coulnt not find one so I wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: webdriver-test is unusable On a virtual machine (clean, fresh Ubuntu server 11.04) I created a test website as described in Creating Your First Yii Application and now I want to create simple test using webdriver-test.
I set up proper TEST_BASE_URL in protected/tests/WebTestCase.php and created protected/tests/funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to get attribute value from SAX xml Parser in Android? my XML is :
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/'
xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007'>
<media:group>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting to NSDate from NSString I am trying to convert a Nsstring object to Nsdate.My code is like this
NSString *Time=@"09/26/2011 2:06 AM";
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
//[NSDateFormatter setDefaultFormatterBehavior:NSDateFormatterBehaviorDefault];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Difficult Regexp I need a regexp which does the following:
Heres the name of an HTML input field:
lm[0][ti]
I need to find the basic name ("lm"). Only if the name contains brackets I need to find the string in the second brackets ("ti").
To get it in portions is easy with the following regexp:
([a-zA-Z\d_]+)\[?([0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android neighboring cells info I am using Samsung Ace S5830 phone running on Android 2.2
I am facing a problem that when i try to get neighboring cell information it returns me an empty list. but when i get in the service mode of the phone with the code ##197328640## and then click on neighboring cells it shows me t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delete all portlets site-wide in Plone What's the best (or simplest) way to delete portlets site-wide in plone 4.x?
A: It depends. If you have a small amount of local assigned portlets I suggest the manual way. If you have a complex assignment of local portlets you could take this way:
1- create a browser view link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 3 ArgumentError: wrong number of arguments (3 for 1) After migrate on Rails 3, I have error "ArgumentError: wrong number of arguments (3 for 1)"
For line:
<%== auto_link(raw(simple_format(h(comment.comment))), :all, :target => '_blank') -%>
Backtrace:
app/views/logs/_entry.html.erb:94:in `raw'
app/views/logs/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Plugin Boxy, before boxy loading In vBulletin version 4.1.4, to open a window with attachments, I use the jQuery Plugin, Boxy . It is in the template, threadbit and is working fine. But when the box is loading, I want to show an image that something is happening. After the loading process, this image should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Locking stored procedure I have a stored procedure with a select and an update. I would like to prevent multiple users, from executing it, at the same time, so I don't update, based on an incorrect select.
How do I lock it?
I've read various solutions (Transaction isolation, xlock), but I haven't been able to figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get archetype catalog failed(can't load Ahcwagon)-m2e-0.12.1 I'm trying to use m2eclipse api to import projects by archetype.
my code is here:
RemoteCatalogFactory remoteCatalogFactory = new RemoteCatalogFactory("http:/server1/archetype-catalog.xml", null, true);
ArchetypeCatalog catalog = remoteCatalogFacto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to count all nodes based on my specfic criteria using xslt 2.0? This is my XML file.
<w:document xmlns:w="w">
<w:body>
<w:p>
<w:r>
<w:pict>
<v:shape xmlns:v="v">
<v:textbox>
<w:txb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing traffic on a webapp (Spring, Hibernate, Java) I am developing a webapp and am looking into how I can automate testing of the web site such as seeing how it copes with multiple concurrent users / heavy traffic. Could anyone point me in the direction of any software or techniques I could be using to help me d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to restrict developers to use reflection to access private methods and constructors in Java? How to restrict developers to use reflection to access private methods and constructors in Java?
Using normal Java code we can't access private constructors or private methods outside of a class. But by using reflection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Error when running asp.net MVC application under IIS7 that works when run locally I am trying to modify the Ext.net Mvc sample in this link
http://mvc.ext.net/Account/Login/?ReturnUrl=%2f
The project is working perfectly when run locally in Visual Studio 2010 but when I deploy it on an IIS 7 server, after I login t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HDLC Frames - Octets/modulo 8 doubts I am trying to implement the HDLC frame format type 3 and I have some doubts as regards Octets/Modulo 8 encoding of frames.
*
*Firstly, Is the HDLC frame transmitted entirely in Octets?
*What do they mean by a frame is 'n' Octet in length? Please give an example.
*I believe ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Startup same .exe file with different app.config 's Is there a way (maybe from command line) to start the same exe file twice using a different app config?
A: var configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = @"myconfigpath";
var config = ConfigurationManager.OpenMappedExeConfiguration(co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate Query selection In a database consider that I have a table with 4000 rows. I am using JTable to list them in front end. During page load, I need to display only First - 20 rows. I have NEXT and PREVIOUS button in top, so that if I click NEXT button, next 20 rows must be fetched from database and loaded in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL - How to join two tables without duplicates? I have two tables like the following
hotels
------
hotelID
hotelName
Second table
operators
---------
opID
opName
opServices
opHotelID
a short explanation: In the first table I have a lot of hotels which have an increment id which is unique. The second table conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery.bind and .trigger without jQuery I want to do the equivalent of this:
$(window).bind('resize', function () {
myResizeFunction();
}).trigger('resize');
without jquery.
The reason being is. This is the only part of code in my javascript library that uses jquery.
And i see no point in including jquery if im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC3 where to pu the logout display i'm creating an MVC3 C# application. i createtd a login attribute which only appears when a user chooses to either create,delete,or edit data stored. To logout, i put the HTML code in th layout view, but its displaying on th homepage even if the user did not log in. how do i make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HttpSession safe Where is servlet HttpSession stored?
Is it safe to store sensitive information in HttpSession attributes.
Can user maliciously modify session attributes?
A: Where HttpSession is stored depends on the application server implementation and the configuration selected by the deployer. Usually it is sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I pass variable with Ajax link in Rails? I want to pass variable with link_to_remote in Rails 2.3. Following is my code for passing variable. But controller did not get that variable. Anybody can help me ?
<%= link_to_remote 'Add new event', :url => {:controller => 'events', :action => 'new' }, :with=> 'even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Result of XMLHttpRequest dissappears I am trying my hand on PHP. And I've landed at the client-server connectivity.
Now I have a server-side script that applies random math to an x and a y value that it gets via an XMLHttpRequest:
<?php
$farr = array(
create_function('$x,$y', 'return "x + y = ".($x+$y);'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Progress Dialogs with Sound in Android I have searched around for possible answers, but did not find one that came close to what I require.
I am after creating a progress dialog in Android, the standard one with the spinning disk. However, what I want is for the dialog to play a looped sound sample as it spins whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dictionary or KeyedCollection? I have a class (SomeClass) which contains a property Name of string type. And I need to store an array of that class and find its items by their names. For this purpose there are two types of collections: KeyedCollection and Dictionary. My question is: What difference between them and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: mongodb map reduce value.count In mongodb, I have a map function as below:
var map = function() {
emit( this.username, {count: 1, otherdata:otherdata} );
}
and reduce function as below:
var reduce = function(key, values) {
values.forEach(function(value){
total += value.count; //note this line
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Surely schedulers aren't this harmful? Don't we have better APIs? I'm wondering what APIs are available to avoid the following problem.
Casting my mind back to Operating System lectures on my old CS course, the topic was multiprocess scheduling and concurrent I/O. Here's what the lecturer gave as an example of what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the max. length of a Facebook uid? I've seen multiple sizes and I don't want to waste server memory on a MySQL field which is reserving too much space for too many characters. What's the biggest they can get and will this ever change?
A: This is how integer overflows, integer->string migrations etc happen, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: datatemplate in silverlight c#.net i am creating a datatemplate for items in listbox and loading it using
(DataTemplate)XamlReader.Load(template), where template is
string template = String.Concat(@
"<DataTemplate xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: File transformation, is it possible to add autoincrement to a setting In our automatic build we use MSBuild in combination with web.config transformation to create an acceptance config and a production config.
We have added attributes to change config settings
for example to change the cdn url's.
<add key="cdn1url" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error: Persistent store migration failed, missing source managed object model. I'm getting the following message error:
Error: Persistent store migration failed, missing source managed
object model.
I've copied a xCode project from the company mac to my mac (same configuration: Snow Leopard, XCode 3.2
I've clean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can boolean properties' accessors be synthesized according to the coding guidelines (ex: isEnabled getter)? I've read the Coding Guidelines for Cocoa for accessor methods and it invites you to write getter methods for instance variables expressed as adjective (ex: enabled) as isEnabled instead of simply enabled.. is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why curl prints XML response? I'm using curl to do post request, for some reason it prints xml response, which is something that I don't want to happend. how can I get rid of this behaviour?
/**
* Send post request
**/
function post_request($sendHttpUrl, $data) {
$ch = curl_init($sendHttpUrl);
curl_setopt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get CKA_ID from public/private Key pair of USB Token? I have a USB token contain certificate, public/private key pair, how can i get
#define CKA_ID
Key identifier for public/private key pair (default empty).
From PKCS 11 document using C++?
A: *
*First find the certificate with CKO_CERTIFICATE. (C_FindObje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace the C socket API in C++ on z/OS I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined. but still i am facing the issues getting the C sockets API to work properly in C++. please help me...
A: check out the z/OS UNIX System Services sockets section in the z/OS XL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Could i extension the ModelStateDictionary Class in MVC3 in the ModelStateDictionary class there are only AddModelError and Add function , i want extention the class, add the method like AddModeSuccess,AddModelWarning.
i have a look at the MVC3 source code and found there a lot of thing need add. i don't want to mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to call date on cell selected from datepickerview in iphone hi friend i have to make date application
i have groped tableview.i have one section and two row
when my application start i am showing default date on both cell on first cell i was showing today day+1 and on nextcell i am showing today day+6 they i c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete Site from Archiv Widget I created a Page in WP and i found it in the Archiv-Widget.
Is there a way to create a Page and don't show it in the Archiv?
I use WP 3.0.5
A: There isn't a way of excluding items using the built-in archive widget, unfortunately.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7566706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with large Backbone collections We're designing a backbone application, in which each server-side collection has the potential to contain tens of thousands of records. As an analogy - think of going into the 'Sent Items' view of an email application.
In the majority of Backbone examples I've seen, the collec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I extract sprocs/tables/functions from a specific schema? I need to extract all the tables, stored procs and functions from an SQL Server 08 db that are under a particular schema. I could filter the displayed items in Management Studio and then do Script As -> Drop/Create for each of them, but I would really... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FastReport processing click on the field The question is how to handle a click on the field and call the procedure from the main program.
A: Yes, it is. I don't know what you mean with the field and what version of FastReport you are using, but I'll try to show you the principle of interaction with the report objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fluent NHibernate - always drop table Hi I start learn Fluent NHibernate. I am using this tutorial http://www.d80.co.uk/post/2011/02/20/Linq-to-NHibernate-Tutorial.aspx.
Here is my sample code:
public class Account
{
public virtual int Id { get; set; }
public virtual string Nick { get; set; }
public virt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JAX-WS Client can't connect after redeployment (NullPointerException in SymbolTable) When we redeploy our webapplication with an jax-ws client, the client can not connect to the webservice. While connecting to the server it throws this exception:
java.lang.NullPointerException: null
at com.ctc.wstx.util.SymbolTable.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change the text of UISwitch I want to change the switch control text YES/NO in place of ON/OFF , i am not know is it possible or not. if its possible and any one know about it please help me?
Thanks
A: I think its not possible to change the text of switch in proper way, but every problem has minimum one solution so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: load does not work with certain url's I use a web service that lets me easily create a contact form and manages the messages for me. I have this direct link from them that works fine and opens a new page with the contact form.
This is the link:
http://apps.cyberth.com/webform/?event=form.show&formId=8957&key=B522002... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to wrap create and sqlalchemy-migrate alter statments in a transaction I'm trying some db schema changes to my db, using the sqlalchemy table.create and sqlalchemy-migrate table.rename methods, plus some insert into select statments. I want to wrap all of this in a transaction. I can't figure out how to do this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get content of httpWebresponse in proper string form? Sometimes I am getting kind of garbled response from several web sites.
Here is my code:
Stream responseStream = response.GetResponseStream();
buffer = new Byte[256];//
int bytesRead;
while ((bytesRead = responseStream.Read(buffer, 0, buffer.Length)) > 0)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLite, how to entities associations without foreign keys? I am trying to figure out the way of creating table without a foreign key under sqlite. I would like to avoid the use of foreign key due its incompatibility under some applications I am working now.
Could anyone please show a simple example with maybe two ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory management with NSThread I have an app that needs to signal continuously a word in morse code. I did this by creating an NSThread and running some code inside the selector with a "while loop". Here is the code:
@implementation MorseCode
-(void)startContinuousMorseBroadcast:(NSString *)words{
if (!(threa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression to match only two numbers I have such string:
something: 20 kg/ something: 120 kg
I have this regex ("[0-9]{1,2} kg", string), but it returns 20kg both times. I need to return 20kg only in first case.
A: Try this:
(?<!\d)\d{1,2}\s+kg
The (?<!...) is a negative look behind. So it matches one or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to display Image on top of every view in android (eg. Like cracked screen app in market) I want to create something like Better Cracked Screen.
The cracked screen remains top of everything.
I am not able to get how to make such thing which resides top of everything.
Behavior :
For example when cracked screen i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sfDoctrineGuardPlugin and admin filters I have an admin that uses sfDoctrineGuardPlugin. I also have another table, sf_guard_user_profile, that extends the sf_guard_user table, to include more fields, such as address, age etc
My problem is, I am embedding the profile (sf_guard_user_profile) information into the sf_g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multi-thread opening file hangs when fanotify is on I use this fanotify sample to monitor open/access perms on the whole file system(/): http://git.infradead.org/users/eparis/fanotify-example.git.
Then I have a test program with multiple threads, each thread iterate the sample foder and open/close the files in it, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is my log showing a partial rendered twice Rails I want to show an easier example of the same thing:
Started GET "/greetings/new" for 127.0.0.1 at 2011-09-29 15:30:46 +0700
Processing by GreetingsController#new as JS
Board Load (0.6ms) SELECT "boards".* FROM "boards" WHERE "boards"."id" = 12 LIMIT 1
User ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Embed Groovy in an Android Java App Basically, I need to run Groovy Scripts to manipulate Java objects, and GroovyShell / GroovyScriptEngine seems to be the best way to do so. Is it possible to embed Groovy inside a Java App? I tried placing the groovy-all-1.8.2.jar into my Android Java App's libs folder, referenced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Grails: derived fields in domain classes Suppose I have a domain class branch which has several members:
…
static hasMany = [ members:Member ];
…
Now suppose I want to have the number of members of that branch readily available, to have it displayed in the list and view actions, so perhaps storing that information ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Searching by regexp when constructing LINQ expression using Expression classes Here is the post which describes the way to create an Expression<Func<MyClass, bool>> predicate dynamically. Here is a snippet:
var param = Expression.Parameter(typeof(string), "p");
var len = Expression.PropertyOrField(param, "SomeT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Knockoutjs: Expanding the SimpleGrid to Support Sorting How would you modify the knockout.js simpleGrid plug-in to support column sorting?
I have got the following code: http://jsfiddle.net/NaveenVelaga/QSRBR/9/
A: Use KnockoutSimpleSortableGrid found at https://shiljopaulson.github.io/Knockout.simpleSortableGrid/ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is MediaPlayer OnCompletion fired the first time a media is played? I have spent lots of hours trying to figure this out:
When MediaPlayer is loaded and started the first time, its OnCompletion is called. This is a problem because I have some code that skips to the next track when the previous track is finished.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get value from outside of the function in javascript? How can I get a var value from another function?
jQuery:
$(document).ready(function() {
function GetBiggestValue() {
var value = 0;
$('#tagCloud li a').each(function() {
if (value < $(this).attr('value')) {
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bbPress and Wordpress integration please login to post I have integrated bbPress with Wordpress and it works fine on the development server but when I moved to production server, it is now asking me to log on before posting new topic even though I was logged on in Wordpress side. I didn't have to log on separately w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to read a text file from a remote server location I have a text file with the name textfile1.txt in C: location and this file conatains in a server machine and the machine ip is 1.127.0.0,
I want to read this text file in my java application and display the content,
Please help me in this,
Thanks in Advance,
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Colorbox showing up beneath iFrame containing flash video I have a page that contains the colorbox plugin and it also has an iframe that contains a youtube embedded video.
In FF my colorbox appears above the flash video only in chrome my iframes appear above the colorbox if this makes sense?
I've tried adding wmod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566796",
"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.