text stringlengths 8 267k | meta dict |
|---|---|
Q: Message Passing In C/Printing a char array from a struct in C I created this program to pass a message to a parent process. I want the parent process to print out the message it receives. I'm not sure if this is an issue with reading the char array or message passing as I am quite new to programming in c. Here is my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php function to list months for dropdown I have this function
function bookingMonthField() {
$str="";
for($i = 0; $i < 16; $i++) {
$time = mktime(0, 0, 0, date('n') + $i);
$str .="<option value=" . date('Yn', $time) . ">" . date('M Y', $time) . "</option>";
}
return $str;
}
Which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding a best fit normal on top of a histogram in R
Possible Duplicate:
Fitting a density curve to a histogram in R
I'm trying to add a best fit normal over a histogram in R. Right now, I have the following:
x<-table[table$position==1,]$rt
hist(x,breaks=length(x))
And now I'd like to plot a normal curve over thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bing Maps Multiple Pushin Infoboxes I have a map where I have multiple pushpins, and would like the infobox to support HTML content. I'm using the native infobox class, and while I have used a custom infobox, as many have suggested, I'd like to figure this one out.
The code is at: http://brickenandassociates.com/bm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create unique form fields based on database query in Symfony 1.4/Doctrine 1.2 I have this wild project happening at work, and we happen to use Symfony 1.4 so I was hoping, ideally, to keep this project within the framework's capabilities as much as possible. Unfortunately, despite quite a bit of research and searchi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to put a single column item into a single row? I have a file like this:
a
b
c
d
e
f
g
h
and so on, with a single word/number on each line. and after 4/5 lines a couple of ( or three ) space. what I want to do is put them like this
a,b,c,d
e,f,g,h
I was working with sed, but sed is oneliner and seems to help... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does \b work when using regular expressions? If I have a sentence and I wish to display a word or all words after a particular word has been matched ahead of it, for example I would like to display the word fox after brown The quick brown fox jumps over the lazy dog, I know I can look positive look behinds e.g. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Python: counting unique instance of words across several lines I have a text file with several observations. Each observation is in one line. I would like to detect unique occurrence of each word in a line. In other words, if same word occurs twice or more on the same line, it is still counted as once. However, I wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCV polar transform selective region I want to restrict the operating region of the polar transform in OpenCV's cvLogPolar function. I would consider rewriting the function from scratch. I am unwrapping a fisheye lens image to yield a panorama, and I want to make it as efficient as possible. Much of the image is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery failed updating image attribute on firefox I have the following code
var first = $jq("<div></div>");
first.append("<td><img id='smile' src='/Images/smile.png' style='width: 120px; height: 120px; display: none; padding-top: 5px; padding-right: 5px;' alt='image' /></td>");
// some logic ...
var img = $jq('#s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails partial template using a custom handler is escaping html I'm working on a Rails 3.1 app using JavascriptMVC and ejs templates within the client to do some complicated features on my application. Unfortunately ejs syntax is very similar to erb syntax, to the point where I can't keep the code in the same file (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Having an issue with setting up MySQLdb on Mac OS X Lion in order to support Django So I am pretty sure that I have managed to dork up my MySQLdb installation. I have all of the following installed correctly on a fresh install of OS X Lion:
*
*phpMyAdmin
*MySQL 5.5.16
*Django 1.3.1
And yet when I try to run "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is my jQuery .click() callback not handling input properly? I'm creating this cool HTML Jeopardy game and I need a little coding help.
Right now im working just on the first question. Which pops up in an FancyBox.
I'm using an if to Identify the correct answer but it is not working.
I have the code:
$(document).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disadvantages to release Flash application which was compiled in debug mode I want to release my flash application not in release mode but in debug mode
to see result of trace() after releasing the app.
I don't care that debug mode makes processing speed little slow.
Except for processing speed, are there disadvan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java's MessageDigest SHA1-algorithm returns different result than SHA1-function of php I have a SQL table with usernames and passwords. The passwords are encoded using MessageDigest's digest() method. If I encode a password - let's say "abcdef12" - with MessageDigest's digest() method and then convert it to hexadeci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: input/output lzw issue Sup dudes,
I need your help on something. I'm writing a lzw compressor in C, and I'm having a spot o trouble with encode and decode. Here is what I have so far:
fixed it, thanks.
$> ./encode < input.txt
code 1
code 2
code 3
code 4
code 1
$> ./decode < output.txt (this contains the codes, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When to use "$" in javascript/jQuery Ive been starting to do javascript and jQuery recently and one thing I constantly find myself wondering is when to use "$" I know that indicates jQuery but it just doesn't always seem to be that way. I'll give some examples:
These are two scripts I've written:
First:
$(function()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: rails best practice for a multistep form? I want to create a mutlistep form in Rails 3. I've watched the railscasts episode on it, but I did not feel like he was using the best practice when creating the form. I felt like it was a sloppy way to accomplish the task. What is the best way to create a multistep form usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use Eclipselink @Multitenant in JSF/EJB? The @Multitenant support in Eclipselink 2.3 looks really interesting, but I'm having a hard time understanding how to use it in a JSF or EJB which injects an EntityManager with @PersistenceContext. The EclipseLink docs are pretty clear that @PersistenceContext injecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql_insert_id and mysql_pconnect I've been using mysql_pconnect to establish all DB connections on my PHP site, with the theory that it's more efficient (debatable, I know).
I went to use mysql_insert_id to get the ID from a recent INSERT and it occurred to me that given the multi-threaded nature of web requests, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select next event from 2 arrays I have 2 tables
table 'events'
id event_name date
1 buy milk 1319074920 // 10-20-2011
2 lunch 1321753320 // 11-20-2011
table 'people'
id user birthday
1 Jack 16508520 // 7-11-1970
2 Bill 180409320 // 9-20-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clojure priority-map I have the following,
(let [t (priority-map-by (comparator (fn [[f1 _] [f2 _]]
(< f1 f2)))
:b [8 [2 1]])]
(assoc t :c [8 [2 3]]))
for some reason the associated item :c is modified after it is added to the map what I get is,
{:c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery tmpl clear Does anyone know how to clear a jQuery tmpl() so I can re-populate it? I cant use empty() because i need the rest of the content in the parent. I can use remove, but I need to know how many... wait, i might have just figured it out :)
The template looks like this
<table id="lvList" class="grid1">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: make an Setup exe file of c++ VS2010 I've done app by c++ . It's serial port programming/win app.
It's got many files and I would like to make an exe file(setup file to install on client's pc) for delivering thru customers.
I did many research and as far as i see i couldnt.
Any way to do that ?
Would be appreciated.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Objective C - Cannot read file in Directory of Document or Cache in Iphone In my work, I just want to read a downloaded PDF in iphone device
At first, I tried to use the "bundleRoot" directory, it is work in simulator but not on device. Now, I just test in simulator for Directory of Document or Cache.
How can I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery assignment fails when inside a for loop I have a jquery which works correctly when I do this:
var slide = [];
slide[1] =
{
hide: function() {
$("#slide-1").hide();
},
show: function() {
$("#slide-1").show(2000);
}
};
slide[1].show(); <<< works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java java.nio writes line of []s I am using java.nio to copy a file, it copies fine except for the fact that there is a line of []s at the end of the file.
Here is my code:
source (the source channel)
source.read(buffer);
buffer.flip();
mbb.put(buffer)
mbb is MappedByteBuffer
Source Channel:
source = new FileInputS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: wxPython Button Background Image Can I create a button with text with a background image? In wxPython, there are certain functions which create buttons such as wx.lib.buttons.GenBitmapTextButton and other functions like that. I'm wondering if I can create a button with a fancy background image, as well as label text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ACM Programming Question I'm trying to solve a programming problem to practice for a competition tomorrow, and I thought maybe this would be a good place to ask how to approach it. The problem is the first one on this site: http://www.cs.rit.edu/~icpc/questions/2010/Oswego_2010.pdf
The FAQ on this site mentions Alg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to change title of NSPanel at runtime? Maybe I'm missing something really simple here (I hope so), but is there a trick to changing the title of an NSPanel at runtime? The obvious [panel setTitle:@"New title"] doesn't seem to be working.
I'm trying to display a regular panel which contains a WebView, and I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: passing a return statement into another function in a class I have the following code that I am using to send a message from a gmail account to another gmail account:
import smtplib
class GmailSmpt:
global server
server = smtplib.SMTP('smtp.gmail.com','587')
def __init__(self,sendfrom,sendto,usrname,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to prevent the Application Error MessageBox show in Windows XP I need to execute a console application periodly in windows XP. So I use the following python code:
import subprocess
import time
while True:
subprocess.call("test.exe")
time.sleep(1.0)
the problem is that test.exe crashs occasionally, and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What should I use as a server to meet the following requirements? I am trying to develop a system that involves a:
*
*server with a database that will handle the system's logic and manipulate data
*an android app that will interact with that server (pull and push data into the server)
*a website that will do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook canvas app "redirect_uri" breaks out of iframe after authorization & authentication I'm upgrading my existing FB apps, and going absolutely bonkers trying to get a simple PHP iframe canvas app to authorize and authenticate (as well as use SSL). Never looked through so many examples...
Here's where I'm stuck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Improving "shuffle" efficiency Right now, I am using the following code to create a Shuffle extension:
public static class SiteItemExtensions
{
public static void Shuffle<T>(this IList<T> list)
{
var rng = new Random();
int n = list.Count;
while (n > 1)
{
n--;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to make links to dynamic content work from outside a GWT page I have a webapp example.com written in pure GWT. Obviously the webapp
has dynamic links, like example.com/#/link1.
I want example.com/#/link1 to be accesible from outside my website. For example. I would like to post the example.com/#/link1 link in f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting text field data from different page to display in jquery? I have a page with the following code:
<div data-role="page" id="personaldetails">
<div data-role="header">
<h1>ENTER PERSONAL DETAILS</h1>
</div><!-- /header -->
<div data-role="content">
<div data-role="fieldcontain">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tell sage where to find libjpeg I have installed Sage on Mac OS X. It looks like it has PIL. The following code gives me an IOError..
import Image
a = Image.open("pic.jpg")
a.thumbnail((int(100), int(100)))
This is the error I get.
IOError Traceback (most recent call last)
<ipytho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing RequestContextHolder and HttpServletRequest.getUserPrincipal() from AuthenticationSuccessHandler I have a Spring-MVC application (i.e. I am using the Spring's dispatcher servlet). I am also using Spring Security to authenticate users. Since I use the Spring's dispatcher servlet, I do NOT have to declare
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to have the C preprocessor execute code during compilation? I'm currently working on a code project that requires me to replace certain strings with hashes of those strings. Seeing as these strings will not change at runtime, it would be advantageous, efficiency wise, to have the c preprocessor run my hash funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What effect does compiling to LLVM bytecode, then to machine code have on speed, etc? I ask because, with the increasing popularity of mobile computing on ARM devices, the continued need for backwards-compatible X86 devices, and newer technologies like quantum computing, which will have completely different architec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android java change drawable image Alright so how when i click a button? it will change the a image to a different image
my xml of the image i want to change when button press:
<ImageView
android:id="@+id/bluebtn1"
android:src="@drawable/buttonblue"
android:layout_width="60dp"
android:layout_h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ObjectName incompatible with String FindBug error For my production code resembling the following:
public something xyz(String name) {
return getSomething(abc.get(name));
}
Where the method "get" expects javax.management.ObjectName to be passed to it, I am getting the following high priority warning from the Find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Relative references to images inside a webview I have hundreds of HTML files in my assets/content1/htmls/ folder. Image sources referred to inside the HTML files are in the folder assets/content1/images/. In the HTML files, relative paths to the images are used (e.g. <img src="../images/1274.jpg" width="547" height=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does the Spring know where to get the proxy object needs to get injected? To my impression, RmiProxyFactoryBean is supposed to produce a proxy object instance that is of type AccountService that will be injected to accountService property of SimpleObject instance in the following code.
What I do not understand ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I smooth my density curve so it has fewer peaks? How can I limit the number of "humps" I allow in my density curve. I just want a nice looking skewed bell curve type thing. But right now, my density almost just looks like a line graph of my data.
A: Look at the help for density. There are a variety of para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: May I restrict zoom levels of MKMapView?
Possible Duplicate:
Is there way to limit MKMapView maximum zoom level?
May I restrict zoom levels of MKMapView, i.e., set max and min zoom levels of MKMapView?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7605318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Datetime picker transparent background out of the box? This is out of the box mvc3 stock grade plain vanilla jquery behavior? Is this default styling behavior? How do I make it NOT transparent? Thx!
<script src="../../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Git replication across several live servers I have a question about git repository replication across several live http servers
My goal was to create replication from my test server to the live http servers. So when I'd commit my changes on test, the changes should automatically appear also on server
I had a look at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are files in the /public directory served via the rails stack? I'm using nginx + phusion, I believe in the rails docs it says that if I put page caching on, then a html file is created and put the /public folder.
Does this mean that the phusion service won't have to put the request through the rails stack?
How is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Batch how to set FINDSTR result to a variable and disable findstr print to console My batch program
FINDSTR /C:"Result Comparison failure" %tmp_result_file%
I want to do the folloiwng , set the result of the above command to a variable.
If found, set the first line to varible or set the all found line to a var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: JSF2.0, How to load external resource bundle files? I currently have my properties files put inside my project folder, so if I change the content of those files while my web app is deployed, the JSF pages that use these resource bundle won't be able to get updated automatically unless the server is restarted. This i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to auto-stretch UISegmented Control horizontally to fill full UITableViewCell? How to auto-stretch UISegmented Control horizontally to fill full UITableViewCell? In a manner in which it will auto-resize after an orientation change too.
I have tried the following however this still doesn't work. The segmented c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Got the PHP include path blues. Quick and easy bootstrap? I am fairly far into a project, and am having trouble having everything included properly.
I have several files in different directories that need to include the same files, but since some are called via ajax or via includes in different situations, there pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.Net application can't connect to local MySQL but I can connect from command We have a VB.Net application which works fine in our tests in different Windows XP SP3 machines. However there is one machine in which is displaying this error:
Unable to connect to any of the specified MySQL hosts
Using the mysql comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: dotted line span between word and image html problem Below i have hardcoded dotted lines on my menu between the name and image, I cant figure out how to get dotted lines that adjust to the width between where i have them now.
This is the code below that i have. I basically want to remove the hardcoded ..... and make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can call Activity from JavascriptInterface in Android? I am new to phonegap and my project, I need to call an activity from
the javascript in the html page, is it possible?
public void capturePhoto() {
JavascriptInterface.this.runOnUiThread(new Runnable() {
@Override
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to move a textview up so the keyboard doesn't block it I have several text views within a scroll view. I need some help with having the scroll view move up so the keyboard doesn't block the text view.
A: You can scroll the view to based on the textview rect so that it will be visible if the the keyboard pops u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing a tab delimited file into separate lists or strings I am trying to take a tab delimited file with two columns, Name and Age, which reads in as this:
'Name\tAge\nMark\t32\nMatt\t29\nJohn\t67\nJason\t45\nMatt\t12\nFrank\t11\nFrank\t34\nFrank\t65\nFrank\t78\n'
And simply create two lists, one with names (called... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Are there compiler options to minimize file size of binary for Opa web (or "cloud") apps? I have the simplest "Hello, web" web app written in Opa (see one line of code below):
server = one_page_server("Hello", -> <>Hello, web!</>)
I then compile this file (in my case named hello.opa) like so:
opa hello.opa
This ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mathematica integral evaluation just shows up as nicely formatted text? Attempting the following exponential integral:
Integrate[ Exp[-2 A Sqrt[x^2 + a^2] + I ( x Subscript[k, x] + b )],
{x, 0, Infinity}
]
I get back something that is pretty printed, but not evaluated? Does this mean that Mathematic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Rails3 - Need route to a method that increments a counter Ok, I have a simple question. I am new to RoR and I created a scaffold for an item. I then wanted to add a link that, when pressed, incremented a counter. What I am having trouble with is routing. I modeled this functionality after the destroy/delete link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What part of the computer renders text? Hardware or Software? For example, if i make a very simple bootloader that runs a "hello world" program (as the operating system), where is the graphical representation of the text processed. The the GPU render the text, or the the hardware. Is basic text input and output ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Named pipes and can they stream data? I asked a previous question here:
Stream video from ffmpeg and capture with OpenCV
and I want to know more about named pipes in general. Can I use named pipes to stream data? For example, can I continuously add data to the pipe (via ffmpeg) in conjunction with reading data wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Split specific string by regular expression i am trying to get an array that contain of aaaaa,bbbbb,ccccc as split output below.
a_string = "aaaaa[x]bbbbb,ccccc";
split_output a_string.split.split(%r{[,|........]+})
what supposed i put as replacement of ........ ?
A: No need for a regex when it's just a literal:
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Joomla 1.6 Auto Hyperlink Image to full Article I'm trying to have the first image on an article automatically link to the full article (similar to how wordpress 3.x works). This should work on Frontpage as well as Blog layout.
Basically I'm looking for a plugin like http://extensions.joomla.org/extensions/news-disp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get current object in function? I'm trying to code a simple UITextField and I have a simple question:
Im using this to 'empty' the UITextField:
-(IBAction)editbegin{
campo1.text="";
}
The problem is: want to use this function in more than one TextField. So, how can I 'grab' the object, so I can get the 'text'? Alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging native/managed C++ in VS 2010 with NUnit Is there a way to set breakpoints and step through them using NUnit with a mixed project of native C++ and managed C++?
I have my SUT (Software Under Test) configured as a static library (native C++)
I have my unit test suite as a separate project configured as a dl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Trying to Add Resource in Visual Studio 2010 Pro SP1 results in "The operation could not be completed. Unspecified error" message with C++ project I'm using Windows XP Professional SP3 and recently switched to Visual Studio 2010 Professional SP1 to work on a C++ project.
If I try to right-click on a project inside S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can't cast char array into int value in C# I am making a caesar cipher and am trying to convert the char value of each letter into an int so the shift value can change it.
for (int i = 0; i < plainTextInput.Length; ++i)
{
chars[i] = ((int)chars[i]) + shiftAmount;
}
It says it cannot convert int into ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Whats the point of the ObjectDataSource Given that every grid, combobox, checkboxlist and in general multi row control supports binding directly to any IEnumerable what is the point of the ObjectDataSource?
Why would one use it as opposed to binding directly to your collection? Particularly if you already have reas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Magento: Single Quotes in Translation Files Void Translation I am trying to translate some strings from a Magento 1.5.x install and it works fine when there is a double quote, but I cannot properly escape single quotes.
"Hello, <strong>\'.Mage::getSingleton(\'customer/session\')->getCustomer()->getName().\'!</strong... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: [ios develop]Why does ipad2 camera not full screen? I am using UIImagePickerController to take photo.The process is :
*
*start a view with some controls.
*addsubview on current view:
self.claim.view.frame = CGRectMake(0, 0, 1024, 50);
[self.view addSubview self.claim.view];
3.there is a Button in self.claim.vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Everyday GC is running on same time In my server everyday 3:00AM GC is running and Heapspace is filling in a flash.
This causing site outage. ANY inputs?
following are my JVM settings.I am using JBOSS server.
-Dprogram.name=run.sh -server -Xms1524m -Xmx1524m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: write a sql statement to update data for below query in sybase we have table 1 :
TABLE 1
(col1,col2) values(A,2)
(col1,col2) values(A,3)
(col1,col2) values(A,5)
(col1,col2) values(B,6)
(col1,col2) values(B,1)
(col1,col2) values(C,2)
now, we have table 2 :
TABLE :2
(col1,col2) values(A,null)
(col1,col2) values(B,nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The right way? Automated Synchronization between 2 mysql DB I already read a few threads here and I also went through the MySQL Replication Documentation (incl. Cluster Replication), but I think it's not what I really want and propably too complicated, too.
I got a local and a remote DB that might get both accessed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What fonts are supported by Salesforce PDF generation? I'm generating a pdf using a VisualForce page with the renderAs param set to pdf. I'm wishing for more fonts even though others have complained there are few. Does anyone know of additional fonts that work with Salesforce pdf generation?
So far I've only found f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring security XML SCHEMA I get PARSE exception for the following XML file..
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Emacs inside of gedit? After years of experimentation with editors, the fact is I prefer them as minimal as possible. I never use fancy features and the full-feature IDE's become bloated, heavy, and slow. Of course, when I do something that pretty much requires a specific IDE (like Android dev and Eclipse) I have no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ERROR MESSAGES DOES NOT DISPLAY i have a php file that process my registration form however it does not display the error messages if the form has discrepancies (blank fields, etc.). Also, the captcha validation is not working.
This is the php code that process the form.
<?php
//Start session
session_start();
//Inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Retrieving a URL though an authenticating proxy using PHP I am attempting to script the retrieval of an secure (password protected + https) URL trough a proxy server that requires authentication. I found many examples of how to use the 'proxy' option and how to send credentials with stream_context_create.
$url = "ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XmlSerialize - Desrialize external XML I have many files, with the format of:
<?xml version="1.0" encoding="utf-8"?>
<Words>
<word>
<Eng>chain</Eng>
<EngEnd>chained</EngEnd>
<PartOfSpeechEng>verb</PartOfSpeechEng>
<Heb>לקשור עם שרשרת</Heb>
<EngInHeb>צֵ'ין</EngInHeb>
<PartOfSpeechHeb>פועל</P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.1 and selecting out across three tables I have the following and am trying to figure out how to select the User info (sql at end of question).
# only global_id and list_id
class GlobalList < ActiveRecord::Base
set_table_name :globals_lists
belongs_to :list
end
# user_id
class List < ActiveRecord::Ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Database Design about Date/Time Column Brief Description:
I have a table that stores articles. Articles are listed on table and sorted - DESC - by dateCreated.
dateCreated column represents the date and time user has posted/created the article. It is fixed and must not be changed.
Problem:
By the days, old articles ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Manipulating a histogram plot in R I have a histogram, and I want to move it over by 10 units on the x axis.
h1 <- hist(t1,breaks=15)
plot(h1,xlim=c(0,200),col="red")
how can I do this?
A: If your original is:
h1 <- hist(t1,breaks=15)
plot(h1,xlim=c(0,200),col="red")
then does this do it?
h1 <- hist(t1,breaks=15... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Get script name in OCaml? Does OCaml have a way to get the current file/module/script name? Something like:
*
*C/C++'s argv[0]
*Python's sys.argv[0]
*Perl/Ruby's $0
*Erlang's ?FILE
*C#'s ProgramName.Environment.CommandLine
*Factor's scriptname/script
*Go's os.Args[0]
*Haskell's System/getProgName
*Java's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I remove parent opacity in CSS? In my CSS I have the following:
.Thing {
filter: alpha(opacity=40);
opacity:0.4;
-moz-opacity:0.4;
}
.Thing button {
filter: alpha(opacity=100);
opacity:1;
-moz-opacity:1.0;
}
However, the button is still .4 opacity. I then try opacity: 2 and such and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C# CompileAssemblyFromSource, add referenced assemblies it needs? I have the CompileAssemblyFromSource working for code that only references assemblies that my program (that compiles it) uses. It works beautifully.
However, if I need to compile code that has a "using blah;" statement, it won't be able to find blah ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is a good UML or ReverseEngineering Language for Visual C++ 6.0? What is a good UML or ReverseEngineering Language for Visual C++ 6.0 ?
I have to build upon another guys code that is greater than 50K lines and tons of classes.
He has little to no documentation. I need to produce a map and see how everything in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Play Framework: Run single selenium test on the command line (headless browser) I can run a single selenium test in play's browser UI, however, is it possible to execute a play selenium test on the command line?
Obviously if I run play auto-test it will execute all my selenium tests (as well as my junit tests). Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Git Submodules. Pulling into a new clone of the super-project OK. So I thought I had this licked ... but now ....
I have a project which includes one small library from GitHub as a submodule. In the original version of that super-project the submodule is working as expected.
However, I just cloned the superproject,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: CSS for only iPhone and only regular browsers? I have a website that looks horrible on the iPhone but fine in regular browsers. I want to be able to only load css for the iPhone and only load the other stylesheet for regular browsers. I would rather not use PHP but it is an available option, I'd like to use the stan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GoogleMap with KML zooming and Polygon highlighting This is the code for generating map with a kml file
var myLatlng = new google.maps.LatLng(47.711516,-117.395075);
var myOptions = {
zoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementBy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open Graph Beta: Add Data to Profile URL In the new Open Graph Beta Auth Dialog does the "Add Data to Profile URL" essentially serve as the callback URL where Facebook will send the user after they click the "Add to My Timeline" button?
In a related question, will clicking the "Add to My Timeline" button in the new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I create a virtual webcam and stream data to it? I am looking to stream a video from ffmpeg to OpenCV (a video manipulation library) and I am stumped. My idea is to create a virtual webcam device and then stream a video from ffmpeg to this device and the device will in turn stream like a regular webcam. My mot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Str_replace for multiple items I remember doing this before, but can't find the code. I use str_replace to replace one character like this: str_replace(':', ' ', $string); but I want to replace all the following characters \/:*?"<>|, without doing a str_replace for each.
A: For example, if you want to replace searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: SQL Server XML local-name() anomaly Is anyone able to explain why the two results are different, even though the node XML representation is exactly the same?
declare @t varchar(max) set @t = '<a><b><c/></b><d>eeee</d></a>'
declare @x xml set @x = cast(@t as xml)
select N.query('.'), N.value('local-name(.)','varchar(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to center text in a background div baloon image? I am having a difficulty on how to center a text in a div with background image. This is my fiddle
http://jsfiddle.net/VnqeY/12/
Thank you.
A: jsFiddle
Just declare line-height and set the <a> to be vertical-align: middle
.balloon{
background:url('http://i.im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Suppressing "X rows affected" in SQL Server using sqlcmd and Java In my Java program, I am trying to execute a bunch of SQL scripts using sqlcmd via getRuntime.exec().
Earlier, I had been using osql this way -
osql -n -S SERVER -U sa -P PASSWORD -q "SET NOCOUNT ON" -i "INPUTSCRIPT.sql"
However, in the case of sqlcm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php code "=" in js format This JavaScript code was in a PHP file, and I need to put this JS code into a .js file.
<script>
$j(".fresh").click(function(){
$j(this).html('<span><?php echo $this->lang_arr['my_new_func']; ?></span>');
$j.post( "<?= site_url('website/func_resh') ?>",
{ id ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605505",
"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.