text stringlengths 8 267k | meta dict |
|---|---|
Q: count the status types and put totals in one row I have the following result set
Status, Name
0, Type0
0, Type0
1, Type1
0, Type0
2, Type2
How do I sum the counts of types and make it look like
Type0,Type1,Type2
3,1,1
A: SELECT
COUNT(CASE WHEN Name='Type0' THEN 1 END) AS Type0,
COUNT(CASE WHEN Name='Ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IE9+: poor performance while dealing with DOM Compared to other browsers, IE9 executes this script (for dynamic manipulation of DOM) with a very long running time. I am curious; in what ways would it impact the execution speed of next-generation rich applications? Other than this iterative test, is there any related... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does jsfiddle ignore gist css files? Adding a gist css-file to jsfiddle by "Add Resources" url does not seem to work.
Am I missing something or is it not supported?
Fiddle that does not load from url:
http://jsfiddle.net/keffot/dpWWz/
Fiddle with css content copied to css-frame:
http://jsfiddle.net/keffot/DTFfK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql & group_concat_length Let say I have a table with million of rows.
Does this sql query stop as soon as "group_concat_length" limit value is reached for all "id_list" or does it test all rows in the table?
SELECT GROUP_CONCAT(id) AS id_list, type FROM table WHERE 1 GROUP BY type
A: All rows and groups are pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: crystal report in only one page I want to print a receipt of supermarket I designed it :
section 1 header
section 2 the head of table
section 3 the table
section 4 report footer section 1 has the total bill
if number of rows more than 40 it print the report footer in new page with new head of table and new empty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing array declared inside a class via object of that class I have created a class named as MEMBERS. In this class I have declared an array as a member variable.
class member
{
public $arr_connections;
function connections($id)
{
$query = mysql_query("Select * from connections where user_id = '$id'");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unix script - problem in making a text file - creating text file with some unicode character I am writing a simple unix script as follows:
#!/bin/bash
mkdir tmp/temp1
cd tmp/temp1
echo "ab bc cj nn mm" > output.txt
grep 'ab' output.txt > newoutput.txt
I got following error message:
grep : No such file or directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Yesod devel fails, thought cabal build succeeds I am relatively new to Haskell, coming from F# (a Microsoft language).
I have created a Yesod project from the scaffolder, played with it a bit, tweaked stuff, but then it stopped working, with this error message (after all modules were built successfully):
devel.hs: D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: drawing lines on top of UIImageView which has an image already I have a picture black and white of png format that is displayed with an UIImageView. It is a clock shape with no handles. so the background is white - and the circle is black.
Then I would like to draw on top the handles for hours and minutes and I am s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the projected value with MySQL How to change the projected value from select in MySQL? Is it possible with the following SQL?
SELECT IF(situation=0,1,0) FROM users;
Thanks in advance
A: You can use MySQL's CASE Statement.
SELECT CASE situation
WHEN 0 THEN 1
ELSE 0
END CASE
FROM users;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# (Mono): Restarting process on program failure I'm fairly new with working in Mono and would like to know how I can force my console application to restart upon exception under a linux environment. How would I go about doing this?
A: If the process dies, you can use something like Monit to keep it running. Brief ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ WM_NCCALCSIZE not being sent I'm trying to center the text in a edit control vertically, after some research I found I have to process the WM_NCCALCSIZE message.
So i've subclassed my edit control, but the WM_NCCALCSIZE message is never sent.
Am I doing something wrong?
EDIT:
So i'm processing the WM_NCCALCSIZE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP classic logic issue I have recently taken over a website written in ASP Classic. It uses a MS access database for the back end.
The website allows people to sign in and pay a membership fee in order to keep there account active.
My Problem is when someones account expires I have no way to change the status of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js as a JSON forwarder I'm new to Node.js but I wanted to use it as a quick web server which would simply take in a request uri and then run a query on an internal service which returns a JSON stream.
I.e. something like this:
http.createServer(function(request, response) {
var uri = url.parse(request.url).pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Implementing meta-function zip in c++11 I am actually trying to see if I can get a minimal library that supports the very few operations I use from boost::fusion.
Here is what I have so far...
template < typename... Types >
struct typelist
{
};
template < template < typename... > class F, typename... Args >
struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Better way to handle multiple DropDown selection
I have a menu with multiple DropDowns. I added code but at present, it entirely resides in the code-behind file. I want to use any design pattern to handle in an easy and uncluttered way the variety of choices.
The report generation criteria is prepared as follows:
R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android MapView not loading tiles on devices I am writing an Android application that uses Google Maps MapView to display maps. The application works fine in the emulator, but when I try to run it on an actual device it will not load any map tiles.
I have already done the following:
*
*Checked that Eclipse ADT is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the JSCC.get ... init? I want to build such a structure. Json data looked at Facebook.com. I face the following code in the output. JSCC.get here .... init how it works. Do not help me in this matter?
"onload" :["JSCC.get('/j4e7daf70e8d78540345959110').init(HTML(\"\\u003cdiv ........
A: Solved!
....... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Looking for references describing tail recursion optimization through exceptions I have implemented a small lisp interpretor (sapid lisp at google code) in python and sapid lisp itself. Perhaps its main characteristic is to implement tail and mutual recursion optimization through exceptions. Implementation details h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stop WordPress from auto-formatting certain codes I have a small question for you. How can I stop WordPress from changing the & symbol to &? I found the solution to stop formatiing the code with pharagraphs by remove_filter('the_content', 'wpautop'); but for this one I can't find it anywhere. Thank you!
A: Typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IIS 7.5 w3wp.exe to run another process I have ASP.NET MVC3 application that runs on IIS. One of controllers actions starting the process "cmd /C git clone some-repo".
I need to make sure that child process running under the user that already have git being setup. I use application pool with Identity == My Accout (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with Generate Scaffold Micropost I'm following the http://ruby.railstutorial.org/ From my application directory I run this command but receive the error below. I have searched around but can figure out how to fix.
$ rails generate scaffold Micropost content:string user_id:integer
This is the error:
/Users/bry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: partial class templates specialization, c++ I'm trying to figure it out, so I have this attempt of specializing a class template:
template <class T, int size> class arr{
public:
arr(T* in):_in(in){};
void print()
{
for (int i = 0; i < size; i++)
{
cout << _in[i];
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get first and last word in element's text In JavaScript, how can I get the first and last words from an element's text?
For example:
<div class="content">this is a test</div>// output 'this' 'test'
<p>This is another test</p>// output 'this' 'test'
How can I do that? I am not sure how to use RegExp to match them.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add SVNKit libraries in a NetBeans project I need to use SVNKit in a NetBeans project. I downloaded the stand-alone binaries but I don't know which JAR file I should add. The SVNKit wiki say's that I need to build the directory with Ant, but when doing that it gives me an error:
build.xml does not exist!
Any sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where to use CodeIgniter HTML table? I'm having a bit of difficulty understanding where this would go in CodeIgniter's application. I want to pull down some data from MySQL and display it in an HTML table.
I know how to define models and how to write views ... my only question is:
Should I create the HTML (call $thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to refresh only a part of the page when F5 or refresh button is pressed I'm designing a web application that has a shared menu for all pages. Due to this i decided to load the contents linked by the menu buttons inside a div, using jquery.
So, I have this:
$("#AddNewProductBtn").click(function() {
$(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Add external product images to opencart I need to use externally hosted product images as the product image for the desired items.
The Items are hosted on our CDN and the full URL is known.
All products are imported via a csv file which also includes those url's.
The problem is that after adding the product image ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Trying to understand margins in LinearLayout inside a ScrollView I need to have a LinearLayout inside a SrollView and that LinearLayout must have a margin from the ScrollView. At first, the only way I could think of to solve that issue was having a LinearLayout inside another LinearLayout with the margins set on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do I view the parent view model MVC3 C#? I want to use two models in one view and have looked at parent view model.
I have two models:
public class Blogg
{
public int ID { get; set; }
public string Blogg_name { get; set; }
public string Message { get; set; }
public string Blo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Interchange data between TabActivity and its sub-Activities. Possible? I have a list of locations saved in the TabActivity. The TabActivity has 2 sub-activities: a map and a list. So i want to get the location-list to the sub-activities to show them there. I know that i can commit some data with the intent, but i al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the expression equivalent of the Assignment statement called? In imperative programming, using statements, you do stuff like:
a = 10
b = a * 2
print a # 20
I have been thinking that the equivalent, in expressions, should be something like this:
print with(a=10){with(b=a*2){return b}}
This being written in b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Porting existing console application to Windows Azure I have some console applications that communicate using WCF over TCP. Is it possible/easy to port a console application to Windows Azure, or must the application be hosted in IIS/asp .net?
A: Since you do not really log into a Windows Azure machine and see the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am having abc.mdf database in D drive and i want to use in my website using web.config? I am having abc.mdf database in D drive and i want to use in my website and i have tried as in web.config
and i got following error
An attempt to attach an auto-named database for file D:\abc.mdf
failed. A database with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does it mean "add a Copy Files phase" to add a Framework to a project I'm reading this answer about adding a plugin into xCode 3
Hi, I did a few things to correct (I do not know which steps solved the problem)
1) downloaded a fresh copy
2) linked link against the framework
3) added a copy phase to include the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP XML DOM getElementById I need to pick one tag from xml file and insert another tag before this tag. I'm doing this with method insertBefore in DOM, but the problem is, that if I want pick the tag before I want to add the another tag by method getElementById, it doesn't work.
It writes "using non-object". This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XAML Binding to the opposite of another element I am developing a simple exercise and want to know if there is a way to bind to the opposite of another element using only XAML. For example. I have two buttons on a form, Start and Stop perhaps for a timer. I dont want both to be enables at the same time. When the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: MySQL optimization - prevent subqueries Is it possible for me to change this query so I can do like COUNT(WHERE type_id = 2) AS success, COUNT(WHERE type_id = 1) AS error to prevent using subqueries?
SELECT
(SELECT COUNT(id) FROM log AS success_log WHERE type_id = 2 AND site_id = site.id AND DAYOFYEA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open Graph Beta: Adding units to actions or objects for publish_action? I've been reviewing the Open Graph Beta docs, and I'm interested in how to add measurement units to action or object properties. The classic example is "User Ran a Route". Is there a way I can say that Route is '5 km' and '3.1 miles'? Further, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Saving a vector as a single number? I was wondering if it would be possible to get a vector with an X and a Y value as a single number, knowing that both X and Y can range from -65000 to +65000.
Is this possible in any way?
Code examples on how to convert from this kind of number and to it would be nice.
A: Store i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using DwmIsCompositionEnabled (JwaDwmApi) on pre-vista causes error Been trying to use the following code in order to check if Windows Aero is enabled:
function AeroEnabled: boolean;
var
enabled: bool;
begin
// Function from the JwaDwmapi unit (JEDI Windows Api Library)
DwmIsCompositionEnabled(enabled);
Result ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS2010 C++ Win32 API intellisense Is where any extension, for visual studio, to support intellisense for c++:
win32api,mfc,atl whatever. Or its supported, and only i can not see it?
Or any workaround or other IDE?
For example:
int main(){
Set
}
And here i want to see all available winapi functions, which start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extract set of repeated pattern from String literal in Java What would be a convenient and reliable way to extract all the "{...}" tags from a given string? (Using Java).
So, to give an example:
Say I have: http://www.something.com/{tag1}/path/{tag2}/else/{tag3}.html
I want to get all the "{}” tags; I was thinking a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I need help in iphone memory management I am developing application which is using many photos so definitely it crashes though i released the images as some part is shown in following code
-(void)addScrollView{
[self selectData];
scrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(5, 0, 300, 160)];
int coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript code reloads each page one extra time on each request About a month ago or something i encountered this behaviour on code that has been working this far.
Whenever someone log-in via facebook, each page will reload extra one time.
For example user loads up index.php page then after javascript code fires pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: overwrite 0x00 into a file C #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
int size;
FILE *fp;
fp=fopen("prova" , "rb");
if(fp == NULL){
printf("%s",strerror(2));
return EXIT_FAILURE;
}
/* Controllo lunghezza file */
fseek(fp, 0, SEEK_END);
size=ftell(fp);
fseek(fp, 0, SEEK_SET);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala: Draw table to console I need to display a table in a console.
My simple solution, if you would call it a "solution", is as follows:
override def toString() = {
var res = "\n"
var counter = 1;
res += stateDb._1 + "\n"
res += " +----------------------------+\n"
res += " + Sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to load Underscore library with RequireJS? require(['underscore'], function ($, _) {
...
});
Doesnt work! (_ is not a function)
How to manage it?
A: Note that underscore.js doesn't register itself as an AMD module (though it did for a brief time in earlier versions), thus it can't be used in a require() call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why the model can not be added to collection in BackboneJS window.NCollection = Backbone.Collection.extend({
url: '/api/all',
model: N,
parse: function(data){
var that = this;
_.each(data, function(item){
switch(item.cat){
case 't1':
console.log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use resources from ResourceManager in WPF binding Is there any good tutorial on how to use ResourceManager in WPF binding ? I know how to use it with the GetString function to retrieve a specific resource, but I also would like to use in in binding.
something like
<TextBlock Text="{Binding Resource.Enter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to access java class libraries from a python program in Google App Engine? I am using Python in Google App Engine and I have a Java class library that I want to use in my program...
Is there a way to import that library and use it in a python program?
I have searched the net and found something like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery position element based on window resize If you look at this page: http://dev.driz.co.uk/tips/ I'm doing some experimentation to learn more about jQuery and how to develop things similar to what we've seen on Facebook.
You will see I have a tooltip that is positioned relative to the redbox. However if you resi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Reflections on C++ Variadic Templated Versions of std::min() and std::max() I need reflections on my implementations of the C++11 variadic versions of std::min, std::max. Here are my two alternatives for std::min, where std::max is implemented analogously by just replacing std::min with std::max:
/*! Multi-Type Mini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Identifying the name of a class during run time So I have run into a fairly complex problem with my application.
I have about 40 UIImageView objects that need to be displayed at different locations when different ones are stacked (EX img 1 needs to take img 2 place if img2 ==NO).
What I am trying to do is use a "for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: graph component in GTK/Qt (like in blueJ) I'm about to make a program (qt/gtk) where I need to display some kind of UML diagrams (like in BlueJ),
I wanted to ask you if there is such a component in GTK
It must work with new version of Gtk - gi.repository
The name of library is enough for me, I'll read docs, but if s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add new TextView with new data in cycle? How to add new TextView with new data(name), from Data Base? And add to tableRow in TableLayout?
My table:
_id name
1 Said
2 Bill
etc
Cursor cursor = database.query(TABLE_NAME,
new String[] {STUDENT_NAME},
null, null,nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Play video from a byte array I am using visual basic .NET and I want to play a video from a byte array that I have, but without saving it first at the disk. Directly from that array. I tried the directshow lib for a while but didn't managed to find a way to play it. WMP didn't worked either.
Any ideas?
A: There is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I see the error but the account is valid SQL> CREATE or REPLACE FUNCTION custord (custNo IN number)
2 RETURN NUMBER
3 IS cust_tot NUMBER(11,2);
4 BEGIN
5 SELECT sum(cust_total_field)
6 INTO cust_tot
7 FROM ord
8 WHERE cust_number_field=custNo;
9 RETURN(cust_tot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android KeyboardView throws Nullpointer I want to make my own keyboard.
I have the following code
When I ran the code, it throws NullPointerException.
My RKeyboardView that extends KeyboardView
package com.glenn.droid; // MY package
import android.content.Context;
import android.inputmethodservice.KeyboardView;
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Protect ASP.MVC controller action using OAUTH I need to protect MVC action methods via OAUTH. Ultimately, I think I need to create two action filters - one to parse the OAUTH data and another to send back data with appropriate headers. Unfortunately, I can't find any example of this. Does anyone have pointers or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML Coloring Help? I really need help :)
I have to put multiple words in a line, each with a different color, I tried wrapping each word in a <div> </div> and styling, but it seems it makes a new line between words.
A: Try using <span>.
<div>s are used for block-level elements. <span> is used for inline elements, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Static files are being processed by Windsor and throwing errors if not found I just noticed that static files are being processed (I guess that is normal) but the problem is if a file doesn't exist it seems to be causing an exception here:
public class WindsorControllerFactory : DefaultControllerFactory
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what are the possible UDP data transfer errors? we're going to develop a game with internet multiplayer support. since it's an interactive game I know I have to use UDP to reduce connection latency, but I'm wondering what are the possible errors that may occur in a package delivered using UDP connection? everywhere ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Incorrect values from GetProcessHandleCount I faced with strange behavior of function GetProcessHandleCount().
At first I take a snapshot of all processes in the system as it is described in msdn:
HANDLE hProcessSnap;
HANDLE hProcess;
PROCESSENTRY32 pe32;
hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery bind stoppropagation callback context I am trying to prevent multiple events firing.
I'm using a callback function to pass an object, like this:
function init() {
var myObj = this.someObject;
$('#id').bind("blur keyup change", function (e, obj) {
return function () {
SomeFunction... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring 3.x configuration for multiple login pages I'm using Spring 3.1 for authentication purpose.
My requirement:
*
*Two different login pages. One for Customer and other for Employee.
*Each after successful authentication, will be forwarded to respective successful URL.
My spring security configuration:
<sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why do mutable and immutable ListMaps have different orders in Scala? Why does the immutable version of the ListMap store in ascending order, while mutable version stores in descending order?
Here is a test that you can use if you got scalatest-1.6.1.jar and junit-4.9.jar
@Test def StackoverflowQuestion()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why is my WPF suddenly rebelling? I've recently completed a fairly large (for one man) WPF project, and started coding something for fun. I was almost done with an app worthy of showing off to friends and colleagues, and I started playing with window sizes - manually resizing the window - just to see what would happ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Possible to use PEAR SearchReplace to replace text within a .php file? I came across this simple pear tutorial over here: http://www.codediesel.com/php/search-replace-in-files-using-php/
include 'File/SearchReplace.php' ;
$files_to_search = array("fruits.txt") ;
$search_string = "apples";
$replace_string = "orange... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: f:verbatim tag stops working when inside a dataTable I posted this to the PrimeFaces user forum but I think they are too busy to look into it, so I thought I would try here.
I have server-side string that has markup in it, so when I want it rendered I do this:
<p:panel>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trying to set up Orchard Multi-Tenancy on IIS Server I am very new to Orchard, and am having a most difficult time setting up IIS bindings. I am not proficient at IIS, and am new to web development in general.
Say I have domain1.com which is the main Orchard site (landlord). I properly set up domain2.com in the Mul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: restful POST in Play I have been following some Play! framework tutorials, but I cannot get the simplest of examples to work.
String xml = "<thing><foo>first</foo><bar>second</bar></thing>";
Response response = POST("/thing", "application/xml", xml);
In my /thing method in the controller, the Thing object that is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php json encode outputting invalid json from mysql results
Possible Duplicate:
encode json using php?
$hello_world = $this->session->all_userdata();
foreach($hello_world as $key=>$product_id)
{
$query['products'] = $this->Global_products->globalFindProductsViewed($product_id);
foreach($query['products'] as $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: How to make an array of images specifically in the same
*? I am trying to make an image switcher for my portfolio site that is unique. To do this I think I need to be able to have an array of images that matches with the corresponding array of list items with the names of the projects they belong to, like this:
<ul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Problems with pinch zoom on Android I recently discovered a bit of code to keep the backgrounds stable, when pinch zooming on iphone/ipad.
However I am running test on my website on my Android, and when I pinch zoom, the background image, which covers the whole site in the body tag, jumps all over the place.
So is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I give this time-critical procedure priority over other threads? In order to write a MIDI sequencer I need a steady pulse that calls a timing routine that has absolute priority over anything else in the program and preferrably over anything in the computer. I do this by using TimeSetEvent like this:
TimeSetE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java JSON serialization - best practice I need to implement JSON serialization for some objects, and I've encountered a problem when it came to integration with generic collections.
All serializable classes implement this interface (JSONObject comes from this library):
interface JSONSerializable{
public JSONObj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: small problem with django-tinymce and django-filebrowser integration I am trying to integrate django-tinymce with django-filebrowser for my
django admin site.
Everything (almost) works fine.
*
*manage.py test filebrowser, works ok
*http://localhost:8000/admin/filebrowser/browse/ works, too
however when I press... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding whether a string starts with one of a list's variable-length prefixes I need to find out whether a name starts with any of a list's prefixes and then remove it, like:
if name[:2] in ["i_", "c_", "m_", "l_", "d_", "t_", "e_", "b_"]:
name = name[2:]
The above only works for list prefixes with a length of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Sencha Touch Store With Date Field I have a Model with Date field and Store which loads from XML with same date field as string. Would the sencha parse it to Date automatically or I would need to do that manually?
Ext.regModel('News', {
idProperty: 'Id',
fields: [
{ name: 'Id', type: 'int' },
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting protection bits for the whole address space OK, what I want to do here is to only give read access to all the pages in an address space in Linux. Whenever a page would be written, I will give write access to it in a SIGSEGV signal handler. For 32 bit, this is easy as the address space is of only 4GB, therefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor [INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How to use gnomevfs.get_mime_type()? Python gnome binding have gnomevfs module that theoretically can get MIME types. But calling gnomevfs.get_mime_type() with any name other than "/dev/null" raises error "RuntimeError: there was an error reading the file". For example:
import gnomevfs
gnomevfs.get_mime_type( "/tmp/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linq changing order of columns I have an IQueryable that's returned from a query.
The columns are Article, Id, Lot.
What's a simple linq way to have the columns Id, Article, Lot.
A: You are working with objects that have named properties corresponding to the columns in the database. The order shouldn't matter.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asymmetric cryptography example in C# I need to send confidential data to a server over a TCP connection. I have done a lot of researching and I understand the theoretical part. Based on what I have researched I want to do the following:
Note there is a server and a client: (we assume that public keys of either the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to get value in a textbox from a JSF page to a Java Class? I already created the bean, and it gets the value from the textbox, my problem is how can i pass it to another java class?
A: Just pass it as method argument the usual Java way. You can do it in the action method.
E.g.
<h:form>
<h:inputText value="#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto define a buffer for IA32 sys_read call I'm having trouble using the sys_read system call from an IA32 Assembler program on Linux. What is the correct way to define a buffer?
This is the relevant part of what I have so far:
movl $(SYS_read), %eax
movl $(STDIN), %ebx
movl BUFFADDR, %ecx
movl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to see core data tables and how to delete the data from a real device Two questions about Core Data:
1. Is it possible to see the actual data(the db tables) that is stored when using core data?
2. When using the iPhone simulator i can delete the core data db by resetting the simulator. But how can i delete the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ray Tracing using k-d trees for stanford bunny model I am trying to ray trace the Stanford bunny model which is PLY format. I have a parser which parses the PLY file and gives me the value of co-ordinates of triangles and also their vertices. Now I am confused as to how to proceed ahead. Should I put these triangle ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling max(ID) in a concurrent environment I am new to web application programming and handling concurrency using an RDBMS like SQL Server. I am using SQL Server 2005 Express Edition.
I am generating employee code in which the last four digits come from this query:
SELECT max(ID) FROM employees WHERE district = "X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to prevent an application from being uninstalled? I'm developing an application for parents to watch out for their children. So this application cannot be removed by the child. I need to know how to make it uninstallable or the user need password to remove that application.
A: I've only seen one app that does t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to highlight occurrences of a search term in text in Visual Studio editor for C++? hello I have Visual Studio 2008 Express edition, I found some add-ins like metalscroll and rockscroll and even installed, but I can't find how to use those add-ins, I thought it might be automatically, I mean highlighting, but it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: delete a node or triple using dotenetrdf librery? I have an n3 file formate and i want to delete a node or triple from it how can i do it? should i use sparql query?please help me
i want to have an n3 file and want to delete a node from it.
i pass a graph that use in my parent form to this delete form and want to wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: any way to detect iPads or iPhones on wireless network? bonjour? I am trying to detect Apple devices connected to a wireless network. This is relatively simple using Bonjour, however I am also trying to detect what kind of device it is. Like, a MacBook Air, a MacBook Pro, a MacPro, an iPhone, iPod, or an iPad.
I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: C# Getting List of Directories Using TreeView Node Information I have couple of nodes in a Tree-view that user can drag to create child nodes etc.
I am using couple of methods to retrieve the parent node list:
private static IList<Node> BuildParentNodeList(AdvTree treeView)
{
IList<Node> nodesWithChildre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modify array with jQuery to get sequenced indexes This javascript array contains coordinates that I send to Google Maps API to draw a path in the map. Sometimes coordinates[0] is empty because it depends on a previous route that might exist or not (using Google Maps).
This is my code:
coordinates = [];
(between her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wprintw: In ncurses, when writing a newline-terminated line of exactly the same width as the window, two newlines are printed I've just finished working through the code of a CLI program, converting it into a TUI program using ncurses.
It tests the user on a collection of questions and answers in a flash card-like w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: File Descriptors and System Calls I am doing merging k-sorted streams using read write system calls.
After having read the first integers out of the files and sorting them, the file having the smallest element should be accessed again.
I am not sure how to do this. I thought I can use a structure like:
struct fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot download to Hard Drive using ftp_get() Is it possible to download to my Hard Drive (as opposted to my remote server) using PHP's ftp_get? The download using ftp_get() is successful, however, the file that I downloaded from my remote server is being downloaded to the directory of my php script. I'm not surpris... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Little library with DataGrid control I need to create a little library that has the DataGrid control as frontend.
In fact this library will have just 2 columns:
Filename;FileProperty
The filenames will be scanned again on each application start, the FileProperty column will be filled at runtime (if my application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7540032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.