text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I create (in Javascript), a tool to identify the longest repeated pattern in a series of numbers? Alright, long story short, what I overall am attempting to do, is test the level of randomness in a series of multiple thousands of " previously generated seemingly "random" numbers.
I've already written somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: awk åäö umlaut-chars has length of 2 I'm using awk (mac os x) to print only lines that are n characters and longer.
If I try it on a text file (strings.txt) that looks like this:
four
foo
bar
föö
bår
fo
ba
fö
bå
And I run this awk script:
awk ' { if( length($0) >= 3 ) print $0 } ' <strings.txt
The output is:
four... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Code signing certificate across Multiple OS Platforms - Relating to Adobe Air packages I am developing an application in Flex using Adobe Flash Builder 4.5 and I want to distribute this as an AIR package so that it will work on multiple Operating Systems. I am wanting to target the usual suspects :-
Windows [what I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing and applying function on parsed values in bash scripting I have the following in my script :
function processurl
{
}
some_text%%%url1%%%url2%%%url3%%%
with number of urls varying between 0 to any finite number (in case of 0 the string is some_text%%%)
I want to apply processurl to the urls and give the outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: To store value of a table variable into a variable of my own in selenium Hi i am using selenium with testng and right now i have to store a value present in the page to some variable but i am having much problem regarding this
This is the main part of the page source where i need to store the value "2" in some varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the cell tower area using the CellID and LAC in Android? I am able to get the Cell Id and LAC(Local Area Code). But don't know how to decode the location. I should not connect to internet and should get the cell tower location using Cell Id and LAC.
If remember the basic model phones(Not built on Android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java ZipOutputStream only deflate certain files / deflate filter This is a two part question, really.
Preface: I use WinRAR to compress files. It gives you the option of only compressing certain files. I can filter by file extension so that, say, JPEG files are not compressed, while other files are.
*
*Can this b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: grep or splice on large array I have a large array of hashes, about 0.5Gb, stored in memory, and I need to remove some elements from it, about 10% spread around the whole array.
What is likelier to work best, doing a grep, or identifying the elements that need deleting, and splice-ing them out?
Thanks,
Simone
A: Be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I split and embolden this string with JavaScript? I have this string and I used string.bold() method to make bold the string. While debugging this JavaScript I found that this string is appended with bold tag, with the HTML tag <B>6,00,234</B>. Now I need to show this bold result in one area and I need to sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSP duplicate if included multiple time let say i have this global.jsp that include a database configuration and connection.
I know this is not the best way to do this, and I didn't allow to use anything else then a pure jsp. The problem is when is this file is included in more than once then i got re-declaration er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to append the text to text file in blackberry I want to append the text to a text file in blackberry ,how can i do it
A: Checkout this code. This basically writes log to a file in SD Card. You can customize the way you want. Enjoy.
static String pFilePath = "SDCard/BlackBerry/pictures/Log.txt";
public st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Twig: Selecting certain blocks and rendering them I am intergrating the twig templating engine into a PHP application. In particular, I would like to use the twig engine to render forms.
Having had a look at how symfony2 uses twig to render form widgets, they have a huge template file which contains all the widgets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: SQL DELETE STATEMENT problem with returned rowcount I have a statement like this:
DELETE TABLENAME WHERE COLUMN = NUMBER; SELECT @@ROWCOUNT AS RC;
if i run it from the code (classic asp) i get Error:Item cannot be found in the collection corresponding to the requested name or ordinal.
the DB is sql server 2005 expr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: searching a line and pulling a percentage out as an integer So after my script runs a batch file it executes the shell command:
adb shell dumpsys cpuinfo > sample.txt
which then if you open sample.txt you see this:
0% 71/msm_battery: 0% user + 0% kernel <br>
0% 79/kondemand/0: 0% user + 0% kernel <br>
0% 115/rild: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: saving html & sign in database I am trying to work out, how I save & signs, I need this due to our customers business sometime have the & sign instead of and.
I thought it might be a preg thing but i am not sure
A: You shouldn't have any problems storing ampersands in your database (unless it's Oracle).
When displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I persuade ggplot2 geom_text to label a specified date in a time series plot? I am using ggplot2 to plot simple line charts of time series data. One difficulty I have run into is labelling specific points corresponding to x-axis values i.e. dates.
library(ggplot2)
library(scales)
date <- c("2011-09-19","2011... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: how to use if condition in rjs? I pass parameter with url called var which is containing value 'event'. I want to check this variable in rjs file and load a modal dialog box. Following is my code.
page<<" if (:var== "event") {"
page<< "$j ('#create_evnt_dialog').dialog({
title: 'New Trainer',
modal: true,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Issue while changing viewport in sencha i am a very beginner to Sencha touch frame work. I am trying work with the viewport, but i am stuck with a strange problem. it throws "Uncaught TypeError: Cannot read property 'isComponent' of undefined exception. I know this question might be little unusual but i need to reso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Paramiko starts a SSH proccess and it dies..why? Below is my code. When log into the server and I run ps aux | grep python I see all of the process start and then die after a second or two. If I run the command in the server..it works. I have tried with nohup.whithout nohup etc I am out of an explanation. This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: codeigniter 2 and smarty 3 : multi array of stdClass results returned - how do i display these in smarty My Sql function getLive_projects has this query -
$query = "SELECT p.* FROM projects p WHERE p.live = 1 ORDER BY client_name ASC";
$response = $this->db->query($query)->result();
My Controller :
// ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript sqlite database error : "Error processing SQL: undefined " while inserting and selecting data from/to table I am trying to store data from webservices using javascript, sqlite. getting some error like
db.transaction(populateDB, errorCB, successCB);
populateDB is not executing at all.
and while reading ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: rails - is it ok to install multiple gems doing the same thing? I am curious as to if it's okay to install multiple gems that perform the same function into one app. What are the protocols for doing or not doing this?
Example:
*
*using multiple gems in one model - Using auth logic to authenticate user and using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the ways to develop a Book like app? I have a situation here, I want to replicate an app which will look like a book for content of book I'll have a XML feed that feed will have information pertaining to contents and number of pages.
The situation is number of pages will vary every time so can you suggest m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: asp.net c# reflection, creating more instance then expected I have a helper method here in class. It returns all the instances of a given interface in all the app domain dlls.
public static class Helper
{
public static List<T> GetOfType<T> ()
{
var t = from asm in AppDomain.CurrentDomain.GetAssemblies()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to verify date format using selenium How can I verify that a date displayed on the web page fits a particular format with Python bindings for Selenium-RC?
A: I would grab the date (using whatever selector is appropriate), then try to parse it with Python's strftime. If the parser raises an exception the date is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make file downloads accessible by only some users in your system What is a good way for making only certain users in my web application able to download a certain file? For instance, if a user purchased a pdf on my website, what methods could I use so that only the people who purchased this pdf could downloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mod_rewrite doesn't work properly I'm having trouble getting a (very) simple mod_rewrite to work.
Here's my code...
# Enable Rewrite Engine
RewriteEngine on
#Create friendly URL
RewriteRule ^libs/jquery.html$ libs/loader.php [L]
Basically I'm trying to get mydomain.com/libs/jquery.html to pull up the page libs/loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Who calls the probe() of driver How does probe() call gets called? Who calls it? As per my understanding, __init() registers driver and then somehow probe() is called to register the device data and irq etc. How exactly it happens?
I am working on touchscreen driver and its __init registers itself to i2c driver. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Method not found on runtime I have an ASP.Net c# project trying to access methods in a class in another project. It's working for first half of methods in the class but not for the other half of the methods in the class which I recently added. They compile, but they throw a method not found exception at run-time.
Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Jquery DatePicker Tooltip Format This is my query i need the tooltip for all the days eg: when mouse over moves to the sep/27/2011. tooltip should display should show as "Tuesday,September 27,2011". How to do implement this?.This is my jquery datepicker
<script type="text/javascript">
$(function() {
$( "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to increase limits on sockets on osx for load testing? I'm creating a load tester that uses libev to create lots of open tcp connections to an app i'm working on. Currently it bombs out at 256 connections, due to the nofiles limit:
ulimit -n
256
I can increase this to 1024 by doing the below:
ulimit -n 1024
Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Is it possible to read cookie/session value while executing PHP5 script through command prompt? I need to read some values from cookie or session when I am executing my php script using command prompt. How can I do that?
How to access cookie or session value from Windows command prompt?
A: There are no cookies in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: cassandra secondary index return results in lexical rowkey order, even with RandomPartitioner? As far as I understand, a Cassandra secondary index is stored as an internal CF, where the rowkeys are the values within the index, and the columns are rowkeys back to the original CF being indexed.
Is it possible to have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Entity Framework 4.1 DbContext generator problems I am new to Entity Framework 4.1 and I really wanted to transition to POCO classes for my model. I found that this was very easy using the "DbContext Generator" item provided when you install EF 4.1. It did exactly what I wanted it to do and generated the DbContext o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I debug this Hibernate/JPA slow query issue? I have a Hibernate/JPA query which performs a simple query based on an indexed field in the database. The table is fairly large with around 28 million records but when using the database directly the query returns instantaneously, with Hibernate+JPA it takes over ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database Sorting depending on Integer? in my database having some row's , in every row having three column's(id, name, moves, time). i want to sort the rows depending on the moves this is the integer value.
i tried like this but unlucky.
public Cursor fetchAllNotes() {
return db.query(DATABASE_TABLE, new Strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are some specific applications of finite state automata? There are several topics discussing finite state automata, but none that I've seen that go into detail about real world applications. What are some concrete examples of finite state automata in action?
A: Most popular application of FSMs are parsers of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: anchor + Link to base URL If I'm on a page like
http://localhost/balibar.co/?dating=dating-articles-and-information
and I want to have anchor that links to the base URL being
http://localhost/balibar.co
Is there a way to do this without hard coding the URL?
I've tried:
<a href="/"></a>
<a href="#"></a>
will have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Java recursively print array in reverse The array is an array of strings. The array is {"hello", "how", "are", "you", "?"}
It sort of works, but the output mixes up the last 2 elements, and when I run my program the output comes out as you ? are how hello, it should be ? you are how hello.
I put in a print statement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to stop webserver (implemented through web.py and threading) I have implemented simple webserver using web.py.
And through multithreading module, I am able to run multiple instances of webserver listening on separate ports.
Now all the instnces are listening http requests forever. and I want to step a particula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the difference between (char)0 and '\0'? in C What is the difference between using (char)0 and '\0' to denote the terminating null character in a character array?
A: They're both a 0, but (char) 0 is a char, while '\0' is (unintuitively) an int. This type difference should not usually affect your program i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is "Selects Against ALL_SYNONYMS Perform Badly on 10g Release 10.2 [ID377037.1]" fixed for Oracle 11.2.0.1? The metalink article [ID377037.1] I have states that the issue applies to Oracle 10.2.0.1 to 10.2.0.4 but there is no resolution to the issue. Does anyone know if this issue is fixed on Oracle 11.2.0.1?
A: Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Benchmarking Zend Framework with a plugin I have created this plugin to benchmark the performance of my Zend Framework Project
http://pastebin.com/HD9MpRfR
One odd thing that happens is that sometimes the generated values are negative,
Unit: Microseconds
Routing: 0.0013879999999999
Dispatch : -0.477942
Dispatch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Command Line API and waitForDataInBackgroundAndNotify I am new to objective c. i am using following code to execute command line API in objective c. code is working fine for me. but why this code is using NSRunLoop?
-(void)uploadData
{
setenv([@"PASSWORD" UTF8String], [mPassword UTF8String], 1);
[task setLaunchPath... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: BingoBoard Segmentation Fault I keep getting a segmentation fault with this Bingo Board I'm trying to create in C++. Valgrind didn't tell me much more than this:
==2734== Memcheck, a memory error detector
==2734== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2734== Using Valgrind-3.6.1 and LibV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery Ajax load non local pages with links disabled Sorry everybody, I'm kind of a newbie to Ajax and Json. Thanks in advance for any help!
Here's the situation: I have a webpage that I created with several links on it. Most of these links point to pages on Wikipedia or various academic sources. When my page loads,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .Net Runtime Assembly Binding I have a rather unusual problem and need some ideas.
I maintain two codebases that are 99% identical. A new project has come along that under some runtime condition needs to use code base A and in other conditions use precompiled code base B.
I have abstracted the functionality into an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JQuery animate always removes display:none and adds display:block to inline css I'm running some simple jquery for animation over a group of images. Some of the images are hidden and some are not. But it seems jquery is just making them all visible, I want to animate these with changing how they display.
$('.product... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails object serialization I have an items object which is a hash and I want to store it in database table.
Migration:
t.string :items
Writing:
items: items.to_json
Reading:
@order.items # returns a string, not a hash as needed.
How do I solve this?
A: You should add to your model the serialize declara... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Append to end of line to specific lines I am writing a shell script and need some help.
This script will take a file name as input and will modify that input file according to some logic.
Now, this file will be modified only specific lines, I will get to know the line number though.
So after getting to know the line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ruby prawn gem, table position using prawn gem i display table in the pdf file.. now i want to set position of the table, please guide me how to work on this..
i used the following code to genrate pdf report,
pdftable = Prawn::Document.new
pdftable.table([["Name","Login","Email"]],
:column_widths => {0 => 80, 1 => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why should I overload a C++ operator as a global function (STL does) and what are the caveats? Why would I want to overload a C++ operator() as global and not member function. For example, the == operator.
Why is this done? for example in STL libraries.
A: If I remember correctly, operator = must be a member funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to extract an XML document from a BLOB column in Oracle thats been compressed in Java I have a table in Oracle 11G (11.1) that has a BLOB column containing XML documents.
The XML document has been written to the table using a java program and has been serialised and compressed using java.util.zip deflator.
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Median code explanation My professor wrote this median function and I don't understand it very well. Can someone please explain the part about i = len(list)/2 and median = avg() and the else statement?
def avg_list(numbers):
sum = 0
for num in numbers:
sum += num
avg = float(sum)/len(numbers)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: write a dictionary to plist on iphone I want to add a new dictionary to the existing plist file, how can I do that, I can read from the file, but with the same approach, writing doesn't work. My plist structure looks like this:
Root Array
|__item0 Dictionary
|__item1 Dictionary
|__item2 Dictionar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fatal error: Call to undefined method Facebook::require_frame() in /home/wubb/public_html/facebook/fbml.php on line 15 I am trying to integrate friend invite for facebook in my website. I am using php. I included the code:
<?PHP
// Get these from http://developers.facebook.com
$api_key = 'xxx';
$secret = 'xxx';
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .load() jquery with Servlet Is it possible to load the contents in a div through a servlet via .load() jquery ?
I tried this
$('#getDetails').load('getDetails');
But its not working !! What can be an alternative to this ?
Thanks
A: Did you read the documentation? If there's one parameter, it must be a URL. g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django ckeditor with wordcount Does anyone know how to integrate this wordcount plugin with the existing django-ckeditor apps? Either https://github.com/dwaiter/django-ckeditor or https://github.com/shaunsephton/django-ckeditor/.
Specifically, I'm stuck at Step 4
For your CKEditor instance, use the following HTML m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is binary search optimal in worst case? Is binary search optimal in worst case? My instructor has said so, but I could not find a book that backs it up. We start with an ordered array, and in worst case(worst case for that algorithm), any algorithm will always take more pairwise comparisons than binary search.
Many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: sqlFile refactoring in liquibase can't find file on the classpath The documentation for the <sqlFile> custom refactoring tag says that the classpath will be searched for the file.
However I cannot get it to find my file, despite it being in the classpath.
The changeset element is:
<changeSet author="rebecca" id="9.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Project Euler Problem 10 - Efficient Algorithm I attempted Project Euler's problem 10 using the very easy algorithm and the running time looks like hours. So I googled for an efficient algorithm and found this by Shlomif Fish.
The code is reproduced below:
int main(int argc, char * argv[])
{
int p, i;
int ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a scrollable div with padding on top and bottom without extra markup on the inside? I have created a fiddle to illustrate my question. Basically I'd like to have a container with scrollable content that has a padding on the top and the bottom. [Edit:] This padding should be visible while scrolling, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: progress bar not showing the step by step progress in iphone Hi all im using progress bar for indicating the status of xml parsing in my app.but it is not showing the step by step updation,instead the progress bar is loading after the entire xml parsing is over,till that time it is stuck and not showing any progress... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding a timestamp property to a relation in Symfony2 I am trying to model a simple comment system with 2 entities - User and Post. The User class has the regular properties, and the Post class looks like this:
class Post
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\Gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Having issues accessing a method just a quick question in relation to accessing a method inside another class.
I know it sounds simple but nowhere I look can answer it for me.. so here it goes.
This is in one class.. (only leaving in the relevant bits because most of the other stuff is just formatting and passing a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Change image on UILongPressGestureRecognizer? I am working on SMS application for Iphone ..
And now i want to change image of my chat bubble on longpress ( like while i copy the contant )..
i have this code ..
if (longPressRecognizer.state == UIGestureRecognizerStateBegan)
{
[self becomeFirstR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vcov.polr is giving negative diagonal elements (mwe included) I don't know too much about ordered logits so perhaps I'm doing something silly, but the following seems straightforward and I don't know why vcov.polr gives me negative diagonals. I tried to follow the code in vcov.polr but got lost so I don't know what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Thread Executing the Same code block - passing parameters from a dataset c# Let me preface my question by stating that I am a casual developer, so I don't really know what I am doing past the basics.
This is developed in c# and .net 3.5.
The core of what my current application is doing is to connect to remote server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Object construction outside the constructor When it comes to designing classes and "communication" between them, I always try to design them in such way that all object construction and composing take place in object constructor. I don't like the idea of object construction and composition taking place from outs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: OCaml: Does storing some values to be used later introduce "side effects"? For a homework assignment, we've been instructed to complete a task without introducing any "side-effects". I've looked up "side-effects" on Wikipedia, and though I get that in theory it means "modifies a state or has an observable interacti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to debug Javascript + PHP + Web services Disclaimer: May be a insane question but I have suffered a lot so came here.
I am working on a legacy application which uses JS + PHP + Web services (Written in spring).
Flow of the application :
Whenever any web service is called from JS it is redirected to one php fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I ignore a certain file type in a certain directory and its sub-directory in Git? How can I ignore a certain filetype only in one directory and its sub-directory?
To explain what I mean imaging the following setup
*
*anotherdir/
*
*seeme1.iml
*foldertoignore/
*
*ignoreme1.iml
*seeme3.txt
*anotheri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to default p element to "Normal" style in CKEditor If I add a paragraph style to the CKEdtior
eg:
format_p: { element : 'p', attributes : { 'style' : 'FONT-SIZE:16px;color:#000000;FONT-STYLE:normal;FONT-FAMILY:Arial, Helvetica, sans-serif;font-weight:normal;' } }
The default style when pressing the enter key i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Finding the exact selected text index in html document which works on safari and google chrome how to find index of selected text that is not dependent on window size and resolution?
i have implemented it on IE but that code doesn't work on google chrome and safari as they dont support createrange method of javascri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: exec() command not working I am using exec() function to run my commands on centos server. All was working fine untill i used command:
$command=
ffmpeg -i input video.mp4 -vf fade=out:0:5 output.mp4
The command is ok as it is running on server via command line but when i execute it using php it is not givin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Paging a HTML page using C# Can anyone give me some idea abt how to page a HTML page? The HTML page contains texts, video & pics. Tags include P, STRONG, BR, I, Table, UL...
A: Try look here:
http://www.aspxtutorial.com/post/2011/02/02/How-Paging-Works-in-the-DetailsView-Control.aspx
http://www.pcreview.co.uk/forum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to check alignment of text using selenium RC verify alignment of text or any other element in web page using selenium rc.
i use python,
is there any budy who can help with this.
A: In case text alignment is coded directly in HTML you could do what you want using the assertElementPresent() method and a suitable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find the radius of visible MKMapView visible screen area? I want to know the radius of visible area in iphone screen, as I will zoomout and zoom in the visible area will change, so I want to know the radius of that particular area, how can I do it?
A: Its not radius what is required.
You need to use the regi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to show activities inside of a running activity? I want to show my activities inside of a running activity. I need something like frame in html language that is used for showing other pages inside a page. I know Tabhost has this ability. Which one of other controls has this ability?
Thanks,
A: Google introduced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a timer at the TOP of each second? (when millis = 000) In my application, I have used the number of System.Threading.Timer and set this timer to fire every 1 second. My application execute the thread at every 1 second but it execution of the millisecond is different.
In my application i have used the OPC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: External read-only DB, my local DB, inconsistency There's a service A that works with DB1, there's service B that works with DB1 and DB2. Service A has read-write access to DB1 and doesn't work with DB2 at all. Service 2 has read-write access to DB2 and read-only access to DB1.
The idea is, I'm developing service 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to use reload data in table view while working with two view? I have two classes. In my first class i have table view which contains list of countries. And in my second view i have a picker which contain sorting by name. And i have button in my first class. On this button click i go on second class. In second cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable status bar / notification bar on android programmatically? i create a lockscreen application.. this application is triggered by SMS.. when a SMS containing command was received, it will display a lock screen activity.
my lockscreen activity is using TYPE_KEYGUARD for disabling a home screen button. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Serial port handshake. What the difference between Hardware and None handshaking? I'm trying to determine the difference when I open serial port with hardware handshake and none handshake.
It seems that in both cases I have to control RTS/CTS signals (just tested it with one COM device).
So what the difference betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WCF Client is unable to see endpoint but WCF Client can connect to base address I get the following error when i try to consume my wcf service
Could not find endpoint element with name 'http://localhost:8080/Provider/basic' and contract 'Provider.IProvider' in the ServiceModel client configuration section
I can howe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to send emails from an address without logging into the server I'm building an asp.net application for a client that requires a confirmation email to be sent. I've gotten the code working but the only problem is that I can't get the code to work with their web host (godaddy). Is there a way to send emails with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems upgrading MVC Mini Profiler to latest release I've been using Mini Profiler in dev and production (azure) for a while and LOVE it.
It tried to upgrade to the latest release today via NUGET. The DLL get's placed in the bin but my site gets an error. If I go back to the old dll it works fine. Does anyone k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while saving Application settings: "There was a problem saving your changes. Please try again later." call-for-help: we are keep getting the illustrated error after hitting "save changes" in the application settings dashboard ... the changes are saved though ... any link where we can report our app issue?
http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use RED5 to enable live broadcast from a file? Is it possible to set up RED5 in a way where different users logging in at different times will be seeing the stream from an elapsed time period since the broadcast started? Say, my prescheduled broadcast starts at 10:00AM, is it possible for the user logging in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VS2010: Exclude a project from build I have a solution that has a wcf service that connects to SQl server. When I am offline I have another service that I use for development and testing that stores to in memory storage. I would like to exclude the test service from my Team build as I do not wish to deploy this to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: questions about multicast We all know that udp is not reliable,by learning unix network programming I add some hdrs about seq and ts to make udp reliable.the idea is simple.when the receiver receives a packet,it must send a ack packet,there is also something about the round trip time algothrim to estimate the rto.Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Logic / Algorithm for this Series I have an array of characters from a to z, my task is to extract the vowels out of this array, the series that will extract the indexes of vowels goes like this, 1, 5, 9, 15, 21, 25... i am unable to create this series through loops, these numbers are actually the vowels in the arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Finding Navigate driving directions using Google Maps in iphone i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points.But I need step by step directions
how can get this step by step directions if any one knows please help ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python expand OSX path with spaces in it I'm trying to modify the plist file at: /Volumes/MacintoshHD/Users/christian/Library/Application Support/iPhone Simulator/4.3.2/Library/Preferences/com.apple.Accessibility.plist
Here's my noob python script:
import plistlib
import os.path
#set path
prefs_path = os.path.expa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redirect from old domain to new one (SEO friendly) I changed the custom domain on my Heroku app to a new one. Now I will create a new Heroku app which only purpose will be to redirect to the first app.
I read in Google Webmasters that I should do a 301 redirect like this:
http://old.com/anypath/123
to
http://new.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Encoding Japanese characters How would I encode the following:
chapter_mapping = {'chapter': ' チャプター'}
so I can call chapter_mapping['chapter']. Thank you.
A: You'll also need to add a header to your file in python 2:
# -*- coding: utf-8 -*-
chapter_mapping = {'chapter': u'チャプター'}
A: Always use unicode literals.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending POST request in iPhone using ASIHTTPRequest 1.6.2 I am using ASIHTTPRequest 1.6.2 lib for all http transactions in IPhone. But i dont know, how can i post the data with ASIHTTPRequest in iPhone?
Can you please give me the code snippet which will work in in iphone?
I am using the following code for this. But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check whether a string is a valid HTTP URL? There are the Uri.IsWellFormedUriString and Uri.TryCreate methods, but they seem to return true for file paths, etc.
How do I check whether a string is a valid (not necessarily active) HTTP URL for input validation purposes?
A: After Uri.TryCreate you can check Uri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "351"
} |
Q: WebBrowser Control with Tabs I need to have tab view of the new IE versions in the WPF WebBrowser control. How can I achieve it?
Do I have to use TabControl and host WebBrowser control in each of its tab items? I thought there could be some better way to have a Tabbed view in WebBrowser control itself because some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to sort xpath using php i searched through the website and couldnt find exact result for my question.
i need to search through the xml file and sort the output by the order in date descending.
<?xml version="1.0"?>
<entries>
<entry>
<date>1299565881</date>
<action>made an action under category</action>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7578862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.