text stringlengths 8 267k | meta dict |
|---|---|
Q: SITE_ROOT = Variable? I'd very much appreciate if someone could help me with a solution.
How can I get this:
define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . SITE_BASE);
to look something like this:
define ('SITE_ROOT', [variable from root.com/directory/data.php] );
Many thanks.
A: <?php
include_once("/direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem uploading file from Android using multipart I have the following code to send a file (mpeg file - about 20kb) from the phone to the server. However, it fails at the server end. Can anyone kindly telly me what mistake I am making at the client end ? Thanks.
ByteArrayOutputStream bos = new ByteArrayOutputStrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explanation of a BLOB and a CLOB I am looking for a real good explanation of a BLOB and CLOB data. I am looking for the great of that explains in plain English.
A: It's pretty straight forward. The difference is that your storing large data objects within the table as a column that are either character based (i.e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Javascript image gallery preventing the default Hi i have a question regarding the image gallery i am trying to create. I have created a thumbnail viewer so when clicked the javascript then displays the thumbnail as a larger image on the same page, but i am required to add a way to still see the larger images when j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Download Pictures from web using webBrowser control First excuse for my English i'm from spain.
I am a little worried because i cannot been able to finish my project in the school, I am trying to develop an application in visual basic 6 to discharge the cd covers (Album Art) from internet using the webbrowser contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EF Code-First - Storing IEnumerable Of Enum I'm using EF June CTP which has simple enum support. I have a MVC 3 view which has checkboxes that when submitted are retrieved as an array of some enum.
public enum CheckBox : byte
{
VALUE_1 = 1,
VALUE_2 = 2,
...
}
I need to take that colelction of enums ((IEnum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doubly nested EL variables? I'm using Spring MVC for my controller, and JSPs are my presentation layer.
Inside my Spring controller, I have:
model.put("issues", dataManager.getIssues());
model.put("functions", dataManager.getFunctions());
So now inside my JSP, I have access to
${requestScope['issues']}
${requestSco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Vows with Async nested topics - scope problem I want my vow to have access to outerDocs and innerDocs from my topics but it doesn't.
'ASYNC TOPIC': {
topic: function() {
aModel.find({}, this.callback);
},
'NESTED ASYNC TOPIC': {
topic: function(outerDocs) {
anotherModel.find({}, this.callback(nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find only non-inherited interfaces? I am trying to perform a query on the interfaces of a class via reflection, however the method Type.GetInterfaces() returns all the inherited interfaces also.
etc
public class Test : ITest { }
public interface ITest : ITesting { }
The code
typeof(Test).GetInterfaces();
Will re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: iOS: locationManager:didUpdateToLocation:fromLocation: reports speed when not moving I am using locationManager:didUpdateToLocation:fromLocation: to get location updates. Most everything is working well but when I check the newLocation.speed propery while standing still I almost always get a speed value greater tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: setZoomScale: and zoomToRect: works on device but it doesn't on iOS Simulator I have a UIScrollView wich does provide zooming function with pinch gestures,it's controller is conform to UIViewScrollDelegate, implement it's methods and everything...
This works perfectly fine on my iOS device,it scrolls and zoom in/out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Excel - if and or function The formula I'm trying to write is
CellA CellB CellC
Total Price Order status Delivery Status**
Null Authorised
Null Authorised Null
$100 Authorised Authorised
if cell A = Null and cell C = Nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sharepoint Deploy web part error When I try to deploy web part, I got the error " The solution needs to install assemblies in the GAC, Any Idea ?
Thanks in advance.
A: You need to specify allowGacDeployment parameter in STSADM command (or GacDeployment in PowerShell)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7563278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ class whose member is a struct: Cannot understand compiler error I want to create a class one of whose private: members is a struct point(see below). The public members ndim and numparticles are
set at run-time by the user, which are used to create corresponding arrays inside the class . However I am getting a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio - referencing WCF Library directly and the ignoring of serviceHostingEnvironment? Just want to ask you to confirm that I'm right (but may be totally wrong :).
Situation: I have a VS2010 Solution with 3 projects A) WCF Library, B) Web Site that host this library C) test application that use the web serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finishing an Activity from a Broadcast Receiver I have an Activity that I display as modeless when the phone rings (over the phone app). I would like to finish the Activity when either of the following events occur. The first is if I touch anywhere outside the Activity (this is not a problem), the second is if the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Dynamic Array in C - realloc I know how to build Dynamically allocated arrays, but not how to grow them.
for example I have the following interface..
void insertVertex( vertex p1, vertex out[], int *size);
This method takes a vertex and stores it into the out array. After storing the vertex I increase the count of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I have live info on a page without refreshing? Facebook has introduced a ticker which shows live news scrolling down. How can I have this same time of functionality on my site? I don't care to use an iframe and have it refresh because it will A flicker and B make the page loading icon come up (depending on b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to loop over histogram to get the color of the picture? In this answer about detecting the color of an image olooney said that "loop over the histogram and take the average of pixel color weighed by the pixel count".
I ran the histogram like this:
class ImageResize(webapp.RequestHandler):
def get(self):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is this error in the code? while working in try-catch in came across this error. But I cant trace out the reason for this error though I surfed the net and SO.
My code is...
int main()
{
Queue q;
int choice,data;
while(1)
{
choice = getUserOption();
switch(choice)
{
case 1:
cout<<"\nEnter an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loop two variables one is conditional on another one I want to make a loop which contains two variables i,j. for each i equals 1:24, j can be 1:24
but I don't know to make this loop;
i=1
while(i<=24)
{
j=seq(1,24,by=1)
for (j in j)
{
cor[i,j]
}
}
i=i+1
is this right? my output is cor[i,j].
A: In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to find MLS data? I often see the same real estate listings across many different websites. Is there a central place where websites get their data from? How can I find an API or XML feed or aomething with real estate listings for a certain area?
A: Leonel, there are local Realtor Associations. They each operat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to save text file without overwriting? I want to save in a text file without overwriting the current data. I mean the next data that will be save will go to the new/next line whenever I save and that is my problem, I don't know how to do that.
Could someone help me about this matter?
Here's the code in save() me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add comment between continue line (underbar) on ASP Classic VBScript I am currently trying to figure out how to add comment within a line continuation statement on ASP classic. Our code management requirement requires us to write a Start block and End block to mark the place where we did a change. For example.
Old c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ Saving/Loading a function as bytes. Getting the size of a function Ok so I've used function pointers for some time. I was trying to figure out if this was possible.
First. It IS possible to convert a function pointer into an array of bytes.
It is also possible to reconstruct that function with the bytes in that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple Zend framework sites on one server I'm having trouble setting up my httpd.conf or .htaccess files to recognize multiple zend framework sites on one server.
For development, I have just one server and I'm trying to setup the sites so I can access them like localhost/app1, localhost/app2, etc.
So right now, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Unrecognized Windows Sockets error: 0: JVM_Bind" when trying to debug in Flash Builder 4.5 for PHP Im trying to debug an app, not server related yet, with the new version of the FB, the one that comes with Zend in it.
Thing is, everytime I try to debug, the message error is the same:
"Unrecognized Windows Sockets e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drupal Display Modified Date for Node Is there a simple way in Drupal to display the last modified date for a node as part of the node.tpl.php file?
A: If you put this code in the node.tpl.php file it will show the date of the last change to the node:
<?php
echo format_date($node->changed);
?>
with whatever HTML y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Upload a Cover (PHP) Anybody know how to upload a profile cover? Not a Album cover but a profile cover for the new timeline? Any help is much appreciated.
A: Maybe Facebook will roll out a specific API for that in the future, but so far the only way is to upload the photo via the photo API and then ask the user to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I increase the bullet size in a li? The bullets in IE8 are so small, I tried changing the font-size, but that didn't work.
Code:
<ul style="padding:0; margin:0; margin-left:20px;">
<li>item 1</li>
<li>item 2</li>
</ul>
Is there any way to do this without using an image for the bullet?
A: You could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Making sure a file path is complete in grep I had to change the path of my template directory and I want to make sure all my files refer to "templates/app/xxx.html" instead of "templates/xxx.html"
How can I use grep to see all lines of "*.html", but not "app/*.html"?
A: Assuming there's only one per line, you could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php json encode problem In order to access this data via ajax, how can I give each json encoded value a constant name?
$data = array();
foreach($query->result() as $row) {
$data[$row->id] = $row->name;
}
This returns json in this format:
{"12428":"Alpine 12\" Single-Voice-Coil 4-Ohm Subwoofer",}
The id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type mismatch in key from map when replacing Mapper with MultithreadMapper I'd like to implement a MultithreadMapper for my MapReduce job.
For this I replaced Mapper with MultithreadMapper in a working code.
Here's the exeption I'm getting:
java.io.IOException: Type mismatch in key from map: expected org.apache.hado... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: xslt - can't access curent node with attribute selector I am trying to transform an xml file with xsl stylesheet into html.
this is the java
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(classLoader.getResourceAsStream(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RegularExpression - Positive Integer with 1 Decimal Point I can't seem to get the syntax correct for a RegularExpression using C# to only allow positive numbers with up to 1 decimal point.
I have the following DataAnnotation for positive integers working:
[RegularExpression(@"[^\-][\d\.]*", ErrorMessage = "Positive ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS in ajax-loaded content is not applied Sorry if this is obvious but I just don't know what more to do.
I am using fancybox jQuery plugin to load html content into a modal, but the content doesn't show the css styles of the main document.
CSS rules are called in the main document AND inside the loaded html in a <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to make code run only if an exception was thrown? I have a try with several different catches after it. I have some "cleanup" code that only should be run if there was an exception thrown. I could add the same code to each exception, but that becomes a maintenance nightmare. Basically, I'd like something like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: including c++ libraries in ios programming I'm developing an ios app that's very basic and uses objective almost all of the time. However my app needs to deal with big integer numbers (eg: 2^200) and add and multiply them. To achieve that I need to include a c++ library called bigint that allows these operations on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extract Multiple Strings from Paragraph How do I extract more than one email from a paragraph and output the result to a console?
var pattern:RegExp = (/^\b[-._0-9a-zA-Z]+@[-._0-9a-zA-Z]+[\.]{1}[0-9a-zA-Z]+[\.]?[0-9a-zA-Z]\b$/i);
var asd:String;
asd=tt.text;
trace(asd.match(pattern));
A: Try this regex pattern ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Login to Provisioning Portal using XCode hope someone is able to help me with this. I am trying to use automatic provisioning through xcode's organizer. Whenever I click on it, it prompts me to log in to the developer portal. I entered my credentials but it keeps popping up, as though my credentials are incorrect. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Chrome extension: load different content scripts I want to load a different content script depending on the page and tab that is currently selected. Right now, I have three content scripts. I want to use two of them for one page and the third one for another page.
Belonging to page 1:
content_script.js
load_content_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Convert range to string in VBA I need help converting a range to a usable string. I'm not 100% sure of what I need, because I have little VBA or VB.NET experience, but ultimately i want to take a bunch of cells like B32 to J52 and perform linest function on C-J (as y values) and B (as x value).
I think if I can lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebSockets draft hixie 76 protocol for iOS I'm building a client on iPhone to connect to one server using WebSockets draft hixie 76 protocol.
I already tried UnittWebSocketClient, but they don't have support for that protocol.
Does anyone know any library that supports that protocol on iPhone? It could be Objective-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using a protocol & delegate to pass data between views I have almost finished working my way through this tutorial here
Its really informative and has helped me understand how protocols and delegates work together for passing data around.
However I have one warning that poping up when I try to tell my subview that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Codeigniter Change loaded language Currently i have a language loaded inside MY_Controller which extends CI_Controller. But inside a special page which controller (let's call it ABC controller) extends MY_Controller, I need to override the loaded language with another language. I tried loading another language insid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I check if a user has enabled a network regardless of whether or not that network is connected? All I want to do is see if the network is actually enabled (whether or not there is a check by the option in the settings menu). How do I go about doing this?
To be specific:
I got Wifi through WifiManager...
...a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wxPython: global hotkey loop toggle I'm trying to create a hotkey toggle(f12) that will turn on a loop when pressed once then turn that loop off when pressed again. The loop is a mouse click every .5 seconds when toggled on. I found a recipe for a hot keys on the wxpython site and I can get the loop to turn on but c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: access array content from a pointer returned from function I tried to write a program which used a function to read the data, store in an array and then tried to return the array to main() for the sorting process.
Here's what I have
#include <stdio.h>
#include <stdlib.h>
#define RESERVED_ARRAY_SIZE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically adjust an iframe's height I have an iframe that contains some content from a site. I want the iframe to adjust to 100% of the src content's height. Bit of a noob at js - here's what I'm working with:
<iframe id="frame" scrolling="no" frameborder="0" src="http://www.srcwebsite.org"></iframe>
<scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Executing a bash script from a windows bat file Is there a way to call a bash script? (Or any linux like command) from a batch file (or VB script) on a windows box?
Thanks
K
A: If you have Cygwin installed then a line like this in your batch file should run the bash script:
bash scriptname.sh
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7563411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE7 CSS Grouping I have some classes that are grouped. However in IE7 and lower it doesn't implement any of the classes in the group. It just seems to ignore them:
#subnav a,
#subnav span {
/* css here */
}
And the html:
<div id="subnav">
<ul class="depth-1">
<li class="selected">
<a hre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using LDAP authentication with liquibase Is it possible to use LDAP authentication with Liquibase?
If not, how have others solved the problem of automating changes to production database schemas using Liquibase (yet still keeping the database credentials secure)?
A: LDAP is used for server-side authentication. Not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Random code generator for coupon system Is this good enough for a random coupon code generator? Should I check and see if a code has already been used when I make a new code? What are the odds that this will repeat?
$coupon_code = substr(base_convert(sha1(uniqid(mt_rand())), 16, 36), 0, 7);
EDIT - here's my actual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Range.to_a example in "Programming Ruby" thanks for checking this question out. This is my first question here so any help/criticism appreciated. I'm working my way (beginner) through the free online version of Programming Ruby: The Pragmatic Programmer's Guide, version 1. The following example does not do (when I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Clear explanation of the "theta join" in relational algebra? I'm looking for a clear, basic explanation of the concept of theta join in relational algebra and perhaps an example (using SQL perhaps) to illustrate its usage.
If I understand it correctly, the theta join is a natural join with a condition added in. So,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Multiclass element selection clarification Assuming several multiclass divs as demonstrated in the following HTML:
<div class="class_one class_two class_three classfour classfive classsix">
<div class="class_one class_two class_three classfour classfive">
<div class="class_one class_two class_three classfour class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Documenting JSON-RPC endpoints We have an extensive Java API that's exposed as JSON-RPC endpoints on our server. The problem is that the API documentation currently has to be duplicated in Javadoc and JSON-RPC API. Does anybody know of a tool or a framework that can automate the process of extracting Javadoc to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Flyweight Examples in Java I am trying to create a flyweight object in Java. I've worked with a similar concept in Objective-C (Singleton Classes in Objective-C // I believe they are the same thing).
I am trying to find a tutorial or an example or explanation online to learn how to create a flyweight object and use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Which Layout supports android:layout_gravity? I came through many examples in internet.I found that neither Relative Layout nor Linear Layout supports android:layout_gravity.By it I mean the views inside these layouts does not support android:layout_gravity attribute. So any one having idea which layout supports and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursive function for building array from tree I have an array that looks like this:
Array (
[0] => Array
(
[term_id] => 23
[name] => testasdf
[depth] => 1
)
[1] => Array
(
[term_id] => 26
[name] => asdf
[depth] => 2
)
[2] => Array
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android:Is this possible to generate the view's Bitmap I have 4 layouts(views) and I wanna get their shortcuts.
I use "getDrawingCache()",yeah,I get the pictures,but I found if I wanna get the pictures,I had to make them shown.(I mean they have to be displayed to the user).
So Is there any way to get their pictures ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to select rows with sum of group in sqlite3? Let say I have data in sqlite3 like this:
|saleID|data|
|1|a|
|1|b|
|1|c|
|2|x|
|2|y|
|3|t|
|4|x|
|4|y|
I want to count how many times saleID in table appear.
How the sql syntax in sqlite to get result like this?
|saleID|count|
|1|3|
|2|2|
|3|1|
|4|2|
Thanks for cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding magento to an existing website I was curious if anyone knows if it is possible to add magento to an existing website. I want the website look the same. The website has products and buttons/links for adding to shopping cart, but it has no shopping cart functionality. Is this possible? If so, where could I read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning the last row from a mysql subquery when paginating a result set I'm using the following mysql query to create a pagination array -- for a list of documents -- in the form "Ab-Cf | Cg-Le | Li-Ru " etc...
The subquery 'Subquery' selects the entire list of documents, and is variable depending on the user pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to rotate label of a bar chart and add offset in core plot? just wondering if there is a way to rotate the labels placed on bar charts and add offset to it ? Thank you.
Below my delegate implementation. Note the padding on label
-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index
{
CP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails server hangs when a User method I created is called. No errors and I don't know how to test it I call this method (with helper method detailed below as well), defined in User.rb model
def get_random_items
return nil unless groups_as_member
if groups_as_member == 1
assignments = groups_as_member.assignments.l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Comparing images by color
Possible Duplicate:
How to reduce color palette with PIL
I'm trying to create a program that can identify similar images based off common colors. I've been experimenting with histograms and some of the filters in PIL but I feel like I'm reinventing the wheel. So:
How can I reduce an imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mod_Rewrite with multiple PHP variables and dynamic text So here's the deal:
episode.php?s=1&e=3 brings up information for season 1 episode 3.
So make it SEO friendly I want to be able to have users be able go to the following:
domain.com/episodes/ShowName_Season_1_Episode_3_The_Title_Of_The_Episode.html (or without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to easily include links to other pages of my site within my PHP files? I was wondering if there is a way to make the following process more automated (so links automatically update throughout if the links get changed).
I have a PHP site, with a front controller.
Now I'm wondering how would I go about displaying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I statically reject different instantiations of an existential type? First attempt
It's difficult to make this question pithy, but to provide a minimal example, suppose I have this type:
{-# LANGUAGE GADTs #-}
data Val where
Val :: Eq a => a -> Val
This type lets me happily construct the following heterogeneo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to limit the characters in access to more than 255 How to limit the characters in access to more than 255? for example, I want it the memo or text box to limit it to max 300 characters.
In Access 2010
A: If you want to limit a memo field in a table to no more than 300 characters, open the table in design view a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why aren't my push and pop methods working? I'm trying to implement a stack in Perl where I have an array. I want to push items on the array, pop items out and print out the new array like so: "1,2,3,5,6
How can I do that? My code just adds the number 6 to the top of the array.
#!usr/bin/perl
@array = 1..5;
push... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save the contents of a PDF file as spoken audio using AppleScript I have built a simple script which takes a string and converts it to an audio file:
say "This is only a test." using "Fred" saving to file (((path to desktop) as string) & "audio.aiff"
I'd like to edit the script so that instead of using the string "T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook PHP SDK - Have to reauthenticate during new browser session? Hopefully this should be quick and easy.
session_start();
include("facebook.php");
$facebook = new Facebook(array(
'appId'=>'xxxxx50274xxxxx',
'secret'=>'xxxxxb932d62fbc6287feb18e5exxxxx',
'cookie'=>true
));
$fbuser = $facebook->getUser();
if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP is slow when printing large amount of text I made an ajax application, which worked great on my local dev server, but when I moved it online, one particular request got really slow. This request is quite complicated - it loads a lot of stuff from database and creates quite big text output, around 120kB. Since th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery ajax data by form fields I am processing a form with jQuery ajax.
I have the following jQuery code:
$.ajax({
url: 'formprocess.php',
type: 'post',
data: $('#myForm input[type=\'text\']'),
dataType: 'json',
success: function(json) { alert('pass'); }
});
And my form is:
<form id="myForm">
<input t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Client-side browser language/plugin that supports sockets? I am a Application Developer (java,c,c#) and do not have experience with any web-based languages yet.
I want to embed an application in a webpage. The application may need to connect to a database that could be on the same host as the webpage.
But most impo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stupid idea: Mac speech from PHP server? I want to synthesize Mac OS X speech, but I'm using a PC. Can I set up a PHP server on my Macbook at home, and have it synthesize text for me, and return it to me through a web request?
Like http://mymacbook.com/speak.php?t=why+hello+there
What secret PHP codes will unlock t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How transferable is JavaFX 1.3 knowledge to JavaFX 2.0? I'm embarking on a project to develop a desktop application but my expertise have been in the web application development realm. I was about to refresh my knowledge on Swing programming when I learned on JavaFX which seems to be a much better alternative. At ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: query the html taken from PHP's file_get_contents using jQuery If I have
$html = file_get_contents('http://www.some-url.com/index.php');
how do I query the html using jQuery?
A: You will need to output the HTML onto the page then use jQuery to query it once the page is loaded.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7563492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Routing error from jQuery UI tabs with ajax I'm using Rails and jQuery UI to implement tabs in each user's profile. I've got it working without ajax - with ajax, things go south. I'm new to Rails and jQuery and am hoping someone can help me identify what's going wrong.
*
*<div id="tabs-1"> is the first tab and it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open a remote file using paramiko in python slow I am using paramiko to open a remote sftp file in python. With the file object returned by paramiko, I am reading the file line by line and processing the information. This seems really slow compared to using the python in-built method 'open' from the os. Following is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails 3 does not show jQuery Date Picker I followed a Railscast by RyanB to add jQuery date_picker to a form and and got stuck for a couple days now. According to the instruction, there are only three changes:
*
*Change application.html.erb to include jQuery and jQuery-ui (see my application.html.erb below)
*Cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF DateTime to NSDate I am using a web services which returns a JSON WCF DateTime.
The string goes like \/Date(1316397792913+0800)\/
I am interested in extracting out the 1316397792 which is the time since 1st Jan 1970 in seconds. So that I can use the NSDate timeIntervalSince1970 method to get the present time. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: First Android App I'm fairly new to the whole android scene, and I decided to start off with something simple, a Celsius to Fahrenheit converter. Here's the block of code I'm using to do the actual math (x-32)*5/9 where x=input for Celsius Temp.
convertbutton.setOnClickListener(new OnClickListener() {
public v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Given a string denoting a type, I need to know if it's a value or reference type I'm writing a T4 template and got stuck on this. If consumers of the template write:
Please generate stuff for: string myString
I need to generate
if (myString != null)
{
DoStuffWith(myString)
}
Whereas if they write
Please genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do some java classes seem to return a value when constructed? E.g.
import java.util.*;
public class mainXX {
public static void main(String args[]){
System.out.println(new Date());
}
}
If I run this code I'm creating a new Date object but not calling any methods, it only calls the default construc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I selecting multiple columns, only one of which is distinct? (ORACLE SQL) I want to be able to do this:
INSERT INTO TABLE_1(<LIST OF COLUMNS>)
SELECT <LIST OF ROWS> FROM (SELECT DISTINCT <OTHER COLUMNS> FROM TABLE_2);
How can I do this? I receive an error when I try to do it now.
Note that <LIST OF COLUMNS>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Animate both width and height on click with jQuery Trying to animate both the width and the height of these boxes on click.
See fiddle:
http://jsfiddle.net/CqDXn/1/
I've been successful with getting the width to animate... no just need to prevent that awkward jump at the end of the animation.
edit:
worth noting I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use QSortFilterProxyModel to filter a tree model that only display children nodes with their parents? I have a working tree model derived from QAbstractItemModel and I wish to filter it using a QSortFilterProxyModel subclass to display only children nodes of certain criteria. For example I have the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Android: How can I achieve/draw an arrow and put a text on top of it using Canvas/Paint? I want to achieve the below picture (i made it via excel).
Here are the requirements:
*
*arrow down shape
*"GOAL" text on top of it
*tip of the arrow should be pointed on the given x,y
*transparent effect (i think its set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a compact way of telling the C# compiler to use the base Equals and == operator? I am fairly new to C#, and I come from a C++ background.
I have defined a struct, and the (Microsoft) compiler keeps popping up the error CA1815 "'GenericSendRequest' should override Equals"
I read a bit around and saw that C# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Android - referencing string array using another string to avoid using SQLite I've searched for this but I'm not exactly sure what I should be searching for.
I'm trying to avoid using a SQLite DB and was wondering is it possible to call a string using the value of another string.
Eg.
If I have in a xml file this: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Playing sound using AVAssetReader I am using AVAssetReader to get the individual frames from a video file (see code below). I would like to know how I can play the audio from the video at the same time.
I tried to separate the audio into a new file and play it using AVAudioPlayer, but that crashes if I am using it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Memory Mapping or Unlocked Stream Operation? I am working on a FUSE implementation for FAT32 under Linux (I know this is already available in the Linux Kernel, but this is a school assignment).
The FAT32 filesystem is created with the mkfs.msdos command, which I will later map into memory with posix_madvise, o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculate entropy of probability distribution of two data sets- text analysis & sentiment in C# I'm using a 1.6M tweet corpus to train a naive bayes sentiment engine.
I have two Dictionaries of n-grams (Dictionary<string,int> where the string is my n-gram and the int is the # of occurrences of the n-gram in my corp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Object Debugger gives me Extraneous Property And Inferred Property error on opg I have everything right in my header. I followed the Dev Doc for adding my location and address to my header but I get these warnings. Can someone tell me what I am doing wrong?
Extraneous Property Objects of this type do not allow prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: prevent ajax call from firing repeatedly $('.myDiv').click(function(event){
$.ajax({
url: '',
dataType: 'json',
success: function(json) {
for (var i = 0; i < json.length; i++) {
var response = json[i];
$('.result_new').append('<p>' + response.name + '</p>');
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i pass a generator yield statement to another function. -Python i've been reading on this site and can't seem to find the specific answer i want. i've tried reading david beasly's slides on iteration and generators but still can't quite get the answer i'm looking for though the question seems simple. i'm runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot access variable through JavaScript - scope error? I have some data in a separate .js file similar to this:
data = new Object();
data['cat'] = ['Mr. Whiskers','Wobbles'];
data['dog'] = ['Toothy'];
data['fish'] = ['goldy','roose'];
function getStuff(info)
{
var stuff = data[info.value];
return stuff;
}
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563542",
"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.