PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11,655,913 | 07/25/2012 18:07:53 | 1,067,174 | 11/26/2011 18:22:41 | 101 | 0 | Latex: applying a style to everything in a block | I'm writing a math paper, and I want to change the style for the statement of theorems to \tt. However, I want this to affect things within math mode as well as normal text. Is there some way to force all math blocks withing an environment to change style? | latex | null | null | null | null | 07/25/2012 22:05:25 | off topic | Latex: applying a style to everything in a block
===
I'm writing a math paper, and I want to change the style for the statement of theorems to \tt. However, I want this to affect things within math mode as well as normal text. Is there some way to force all math blocks withing an environment to change style? | 2 |
1,729,565 | 11/13/2009 14:31:43 | 2,908 | 08/25/2008 21:46:25 | 2,360 | 98 | What shapes can you Draw in Css? | I recently came across a [trick for drawing triangles][1] in css (it's the 'point' of the comment). And it's obvious how to draw a circle and rectangle/square. It seems like this would be enough to draw pretty much any shape (as long as you don't mind ignoring IE for circles)
<span class='red-triangle'></span>
<span class='blue-circle'></span>
<span class='green-square'></span>
css:
.red-triangle {
display: block;
height: 0;
width: 0;
border-bottom: 1em solid #f00;
border-left: 1em solid transparent;
}
.blue-circle {
display: block;
height: 10px;
width: 10px;
background-color: #00f;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
}
.green-square {
background-color: #0f0;
display: block;
height: 10px;
width: 10px;
}
What other useful and clever tricks should I know about? :)
[1]: http://desandro.com/resources/css-speech-bubble-icon | css | tips-and-tricks | drawing | null | null | 01/30/2012 16:03:50 | not constructive | What shapes can you Draw in Css?
===
I recently came across a [trick for drawing triangles][1] in css (it's the 'point' of the comment). And it's obvious how to draw a circle and rectangle/square. It seems like this would be enough to draw pretty much any shape (as long as you don't mind ignoring IE for circles)
<span class='red-triangle'></span>
<span class='blue-circle'></span>
<span class='green-square'></span>
css:
.red-triangle {
display: block;
height: 0;
width: 0;
border-bottom: 1em solid #f00;
border-left: 1em solid transparent;
}
.blue-circle {
display: block;
height: 10px;
width: 10px;
background-color: #00f;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
}
.green-square {
background-color: #0f0;
display: block;
height: 10px;
width: 10px;
}
What other useful and clever tricks should I know about? :)
[1]: http://desandro.com/resources/css-speech-bubble-icon | 4 |
8,743,792 | 01/05/2012 14:02:55 | 872,902 | 08/01/2011 14:06:51 | 120 | 3 | c++ Any type of array as an argument for a function | I tried to make a function that takes a vector for an argument:
class class0
{
...
...
}
void function (vector <class0> random_vector)
{
...
...
}
int main ()
{
vector <class0> the_vector;
function (the_vector);
...
...
}
It worked. I achieved it with a simple experiment. But I don't know if there is more to know about doing something like this. Is it the same with the other types of arrays? Is this the best way?
So I need is more info about using any type of arrays as an argument for a function. | c++ | arrays | function | null | null | 01/05/2012 14:11:11 | not a real question | c++ Any type of array as an argument for a function
===
I tried to make a function that takes a vector for an argument:
class class0
{
...
...
}
void function (vector <class0> random_vector)
{
...
...
}
int main ()
{
vector <class0> the_vector;
function (the_vector);
...
...
}
It worked. I achieved it with a simple experiment. But I don't know if there is more to know about doing something like this. Is it the same with the other types of arrays? Is this the best way?
So I need is more info about using any type of arrays as an argument for a function. | 1 |
8,569,461 | 12/20/2011 00:39:22 | 191,125 | 10/16/2009 10:11:33 | 337 | 14 | How do I upgrade postgresl database? Incompatibility error | I installed postgresql via Homebrew.
I have the following issue after upgrading I guess:
```FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.0, which is not compatible with this version 9.1.2.```
Any tips on how to upgrade? I tried the following:
```pg_upgrade -d /usr/local/var/postgres/ -D /usr/local/var/postgres -b /usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin```
Didn't work.
```pg_upgrade -d /usr/local/var/postgres/ -D /usr/local/var/postgres -b /usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin
Performing Consistency Checks
Checking current, bin, and data directories ok
Checking cluster versions
This utility can only upgrade to PostgreSQL version 9.1.
Failure, exiting```
error. | postgresql | upgrade | null | null | null | 12/20/2011 01:28:48 | off topic | How do I upgrade postgresl database? Incompatibility error
===
I installed postgresql via Homebrew.
I have the following issue after upgrading I guess:
```FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.0, which is not compatible with this version 9.1.2.```
Any tips on how to upgrade? I tried the following:
```pg_upgrade -d /usr/local/var/postgres/ -D /usr/local/var/postgres -b /usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin```
Didn't work.
```pg_upgrade -d /usr/local/var/postgres/ -D /usr/local/var/postgres -b /usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin
Performing Consistency Checks
Checking current, bin, and data directories ok
Checking cluster versions
This utility can only upgrade to PostgreSQL version 9.1.
Failure, exiting```
error. | 2 |
11,382,276 | 07/08/2012 10:02:31 | 1,401,970 | 05/17/2012 20:48:25 | 1 | 0 | How to edit page of a town? | is there anybody who can tell me, if its possible to edit page of my hometown and how can I do this? Link to this page: http://www.facebook.com/pages/Pisecna-Pardubicky-Kraj-Czech-Republic/113549811989423
Thx for replies.. | edit | facebook-page | null | null | null | 07/08/2012 12:35:37 | off topic | How to edit page of a town?
===
is there anybody who can tell me, if its possible to edit page of my hometown and how can I do this? Link to this page: http://www.facebook.com/pages/Pisecna-Pardubicky-Kraj-Czech-Republic/113549811989423
Thx for replies.. | 2 |
7,654,670 | 10/04/2011 22:16:13 | 32,484 | 10/29/2008 17:48:46 | 7,707 | 95 | Should I put error handling in T-SQL? | As a developer, error handling and try/catch is a very important part of the code I write.
However, in SQL Server Stored Procs, is it best practise to write error handling within the SP? And if one does not (which seems to be the common case), does the exception propagate to the .NET code? I ask that question as I am under the impression that T-SQL behaves like C# error handling.
And what is the best way to write error handling in T-SQL?
Thanks | c# | .net | sql-server | tsql | null | null | open | Should I put error handling in T-SQL?
===
As a developer, error handling and try/catch is a very important part of the code I write.
However, in SQL Server Stored Procs, is it best practise to write error handling within the SP? And if one does not (which seems to be the common case), does the exception propagate to the .NET code? I ask that question as I am under the impression that T-SQL behaves like C# error handling.
And what is the best way to write error handling in T-SQL?
Thanks | 0 |
7,855,957 | 10/21/2011 22:26:19 | 445,803 | 09/12/2010 21:37:42 | 70 | 7 | How to make new domain on local pc? | Can someone point me where I can find application/service used for creating NEW domain names?
If I want to create domain for example: **somethingnew.com** and I don't want to purchase it somewhere on net and redirect it on my pc, I want program/service that will allow me to own same way of registering as those online service have, just on my pc locally...
Is this possible?
I would like to use it with WAMP ( Apache ) server, if that is possible...
If anyone have any direction what would be useful, what program/service, I will appreciate that...
I try with Simple DNS Plus application, but it's not working okay...
Anyone have any suggestion? | domain | dns | localhost | null | null | 10/24/2011 00:32:43 | off topic | How to make new domain on local pc?
===
Can someone point me where I can find application/service used for creating NEW domain names?
If I want to create domain for example: **somethingnew.com** and I don't want to purchase it somewhere on net and redirect it on my pc, I want program/service that will allow me to own same way of registering as those online service have, just on my pc locally...
Is this possible?
I would like to use it with WAMP ( Apache ) server, if that is possible...
If anyone have any direction what would be useful, what program/service, I will appreciate that...
I try with Simple DNS Plus application, but it's not working okay...
Anyone have any suggestion? | 2 |
6,152,237 | 05/27/2011 12:28:39 | 772,452 | 05/27/2011 04:30:29 | 1 | 0 | What is LWUIT(Light Weight User interface)? | What is Light Weight User interface,Where it is used? | java-me | lwuit | null | null | null | 01/09/2012 10:31:20 | not a real question | What is LWUIT(Light Weight User interface)?
===
What is Light Weight User interface,Where it is used? | 1 |
11,207,574 | 06/26/2012 12:42:01 | 601,841 | 02/03/2011 16:08:31 | 152 | 3 | how to swap values of two rows in mysql without violating unique constraint? | I have a "tasks" table with a priority column, which has a unique constraint.
I'm trying to swap the priority value of two rows, but I keep violating the constraint. I saw this statement somewhere in a similar situation, but it wasn't with MySQL.
UPDATE tasks
SET priority =
CASE
WHEN priority=2 THEN 3
WHEN priority=3 THEN 2
END
WHERE priority IN (2,3);
This will lead to the error:
Error Code: 1062. Duplicate entry '3' for key 'priority_UNIQUE'
Is it possible to accomplish this in MySQL without using bogus values and multiple queries?
| mysql | null | null | null | null | null | open | how to swap values of two rows in mysql without violating unique constraint?
===
I have a "tasks" table with a priority column, which has a unique constraint.
I'm trying to swap the priority value of two rows, but I keep violating the constraint. I saw this statement somewhere in a similar situation, but it wasn't with MySQL.
UPDATE tasks
SET priority =
CASE
WHEN priority=2 THEN 3
WHEN priority=3 THEN 2
END
WHERE priority IN (2,3);
This will lead to the error:
Error Code: 1062. Duplicate entry '3' for key 'priority_UNIQUE'
Is it possible to accomplish this in MySQL without using bogus values and multiple queries?
| 0 |
11,517,345 | 07/17/2012 06:51:01 | 1,530,834 | 07/17/2012 06:33:48 | 1 | 0 | Call to localhost/127.0.0.1:9000 failed on local exception: | I'm a beginner
this question happened in the terminate when I tried to run the 'wordcount'. | hadoop | null | null | null | null | 07/17/2012 18:03:55 | not a real question | Call to localhost/127.0.0.1:9000 failed on local exception:
===
I'm a beginner
this question happened in the terminate when I tried to run the 'wordcount'. | 1 |
8,321,542 | 11/30/2011 05:27:53 | 732,472 | 04/30/2011 14:22:07 | 4 | 0 | c++ beginner - class and passing | I am trying to print these polynomials and I can not seem to print what i want
If my poly was 1*x + 2*x^2 then output would be 4*x. I want 1 + 4*x
void Poly :: derivative (){
term *z ;
if ( term_t == NULL)
return ;
term *temp1;
temp1 = term_t;
while ( temp1 != NULL ){
if ( term_t == NULL ){
term_t = new term ;
z = term_t ;
}
else{
z -> next = new term ;
z = z -> next ;
}
z-> coef = temp1 -> coef * temp1 -> exp;
z-> exp = temp1 -> exp - 1;
temp1 = temp1 -> next;
}
term_t=z;
}
I have a class poly and a struct term_t with coef and exp in them.
| c++ | class | null | null | null | null | open | c++ beginner - class and passing
===
I am trying to print these polynomials and I can not seem to print what i want
If my poly was 1*x + 2*x^2 then output would be 4*x. I want 1 + 4*x
void Poly :: derivative (){
term *z ;
if ( term_t == NULL)
return ;
term *temp1;
temp1 = term_t;
while ( temp1 != NULL ){
if ( term_t == NULL ){
term_t = new term ;
z = term_t ;
}
else{
z -> next = new term ;
z = z -> next ;
}
z-> coef = temp1 -> coef * temp1 -> exp;
z-> exp = temp1 -> exp - 1;
temp1 = temp1 -> next;
}
term_t=z;
}
I have a class poly and a struct term_t with coef and exp in them.
| 0 |
6,023,093 | 05/16/2011 20:37:44 | 632,472 | 02/24/2011 14:26:57 | 32 | 2 | How indent this Objective-C code? | I have a simple question. How I indent a very long line. Let's use the traditional 80 caracters.
This is a line in my code:
NSString *count = [[NSString alloc] initWithString: [sTemp substringFromIndex:[sTemp rangeOfString:@"count="].location + [sTemp rangeOfString:@"count="].length]];
One solution was
NSString *count = [[NSString alloc] //line 1
initWithString: [sTemp substringFromIndex:
[sTemp rangeOfString:@"count="].location +
[sTemp rangeOfString:@"count="].length]];
This is not the best sample, but the idea is:
1. Ok, the first line is the assignment and alloc thing.
2. The line 2 indent with a fell more right space. But, if the name of variable or type is very big, I will have the situation above. What I do?
NSStringWithVeryBigType *bigNameVariable = [NSStringWithVeryBigType alloc]
initWithString: [sTemp substringFromIndex:
3. IN second line I create a new NSString. I can be confuse if the line 3 and 4 (in a bad situation, not this) is the main function creation, or is this new one. Have a good rule about it? And if it have a big name too, what to do again...
In other words, in a big assignment line, what rule I have to fallow? | objective-c | indentation | null | null | null | 05/16/2011 22:15:33 | not constructive | How indent this Objective-C code?
===
I have a simple question. How I indent a very long line. Let's use the traditional 80 caracters.
This is a line in my code:
NSString *count = [[NSString alloc] initWithString: [sTemp substringFromIndex:[sTemp rangeOfString:@"count="].location + [sTemp rangeOfString:@"count="].length]];
One solution was
NSString *count = [[NSString alloc] //line 1
initWithString: [sTemp substringFromIndex:
[sTemp rangeOfString:@"count="].location +
[sTemp rangeOfString:@"count="].length]];
This is not the best sample, but the idea is:
1. Ok, the first line is the assignment and alloc thing.
2. The line 2 indent with a fell more right space. But, if the name of variable or type is very big, I will have the situation above. What I do?
NSStringWithVeryBigType *bigNameVariable = [NSStringWithVeryBigType alloc]
initWithString: [sTemp substringFromIndex:
3. IN second line I create a new NSString. I can be confuse if the line 3 and 4 (in a bad situation, not this) is the main function creation, or is this new one. Have a good rule about it? And if it have a big name too, what to do again...
In other words, in a big assignment line, what rule I have to fallow? | 4 |
2,916,337 | 05/26/2010 20:02:49 | 287,316 | 03/05/2010 17:13:17 | 738 | 13 | Java: add listener to the processor | how can I add a listener to the computer's processor? I want the mouse cursor to change when the processing is hight. | java | hardware | listener | null | null | null | open | Java: add listener to the processor
===
how can I add a listener to the computer's processor? I want the mouse cursor to change when the processing is hight. | 0 |
3,600,465 | 08/30/2010 12:49:41 | 428,036 | 08/23/2010 04:39:35 | 3 | 0 | doubt about x=y==z | HI,
#include <stdio.h>
int main(void)
{ int x = 2, y = 6, z = 6;
x = y == z;
printf("%d", x);
}
output is = 1
thanks. | c | null | null | null | null | 08/30/2010 12:57:23 | not a real question | doubt about x=y==z
===
HI,
#include <stdio.h>
int main(void)
{ int x = 2, y = 6, z = 6;
x = y == z;
printf("%d", x);
}
output is = 1
thanks. | 1 |
1,261,515 | 08/11/2009 16:32:32 | 16,548 | 09/17/2008 18:18:42 | 66 | 5 | Git: Renaming a directory in a branch | I have a project using Git where I've branched off of master to rename a directory.
The rename in the branch works as expected. When I switch back to the master branch the directory has its original name, but there's also an empty directory tree with the name that I changed it to in the branch.
Is this the expected behavior?
Am I missing a step?
Do I just need to delete these empty directory trees as they appear?
I know Git doesn't track empty directories and that may be a factor here.
My current workflow is:
# create and checkout a branch from master
/projects/demo (master)
$ git checkout -b rename_dir
# update paths in any affected files
# perform the rename
/projects/demo (rename_dir)
$ git mv old_dir new_dir
# add the modified files
/projects/demo (rename_dir)
$ git add -u
# commit the changes
/projects/demo (rename_dir)
$ git commit -m 'Rename old_dir to new_dir'
I get to this point and everything is as expected:
# old_dir has been renamed new_dir
/projects/demo (rename_dir)
$ ls
new_dir
The issue comes when I switch back to master:
/projects/demo (rename_dir)
$ git checkout master
# master contains old_dir as expected but it also
# includes the empty directory tree for new_dir
/projects/demo (master)
$ ls
old_dir new_dir
new_dir is an empty directory tree, so git won't track it - but it's ugly to have there.
| git | rename | directory | branch | null | null | open | Git: Renaming a directory in a branch
===
I have a project using Git where I've branched off of master to rename a directory.
The rename in the branch works as expected. When I switch back to the master branch the directory has its original name, but there's also an empty directory tree with the name that I changed it to in the branch.
Is this the expected behavior?
Am I missing a step?
Do I just need to delete these empty directory trees as they appear?
I know Git doesn't track empty directories and that may be a factor here.
My current workflow is:
# create and checkout a branch from master
/projects/demo (master)
$ git checkout -b rename_dir
# update paths in any affected files
# perform the rename
/projects/demo (rename_dir)
$ git mv old_dir new_dir
# add the modified files
/projects/demo (rename_dir)
$ git add -u
# commit the changes
/projects/demo (rename_dir)
$ git commit -m 'Rename old_dir to new_dir'
I get to this point and everything is as expected:
# old_dir has been renamed new_dir
/projects/demo (rename_dir)
$ ls
new_dir
The issue comes when I switch back to master:
/projects/demo (rename_dir)
$ git checkout master
# master contains old_dir as expected but it also
# includes the empty directory tree for new_dir
/projects/demo (master)
$ ls
old_dir new_dir
new_dir is an empty directory tree, so git won't track it - but it's ugly to have there.
| 0 |
1,500,941 | 09/30/2009 22:16:38 | 61,521 | 02/02/2009 14:15:34 | 374 | 7 | Is LINQ-to-SQL + SQLite.NET + Stored Procedures + VISUAL STUDIO 2008 possible? | So I want to retrieve data using stored procedures. Preferably via Linq2SQL.
So I can do something like this (example):
var productHistory = dbname.StoredProcedureMethod(value);
foreach(var product in productHistory)
{
//stuff
}
This is something I'd like to be able to do in Visual Studio 2008 in .Net 3.5.
It is possible with Visual studio 2008 + .Net 3.5 + SQL Server 2008.
But firstly, I don't like SQL Server 2008 and secondly, I need the database to be absolutely portable.
I've always liked SQLite.net, but it is not a direct requirement - as long as the database solution is portable.
I haven't been able to set anything up but Visual studio 2008 + SQLite.Net.
So yeah, I am asking for your help :) | system.data.sqlite | c# | visual-studio-2008 | stored-procedures | linq-to-sql | null | open | Is LINQ-to-SQL + SQLite.NET + Stored Procedures + VISUAL STUDIO 2008 possible?
===
So I want to retrieve data using stored procedures. Preferably via Linq2SQL.
So I can do something like this (example):
var productHistory = dbname.StoredProcedureMethod(value);
foreach(var product in productHistory)
{
//stuff
}
This is something I'd like to be able to do in Visual Studio 2008 in .Net 3.5.
It is possible with Visual studio 2008 + .Net 3.5 + SQL Server 2008.
But firstly, I don't like SQL Server 2008 and secondly, I need the database to be absolutely portable.
I've always liked SQLite.net, but it is not a direct requirement - as long as the database solution is portable.
I haven't been able to set anything up but Visual studio 2008 + SQLite.Net.
So yeah, I am asking for your help :) | 0 |
5,609,099 | 04/10/2011 01:16:15 | 700,468 | 04/10/2011 01:09:55 | 1 | 0 | How to show terminal in linux application? | I was wondering if you could have it so when you go and click on a program in linux it always automatically brings up the command line for the information being displayed or if I decided to use ncurses for an interface. If so is this a system specific call or can you do this with ncurses? Because half of my program is going to be via terminal.
Thanks | c++ | linux | terminal | show | ncurses | null | open | How to show terminal in linux application?
===
I was wondering if you could have it so when you go and click on a program in linux it always automatically brings up the command line for the information being displayed or if I decided to use ncurses for an interface. If so is this a system specific call or can you do this with ncurses? Because half of my program is going to be via terminal.
Thanks | 0 |
3,218,452 | 07/10/2010 08:23:00 | 287,745 | 03/06/2010 13:48:50 | 205 | 5 | i have to do the following to the database, have an idea but its not clear. help! | note:-
Please read the explanation of what is to be achieved and provide initial guidance, i know there must be a lot of concepts involved, i am not asking for complete step by step solution, need help in knowing what concepts need studying and a proper path to start with.
There are a lot of resources on the internet, which makes it really confusing and tiresome. therefore asking this question to get proper guidance.
my college assignment is to make an database,
such that
the database is able to generate a user interface which provides the best help to the TIME TABLE MAKER PERSON of the college
it manages all the issues relating to timetabling and extra issues request by the college.
my professor explained me that,
1) currently all the timetabling work is done on paper through mutual coordination.
i have to make a database for it whose 'schema' must be common to all departments.
2) now have to implement it in an distributed environment. Each department will/must be maintain/having its own computer where its data will be stored.
MY Answer 1) i have designed the database schema such that its one for all "can handle timetabling for all departments."
MY Answer 2)
for implementing this, i have to assume that
2a) each department will want to maintain its own database server. The software used will be "SQL SERVER 2005 EXPRESS".
2b)The website will connect to the needed data base server depending on the request of the client.
2c) one computer running IIS 5.0 windows XP to host the website.
2d) Assume there are 4 departments, i will need four computers running sql server 2005 express.
***The Question***
what term to use here "the database is distributed
or
the database is replicated"??
{
there is no distribute database feature in sql server 2005 express edition
}
"i do not think it will be distributed as the same schema will be running, on all computers"
that leaves replication,
if i use the "Replication feature" which is shown in micrsoft SQL Server Management Studio Express. The schema of the database will be replicated.
Now to access these db server i will still have to use different connection strings in C# coding, as the dbs reside on different computers, so whats the big deal?? its just copying paste-ing the db file to all that need it!!
am i right? i hope i am not,?
please guide.
Thank you.
| c# | sql-server-2005 | replication | distribution | concepts | 04/29/2012 20:31:49 | not constructive | i have to do the following to the database, have an idea but its not clear. help!
===
note:-
Please read the explanation of what is to be achieved and provide initial guidance, i know there must be a lot of concepts involved, i am not asking for complete step by step solution, need help in knowing what concepts need studying and a proper path to start with.
There are a lot of resources on the internet, which makes it really confusing and tiresome. therefore asking this question to get proper guidance.
my college assignment is to make an database,
such that
the database is able to generate a user interface which provides the best help to the TIME TABLE MAKER PERSON of the college
it manages all the issues relating to timetabling and extra issues request by the college.
my professor explained me that,
1) currently all the timetabling work is done on paper through mutual coordination.
i have to make a database for it whose 'schema' must be common to all departments.
2) now have to implement it in an distributed environment. Each department will/must be maintain/having its own computer where its data will be stored.
MY Answer 1) i have designed the database schema such that its one for all "can handle timetabling for all departments."
MY Answer 2)
for implementing this, i have to assume that
2a) each department will want to maintain its own database server. The software used will be "SQL SERVER 2005 EXPRESS".
2b)The website will connect to the needed data base server depending on the request of the client.
2c) one computer running IIS 5.0 windows XP to host the website.
2d) Assume there are 4 departments, i will need four computers running sql server 2005 express.
***The Question***
what term to use here "the database is distributed
or
the database is replicated"??
{
there is no distribute database feature in sql server 2005 express edition
}
"i do not think it will be distributed as the same schema will be running, on all computers"
that leaves replication,
if i use the "Replication feature" which is shown in micrsoft SQL Server Management Studio Express. The schema of the database will be replicated.
Now to access these db server i will still have to use different connection strings in C# coding, as the dbs reside on different computers, so whats the big deal?? its just copying paste-ing the db file to all that need it!!
am i right? i hope i am not,?
please guide.
Thank you.
| 4 |
8,930,304 | 01/19/2012 17:13:03 | 1,058,279 | 11/21/2011 17:21:22 | 3 | 0 | Most useful free Jenkins plugins | Jenkins is an extendable open source continuous integration server.
There's a list of plugins available for Jenkins, https://wiki.jenkins-ci.org/display/JENKINS/Plugins, but which ones have you found the most useful? | plugins | continuous-integration | jenkins | null | null | 01/20/2012 13:06:10 | not constructive | Most useful free Jenkins plugins
===
Jenkins is an extendable open source continuous integration server.
There's a list of plugins available for Jenkins, https://wiki.jenkins-ci.org/display/JENKINS/Plugins, but which ones have you found the most useful? | 4 |
1,006,647 | 06/17/2009 12:21:20 | 112,757 | 05/26/2009 20:46:37 | 3 | 1 | Updating an entity with NHibernate in Asp.Net | What's the recommended way of updating an entity? So far, I figured out two ways:
1. Just create a new entity with the existing Id and updated property values, and use session.SaveOrUpdate()
2. Use a DTO, retrieve the existing entity using session.Load(dto.Id), assign new vaues from the dto, then save.
No1 requires much less effort, but sometimes I'm getting an exception: "a different object with the same identifier value was already associated with the session". Is there a simple way around that?
No2 might require an extra trip to the DB I guess?
Sorry if that's been answered already, just couldn't find the answer.
Thanks
ulu | nhibernate | asp.net | update | null | null | null | open | Updating an entity with NHibernate in Asp.Net
===
What's the recommended way of updating an entity? So far, I figured out two ways:
1. Just create a new entity with the existing Id and updated property values, and use session.SaveOrUpdate()
2. Use a DTO, retrieve the existing entity using session.Load(dto.Id), assign new vaues from the dto, then save.
No1 requires much less effort, but sometimes I'm getting an exception: "a different object with the same identifier value was already associated with the session". Is there a simple way around that?
No2 might require an extra trip to the DB I guess?
Sorry if that's been answered already, just couldn't find the answer.
Thanks
ulu | 0 |
8,811,010 | 01/10/2012 21:50:53 | 857,071 | 07/22/2011 00:47:33 | 360 | 13 | What is the best way to push data to the device? | I am making a web app that needs to communicate with the Android phone, what is the best way to get data from the web app to the phone? I have heard of C2DM but I don't know any good guides for it. I have tried polling, but that is way too heavy on the battery. Whats the best way to accomplish this? | java | android | push-notification | push | android-c2dm | 02/22/2012 14:28:17 | not constructive | What is the best way to push data to the device?
===
I am making a web app that needs to communicate with the Android phone, what is the best way to get data from the web app to the phone? I have heard of C2DM but I don't know any good guides for it. I have tried polling, but that is way too heavy on the battery. Whats the best way to accomplish this? | 4 |
7,563,925 | 09/27/2011 03:34:05 | 905,230 | 07/05/2011 05:02:50 | 354 | 9 | How to change the color and strike out the clicked listview item? | I am using listview in my program that extends activity. I need to change the color of the clicked list item and strike out the clicked list item. How to do it? any help is really appreciated and thanks in advance... | java | android | listview | null | null | null | open | How to change the color and strike out the clicked listview item?
===
I am using listview in my program that extends activity. I need to change the color of the clicked list item and strike out the clicked list item. How to do it? any help is really appreciated and thanks in advance... | 0 |
8,695,481 | 01/01/2012 20:57:37 | 256,952 | 01/22/2010 17:35:11 | 98 | 3 | Why is it so difficult to create a setup that provides the user with just a Setup.exe in VS2010 | Does anyone have a full example of providing a clickonce install that provide the user with a Setup.exe.
This should be simple!
Clickonce is not a solution the user does not want to see loads of files in a folder; he/she wants a simple setup.exe.
The msi setup wizard seems not to be hooked up to the clickonce system.
There is some info about a bootstrap thing but again that is an addon :(
I cannot understand why it is so difficult; does MS have shares in Install Shield :)
Help please. | c# | winforms | visual-studio-2010 | null | null | 01/01/2012 22:50:20 | not constructive | Why is it so difficult to create a setup that provides the user with just a Setup.exe in VS2010
===
Does anyone have a full example of providing a clickonce install that provide the user with a Setup.exe.
This should be simple!
Clickonce is not a solution the user does not want to see loads of files in a folder; he/she wants a simple setup.exe.
The msi setup wizard seems not to be hooked up to the clickonce system.
There is some info about a bootstrap thing but again that is an addon :(
I cannot understand why it is so difficult; does MS have shares in Install Shield :)
Help please. | 4 |
3,433,900 | 08/08/2010 10:07:26 | 354,297 | 05/31/2010 04:35:01 | 107 | 5 | How to replace text in a PDF file? | How to do it with help of PHP? | php | pdf | null | null | null | 08/09/2010 06:08:10 | not a real question | How to replace text in a PDF file?
===
How to do it with help of PHP? | 1 |
672,638 | 03/23/2009 09:11:48 | 32,484 | 10/29/2008 17:48:46 | 1,394 | 103 | Use of null check in event handler | When checking if an event handler is null, is this done on a per-thread basis?
Ensuring someone is listening to the event is done like this:
EventSeven += new DivBySevenHandler(dbsl.ShowOnScreen);
If I add code following this pattern above where I check for null, then why would I need a null check (code taken from http://www.codeproject.com/KB/cs/csevents01.aspx). What am I missing?
Also, what's the rule with events and GC?
Thanks | c# | null | null | null | null | null | open | Use of null check in event handler
===
When checking if an event handler is null, is this done on a per-thread basis?
Ensuring someone is listening to the event is done like this:
EventSeven += new DivBySevenHandler(dbsl.ShowOnScreen);
If I add code following this pattern above where I check for null, then why would I need a null check (code taken from http://www.codeproject.com/KB/cs/csevents01.aspx). What am I missing?
Also, what's the rule with events and GC?
Thanks | 0 |
832,465 | 05/07/2009 00:58:29 | 20,183 | 09/22/2008 03:23:16 | 271 | 15 | How good/bad is sharepoint programming? | I got a job offer today for a position as a SharePoint developer. One of my friends is telling me that sharepoint is a big mess and not something I would want to be doing.
What are some of your experiences/thoughts in working with SharePoint? | sharepoint | c# | .net | null | null | 04/13/2012 14:05:15 | not constructive | How good/bad is sharepoint programming?
===
I got a job offer today for a position as a SharePoint developer. One of my friends is telling me that sharepoint is a big mess and not something I would want to be doing.
What are some of your experiences/thoughts in working with SharePoint? | 4 |
8,632,996 | 12/26/2011 04:52:56 | 139,548 | 07/16/2009 14:38:04 | 251 | 16 | nodejs + cluster + express has a gateway timeout, but nodejs + express is fine | I'm interested in using Cluster for its worker features and Express for my app.. but when I tie the two together I get a gateway timeout. What am I missing here?! Help, please?
I use Nginx, when app.js is listening on port 3000 everything seems to work fine but when server.js(Cluster) is listening on port 3000 I get Gateway Timeouts;
upstream app_yourdomain {
server 127.0.0.1:3000;
}
...
location ^~ /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://app_yourdomain;
proxy_redirect off;
}
app.js is an express application;
var express = require('express');
var app = express.createServer();
app.use(express.bodyParser());
...
app.get('/api/camps', function(req, res){
Camp.find({}, function(err, docs){
console.log("found " + docs.length + " camps.");
console.log(res);
res.json({'camps': docs});
});
});
server.js;
var cluster = require('cluster')
, app = require('./app');
cluster(app)
.use(cluster.logger('logs'))
.use(cluster.stats())
.use(cluster.pidfiles('pids'))
.use(cluster.cli())
.use(cluster.repl(8888))
.listen(3000);
Nginx error.log has;
2011/12/26 04:21:07 [error] 23385#0: *60 upstream timed out (110: Connection timed out) while reading response header from upstream,.....
| node.js | nginx | cluster-computing | null | null | null | open | nodejs + cluster + express has a gateway timeout, but nodejs + express is fine
===
I'm interested in using Cluster for its worker features and Express for my app.. but when I tie the two together I get a gateway timeout. What am I missing here?! Help, please?
I use Nginx, when app.js is listening on port 3000 everything seems to work fine but when server.js(Cluster) is listening on port 3000 I get Gateway Timeouts;
upstream app_yourdomain {
server 127.0.0.1:3000;
}
...
location ^~ /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://app_yourdomain;
proxy_redirect off;
}
app.js is an express application;
var express = require('express');
var app = express.createServer();
app.use(express.bodyParser());
...
app.get('/api/camps', function(req, res){
Camp.find({}, function(err, docs){
console.log("found " + docs.length + " camps.");
console.log(res);
res.json({'camps': docs});
});
});
server.js;
var cluster = require('cluster')
, app = require('./app');
cluster(app)
.use(cluster.logger('logs'))
.use(cluster.stats())
.use(cluster.pidfiles('pids'))
.use(cluster.cli())
.use(cluster.repl(8888))
.listen(3000);
Nginx error.log has;
2011/12/26 04:21:07 [error] 23385#0: *60 upstream timed out (110: Connection timed out) while reading response header from upstream,.....
| 0 |
11,180,574 | 06/24/2012 19:32:54 | 986,314 | 10/09/2011 11:52:40 | 1 | 0 | SPOJ CADYDIST TLE | I've tried this problem http://www.spoj.pl/problems/CADYDIST/ in C on SPOJ.I've ascendingly sorted first given list of elements and descendingly sorted the 2nd list of elements.And then I've multiplied corresponding elements in both the lists and added it to the total count.The time complexity is hence O(logn).please help how to optimize this further to get it passed??? | spoj | null | null | null | null | 06/25/2012 03:32:42 | not a real question | SPOJ CADYDIST TLE
===
I've tried this problem http://www.spoj.pl/problems/CADYDIST/ in C on SPOJ.I've ascendingly sorted first given list of elements and descendingly sorted the 2nd list of elements.And then I've multiplied corresponding elements in both the lists and added it to the total count.The time complexity is hence O(logn).please help how to optimize this further to get it passed??? | 1 |
2,266,046 | 02/15/2010 13:00:40 | 273,515 | 02/15/2010 13:00:40 | 1 | 0 | phpbb - Allow guests to view topics but NOT posts | I would like to allow guests to view the forum topics but not view the posts however if i provide read access they can read both.
Is there a way i can stop them viewing the posts?
Thanks | phpbb3 | php | forums | null | null | 02/15/2010 16:55:29 | off topic | phpbb - Allow guests to view topics but NOT posts
===
I would like to allow guests to view the forum topics but not view the posts however if i provide read access they can read both.
Is there a way i can stop them viewing the posts?
Thanks | 2 |
6,205,074 | 06/01/2011 17:09:57 | 673,664 | 03/23/2011 18:33:48 | 870 | 55 | Model validation in CakePHP check that atleast one or the other is set | Is there a way to validate data (using CakePHP's model validation) to make sure that at least "a" or "b" has data (does not have to have data in both). | validation | cakephp | model-validation | null | null | null | open | Model validation in CakePHP check that atleast one or the other is set
===
Is there a way to validate data (using CakePHP's model validation) to make sure that at least "a" or "b" has data (does not have to have data in both). | 0 |
7,182,115 | 08/24/2011 20:52:55 | 418,029 | 08/12/2010 05:40:04 | 1,561 | 25 | Log file size in iPhone | I want to put all my app logs in a file in the Documents directory and then once user tap on "Upload logs" in the application, logs will be uploaded to server. I am planning to keep logs for two days. Is there any limit on the size which I can use for the logs?
Also, at all point in time I want to keep last 2 days logs and deleting the old ones. How can that be achieved? | iphone | objective-c | ios | cocoa-touch | null | null | open | Log file size in iPhone
===
I want to put all my app logs in a file in the Documents directory and then once user tap on "Upload logs" in the application, logs will be uploaded to server. I am planning to keep logs for two days. Is there any limit on the size which I can use for the logs?
Also, at all point in time I want to keep last 2 days logs and deleting the old ones. How can that be achieved? | 0 |
7,556,423 | 09/26/2011 14:13:26 | 938,118 | 09/10/2011 11:23:37 | 6 | 0 | run WebClient.DownloadStringCompleted before loading MainPage_Loaded in silverlight | I want to load this event handler before MainPage_Loaded
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri("./ImageList.xml", UriKind.Relative));
void wc_DownloadStringCompleted(object sender, System.Net.DownloadStringCompletedEventArgs e){.....} | xml | silverlight | webclient | null | null | 09/28/2011 04:53:50 | not a real question | run WebClient.DownloadStringCompleted before loading MainPage_Loaded in silverlight
===
I want to load this event handler before MainPage_Loaded
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri("./ImageList.xml", UriKind.Relative));
void wc_DownloadStringCompleted(object sender, System.Net.DownloadStringCompletedEventArgs e){.....} | 1 |
8,089,951 | 11/11/2011 05:09:35 | 1,040,502 | 11/10/2011 20:11:49 | 1 | 0 | How to pass dynamic values in filebrowserUploadUrl from a ckeditor plugin | I have 2 drop down field in dialogbox ckeditor pulgin along with the main upload file field.
i want to pass the selected drop down values in **filebrowser.params.imagsize** and **filebrowser.params.thumbnailsize** attribute using onChange event defined in drop down field. but unluckily it does not changes the initial set value of the params attribute.
here is my code
contents : [
{
id : 'Upload',
hidden : true,
filebrowser : 'uploadButton',
label : editor.lang.image.upload,
elements :
[
{
type : 'file',
id : 'upload',
label : 'If using Expanding Photos in this page, they must be uploaded here first<br/><br/>',
style: 'height:60px',
size : 38
},
{
type : 'select',
id : 'image_size',
label : 'Select Image Size<br/><br/>',
items : [ ["500 Pixels", "500"],["650 Pixels", "650"],["750 Pixels", "750"],["1000 Pixels", "1000"] ] ,
'default' : '500',
onChange : function()
{
ele = this.getDialog().getContentElement('Upload','uploadButton');
ele.filebrowser.params.imagsize = this.getValue();
},
},
{
type : 'select',
id : 'thumbnail_size',
label : 'Select Thumbnail Size<br/><br/>',
items : [ ["64 Pixels", "64"],["102 Pixels", "102"],["128 Pixels", "128"],["192 Pixels", "192"],["250 Pixels", "250"] ] ,
'default' : '102',
onChange : function()
{
ele = this.getDialog().getContentElement('Upload','uploadButton');
ele.filebrowser.params.thumnailsize = this.getValue();
},
},
{
type : 'fileButton',
id : 'uploadButton',
filebrowser :
{
action : 'QuickUpload',
params :
{ type : 'Images',
imagsize : '',
thumnailsize : '',
},
},
//filebrowser : 'info:txtUrl',
label : 'upload to server',
'for' : [ 'Upload', 'upload']
}
]
}
]
I can not get the dynamically generated values (imagsize and thumbnailsize) from onChange event in the url parameter of upload php script
What is the possible solution? | ckeditor | null | null | null | null | null | open | How to pass dynamic values in filebrowserUploadUrl from a ckeditor plugin
===
I have 2 drop down field in dialogbox ckeditor pulgin along with the main upload file field.
i want to pass the selected drop down values in **filebrowser.params.imagsize** and **filebrowser.params.thumbnailsize** attribute using onChange event defined in drop down field. but unluckily it does not changes the initial set value of the params attribute.
here is my code
contents : [
{
id : 'Upload',
hidden : true,
filebrowser : 'uploadButton',
label : editor.lang.image.upload,
elements :
[
{
type : 'file',
id : 'upload',
label : 'If using Expanding Photos in this page, they must be uploaded here first<br/><br/>',
style: 'height:60px',
size : 38
},
{
type : 'select',
id : 'image_size',
label : 'Select Image Size<br/><br/>',
items : [ ["500 Pixels", "500"],["650 Pixels", "650"],["750 Pixels", "750"],["1000 Pixels", "1000"] ] ,
'default' : '500',
onChange : function()
{
ele = this.getDialog().getContentElement('Upload','uploadButton');
ele.filebrowser.params.imagsize = this.getValue();
},
},
{
type : 'select',
id : 'thumbnail_size',
label : 'Select Thumbnail Size<br/><br/>',
items : [ ["64 Pixels", "64"],["102 Pixels", "102"],["128 Pixels", "128"],["192 Pixels", "192"],["250 Pixels", "250"] ] ,
'default' : '102',
onChange : function()
{
ele = this.getDialog().getContentElement('Upload','uploadButton');
ele.filebrowser.params.thumnailsize = this.getValue();
},
},
{
type : 'fileButton',
id : 'uploadButton',
filebrowser :
{
action : 'QuickUpload',
params :
{ type : 'Images',
imagsize : '',
thumnailsize : '',
},
},
//filebrowser : 'info:txtUrl',
label : 'upload to server',
'for' : [ 'Upload', 'upload']
}
]
}
]
I can not get the dynamically generated values (imagsize and thumbnailsize) from onChange event in the url parameter of upload php script
What is the possible solution? | 0 |
7,655,422 | 10/05/2011 00:13:41 | 738,046 | 05/04/2011 13:06:39 | 124 | 0 | How to deal with long lines of code and commands in Python | I've tried searching, but I couldn't find any situations similar to mine. I am writing a program and so far I've stuck to the no more than 79 characters in a line rule. However I'm not sure where to break lines in a few situations.
Here are the problem areas:
self.proc.stdin.write('(SayText "%s")\n' % text.replace('\\', '\\\\').replace('"', '\\"'))
For this situation when I break first line after the '(SayText "%s")\n', the second line ends up being 80 characters long. Should I then break the second line somewhere in the brackets like this?
self.proc.stdin.write('(SayText "%s")\n'
% text.replace('\\',
'\\\\').replace('"', '\\"'))
Or would it be better to bring the entire third line to the beginning of the first brackets like this:
self.proc.stdin.write('(SayText "%s")\n'
% text.replace('\\',
'\\\\').replace('"', '\\"'))
Another example of this is here:
filename = tkFileDialog.askopenfilename(filetypes = (("Word list", "*.tldr"), ("All files", "*.*")))
Should I do this?
filename = tkFileDialog.askopenfilename(filetypes = (("Word list",
"*.tldr"),
("All files",
"*.*")))
Or this?
filename = tkFileDialog.askopenfilename(filetypes = (("Word list",
"*.tldr"),("All files", "*.*")))
What would be a good convention to follow?
Thanks. | python | line-breaks | pep8 | null | null | 10/05/2011 22:03:40 | not constructive | How to deal with long lines of code and commands in Python
===
I've tried searching, but I couldn't find any situations similar to mine. I am writing a program and so far I've stuck to the no more than 79 characters in a line rule. However I'm not sure where to break lines in a few situations.
Here are the problem areas:
self.proc.stdin.write('(SayText "%s")\n' % text.replace('\\', '\\\\').replace('"', '\\"'))
For this situation when I break first line after the '(SayText "%s")\n', the second line ends up being 80 characters long. Should I then break the second line somewhere in the brackets like this?
self.proc.stdin.write('(SayText "%s")\n'
% text.replace('\\',
'\\\\').replace('"', '\\"'))
Or would it be better to bring the entire third line to the beginning of the first brackets like this:
self.proc.stdin.write('(SayText "%s")\n'
% text.replace('\\',
'\\\\').replace('"', '\\"'))
Another example of this is here:
filename = tkFileDialog.askopenfilename(filetypes = (("Word list", "*.tldr"), ("All files", "*.*")))
Should I do this?
filename = tkFileDialog.askopenfilename(filetypes = (("Word list",
"*.tldr"),
("All files",
"*.*")))
Or this?
filename = tkFileDialog.askopenfilename(filetypes = (("Word list",
"*.tldr"),("All files", "*.*")))
What would be a good convention to follow?
Thanks. | 4 |
5,826,293 | 04/28/2011 23:35:37 | 51,816 | 01/05/2009 21:39:06 | 8,288 | 23 | How to propagate changes done outside my View in a WPF app | I have a property called `IsVisible`:
public new bool IsVisible
{
get { return base.IsVisible; }
set
{
base.IsVisible = value;
this.RaisePropertyChanged ( "IsVisible" );
}
}
So this property is set to `true` when left mouse button is down for the selected item in the`TreeView`. It works fine, but I also have a `CheckBox` I am trying to bind to the same property, two way. So whenever I change this property via left mouse button down, the `CheckBox` shows the IsVisible state if it's true. So this works partially.
But the problem is, each time when I set this property to true for an instance, all other layers' `IsVisible` property is set to false, but the `CheckBox`es don't show the changes. They still look checked.
So whenever I say:
layer.IsVisible = true;
all the other layers are set to false by the base class which I don't have access to the source code (shown above).
How can I make my app recognize this change? | c# | .net | wpf | xaml | binding | null | open | How to propagate changes done outside my View in a WPF app
===
I have a property called `IsVisible`:
public new bool IsVisible
{
get { return base.IsVisible; }
set
{
base.IsVisible = value;
this.RaisePropertyChanged ( "IsVisible" );
}
}
So this property is set to `true` when left mouse button is down for the selected item in the`TreeView`. It works fine, but I also have a `CheckBox` I am trying to bind to the same property, two way. So whenever I change this property via left mouse button down, the `CheckBox` shows the IsVisible state if it's true. So this works partially.
But the problem is, each time when I set this property to true for an instance, all other layers' `IsVisible` property is set to false, but the `CheckBox`es don't show the changes. They still look checked.
So whenever I say:
layer.IsVisible = true;
all the other layers are set to false by the base class which I don't have access to the source code (shown above).
How can I make my app recognize this change? | 0 |
5,328,523 | 03/16/2011 16:36:27 | 662,890 | 03/16/2011 16:33:21 | 1 | 0 | How to upgrade android 2.2 to android 2.3? | i have samsung galaxy ace s5830. Can some one help me with the steps to upgrade 2.2 to 2.3? | android | null | null | null | null | 03/16/2011 18:55:53 | off topic | How to upgrade android 2.2 to android 2.3?
===
i have samsung galaxy ace s5830. Can some one help me with the steps to upgrade 2.2 to 2.3? | 2 |
10,141,422 | 04/13/2012 13:06:45 | 1,330,378 | 04/12/2012 23:11:51 | 1 | 0 | At least the first 31 ,or 63 characters of an internal name are significant? | Here's a direct quote from the book:
"At least the first 31 characters of an internal name are significant. For function names and external variables, the number may be less than 31, because external names may be used by assemblers and loaders over which the language has no control. For external names, the standard guarantees only for 6 characters and a single case."
and in c99 no length limitation on its internal names, but only the first 63 are significant.
the question is why specifically **31** or **63** like in c99,why this number specifically why not **19,24** or any other number,and if it's implementation issue so sure there a benefit from make it **31** or **63** ...........please if anybody can explain i'll be appreciated.
| c++ | c | variables | names | kr-c | 04/13/2012 17:31:49 | not constructive | At least the first 31 ,or 63 characters of an internal name are significant?
===
Here's a direct quote from the book:
"At least the first 31 characters of an internal name are significant. For function names and external variables, the number may be less than 31, because external names may be used by assemblers and loaders over which the language has no control. For external names, the standard guarantees only for 6 characters and a single case."
and in c99 no length limitation on its internal names, but only the first 63 are significant.
the question is why specifically **31** or **63** like in c99,why this number specifically why not **19,24** or any other number,and if it's implementation issue so sure there a benefit from make it **31** or **63** ...........please if anybody can explain i'll be appreciated.
| 4 |
5,312,289 | 03/15/2011 13:17:12 | 157,397 | 08/16/2009 18:50:40 | 2,461 | 120 | Interrupting/stop a CSS3 transition with JavaScript | I am writing a jQuery plugin to animate elements via CSS3 Transitions. in jQuery there is as `.stop()` that interupts the current animation on the selected element.
Any idea how i could stop a running CSS3 animation? Is there a native way to handle this or do i have to mesure the animation, and set the style of the animated element to the current position, color size or whaterver?
This is the current state of the jQuery plugin:
http://jsfiddle.net/meo/r4Ppw/ | javascript | css3 | null | null | null | null | open | Interrupting/stop a CSS3 transition with JavaScript
===
I am writing a jQuery plugin to animate elements via CSS3 Transitions. in jQuery there is as `.stop()` that interupts the current animation on the selected element.
Any idea how i could stop a running CSS3 animation? Is there a native way to handle this or do i have to mesure the animation, and set the style of the animated element to the current position, color size or whaterver?
This is the current state of the jQuery plugin:
http://jsfiddle.net/meo/r4Ppw/ | 0 |
10,908,465 | 06/06/2012 05:10:38 | 1,438,854 | 06/06/2012 05:04:52 | 1 | 0 | How to display jquery popup if the user is not log in in wordpress page? | I want to prevent the user from accessing the wordpress page if the user is not log in.
If the user is not login i want to display the jquery pop up message. i am new to the jquery thing.
Thanks | php | javascript | jquery | wordpress | popup | 06/06/2012 12:13:54 | not a real question | How to display jquery popup if the user is not log in in wordpress page?
===
I want to prevent the user from accessing the wordpress page if the user is not log in.
If the user is not login i want to display the jquery pop up message. i am new to the jquery thing.
Thanks | 1 |
2,793,108 | 05/08/2010 05:59:32 | 336,020 | 05/08/2010 05:59:32 | 1 | 0 | Suggestions for open source testing tool for cloud computing | I want to know if there is any open source testing tool for cloud computing. We have built a cloud framework with Xen, Eucalyptus, Hadoop, HBase as different layers. I am not looking at testing each of these tools separately, but i want to test them from the perspective of fitting into a cloud environment (for example scalability of xen hypervisor to handle multiple VMs).
Would be great if you can suggest me some tool (open source) for the above.
| cloud | computing | open-source | xen | null | null | open | Suggestions for open source testing tool for cloud computing
===
I want to know if there is any open source testing tool for cloud computing. We have built a cloud framework with Xen, Eucalyptus, Hadoop, HBase as different layers. I am not looking at testing each of these tools separately, but i want to test them from the perspective of fitting into a cloud environment (for example scalability of xen hypervisor to handle multiple VMs).
Would be great if you can suggest me some tool (open source) for the above.
| 0 |
5,609,438 | 04/10/2011 02:46:52 | 700,515 | 04/10/2011 02:38:50 | 1 | 0 | How do I change attr() in jQuery | Here is my current format
<div class="post-item" id="4126">
...entry...
</div>
With this id format will return to
`Error: value of attribute "id" invalid: "4" cannot start a name`
Now I want to change the id will be `id="post_4126"`
And the question, how do I replace current jQuery will be working with the `id="post_4126"`
url: "more.php?lastid=" + $(".post-item:last").attr("id")
Let me know
| jquery | html | null | null | null | null | open | How do I change attr() in jQuery
===
Here is my current format
<div class="post-item" id="4126">
...entry...
</div>
With this id format will return to
`Error: value of attribute "id" invalid: "4" cannot start a name`
Now I want to change the id will be `id="post_4126"`
And the question, how do I replace current jQuery will be working with the `id="post_4126"`
url: "more.php?lastid=" + $(".post-item:last").attr("id")
Let me know
| 0 |
10,885,320 | 06/04/2012 17:16:00 | 1,420,197 | 05/27/2012 13:55:10 | 75 | 0 | WPF C# - Anti reflector | Is there any way to stop .NET Reflector working at a program?
For example: I am developing a program that has confidential data (like gmail adress and password), and I don't want to someone can see them.
**How can I do this?** Thank you in advance! | c# | .net | wpf | reflector | null | null | open | WPF C# - Anti reflector
===
Is there any way to stop .NET Reflector working at a program?
For example: I am developing a program that has confidential data (like gmail adress and password), and I don't want to someone can see them.
**How can I do this?** Thank you in advance! | 0 |
10,011,356 | 04/04/2012 12:44:31 | 192,525 | 10/19/2009 15:57:57 | 320 | 6 | activating Autosuggest plugin after user typed @ | I really like this plugin and want to use it.
http://code.drewwilson.com/entry/autosuggest-jquery-plugin
The thing is i want to activate it if i type @ and only search the keywords that is going to be typed after @
Just like facebook does.
Any idea how to do that ? | php | jquery | ajax | autosuggest | null | 04/05/2012 12:58:53 | not a real question | activating Autosuggest plugin after user typed @
===
I really like this plugin and want to use it.
http://code.drewwilson.com/entry/autosuggest-jquery-plugin
The thing is i want to activate it if i type @ and only search the keywords that is going to be typed after @
Just like facebook does.
Any idea how to do that ? | 1 |
9,284,275 | 02/14/2012 21:15:27 | 1,210,012 | 02/14/2012 21:10:19 | 1 | 0 | Printing data from text file , the program always goes to the last record | I have written a program that stores booking information in a text file in c++. So far I can search the booking number and check if that number exists in the text file and print "Record is found".
Now when I try to print the line in which the booking information is stored , the program always prints the last line in the text file.
for example it says that "Record 123 is found" but it prints the record "999" which is the last in the txt file.
Can you help me solve this problem by showing me some codes , about how I can print a specific line from a file. | c++ | c++11 | null | null | null | 02/16/2012 04:04:57 | not a real question | Printing data from text file , the program always goes to the last record
===
I have written a program that stores booking information in a text file in c++. So far I can search the booking number and check if that number exists in the text file and print "Record is found".
Now when I try to print the line in which the booking information is stored , the program always prints the last line in the text file.
for example it says that "Record 123 is found" but it prints the record "999" which is the last in the txt file.
Can you help me solve this problem by showing me some codes , about how I can print a specific line from a file. | 1 |
10,125,209 | 04/12/2012 14:05:22 | 609,511 | 02/09/2011 10:00:23 | 170 | 9 | Print on client using winform or application | I have developed ASP.NET programme. The probleme is: i want to select the printer on client and print it.
i know it is almost impossible, maybe with activX, but i don't know much about activX and it work only under IE.
So i created work around. i created Winfrom that run on PC client and connect to my ASP.NET via WCF.
until now works fine, but the process become anoying for the client. because he has to work on ASP.NET to save the item and run the Winform and clic it to retrive the item from ASP.NET and print it.
nowdays i use PULL methode, that's meant that my Winform PULL the data from ASP.NET
i wonder if i can use PUSH methode, that meant the ASP.NET push the data to Winform and the client only clic one button on ASP.NET.
or how can i make my winform always listen into ASP.NET.
by the way, i want to simplify the client side, so he only clic one button instead of two.
Thanks you in advance,
Stev
| c# | asp.net | winforms | wcf | null | null | open | Print on client using winform or application
===
I have developed ASP.NET programme. The probleme is: i want to select the printer on client and print it.
i know it is almost impossible, maybe with activX, but i don't know much about activX and it work only under IE.
So i created work around. i created Winfrom that run on PC client and connect to my ASP.NET via WCF.
until now works fine, but the process become anoying for the client. because he has to work on ASP.NET to save the item and run the Winform and clic it to retrive the item from ASP.NET and print it.
nowdays i use PULL methode, that's meant that my Winform PULL the data from ASP.NET
i wonder if i can use PUSH methode, that meant the ASP.NET push the data to Winform and the client only clic one button on ASP.NET.
or how can i make my winform always listen into ASP.NET.
by the way, i want to simplify the client side, so he only clic one button instead of two.
Thanks you in advance,
Stev
| 0 |
3,619,936 | 09/01/2010 15:58:20 | 148,195 | 07/31/2009 00:00:53 | 1,305 | 40 | OpenGL - ortho Projection matrix, glViewport | I'm having trouble wrapping my head around how these work. First, in a 2d game the projection matrix should be set up as ortho with left, right, top, bottom matching the window, right? But when the window resizes, should I just change glViewport, not the projection matrix? And how do I keep the aspect ratio?
Could someone explain the purposes of these two things, in 2d orthographical game, so that I can understand it better?
It feels like OpenGL is doing a lot of useless stuff in a 2d setup. Rasterizing and calculating fragments when the images are already there, converting vertex coordinates to NDC only to be converted back to what they already where by glViewport.
Also, how come in legacy free OpenGL we have to make our own matrices, but not our own calculations that glViewport does?
Thanks. | opengl | 2d | viewport | projection-matrix | null | null | open | OpenGL - ortho Projection matrix, glViewport
===
I'm having trouble wrapping my head around how these work. First, in a 2d game the projection matrix should be set up as ortho with left, right, top, bottom matching the window, right? But when the window resizes, should I just change glViewport, not the projection matrix? And how do I keep the aspect ratio?
Could someone explain the purposes of these two things, in 2d orthographical game, so that I can understand it better?
It feels like OpenGL is doing a lot of useless stuff in a 2d setup. Rasterizing and calculating fragments when the images are already there, converting vertex coordinates to NDC only to be converted back to what they already where by glViewport.
Also, how come in legacy free OpenGL we have to make our own matrices, but not our own calculations that glViewport does?
Thanks. | 0 |
7,371,188 | 09/10/2011 10:49:49 | 938,091 | 09/10/2011 10:49:49 | 1 | 0 | I am preparing a online boutique and would appreciate thoughts as far as developing it to grow with me | I have knowledge of HTML/CSS Javascript the DOM, MVC php and familiarity with flash although I am a novice in them overall. I have been researching and practicing usage of all the above over the past few years. I'm fervently building my knowledge of development because I can't afford to outsource for a web designer and the creative aspects in web design/development I enjoy.
My plan is building an online clothing boutique in flash mostly (Look-Book/animated headers and logo). My thoughts are keeping it simple in order to launch it sooner then later and grow with the site as a developer/designer/administrator/stressed person!! :)
...the site would have fewer functions on the users end compared to the back end,
[ user visits, enjoys the landing...looks through online catalog with the clothing, chooses sizes, styles, +/-things to their cart...purchases(paypal)/or not...leaves...hopefully comes back later to visit directed by new or seasonal updates ], (feel free to bump my elbow if I left out your thoughts[HERE])
I am loosely outlining the site and my ability/disability :( to receive input on constructing it efficiently. I plan on putting the most effort in design and properly scripting the site so I do not have to constantly change or revise it during its lifetime. I plan on creating a database of customers to e-mail seasonally or for events/promotions.
I have not stated that my main concerns will be the purchasers safety, the integrity of the site from being compromised during their interactions and the ability of myself to easily update catalogs or individual garments. The other thoughts I have are the ability to change the look of the site seasonally without revising it in its entirety...so it always feels familiar to repeat customers even if the design is totally changed. Other thoughts I have in mind are the ability to be viewed on cell phones [I have something called adobe device central], and possibly not using joomla wordpress or any CMS so I don't have to compromise design for usability as well as the learning experience.
Any thoughts are appreciated and hopefully I didn't break the rules of posting so this can be informative in new ways. Thanks to this site and users as well, you've all been a great help already!! | php | flash | mvc | dom | null | 09/10/2011 11:04:48 | not a real question | I am preparing a online boutique and would appreciate thoughts as far as developing it to grow with me
===
I have knowledge of HTML/CSS Javascript the DOM, MVC php and familiarity with flash although I am a novice in them overall. I have been researching and practicing usage of all the above over the past few years. I'm fervently building my knowledge of development because I can't afford to outsource for a web designer and the creative aspects in web design/development I enjoy.
My plan is building an online clothing boutique in flash mostly (Look-Book/animated headers and logo). My thoughts are keeping it simple in order to launch it sooner then later and grow with the site as a developer/designer/administrator/stressed person!! :)
...the site would have fewer functions on the users end compared to the back end,
[ user visits, enjoys the landing...looks through online catalog with the clothing, chooses sizes, styles, +/-things to their cart...purchases(paypal)/or not...leaves...hopefully comes back later to visit directed by new or seasonal updates ], (feel free to bump my elbow if I left out your thoughts[HERE])
I am loosely outlining the site and my ability/disability :( to receive input on constructing it efficiently. I plan on putting the most effort in design and properly scripting the site so I do not have to constantly change or revise it during its lifetime. I plan on creating a database of customers to e-mail seasonally or for events/promotions.
I have not stated that my main concerns will be the purchasers safety, the integrity of the site from being compromised during their interactions and the ability of myself to easily update catalogs or individual garments. The other thoughts I have are the ability to change the look of the site seasonally without revising it in its entirety...so it always feels familiar to repeat customers even if the design is totally changed. Other thoughts I have in mind are the ability to be viewed on cell phones [I have something called adobe device central], and possibly not using joomla wordpress or any CMS so I don't have to compromise design for usability as well as the learning experience.
Any thoughts are appreciated and hopefully I didn't break the rules of posting so this can be informative in new ways. Thanks to this site and users as well, you've all been a great help already!! | 1 |
10,720,118 | 05/23/2012 12:41:13 | 1,195,349 | 02/07/2012 18:04:58 | 15 | 0 | Locks are unnecessary in NSOperationQueue? | I'm reading Apple's document Concurrent Programming Guide, and I think of that OperationQueue is a serial of operations. The document said we don't use locks in NSOperationQueue most of the cases.
**Question**
1. How to implement Read&Write tasks with NSOperationQueue?
2. When to use locks in NSOperationQueue? | objective-c | ios | multithreading | nsoperationqueue | null | null | open | Locks are unnecessary in NSOperationQueue?
===
I'm reading Apple's document Concurrent Programming Guide, and I think of that OperationQueue is a serial of operations. The document said we don't use locks in NSOperationQueue most of the cases.
**Question**
1. How to implement Read&Write tasks with NSOperationQueue?
2. When to use locks in NSOperationQueue? | 0 |
5,687,633 | 04/16/2011 15:46:15 | 112,741 | 05/26/2009 20:24:24 | 56 | 8 | How to annotate Singleton objects in javascript for the google closure compiler | I'm working with the Google Closure Compiler in ADVANCED_OPTIMIZATIONS compilation level and have started to annotate my constructors because I get all kinds of warnings:
> WARNING - dangerous use of the global this object
For my 'constructor' type functions I'll annotate them like this:
/**
* Foo is my constructor
* @constructor
*/
Foo = function() {
this.member = {};
}
/**
* does something
* @this {Foo}
*/
Foo.prototype.doSomething = function() {
...
}
That seems to work fine, however what if I have a 'singleton' object that isn't constructed with var myFoo = new Foo();
I couldn't find in the documentation how to annotate this type of object because it's type is just object right?
Bar = {
member: null,
init: function() {
this.member = {};
}
};
Thanks for your help. | javascript | google-closure-compiler | jsdoc | null | null | null | open | How to annotate Singleton objects in javascript for the google closure compiler
===
I'm working with the Google Closure Compiler in ADVANCED_OPTIMIZATIONS compilation level and have started to annotate my constructors because I get all kinds of warnings:
> WARNING - dangerous use of the global this object
For my 'constructor' type functions I'll annotate them like this:
/**
* Foo is my constructor
* @constructor
*/
Foo = function() {
this.member = {};
}
/**
* does something
* @this {Foo}
*/
Foo.prototype.doSomething = function() {
...
}
That seems to work fine, however what if I have a 'singleton' object that isn't constructed with var myFoo = new Foo();
I couldn't find in the documentation how to annotate this type of object because it's type is just object right?
Bar = {
member: null,
init: function() {
this.member = {};
}
};
Thanks for your help. | 0 |
5,631,966 | 04/12/2011 07:46:00 | 617,374 | 08/20/2010 22:50:54 | 60 | 11 | Best UML designing tool in Linux? | Urgently want to know best UML designing tool in Linux? | linux | uml | null | null | null | 09/13/2011 12:36:49 | not constructive | Best UML designing tool in Linux?
===
Urgently want to know best UML designing tool in Linux? | 4 |
5,899,109 | 05/05/2011 14:11:54 | 44,980 | 12/10/2008 13:26:27 | 247 | 20 | How to ignore leading whitespace in XML file? | I need to load xml from a file into an XmlDocument. The problem is that the file contains some leading whitespace. (I have no control over the system that produces the file.)
Is there any clean/easy way to ignore or strip those characters?
string SamplelRequestFile = @"C:\example.xml";
XmlDocument docXML = new XmlDocument();
XmlTextReader xReader = new XmlTextReader(SamplelRequestFile);
XmlReaderSettings ReaderSettings = new XmlReaderSettings();
ReaderSettings.XmlResolver = null;
ReaderSettings.ProhibitDtd = false;
docXML.Load(xReader);
example.xml (note the leading spaces)
<?xml version="1.0" ?>
<myRoot>
<someElement />
</myRoot> | c# | xml | xmldocument | null | null | null | open | How to ignore leading whitespace in XML file?
===
I need to load xml from a file into an XmlDocument. The problem is that the file contains some leading whitespace. (I have no control over the system that produces the file.)
Is there any clean/easy way to ignore or strip those characters?
string SamplelRequestFile = @"C:\example.xml";
XmlDocument docXML = new XmlDocument();
XmlTextReader xReader = new XmlTextReader(SamplelRequestFile);
XmlReaderSettings ReaderSettings = new XmlReaderSettings();
ReaderSettings.XmlResolver = null;
ReaderSettings.ProhibitDtd = false;
docXML.Load(xReader);
example.xml (note the leading spaces)
<?xml version="1.0" ?>
<myRoot>
<someElement />
</myRoot> | 0 |
3,287,347 | 07/20/2010 05:52:50 | 396,458 | 07/20/2010 05:10:56 | 61 | 4 | Setting up Python on Apache/Windows; IDE question | I am finally learning Python after putting it off for a long time.
I am setting it up on Apache (XAMPP), which [version of mod_python][1] should I choose?
If I get mod_python-3.3.1.win32-py2.5-Apache2.2.exe, does that mean I have to download Python 2.5 from [here][2]?
*EDIT:* I'll use this primarily for web development. Which IDE should I use? I like Netbeans for Java and PHP, but they don't have Python.
[1]: http://httpd.apache.org/modules/python-download.cgi#python3210
[2]: http://www.python.org/download/ | python | xampp | null | null | null | null | open | Setting up Python on Apache/Windows; IDE question
===
I am finally learning Python after putting it off for a long time.
I am setting it up on Apache (XAMPP), which [version of mod_python][1] should I choose?
If I get mod_python-3.3.1.win32-py2.5-Apache2.2.exe, does that mean I have to download Python 2.5 from [here][2]?
*EDIT:* I'll use this primarily for web development. Which IDE should I use? I like Netbeans for Java and PHP, but they don't have Python.
[1]: http://httpd.apache.org/modules/python-download.cgi#python3210
[2]: http://www.python.org/download/ | 0 |
3,133,825 | 06/28/2010 15:38:10 | 315,483 | 04/13/2010 12:56:30 | 1 | 0 | Running shell_exec() in symfony | I have a program that returns a comma-separated string of numbers after doing some background processing. I intended to run this in symfony using `shell_exec`; however, all I get is NULL (revealed through a `var_dump()`. I tried the following debugging steps.
I ran the file (it's a PHP class) through a command-line lime unit test in Symfony - it works and gives the correct result there.
Just to check, I tried a simple command `ls -l` at the same place to see whether I would get anything. Again, I had the same problem - the `var_dump` in the browser showed NULL, but it worked through the command line.
What could be the problem? Are there restrictions on running `shell_exec()` in a browser? | php | shell | symfony | null | null | null | open | Running shell_exec() in symfony
===
I have a program that returns a comma-separated string of numbers after doing some background processing. I intended to run this in symfony using `shell_exec`; however, all I get is NULL (revealed through a `var_dump()`. I tried the following debugging steps.
I ran the file (it's a PHP class) through a command-line lime unit test in Symfony - it works and gives the correct result there.
Just to check, I tried a simple command `ls -l` at the same place to see whether I would get anything. Again, I had the same problem - the `var_dump` in the browser showed NULL, but it worked through the command line.
What could be the problem? Are there restrictions on running `shell_exec()` in a browser? | 0 |
11,562,320 | 07/19/2012 13:49:45 | 1,201,885 | 02/10/2012 11:05:36 | 16 | 3 | What is the difference between a JBoss 7 domain and a Weblogic domain? | I'm writing up an architectural document about a Java EE solution suggesting two middlewares: JBoss 7 or Oracle Weblogic 12. I see that both application servers use the concept of "domain" but it seems in different ways.
For example JBoss 7 domain seems a management option so that you can control all server with a single configuration point. On the other side it a Weblogic domain seems not a server mode but an integral part of the infrastructure.
Is there any expert who can shed some light on it ? (especially on the Weblogic side) ? | jboss | weblogic | jboss7.x | weblogic12c | null | 07/20/2012 14:03:09 | not constructive | What is the difference between a JBoss 7 domain and a Weblogic domain?
===
I'm writing up an architectural document about a Java EE solution suggesting two middlewares: JBoss 7 or Oracle Weblogic 12. I see that both application servers use the concept of "domain" but it seems in different ways.
For example JBoss 7 domain seems a management option so that you can control all server with a single configuration point. On the other side it a Weblogic domain seems not a server mode but an integral part of the infrastructure.
Is there any expert who can shed some light on it ? (especially on the Weblogic side) ? | 4 |
9,959,852 | 03/31/2012 21:30:21 | 1,305,552 | 03/31/2012 21:17:43 | 1 | 0 | Please help me to modify my java code from php code | i want to covert this php code int java/JSP .
if (isset($_POST['orders'])) {
$orders = explode('&', $_POST['orders']);
$array = array();
foreach($orders as $item) {
$item = explode('=', $item);
$item = explode('_', $item[1]);
$array[] = $item[1];
}
I TRIED LIKE THIS(see below jsp code) ...but this is not giving me the exact result as the above php code is giving. So please help me to convert it into java.
<%
if (request.getParameter("orders") != null)
{
String item = request.getParameter("orders");
System.out.println("oRDERS...."+item);
String[] arr = item.split("\\=");
item.split("\\_");
System.out.println("Length of Array is :" + arr.length);
for (int i = 0; i < arr.length; i++) {
System.out.println("array " + i + ":" + arr[i]);
}
} else {
System.out.println("NOT SET");
}
%>
| java | php | jquery | jsp | null | 04/01/2012 03:28:30 | too localized | Please help me to modify my java code from php code
===
i want to covert this php code int java/JSP .
if (isset($_POST['orders'])) {
$orders = explode('&', $_POST['orders']);
$array = array();
foreach($orders as $item) {
$item = explode('=', $item);
$item = explode('_', $item[1]);
$array[] = $item[1];
}
I TRIED LIKE THIS(see below jsp code) ...but this is not giving me the exact result as the above php code is giving. So please help me to convert it into java.
<%
if (request.getParameter("orders") != null)
{
String item = request.getParameter("orders");
System.out.println("oRDERS...."+item);
String[] arr = item.split("\\=");
item.split("\\_");
System.out.println("Length of Array is :" + arr.length);
for (int i = 0; i < arr.length; i++) {
System.out.println("array " + i + ":" + arr[i]);
}
} else {
System.out.println("NOT SET");
}
%>
| 3 |
3,849,717 | 10/03/2010 12:31:15 | 436,859 | 09/01/2010 11:02:31 | 31 | 0 | What exactly refreshing does in windows? | What is the main purpose of refresh in windows? | windows | null | null | null | null | 10/03/2010 15:25:22 | not a real question | What exactly refreshing does in windows?
===
What is the main purpose of refresh in windows? | 1 |
11,369,104 | 07/06/2012 20:16:00 | 1,405,658 | 05/19/2012 22:52:08 | 40 | 1 | Linux: what does echo $! in Linux? | Can anyone tell me what does echo $! mean and how it comes(meaning of '$' and '!')?
Thanks | linux | null | null | null | null | 07/06/2012 20:22:00 | off topic | Linux: what does echo $! in Linux?
===
Can anyone tell me what does echo $! mean and how it comes(meaning of '$' and '!')?
Thanks | 2 |
9,155,598 | 02/06/2012 04:32:58 | 1,191,539 | 02/06/2012 04:22:29 | 1 | 0 | solr :How to retrive the value from Solr index ( CSV)? | I have to post the .csv file in the solr byusing the command java -jar post.jar dd.csv file.
When i did this i have received the message that sucessfuly indexed in solr.
Now when i am trying to query it with ID, i am getting 0 results.
Can you please help to know how to fetch the results from URL.
Also can someone tell me how to index it correctly, I am not sure wheather i have posted the .csv file correctly.
Step which i followed:-
1. update the schema.xml with the fields present in the .csv file.
2. created one dd.xml file where i have mentioned all the field present in .csv file and put in the exampledocs folder.
3. I have posted the dd.xml file
4. i have posted the dd.csv file
5 it says indexed successfully.
6. when i tried to query it it fetch 0 results.
can someone help to verify thatthe step are right?
please let me know where is the answer by droping me @ [email protected]
| solr | null | null | null | null | 02/06/2012 15:22:27 | not a real question | solr :How to retrive the value from Solr index ( CSV)?
===
I have to post the .csv file in the solr byusing the command java -jar post.jar dd.csv file.
When i did this i have received the message that sucessfuly indexed in solr.
Now when i am trying to query it with ID, i am getting 0 results.
Can you please help to know how to fetch the results from URL.
Also can someone tell me how to index it correctly, I am not sure wheather i have posted the .csv file correctly.
Step which i followed:-
1. update the schema.xml with the fields present in the .csv file.
2. created one dd.xml file where i have mentioned all the field present in .csv file and put in the exampledocs folder.
3. I have posted the dd.xml file
4. i have posted the dd.csv file
5 it says indexed successfully.
6. when i tried to query it it fetch 0 results.
can someone help to verify thatthe step are right?
please let me know where is the answer by droping me @ [email protected]
| 1 |
4,580,638 | 01/02/2011 21:34:20 | 352,552 | 05/26/2010 21:08:59 | 614 | 27 | Silverlight Animating Control in ListBox | I've got a user control that I'm using as my DataTemplate for all the items in my ListBox. There's an animation in said UserControl that's pretty simple - it just expands a certain ListBox, and it works. The thing is, when I scroll, every Nth item ALSO has the ListBox expanded, where N depends on how big my browser is sized to (in other words, how many items the ListBox is holding at any one time.)
It seems as though new items getting loaded into the listbox as I scroll are tripping over this animation. Is there anything I can do about this? | silverlight | null | null | null | null | null | open | Silverlight Animating Control in ListBox
===
I've got a user control that I'm using as my DataTemplate for all the items in my ListBox. There's an animation in said UserControl that's pretty simple - it just expands a certain ListBox, and it works. The thing is, when I scroll, every Nth item ALSO has the ListBox expanded, where N depends on how big my browser is sized to (in other words, how many items the ListBox is holding at any one time.)
It seems as though new items getting loaded into the listbox as I scroll are tripping over this animation. Is there anything I can do about this? | 0 |
11,418,443 | 07/10/2012 17:13:49 | 1,515,533 | 07/10/2012 17:07:36 | 1 | 0 | html form with generating pdf as attachment to mailto email? | hi i am doing an application multiple pages of html forms in each page , when we click next button it navigates to next page , at last page when we click generate button it should generate in pdf or doc file as an attachment in mail ? can one help me the process.
| javascript | html | null | null | null | 07/11/2012 00:16:30 | not a real question | html form with generating pdf as attachment to mailto email?
===
hi i am doing an application multiple pages of html forms in each page , when we click next button it navigates to next page , at last page when we click generate button it should generate in pdf or doc file as an attachment in mail ? can one help me the process.
| 1 |
2,557,725 | 04/01/2010 02:04:49 | 14,955 | 09/17/2008 04:23:55 | 15,759 | 604 | SOAP web service evolution | Are there any guidelines/tutorials as to how to handle the evolution of a SOAP web service?
I can see that changing existing methods or types would probably not work, but can I just add new methods, complex types, enumeration values without breaking existing clients?
| soap | wsdl | evolution | update | web-services | null | open | SOAP web service evolution
===
Are there any guidelines/tutorials as to how to handle the evolution of a SOAP web service?
I can see that changing existing methods or types would probably not work, but can I just add new methods, complex types, enumeration values without breaking existing clients?
| 0 |
5,681,792 | 04/15/2011 20:04:06 | 424,333 | 08/18/2010 17:32:33 | 14 | 0 | Positioning nested divs | I am trying to position divs nested within a centred wrapper so that they don't move when I adjust the size of a browser. The idea is similar to the Facebook homepage where all the divs stay centred and don't move relative to each other when the page is made bigger.
All of my divs are nested in this:
#header {
width: 750px;
margin: 0 auto;
}
What do I have to do to position the divs within? Is it something to do with positioning?
Sorry this is a bit of a vague explanation, please do ask for clarification!
Any help would be much appreciated, thanks. | html | css | null | null | null | null | open | Positioning nested divs
===
I am trying to position divs nested within a centred wrapper so that they don't move when I adjust the size of a browser. The idea is similar to the Facebook homepage where all the divs stay centred and don't move relative to each other when the page is made bigger.
All of my divs are nested in this:
#header {
width: 750px;
margin: 0 auto;
}
What do I have to do to position the divs within? Is it something to do with positioning?
Sorry this is a bit of a vague explanation, please do ask for clarification!
Any help would be much appreciated, thanks. | 0 |
127,335 | 09/24/2008 14:03:43 | 5,949 | 09/11/2008 18:32:56 | 56 | 10 | What is your preferred office size/layout? | This is a question about your preferred environment for software development.
We recently moved into new offices, and before they were planned, we had a little poll among all the developers what their preferred office size was (this is Europe, so no cubicles, we are used to separate offices ;-) ). The result was that, before we moved, most developers seemed to favor small offices (1-2 people) over larger ones.
We were able to create an office layout with differently sized offices in the end, and now that we moved, everybody seems to prefer the larger variants (4-5 people).
So what is your preferred office layout and size? Do you prefer private offices or do you prefer layouts that enhance communication? | development | productivity | null | null | null | 05/18/2011 19:07:59 | off topic | What is your preferred office size/layout?
===
This is a question about your preferred environment for software development.
We recently moved into new offices, and before they were planned, we had a little poll among all the developers what their preferred office size was (this is Europe, so no cubicles, we are used to separate offices ;-) ). The result was that, before we moved, most developers seemed to favor small offices (1-2 people) over larger ones.
We were able to create an office layout with differently sized offices in the end, and now that we moved, everybody seems to prefer the larger variants (4-5 people).
So what is your preferred office layout and size? Do you prefer private offices or do you prefer layouts that enhance communication? | 2 |
3,731,418 | 09/16/2010 22:45:01 | 51,816 | 01/05/2009 21:39:06 | 5,083 | 19 | What's the reason the static analysis wasn't made available to VS 2010 Pro? | Is it so that the regular developers focus on writing their Contracts locally and then submit them to be analysed globally?
Or is there a way to get something comparable to this experience? Maybe as a separate download?
Also if a library have Contracts, then would the intellisense tooltips would include the Contracts no matter what version of VS is used? | c# | .net | visual-studio | contracts | null | 09/17/2010 13:28:27 | not a real question | What's the reason the static analysis wasn't made available to VS 2010 Pro?
===
Is it so that the regular developers focus on writing their Contracts locally and then submit them to be analysed globally?
Or is there a way to get something comparable to this experience? Maybe as a separate download?
Also if a library have Contracts, then would the intellisense tooltips would include the Contracts no matter what version of VS is used? | 1 |
6,934,741 | 08/04/2011 00:02:37 | 15,479 | 09/17/2008 09:47:09 | 241 | 11 | I'm working with Drupal and I want to diff between two databases, to see which tables have been updated in a given session. how do I do this? | I'm working with Drupal on a project, trying to find a way to speed up tests (we're using Cucumber and Selenium), and I'm trying to see which tables have been changed in a given series of steps, so I can just revert dump and out reset those tables between each test case.
Right now, Simpletest, the Drupal testing framework works by installing and setting up the tables for every module needed for a test, which makes for slow tests, and I'm emulating a similar approach by loading a db dump for each test.
Given that a site, if you're doing integration testing has a 'known good' state to be starting from, I think it would be faster to be able to just revert back to that point each time, instead of waiting twenty seconds or so to drop the database then pipe the dumpfile back in between each test runs.
However, when I try diffing between two dumpfiles (ie `before.I.create.a.node.sql`, and `after.I.create.a.node.sql`) the output is an unreadable load of serialised php, that I can't make sense of.
Ae there any tools I can use to help work out which tables I need to drop and rebuild between test cases, so I don't incur the 20 second hit on each test, short of reading the schema and code of every module I'm working with?
I'm following the ideas outlined here with [getting cucumber to work with PHP][1], and yes, I have seen [this question here on a [similar subject][2]
Thanks!
[1]: https://github.com/cucumber/cucumber/wiki/PHP
[2]: http://stackoverflow.com/questions/5849010/which-all-tables-get-updated-during-a-content-a-saved-in-drupal
| drupal | null | null | null | null | null | open | I'm working with Drupal and I want to diff between two databases, to see which tables have been updated in a given session. how do I do this?
===
I'm working with Drupal on a project, trying to find a way to speed up tests (we're using Cucumber and Selenium), and I'm trying to see which tables have been changed in a given series of steps, so I can just revert dump and out reset those tables between each test case.
Right now, Simpletest, the Drupal testing framework works by installing and setting up the tables for every module needed for a test, which makes for slow tests, and I'm emulating a similar approach by loading a db dump for each test.
Given that a site, if you're doing integration testing has a 'known good' state to be starting from, I think it would be faster to be able to just revert back to that point each time, instead of waiting twenty seconds or so to drop the database then pipe the dumpfile back in between each test runs.
However, when I try diffing between two dumpfiles (ie `before.I.create.a.node.sql`, and `after.I.create.a.node.sql`) the output is an unreadable load of serialised php, that I can't make sense of.
Ae there any tools I can use to help work out which tables I need to drop and rebuild between test cases, so I don't incur the 20 second hit on each test, short of reading the schema and code of every module I'm working with?
I'm following the ideas outlined here with [getting cucumber to work with PHP][1], and yes, I have seen [this question here on a [similar subject][2]
Thanks!
[1]: https://github.com/cucumber/cucumber/wiki/PHP
[2]: http://stackoverflow.com/questions/5849010/which-all-tables-get-updated-during-a-content-a-saved-in-drupal
| 0 |
466,141 | 01/21/2009 17:12:23 | 56,461 | 01/18/2009 18:31:37 | 88 | 17 | How are you structuring your Git repository workflow? | We've seen and watched the videos on how large distributed teams are using Git, but what about those of us who aren't distributed and who work in the office with the rest of our team? How should we be structuring our repository(ies) and our workflow?
Think about the tradition office who has been using Subversion or CVS as the single point of authority. Certainly these teams could each maintain their own Git repository and push/pull between each other as necessary, which would quickly turn into a nightmare in many situations. Or, they could each maintain their own repository and sync with a single repository that's know as the "master" for the team. Or, there could be any combination of workflows with the possibilities a DVCS opens up.
How does your team work? What have you found to be a useful workflow? | git | dvcs | null | null | null | null | open | How are you structuring your Git repository workflow?
===
We've seen and watched the videos on how large distributed teams are using Git, but what about those of us who aren't distributed and who work in the office with the rest of our team? How should we be structuring our repository(ies) and our workflow?
Think about the tradition office who has been using Subversion or CVS as the single point of authority. Certainly these teams could each maintain their own Git repository and push/pull between each other as necessary, which would quickly turn into a nightmare in many situations. Or, they could each maintain their own repository and sync with a single repository that's know as the "master" for the team. Or, there could be any combination of workflows with the possibilities a DVCS opens up.
How does your team work? What have you found to be a useful workflow? | 0 |
9,778,836 | 03/19/2012 22:21:25 | 1,058,647 | 11/21/2011 21:35:28 | 1 | 0 | Accessing .Net WCF services from Android | (where it says huup it used to say http but your forum does not like http)
I have a .Net WCF service (not a web service) with many methods, some accepting and returning complex data types. I use these services from my Windows Phone
7 apps. It all works great and it's easy.
Now I'm evaluating the feasibility of porting some of my apps to android but I can't figure out how to invoke my WCF services from an android client.
I have a working example I found at...
huup://naveenbalani.com/index.php/2011/01/invoke-webservices-from-android/
(code pasted below)
But this looks to be accessing a "Web Service" not a WCF Service.
My service is at huup://www.deanblakely.com/Service2.svc and it contains a simple method named "SimpleTest" that just returns the string "Alive".
Using the code below I put huup://www.deanblakely.com/Service2.svc in SOAP_ADDRESS and SimpleTest in OPERATION_NAME. But I have no idea what to put in
SOAP_ACTION and WSDL_TARGET_NAMESPACE. I don't even know if this approach is valid.
In .Net, Visual Studio builds us a "Service Reference" and everything just works.
I also don't understand the following two lines of code...
huupTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
With WCF services the call is async so we make the call to SimpleTestAsync and leave a callback for the async return. These two lines of code appear to be
synchronous, no?
Hope someone can help.
thanks,
Gary
Naveen Balani's code......(which I was able to get working with his web service)
WELL, I WASN'T ABLE TO PASTE MY THE HERE BECAUSE YOUR FORUM SOFTWARE KEPT SAYING IT WAS NOT INDENTED BY 4 SPACES. I TRIED EVERYTHING I COULD THINK OF BUT YOU CAN SEE IT AT THE HUUP LINK (YOUR SOFTWARE ALSO WOULD NOT LET ME HAVE THOSE LINKS WITH THE H AND THE 2TS AND A P - IMHO WAY ANAL) | wcf | null | null | null | null | null | open | Accessing .Net WCF services from Android
===
(where it says huup it used to say http but your forum does not like http)
I have a .Net WCF service (not a web service) with many methods, some accepting and returning complex data types. I use these services from my Windows Phone
7 apps. It all works great and it's easy.
Now I'm evaluating the feasibility of porting some of my apps to android but I can't figure out how to invoke my WCF services from an android client.
I have a working example I found at...
huup://naveenbalani.com/index.php/2011/01/invoke-webservices-from-android/
(code pasted below)
But this looks to be accessing a "Web Service" not a WCF Service.
My service is at huup://www.deanblakely.com/Service2.svc and it contains a simple method named "SimpleTest" that just returns the string "Alive".
Using the code below I put huup://www.deanblakely.com/Service2.svc in SOAP_ADDRESS and SimpleTest in OPERATION_NAME. But I have no idea what to put in
SOAP_ACTION and WSDL_TARGET_NAMESPACE. I don't even know if this approach is valid.
In .Net, Visual Studio builds us a "Service Reference" and everything just works.
I also don't understand the following two lines of code...
huupTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
With WCF services the call is async so we make the call to SimpleTestAsync and leave a callback for the async return. These two lines of code appear to be
synchronous, no?
Hope someone can help.
thanks,
Gary
Naveen Balani's code......(which I was able to get working with his web service)
WELL, I WASN'T ABLE TO PASTE MY THE HERE BECAUSE YOUR FORUM SOFTWARE KEPT SAYING IT WAS NOT INDENTED BY 4 SPACES. I TRIED EVERYTHING I COULD THINK OF BUT YOU CAN SEE IT AT THE HUUP LINK (YOUR SOFTWARE ALSO WOULD NOT LET ME HAVE THOSE LINKS WITH THE H AND THE 2TS AND A P - IMHO WAY ANAL) | 0 |
11,037,955 | 06/14/2012 17:02:42 | 24,875 | 10/03/2008 15:03:34 | 773 | 28 | '$' of object [object Window] is not a function | Just discovered an issue with the sorting plugin used on our cart, was working fine yesterday, and no changes have been made to it. The site is located <a href="http://www.firesidexpressions.com">here</a>.
I realize there is a mess of javascript and jquery in the HEAD, and I am sure that is not helping matters. The error I'm getting is **Property '$' of object [object Window] is not a function**. Is there possibly a jQuery conflict going on here? | javascript | jquery | actinic | null | null | 06/15/2012 09:13:00 | too localized | '$' of object [object Window] is not a function
===
Just discovered an issue with the sorting plugin used on our cart, was working fine yesterday, and no changes have been made to it. The site is located <a href="http://www.firesidexpressions.com">here</a>.
I realize there is a mess of javascript and jquery in the HEAD, and I am sure that is not helping matters. The error I'm getting is **Property '$' of object [object Window] is not a function**. Is there possibly a jQuery conflict going on here? | 3 |
1,226,839 | 08/04/2009 10:59:16 | 106,615 | 05/13/2009 20:13:18 | 238 | 0 | <br>? \n? a line break in java | I have three JLabels and three JTextAreas. I have them in borderlayout, center, but I want each of them in a different line, that's not happening and the top ten search results in Google for line break java don't solve the problem. How can I do a simple line break? | java | null | null | null | null | null | open | <br>? \n? a line break in java
===
I have three JLabels and three JTextAreas. I have them in borderlayout, center, but I want each of them in a different line, that's not happening and the top ten search results in Google for line break java don't solve the problem. How can I do a simple line break? | 0 |
3,142,464 | 06/29/2010 15:59:23 | 379,193 | 06/29/2010 15:59:22 | 1 | 0 | How do i detect keystrokes using objective c? | just wondering, how I go about detecting different keystrokes, and then detecting what key has been pressed I tried using this,
`- (void)keyDown:(NSEvent *)event`
but didnt seem to get any results. I've also had a search around but didn't find anything. I'm guessing I may have to set up something in interface builder to detect keystrokes?
I also think that it has something to do with what is selected, if its a text field something.
thanks.
| objective-c | cocoa | xcode | null | null | null | open | How do i detect keystrokes using objective c?
===
just wondering, how I go about detecting different keystrokes, and then detecting what key has been pressed I tried using this,
`- (void)keyDown:(NSEvent *)event`
but didnt seem to get any results. I've also had a search around but didn't find anything. I'm guessing I may have to set up something in interface builder to detect keystrokes?
I also think that it has something to do with what is selected, if its a text field something.
thanks.
| 0 |
4,625,782 | 01/07/2011 13:12:52 | 45,696 | 12/12/2008 12:59:15 | 200 | 8 | Is it advisable to use the canonical form in a Silverlight application? | We are developing a LOB application using Silverlight and several team members are advocating the use of the canonical design pattern instead of creating simple WCF services. As the lead, I’m trying to balance best practices with an incredibly tight time line.
Here are the reasons I do NOT think Canonical is a good approach for our project.
- We have no immediate (<5 years) requirement to expose any internal services to the enterprise.
- Time required for governance. (Developing adapters with data transformation logic, developing XSDs, and developing contracts [fault, data, and operation]).
- No need to expose a different data contracts than what exists in the data layer
- It doesn’t appear that we can easily use ‘self tracking entities’ with the Canonical approach.
Here are some reasons I’m considering using Canonical approach.
- We can use the XSD schemas for data type and length validation.
- We will be prepared to allow consumption of our services to the enterprise, whether it’s 5 years or 1 year.
- We can feel good that we’re implementing best practices. :)
So, is it advisable to follow the Canonical approach with a Silverlight application? It does not seem that the benefits Canonical provide out weigh the additional work. …or perhaps I’m wrong and it’s not additional work.
| silverlight | wcf | soa | canonical | null | null | open | Is it advisable to use the canonical form in a Silverlight application?
===
We are developing a LOB application using Silverlight and several team members are advocating the use of the canonical design pattern instead of creating simple WCF services. As the lead, I’m trying to balance best practices with an incredibly tight time line.
Here are the reasons I do NOT think Canonical is a good approach for our project.
- We have no immediate (<5 years) requirement to expose any internal services to the enterprise.
- Time required for governance. (Developing adapters with data transformation logic, developing XSDs, and developing contracts [fault, data, and operation]).
- No need to expose a different data contracts than what exists in the data layer
- It doesn’t appear that we can easily use ‘self tracking entities’ with the Canonical approach.
Here are some reasons I’m considering using Canonical approach.
- We can use the XSD schemas for data type and length validation.
- We will be prepared to allow consumption of our services to the enterprise, whether it’s 5 years or 1 year.
- We can feel good that we’re implementing best practices. :)
So, is it advisable to follow the Canonical approach with a Silverlight application? It does not seem that the benefits Canonical provide out weigh the additional work. …or perhaps I’m wrong and it’s not additional work.
| 0 |
802,965 | 04/29/2009 15:41:21 | 32,914 | 10/30/2008 22:10:38 | 2,078 | 59 | When is enough abstraction enough [fixed] | I tried asking this and it got closed very quickly for being too long. (Which it was.) But I think it's a genuine question that needs to be discussed, so here's a much shorter version:
Abstractions are supposed to simplify your code. But in my experience maintaining other people's code, I consistently find that the trade-off for making code easier to write is making it harder to read, understand, and debug, especially if it's someone else doing the reading and debugging. In a lot of cases, it doesn't really reduce complexity; it just hides it or makes it someone else's problem.
Does anyone have any good principles or guidelines as to when to introduce new layers of abstraction and, more importantly, when not to? | abstraction | complexity | language-agnostic | null | null | 04/29/2009 21:09:53 | not constructive | When is enough abstraction enough [fixed]
===
I tried asking this and it got closed very quickly for being too long. (Which it was.) But I think it's a genuine question that needs to be discussed, so here's a much shorter version:
Abstractions are supposed to simplify your code. But in my experience maintaining other people's code, I consistently find that the trade-off for making code easier to write is making it harder to read, understand, and debug, especially if it's someone else doing the reading and debugging. In a lot of cases, it doesn't really reduce complexity; it just hides it or makes it someone else's problem.
Does anyone have any good principles or guidelines as to when to introduce new layers of abstraction and, more importantly, when not to? | 4 |
3,778,310 | 09/23/2010 12:25:43 | 455,873 | 09/23/2010 07:07:05 | 20 | 0 | Which is write to say about bug? | bug is:
error;
failure;
defect;
fault | testing | null | null | null | null | 09/23/2010 13:16:44 | not a real question | Which is write to say about bug?
===
bug is:
error;
failure;
defect;
fault | 1 |
8,422,678 | 12/07/2011 21:17:02 | 545,132 | 12/16/2010 17:55:49 | 423 | 11 | what does the -p and -g flag in compiler | I have been profiling a C code and to do so I compiled with -p and -g flags. So I was wandering what do these flags actually do and what overhead do they add to the binary?
Thanks | c | profiling | null | null | null | null | open | what does the -p and -g flag in compiler
===
I have been profiling a C code and to do so I compiled with -p and -g flags. So I was wandering what do these flags actually do and what overhead do they add to the binary?
Thanks | 0 |
10,349,834 | 04/27/2012 11:31:00 | 1,072,718 | 11/30/2011 05:39:55 | 46 | 3 | Add linkedIn and Twitter in Application | I need to add Twitter and LinkedIn in my application. Bith Twitter and LinkedIn use oAuth files so i cannot able to add then only can add one of them. when i try to use Same files for both then only linkedIn work and get error "The token is expire" for twitter.
can any one know how to add both in same application. | iphone | null | null | null | null | 04/27/2012 15:05:41 | not a real question | Add linkedIn and Twitter in Application
===
I need to add Twitter and LinkedIn in my application. Bith Twitter and LinkedIn use oAuth files so i cannot able to add then only can add one of them. when i try to use Same files for both then only linkedIn work and get error "The token is expire" for twitter.
can any one know how to add both in same application. | 1 |
7,612,098 | 09/30/2011 14:47:30 | 272,741 | 02/14/2010 12:31:21 | 285 | 19 | Writing jQuery Plugins using OOP | I was wondering what's the current "**state-of-the-art"** to write a jQuery Plugins.
I read a lot of different approaches and I don't know which one fits best.
**Can you recommondation usefull links/templates for writing jQuery Plugins using OOP.**
Thanks
| javascript | jquery | null | null | null | 10/01/2011 11:52:51 | not constructive | Writing jQuery Plugins using OOP
===
I was wondering what's the current "**state-of-the-art"** to write a jQuery Plugins.
I read a lot of different approaches and I don't know which one fits best.
**Can you recommondation usefull links/templates for writing jQuery Plugins using OOP.**
Thanks
| 4 |
9,442,674 | 02/25/2012 08:55:57 | 1,232,291 | 02/25/2012 08:53:58 | 1 | 0 | How to do 10.1 + 3.4 ? (But the result is 13) | How to do 10.1 + 3.4 ? (But the result is 13)
How I can fix it ? | xcode | null | null | null | null | 02/27/2012 03:33:32 | not a real question | How to do 10.1 + 3.4 ? (But the result is 13)
===
How to do 10.1 + 3.4 ? (But the result is 13)
How I can fix it ? | 1 |
8,768,050 | 01/07/2012 07:10:55 | 280,454 | 02/24/2010 15:38:51 | 395 | 0 | Research topics for machine learning in computer games | I have to decide a topic for my Masters Thesis in Computer Science, and I'd like to work in the field of Machine Learning in computer games, specially first person shooters.
I've looked around and found some decent amount of work done in this area in some universities. However, most of the research papers I found were quiet old.
What are some of the possible thesis topics in this area? And what kind of work has been done in this field in the recent years? | machine-learning | null | null | null | null | 01/07/2012 12:03:45 | not a real question | Research topics for machine learning in computer games
===
I have to decide a topic for my Masters Thesis in Computer Science, and I'd like to work in the field of Machine Learning in computer games, specially first person shooters.
I've looked around and found some decent amount of work done in this area in some universities. However, most of the research papers I found were quiet old.
What are some of the possible thesis topics in this area? And what kind of work has been done in this field in the recent years? | 1 |
4,129,320 | 11/09/2010 00:12:09 | 363,603 | 06/10/2010 15:18:52 | 63 | 3 | How to read an installed feature (eclipse PDE)? | Is it possible to read a feature like its possible to read a plugin use the eclipse PDE API? Currently I read plugins using:
Bundle[] bundles = Platform.getBundles(name, version);
if (bundles == null) {
throw new NullPointerException("No bundle found with ID: " + name
+ " and version: " + version);
} else {
for (Bundle bundle : bundles) {
System.out.println(bundle.getSymbolicName());
}
}
But if I specify the name of an installed feature I just get null. Is there some other way that features should be read?
And when I have read the feature I would like to iterate all the plugins that it reference. | eclipse | features | pde | null | null | null | open | How to read an installed feature (eclipse PDE)?
===
Is it possible to read a feature like its possible to read a plugin use the eclipse PDE API? Currently I read plugins using:
Bundle[] bundles = Platform.getBundles(name, version);
if (bundles == null) {
throw new NullPointerException("No bundle found with ID: " + name
+ " and version: " + version);
} else {
for (Bundle bundle : bundles) {
System.out.println(bundle.getSymbolicName());
}
}
But if I specify the name of an installed feature I just get null. Is there some other way that features should be read?
And when I have read the feature I would like to iterate all the plugins that it reference. | 0 |
2,278,814 | 02/17/2010 06:44:17 | 149,911 | 08/03/2009 18:03:06 | 24 | 0 | php order form, passing multiple variables. | I am creating a order table. my problem I am having is with my form field for each row/record with in the table.
<input type="text" size="4" name="buy_item['2']" value="0">
I am defining each identifier by a similar syntax
buy_item[ item number ]
my problem is when the entire form is sent to through the post request how do I know exactly which items were purchased?
It is possible their could be up to 100 different items, so the post variables can always be changing. what i know how to do is hard code each item into the buy script but i feel that it is much to in efficient and would really lack the ability to add items or remove them.
$_POST['buy_item[2]'];
would be the equivalent to the example at the top. but what if someone bought
buy_item['99']
instead of
buy_item['2']
If anyone can lead me towards the right direction it would be greatly appreciated. | php | post | forms | null | null | null | open | php order form, passing multiple variables.
===
I am creating a order table. my problem I am having is with my form field for each row/record with in the table.
<input type="text" size="4" name="buy_item['2']" value="0">
I am defining each identifier by a similar syntax
buy_item[ item number ]
my problem is when the entire form is sent to through the post request how do I know exactly which items were purchased?
It is possible their could be up to 100 different items, so the post variables can always be changing. what i know how to do is hard code each item into the buy script but i feel that it is much to in efficient and would really lack the ability to add items or remove them.
$_POST['buy_item[2]'];
would be the equivalent to the example at the top. but what if someone bought
buy_item['99']
instead of
buy_item['2']
If anyone can lead me towards the right direction it would be greatly appreciated. | 0 |
8,705,835 | 01/02/2012 22:10:50 | 614,662 | 02/13/2011 00:13:23 | 50 | 2 | download jars from apache archiva without login | why I can browse in my apache archiva server and download the jars files without login? is an error or I have a bad configuration?
| apache | archiva | null | null | null | 01/04/2012 15:05:30 | too localized | download jars from apache archiva without login
===
why I can browse in my apache archiva server and download the jars files without login? is an error or I have a bad configuration?
| 3 |
250,688 | 10/30/2008 15:47:52 | 2,648 | 08/23/2008 22:40:47 | 1,172 | 58 | count immediate child elements using Query | I have the following HTML node structure:
<div id="foo">
<div id="bar"></div>
<div id="baz">
<div id="biz">
</div>
<span><span>
</div>
How do I count the number of immediate children of "foo", that are of type "div". In the example above, the result should be two ("bar" and "baz").
Cheers,
Don | jquery | javascript | null | null | null | null | open | count immediate child elements using Query
===
I have the following HTML node structure:
<div id="foo">
<div id="bar"></div>
<div id="baz">
<div id="biz">
</div>
<span><span>
</div>
How do I count the number of immediate children of "foo", that are of type "div". In the example above, the result should be two ("bar" and "baz").
Cheers,
Don | 0 |
7,929,923 | 10/28/2011 13:29:15 | 799,274 | 06/15/2011 09:09:29 | 6 | 0 | C to CPP file name conversion | I wrote simple socket program in c(test.c) worked well and changed the file name to test.cpp.
I compiled the program successfully but i am getting segmentation fault while problem running.
What is the issue ?
Thanks
-Viswa | c++ | c | null | null | null | 10/28/2011 13:40:48 | not a real question | C to CPP file name conversion
===
I wrote simple socket program in c(test.c) worked well and changed the file name to test.cpp.
I compiled the program successfully but i am getting segmentation fault while problem running.
What is the issue ?
Thanks
-Viswa | 1 |
11,349,649 | 07/05/2012 17:42:35 | 434,218 | 08/29/2010 13:00:14 | 1,520 | 10 | Best Eclipse version for PHP | I would like to use Eclipse for PHP development. Also I need to have subversion for source control. Not having used that tool before I see there's so many flavors. Which one shall I use for PHP and what plugins I'll need to add?
Thanks. | php | eclipse | null | null | null | 07/05/2012 17:47:41 | not constructive | Best Eclipse version for PHP
===
I would like to use Eclipse for PHP development. Also I need to have subversion for source control. Not having used that tool before I see there's so many flavors. Which one shall I use for PHP and what plugins I'll need to add?
Thanks. | 4 |
4,305,908 | 11/29/2010 16:44:25 | 51,197 | 01/03/2009 17:39:24 | 3,308 | 86 | Animate GPS points | Is there an easy way to animate GPS tracks, preferably on a web browser? I'm looking for a way to draw some road segments, and animate historical GPS tracks on them.
Thanks in advance,
Adam | animation | null | null | null | null | null | open | Animate GPS points
===
Is there an easy way to animate GPS tracks, preferably on a web browser? I'm looking for a way to draw some road segments, and animate historical GPS tracks on them.
Thanks in advance,
Adam | 0 |
9,024,621 | 01/26/2012 20:11:00 | 1,066,432 | 11/26/2011 01:23:28 | 85 | 3 | Need some help using widgets with wxpython | Hey i am using pygame within wxpython, and I am wondering how can I use a wx widget inside the pygame part of the program.
So, I would just like to replace the player image with a wxButton. (So when you press LEFT the button will move left, ect). The player image is player.png
and the other image is bad.png
import wx, sys, os, pygame, random
class PygameDisplay(wx.Window):
def __init__(self, parent, ID):
wx.Window.__init__(self, parent, ID)
WINDOWWIDTH = 600
WINDOWHEIGHT = 600
TEXTCOLOR = (255, 255, 255)
BACKGROUNDCOLOR = (0, 0, 0)
FPS = 40
BADDIEMINSIZE = 10
BADDIEMAXSIZE = 40
BADDIEMINSPEED = 1
BADDIEMAXSPEED = 8
ADDNEWBADDIERATE = 6
PLAYERMOVERATE = 5
def terminate():
pygame.quit()
sys.exit()
def waitForPlayerToPressKey():
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
terminate()
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE: # pressing escape quits
terminate()
return
def playerHasHitBaddie(playerRect, baddies):
for b in baddies:
if playerRect.colliderect(b['rect']):
return True
return False
def drawText(text, font, surface, x, y):
textobj = font.render(text, 1, TEXTCOLOR)
textrect = textobj.get_rect()
textrect.topleft = (x, y)
surface.blit(textobj, textrect)
# set up pygame, the window, and the mouse cursor
pygame.init()
mainClock = pygame.time.Clock()
windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT))
pygame.display.set_caption('Dodger')
pygame.mouse.set_visible(False)
# set up fonts
font = pygame.font.SysFont(None, 48)
# set up sounds
# set up images
playerImage = pygame.image.load('player.png')
playerRect = playerImage.get_rect()
baddieImage = pygame.image.load('bad.png')
# show the "Start" screen
drawText('Dodger', font, windowSurface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 3))
drawText('Press a key to start.', font, windowSurface, (WINDOWWIDTH / 3) - 30, (WINDOWHEIGHT / 3) + 50)
pygame.display.update()
waitForPlayerToPressKey()
topScore = 0
while True:
# set up the start of the game
baddies = []
score = 0
playerRect.topleft = (WINDOWWIDTH / 2, WINDOWHEIGHT - 50)
moveLeft = moveRight = moveUp = moveDown = False
reverseCheat = slowCheat = False
baddieAddCounter = 0
while True: # the game loop runs while the game part is playing
score += 1 # increase score
for event in pygame.event.get():
if event.type == pygame.QUIT:
terminate()
if event.type == pygame.KEYDOWN:
if event.key == ord('z'):
reverseCheat = True
if event.key == ord('x'):
slowCheat = True
if event.key == pygame.K_LEFT or event.key == ord('a'):
moveRight = False
moveLeft = True
if event.key == pygame.K_RIGHT or event.key == ord('d'):
moveLeft = False
moveRight = True
if event.key == pygame.K_UP or event.key == ord('w'):
moveDown = False
moveUp = True
if event.key == pygame.K_DOWN or event.key == ord('s'):
moveUp = False
moveDown = True
if event.type == pygame.KEYUP:
if event.key == ord('z'):
reverseCheat = False
score = 0
if event.key == ord('x'):
slowCheat = False
score = 0
if event.key == pygame.K_ESCAPE:
terminate()
if event.key == pygame.K_LEFT or event.key == ord('a'):
moveLeft = False
if event.key == pygame.K_RIGHT or event.key == ord('d'):
moveRight = False
if event.key == pygame.K_UP or event.key == ord('w'):
moveUp = False
if event.key == pygame.K_DOWN or event.key == ord('s'):
moveDown = False
if event.type == pygame.MOUSEMOTION:
# If the mouse moves, move the player where the cursor is.
playerRect.move_ip(event.pos[0] - playerRect.centerx, event.pos[1] - playerRect.centery)
# Add new baddies at the top of the screen, if needed.
if not reverseCheat and not slowCheat:
baddieAddCounter += 1
if baddieAddCounter == ADDNEWBADDIERATE:
baddieAddCounter = 0
baddieSize = random.randint(BADDIEMINSIZE, BADDIEMAXSIZE)
newBaddie = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH-baddieSize), 0 - baddieSize, baddieSize, baddieSize),
'speed': random.randint(BADDIEMINSPEED, BADDIEMAXSPEED),
'surface':pygame.transform.scale(baddieImage, (baddieSize, baddieSize)),
}
baddies.append(newBaddie)
# Move the player around.
if moveLeft and playerRect.left > 0:
playerRect.move_ip(-1 * PLAYERMOVERATE, 0)
if moveRight and playerRect.right < WINDOWWIDTH:
playerRect.move_ip(PLAYERMOVERATE, 0)
if moveUp and playerRect.top > 0:
playerRect.move_ip(0, -1 * PLAYERMOVERATE)
if moveDown and playerRect.bottom < WINDOWHEIGHT:
playerRect.move_ip(0, PLAYERMOVERATE)
# Move the mouse cursor to match the player.
pygame.mouse.set_pos(playerRect.centerx, playerRect.centery)
# Move the baddies down.
for b in baddies:
if not reverseCheat and not slowCheat:
b['rect'].move_ip(0, b['speed'])
elif reverseCheat:
b['rect'].move_ip(0, -5)
elif slowCheat:
b['rect'].move_ip(0, 1)
# Delete baddies that have fallen past the bottom.
for b in baddies[:]:
if b['rect'].top > WINDOWHEIGHT:
baddies.remove(b)
# Draw the game world on the window.
windowSurface.fill(BACKGROUNDCOLOR)
# Draw the score and top score.
drawText('Score: %s' % (score), font, windowSurface, 10, 0)
drawText('Top Score: %s' % (topScore), font, windowSurface, 10, 40)
# Draw the player's rectangle
windowSurface.blit(playerImage, playerRect)
# Draw each baddie
for b in baddies:
windowSurface.blit(b['surface'], b['rect'])
pygame.display.update()
# Check if any of the baddies have hit the player.
if playerHasHitBaddie(playerRect, baddies):
if score > topScore:
topScore = score # set new top score
break
mainClock.tick(FPS)
# Stop the game and show the "Game Over" screen.
drawText('GAME OVER', font, windowSurface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 3))
drawText('Press a key to play again.', font, windowSurface, (WINDOWWIDTH / 3) - 80, (WINDOWHEIGHT / 3) + 50)
pygame.display.update()
waitForPlayerToPressKey()
def Update(self, event):
# Any update tasks would go here (moving sprites, advancing animation frames etc.)
self.Redraw()
def Redraw(self):
if self.size_dirty:
self.screen = pygame.Surface(self.size, 0, 32)
self.size_dirty = False
self.screen.fill((0,0,0))
cur = 0
w, h = self.screen.get_size()
while cur <= h:
pygame.draw.aaline(self.screen, (255, 255, 255), (0, h - cur), (cur, 0))
cur += self.linespacing
s = pygame.image.tostring(self.screen, 'RGB')
img = wx.ImageFromData(self.size[0], self.size[1], s)
bmp = wx.BitmapFromImage(img)
dc = wx.ClientDC(self)
dc.DrawBitmap(bmp, 0, 0, False)
del dc
def OnPaint(self, event):
self.Redraw()
def OnSize(self, event):
self.size = self.GetSizeTuple()
self.size_dirty = True
def Kill(self, event):
# Make sure Pygame can't be asked to redraw /before/ quitting by unbinding all methods which
# call the Redraw() method
# (Otherwise wx seems to call Draw between quitting Pygame and destroying the frame)
self.Unbind(event = wx.EVT_PAINT, handler = self.OnPaint)
self.Unbind(event = wx.EVT_TIMER, handler = self.Update, source = self.timer)
class Frame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1)
self.display = PygameDisplay(self, -1)
self.statusbar = self.CreateStatusBar()
self.statusbar.SetFieldsCount(3)
self.statusbar.SetStatusWidths([-3, -4, -2])
self.statusbar.SetStatusText("wxPython", 0)
self.statusbar.SetStatusText("Look, it's a nifty status bar!!!", 1)
self.Bind(wx.EVT_SIZE, self.OnSize)
self.Bind(wx.EVT_CLOSE, self.Kill)
self.curframe = 0
self.SetTitle("Pygame embedded in wxPython")
self.slider = wx.Slider(self, wx.ID_ANY, 5, 1, 10, style = wx.SL_HORIZONTAL | wx.SL_LABELS)
self.slider.SetTickFreq(0.1, 1)
self.timer = wx.Timer(self)
self.Bind(wx.EVT_SCROLL, self.OnScroll)
self.Bind(wx.EVT_SIZE, self.OnSize)
self.Bind(wx.EVT_TIMER, self.Update, self.timer)
self.timer.Start((1000.0 / self.display.fps))
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(self.slider, 0, flag = wx.EXPAND)
sizer.Add(self.display, 1, flag = wx.EXPAND)
self.SetAutoLayout(True)
self.SetSizer(sizer)
self.Layout()
def Kill(self, event):
self.display.Kill(event)
self.Destroy()
def OnSize(self, event):
self.Layout()
def Update(self, event):
self.curframe += 1
self.statusbar.SetStatusText("Frame %i" % self.curframe, 2)
def OnScroll(self, event):
self.display.linespacing = self.slider.GetValue()
class App(wx.App):
def OnInit(self):
self.frame = Frame(parent = None)
self.frame.Show()
self.SetTopWindow(self.frame)
return True
if __name__ == "__main__":
app = App()
app.MainLoop() | python | wxpython | wxwidgets | pygame | wx | null | open | Need some help using widgets with wxpython
===
Hey i am using pygame within wxpython, and I am wondering how can I use a wx widget inside the pygame part of the program.
So, I would just like to replace the player image with a wxButton. (So when you press LEFT the button will move left, ect). The player image is player.png
and the other image is bad.png
import wx, sys, os, pygame, random
class PygameDisplay(wx.Window):
def __init__(self, parent, ID):
wx.Window.__init__(self, parent, ID)
WINDOWWIDTH = 600
WINDOWHEIGHT = 600
TEXTCOLOR = (255, 255, 255)
BACKGROUNDCOLOR = (0, 0, 0)
FPS = 40
BADDIEMINSIZE = 10
BADDIEMAXSIZE = 40
BADDIEMINSPEED = 1
BADDIEMAXSPEED = 8
ADDNEWBADDIERATE = 6
PLAYERMOVERATE = 5
def terminate():
pygame.quit()
sys.exit()
def waitForPlayerToPressKey():
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
terminate()
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE: # pressing escape quits
terminate()
return
def playerHasHitBaddie(playerRect, baddies):
for b in baddies:
if playerRect.colliderect(b['rect']):
return True
return False
def drawText(text, font, surface, x, y):
textobj = font.render(text, 1, TEXTCOLOR)
textrect = textobj.get_rect()
textrect.topleft = (x, y)
surface.blit(textobj, textrect)
# set up pygame, the window, and the mouse cursor
pygame.init()
mainClock = pygame.time.Clock()
windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT))
pygame.display.set_caption('Dodger')
pygame.mouse.set_visible(False)
# set up fonts
font = pygame.font.SysFont(None, 48)
# set up sounds
# set up images
playerImage = pygame.image.load('player.png')
playerRect = playerImage.get_rect()
baddieImage = pygame.image.load('bad.png')
# show the "Start" screen
drawText('Dodger', font, windowSurface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 3))
drawText('Press a key to start.', font, windowSurface, (WINDOWWIDTH / 3) - 30, (WINDOWHEIGHT / 3) + 50)
pygame.display.update()
waitForPlayerToPressKey()
topScore = 0
while True:
# set up the start of the game
baddies = []
score = 0
playerRect.topleft = (WINDOWWIDTH / 2, WINDOWHEIGHT - 50)
moveLeft = moveRight = moveUp = moveDown = False
reverseCheat = slowCheat = False
baddieAddCounter = 0
while True: # the game loop runs while the game part is playing
score += 1 # increase score
for event in pygame.event.get():
if event.type == pygame.QUIT:
terminate()
if event.type == pygame.KEYDOWN:
if event.key == ord('z'):
reverseCheat = True
if event.key == ord('x'):
slowCheat = True
if event.key == pygame.K_LEFT or event.key == ord('a'):
moveRight = False
moveLeft = True
if event.key == pygame.K_RIGHT or event.key == ord('d'):
moveLeft = False
moveRight = True
if event.key == pygame.K_UP or event.key == ord('w'):
moveDown = False
moveUp = True
if event.key == pygame.K_DOWN or event.key == ord('s'):
moveUp = False
moveDown = True
if event.type == pygame.KEYUP:
if event.key == ord('z'):
reverseCheat = False
score = 0
if event.key == ord('x'):
slowCheat = False
score = 0
if event.key == pygame.K_ESCAPE:
terminate()
if event.key == pygame.K_LEFT or event.key == ord('a'):
moveLeft = False
if event.key == pygame.K_RIGHT or event.key == ord('d'):
moveRight = False
if event.key == pygame.K_UP or event.key == ord('w'):
moveUp = False
if event.key == pygame.K_DOWN or event.key == ord('s'):
moveDown = False
if event.type == pygame.MOUSEMOTION:
# If the mouse moves, move the player where the cursor is.
playerRect.move_ip(event.pos[0] - playerRect.centerx, event.pos[1] - playerRect.centery)
# Add new baddies at the top of the screen, if needed.
if not reverseCheat and not slowCheat:
baddieAddCounter += 1
if baddieAddCounter == ADDNEWBADDIERATE:
baddieAddCounter = 0
baddieSize = random.randint(BADDIEMINSIZE, BADDIEMAXSIZE)
newBaddie = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH-baddieSize), 0 - baddieSize, baddieSize, baddieSize),
'speed': random.randint(BADDIEMINSPEED, BADDIEMAXSPEED),
'surface':pygame.transform.scale(baddieImage, (baddieSize, baddieSize)),
}
baddies.append(newBaddie)
# Move the player around.
if moveLeft and playerRect.left > 0:
playerRect.move_ip(-1 * PLAYERMOVERATE, 0)
if moveRight and playerRect.right < WINDOWWIDTH:
playerRect.move_ip(PLAYERMOVERATE, 0)
if moveUp and playerRect.top > 0:
playerRect.move_ip(0, -1 * PLAYERMOVERATE)
if moveDown and playerRect.bottom < WINDOWHEIGHT:
playerRect.move_ip(0, PLAYERMOVERATE)
# Move the mouse cursor to match the player.
pygame.mouse.set_pos(playerRect.centerx, playerRect.centery)
# Move the baddies down.
for b in baddies:
if not reverseCheat and not slowCheat:
b['rect'].move_ip(0, b['speed'])
elif reverseCheat:
b['rect'].move_ip(0, -5)
elif slowCheat:
b['rect'].move_ip(0, 1)
# Delete baddies that have fallen past the bottom.
for b in baddies[:]:
if b['rect'].top > WINDOWHEIGHT:
baddies.remove(b)
# Draw the game world on the window.
windowSurface.fill(BACKGROUNDCOLOR)
# Draw the score and top score.
drawText('Score: %s' % (score), font, windowSurface, 10, 0)
drawText('Top Score: %s' % (topScore), font, windowSurface, 10, 40)
# Draw the player's rectangle
windowSurface.blit(playerImage, playerRect)
# Draw each baddie
for b in baddies:
windowSurface.blit(b['surface'], b['rect'])
pygame.display.update()
# Check if any of the baddies have hit the player.
if playerHasHitBaddie(playerRect, baddies):
if score > topScore:
topScore = score # set new top score
break
mainClock.tick(FPS)
# Stop the game and show the "Game Over" screen.
drawText('GAME OVER', font, windowSurface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 3))
drawText('Press a key to play again.', font, windowSurface, (WINDOWWIDTH / 3) - 80, (WINDOWHEIGHT / 3) + 50)
pygame.display.update()
waitForPlayerToPressKey()
def Update(self, event):
# Any update tasks would go here (moving sprites, advancing animation frames etc.)
self.Redraw()
def Redraw(self):
if self.size_dirty:
self.screen = pygame.Surface(self.size, 0, 32)
self.size_dirty = False
self.screen.fill((0,0,0))
cur = 0
w, h = self.screen.get_size()
while cur <= h:
pygame.draw.aaline(self.screen, (255, 255, 255), (0, h - cur), (cur, 0))
cur += self.linespacing
s = pygame.image.tostring(self.screen, 'RGB')
img = wx.ImageFromData(self.size[0], self.size[1], s)
bmp = wx.BitmapFromImage(img)
dc = wx.ClientDC(self)
dc.DrawBitmap(bmp, 0, 0, False)
del dc
def OnPaint(self, event):
self.Redraw()
def OnSize(self, event):
self.size = self.GetSizeTuple()
self.size_dirty = True
def Kill(self, event):
# Make sure Pygame can't be asked to redraw /before/ quitting by unbinding all methods which
# call the Redraw() method
# (Otherwise wx seems to call Draw between quitting Pygame and destroying the frame)
self.Unbind(event = wx.EVT_PAINT, handler = self.OnPaint)
self.Unbind(event = wx.EVT_TIMER, handler = self.Update, source = self.timer)
class Frame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1)
self.display = PygameDisplay(self, -1)
self.statusbar = self.CreateStatusBar()
self.statusbar.SetFieldsCount(3)
self.statusbar.SetStatusWidths([-3, -4, -2])
self.statusbar.SetStatusText("wxPython", 0)
self.statusbar.SetStatusText("Look, it's a nifty status bar!!!", 1)
self.Bind(wx.EVT_SIZE, self.OnSize)
self.Bind(wx.EVT_CLOSE, self.Kill)
self.curframe = 0
self.SetTitle("Pygame embedded in wxPython")
self.slider = wx.Slider(self, wx.ID_ANY, 5, 1, 10, style = wx.SL_HORIZONTAL | wx.SL_LABELS)
self.slider.SetTickFreq(0.1, 1)
self.timer = wx.Timer(self)
self.Bind(wx.EVT_SCROLL, self.OnScroll)
self.Bind(wx.EVT_SIZE, self.OnSize)
self.Bind(wx.EVT_TIMER, self.Update, self.timer)
self.timer.Start((1000.0 / self.display.fps))
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(self.slider, 0, flag = wx.EXPAND)
sizer.Add(self.display, 1, flag = wx.EXPAND)
self.SetAutoLayout(True)
self.SetSizer(sizer)
self.Layout()
def Kill(self, event):
self.display.Kill(event)
self.Destroy()
def OnSize(self, event):
self.Layout()
def Update(self, event):
self.curframe += 1
self.statusbar.SetStatusText("Frame %i" % self.curframe, 2)
def OnScroll(self, event):
self.display.linespacing = self.slider.GetValue()
class App(wx.App):
def OnInit(self):
self.frame = Frame(parent = None)
self.frame.Show()
self.SetTopWindow(self.frame)
return True
if __name__ == "__main__":
app = App()
app.MainLoop() | 0 |
11,192,728 | 06/25/2012 15:50:39 | 1,437,244 | 06/05/2012 11:36:20 | 18 | 0 | How to modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map? | How to modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map?
for example , there is a key-value pair in a map:
a[5] = " H ";
// But after some operation,like insert, erase etc ; I do not know whether 5 still exist in the map,can I modify it like this ?:
a[5] = " G ";
// or a must define a iteraotr pos
pos = my_map.find(5);
if( pos != my_map.end())
{
a[5] = " G ";
}
Is there any other way I can modify a value of a key-value Pair from a map??? Thanks!!!
| c++ | stl | map | iterator | modify | null | open | How to modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map?
===
How to modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map?
for example , there is a key-value pair in a map:
a[5] = " H ";
// But after some operation,like insert, erase etc ; I do not know whether 5 still exist in the map,can I modify it like this ?:
a[5] = " G ";
// or a must define a iteraotr pos
pos = my_map.find(5);
if( pos != my_map.end())
{
a[5] = " G ";
}
Is there any other way I can modify a value of a key-value Pair from a map??? Thanks!!!
| 0 |
10,311,472 | 04/25/2012 07:47:32 | 293,781 | 03/15/2010 07:52:42 | 41 | 1 | Google App Engine error | I get an error while trying an application on Google App Engine as below...any idea why?
My hunch is since I'm behind a proxy, I'm not able to connect to the appengine. If thats the case how do i set it up?
Initializing App Engine server
Apr 25, 2012 1:07:32 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion
INFO: Unable to access http://appengine.google.com/api/updatecheck?runtime=java&release=1.5.4×tamp=1315604504&api_versions=['1.0']
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:76)
at com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:99)
at com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:174)
at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:142)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.maybePerformUpdateCheck(AppEngineLauncher.java:115)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:81)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311) | google-app-engine | null | null | null | null | null | open | Google App Engine error
===
I get an error while trying an application on Google App Engine as below...any idea why?
My hunch is since I'm behind a proxy, I'm not able to connect to the appengine. If thats the case how do i set it up?
Initializing App Engine server
Apr 25, 2012 1:07:32 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion
INFO: Unable to access http://appengine.google.com/api/updatecheck?runtime=java&release=1.5.4×tamp=1315604504&api_versions=['1.0']
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:76)
at com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:99)
at com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:174)
at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:142)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.maybePerformUpdateCheck(AppEngineLauncher.java:115)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:81)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311) | 0 |
471,424 | 01/23/2009 00:29:24 | 44,540 | 12/09/2008 09:12:48 | 115 | 10 | WiX tricks and best practices | We've been using WiX 3 for a while now, and despite the usual gripes about ease of use, it's going reasonably well, but i'm looking for what people consider best practice for:
- Setting up a WiX project (layout, references, file patterns)
- Integrating WiX into their solutions, build and release process
- Configuring installers (both for new installations and for upgrades)
I'd also be interested in any tricks or good hacks that you would like to share.
To get the ball rolling, here are a few things that we do:
1. Keep all variables in a separate include file e.g. Config.wxi
2. Define Platform variables for x86 and x64 builds
<!-- Product name as you want it to appear in Add/Remove Programs-->
<?if $(var.Platform) = x64 ?>
<?define ProductName = "Product Name (64 bit)" ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define ProductName = "Product Name" ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
An example using 1. and 2.
<Package InstallerVersion="200"
InstallPrivileges="elevated"
InstallScope="perMachine"
Platform="$(var.Platform)"
Compressed="yes"
Description="$(var.ProductName)" />
3. For our products, the simplest approach seems to be to always do major upgrades, so our ProductCode is set as * (auto-generate for each build) and our UpgradeCode is fixed to a unique Guid and will never change (unless we don't want to upgrade existing product)
4. Create an icon in Add/Remove Programs
<Icon Id="Company.ico" SourceFile="..\Tools\Company\Lib\Company.ico" />
<Property Id="ARPPRODUCTICON" Value="Company.ico" />
<Property Id="ARPHELPLINK" Value="http://www.example.com/" />
5. On release builds (we version our installers) copy msi to a deploy folder
<Target Name="CopyToDeploy" Condition="'$(Configuration)' == 'Release'">
<!-- Note we append AssemblyFileVersion, changing MSI file name only works with Major Upgrades -->
<Copy SourceFiles="$(OutputPath)$(OutputName).msi"
DestinationFiles="..\Deploy\Setup\$(OutputName) $(AssemblyFileVersion)_$(Platform).msi" />
</Target>
| wix | wix3 | null | null | null | 12/08/2011 01:11:50 | not constructive | WiX tricks and best practices
===
We've been using WiX 3 for a while now, and despite the usual gripes about ease of use, it's going reasonably well, but i'm looking for what people consider best practice for:
- Setting up a WiX project (layout, references, file patterns)
- Integrating WiX into their solutions, build and release process
- Configuring installers (both for new installations and for upgrades)
I'd also be interested in any tricks or good hacks that you would like to share.
To get the ball rolling, here are a few things that we do:
1. Keep all variables in a separate include file e.g. Config.wxi
2. Define Platform variables for x86 and x64 builds
<!-- Product name as you want it to appear in Add/Remove Programs-->
<?if $(var.Platform) = x64 ?>
<?define ProductName = "Product Name (64 bit)" ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define ProductName = "Product Name" ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
An example using 1. and 2.
<Package InstallerVersion="200"
InstallPrivileges="elevated"
InstallScope="perMachine"
Platform="$(var.Platform)"
Compressed="yes"
Description="$(var.ProductName)" />
3. For our products, the simplest approach seems to be to always do major upgrades, so our ProductCode is set as * (auto-generate for each build) and our UpgradeCode is fixed to a unique Guid and will never change (unless we don't want to upgrade existing product)
4. Create an icon in Add/Remove Programs
<Icon Id="Company.ico" SourceFile="..\Tools\Company\Lib\Company.ico" />
<Property Id="ARPPRODUCTICON" Value="Company.ico" />
<Property Id="ARPHELPLINK" Value="http://www.example.com/" />
5. On release builds (we version our installers) copy msi to a deploy folder
<Target Name="CopyToDeploy" Condition="'$(Configuration)' == 'Release'">
<!-- Note we append AssemblyFileVersion, changing MSI file name only works with Major Upgrades -->
<Copy SourceFiles="$(OutputPath)$(OutputName).msi"
DestinationFiles="..\Deploy\Setup\$(OutputName) $(AssemblyFileVersion)_$(Platform).msi" />
</Target>
| 4 |
11,703,558 | 07/28/2012 18:21:10 | 1,113,686 | 12/23/2011 16:19:51 | 39 | 0 | Arduino overheating when plugged in to wall outlet | I'm pretty new to Arduino, so I apologize in advance if there's a really simple answer out there that I wasn't able to find. :)
I've been using my Arduino mainly to test LED's and other small components, so I've kept it plugged into my laptop without any issues until now. Recently, I built a project using a receipt printer ([Hello Printer][1]), so it was necessary to plug the Arduino (connected to an ethernet shield and the printer) into a wall socket. Almost immediately, both boards began to heat up to the point where it hurt to touch. I unplugged it as quickly as I could, and there didn't appear to be any damage. My first thought was that I was using the wrong adapter, so I checked and confirmed that it is a 9v AC-DC adapter. My next thought was that the printer was using too much power, so I unplugged it and tested a simple LED blink program. That made the Arduino and the ethernet shield heat up as well. Finally, I tried the LED blink program in a different socket, only to have the same results. I am aware that it's normal for the board to heat up slightly, but this seems a little extreme.
What should I do? I'm all out of things to try.
Thanks in advance!
[1]: http://gofreerange.com/hello-printer "Hello Printer" | printing | adapter | arduino | outlet | overheating | 07/28/2012 20:40:09 | off topic | Arduino overheating when plugged in to wall outlet
===
I'm pretty new to Arduino, so I apologize in advance if there's a really simple answer out there that I wasn't able to find. :)
I've been using my Arduino mainly to test LED's and other small components, so I've kept it plugged into my laptop without any issues until now. Recently, I built a project using a receipt printer ([Hello Printer][1]), so it was necessary to plug the Arduino (connected to an ethernet shield and the printer) into a wall socket. Almost immediately, both boards began to heat up to the point where it hurt to touch. I unplugged it as quickly as I could, and there didn't appear to be any damage. My first thought was that I was using the wrong adapter, so I checked and confirmed that it is a 9v AC-DC adapter. My next thought was that the printer was using too much power, so I unplugged it and tested a simple LED blink program. That made the Arduino and the ethernet shield heat up as well. Finally, I tried the LED blink program in a different socket, only to have the same results. I am aware that it's normal for the board to heat up slightly, but this seems a little extreme.
What should I do? I'm all out of things to try.
Thanks in advance!
[1]: http://gofreerange.com/hello-printer "Hello Printer" | 2 |
6,314,064 | 06/11/2011 04:27:38 | 793,663 | 06/11/2011 04:12:15 | 1 | 0 | A questio about C | How does this code work?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
sc[] = bla bla bla a bunch of hex;
int main(void)
{
(*(void(*)()) SC)();
}
this `(*(void(*)()) sc)();` specifically is what I'm unsure of.
thanks in advance :)
| c++ | objective-c | c | null | null | 06/11/2011 19:00:36 | not a real question | A questio about C
===
How does this code work?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
sc[] = bla bla bla a bunch of hex;
int main(void)
{
(*(void(*)()) SC)();
}
this `(*(void(*)()) sc)();` specifically is what I'm unsure of.
thanks in advance :)
| 1 |
442,346 | 01/14/2009 09:06:35 | 54,929 | 01/14/2009 09:02:05 | 1 | 0 | How to categorize Mime Types (PHP) | I'm looking for a code snippet which categorizes mime types.
For example, <br>
application/msword
application/vnd.oasis.opendocument.text
application/pdf
Both of them are office files. When I pass these mime type to the function, I want it to return a result which is 'office', 'image', 'application', 'compressed' etc.
However,as you know, there are hundreds of mime types and I can not collect all of them.
Do you know where can I find it? | php | mime-types | null | null | null | null | open | How to categorize Mime Types (PHP)
===
I'm looking for a code snippet which categorizes mime types.
For example, <br>
application/msword
application/vnd.oasis.opendocument.text
application/pdf
Both of them are office files. When I pass these mime type to the function, I want it to return a result which is 'office', 'image', 'application', 'compressed' etc.
However,as you know, there are hundreds of mime types and I can not collect all of them.
Do you know where can I find it? | 0 |
2,142,479 | 01/26/2010 20:43:16 | 95,186 | 04/23/2009 20:57:13 | 13 | 0 | How do I select subdirectories in ant using a FileSet? | I'm using ant 1.6.2 and am trying to set up a task that will compare a source and a target directory, identify all the subdirectories that exist in the source directory and delete liked named subdirectories in the target directory.
So, say the source directory has sub directories sub1, sub2, and sub3 in it and the target directory has sub1, sub2, sub3, and sub4 in it then I'd like to delete sub1, sub2, and sub3 from target dir.
I thought I could do this by using a FileSelector to identify all directories in source that are present in target. However, I can't get the <type> file selector to ever return a match for directories.
Ultimately, I figured I'd do something like:
<fileset id="dirSelector" dir="${install.dir}">
<type type="dir"/>
<present targetdir="${dist.dir}"/>
</fileset>
I started by just trying to list the directories present in the source directory and print them out:
<fileset id="dirSelector" dir="${install.dir}">
<type type="dir"/>
</fileset>
<property name="selected" refid="dirSelector" />
<echo>Selected: ${selected}</echo>
However, I never get anything printed with the type selector set to directory. If I change the type to file I do get files printed out.
Is there a better way to accomplish what I'm trying to do? Am I missing something in my use of the type selector? | ant | fileset | null | null | null | null | open | How do I select subdirectories in ant using a FileSet?
===
I'm using ant 1.6.2 and am trying to set up a task that will compare a source and a target directory, identify all the subdirectories that exist in the source directory and delete liked named subdirectories in the target directory.
So, say the source directory has sub directories sub1, sub2, and sub3 in it and the target directory has sub1, sub2, sub3, and sub4 in it then I'd like to delete sub1, sub2, and sub3 from target dir.
I thought I could do this by using a FileSelector to identify all directories in source that are present in target. However, I can't get the <type> file selector to ever return a match for directories.
Ultimately, I figured I'd do something like:
<fileset id="dirSelector" dir="${install.dir}">
<type type="dir"/>
<present targetdir="${dist.dir}"/>
</fileset>
I started by just trying to list the directories present in the source directory and print them out:
<fileset id="dirSelector" dir="${install.dir}">
<type type="dir"/>
</fileset>
<property name="selected" refid="dirSelector" />
<echo>Selected: ${selected}</echo>
However, I never get anything printed with the type selector set to directory. If I change the type to file I do get files printed out.
Is there a better way to accomplish what I'm trying to do? Am I missing something in my use of the type selector? | 0 |
7,229,193 | 08/29/2011 10:59:37 | 572,737 | 01/12/2011 13:08:57 | 368 | 23 | simple functions or classes? | I have a very simple question, but I'd like to know :
**When and why it's better to use simple functions, and when and why it's better to use classes**? | php | php-oop | php-functions | null | null | 08/29/2011 11:05:42 | not constructive | simple functions or classes?
===
I have a very simple question, but I'd like to know :
**When and why it's better to use simple functions, and when and why it's better to use classes**? | 4 |
10,826,186 | 05/31/2012 00:57:27 | 744,249 | 05/08/2011 21:18:48 | 1 | 1 | What unsafe javascript should I block? | I am writing a PHP script that takes javascript code and writes it out in someones browser, works great, but I want the javascript to be able to be written by anyone, so I need to validate that certain things are not added to the javascript code like redirects and alert boxes.
What I'm asking is simply for suggestions for things to be censored out of the javascript, I have a fairly extensive list right now but I just want to make sure there is not anything obvious, or extremely obscure I have missed.
Thanks,
Sam | php | javascript | xss | xss-prevention | null | 05/31/2012 01:02:31 | not constructive | What unsafe javascript should I block?
===
I am writing a PHP script that takes javascript code and writes it out in someones browser, works great, but I want the javascript to be able to be written by anyone, so I need to validate that certain things are not added to the javascript code like redirects and alert boxes.
What I'm asking is simply for suggestions for things to be censored out of the javascript, I have a fairly extensive list right now but I just want to make sure there is not anything obvious, or extremely obscure I have missed.
Thanks,
Sam | 4 |
3,689,721 | 09/11/2010 03:43:07 | 70,551 | 02/24/2009 20:22:13 | 1,480 | 90 | how is java inspired by lisp? |
> "We were after the C++ programmers. We
> managed to drag a lot of them about
> halfway to Lisp."
>
> - Guy Steele, co-author of the Java specspec
I came across the above quote the other day. I get that many features unique to java (over c++) like garbage collection were initially found in Lisp. But how else did java drag c++ programmers **half way** to lisp? | java | lisp | null | null | null | 09/14/2010 18:13:07 | not constructive | how is java inspired by lisp?
===
> "We were after the C++ programmers. We
> managed to drag a lot of them about
> halfway to Lisp."
>
> - Guy Steele, co-author of the Java specspec
I came across the above quote the other day. I get that many features unique to java (over c++) like garbage collection were initially found in Lisp. But how else did java drag c++ programmers **half way** to lisp? | 4 |
7,399,527 | 09/13/2011 09:22:40 | 942,191 | 09/13/2011 09:22:40 | 1 | 0 | Re using deleted rowid in progress database | Can we re-use the deleted rowid(s) in progress database...? If it is possible how it is being carried out, after complete the full circle or take the immediate deleted entry or using configuration setup..? | reuse | deleted | rowid | null | null | null | open | Re using deleted rowid in progress database
===
Can we re-use the deleted rowid(s) in progress database...? If it is possible how it is being carried out, after complete the full circle or take the immediate deleted entry or using configuration setup..? | 0 |
2,396,906 | 03/07/2010 16:09:48 | 288,266 | 03/07/2010 16:09:48 | 1 | 0 | JAVASCRIPT CLACULATION | claculate the difference in array using a looping structure without a sorting function | python | null | null | null | null | 03/07/2010 16:12:31 | not a real question | JAVASCRIPT CLACULATION
===
claculate the difference in array using a looping structure without a sorting function | 1 |
8,042,070 | 11/07/2011 20:16:58 | 9,942 | 09/15/2008 20:31:58 | 281 | 5 | git reset --hard seems to ignore .git/info/exclude | We have a shared directory (call it /shared) that we keep automatically up to date with our master git branch, by running these commands whenever there is a push to master:
<pre>
git reset --hard HEAD
git clean -f -d
git pull
</pre>
This works for the most part. However there is a directory /shared/media that we <b>don't</b> want to be touched, even though there is a "media" symlink checked into git.
I've added "media" to .git/info/exclude, but regardless, "git reset --hard HEAD" removes /shared/media and replaces it with the checked in symlink.
Is there any way to get "git reset --hard HEAD" to leave this directory alone, other than e.g. by moving it out of the way beforehand and restoring it afterwards?
| git | null | null | null | null | null | open | git reset --hard seems to ignore .git/info/exclude
===
We have a shared directory (call it /shared) that we keep automatically up to date with our master git branch, by running these commands whenever there is a push to master:
<pre>
git reset --hard HEAD
git clean -f -d
git pull
</pre>
This works for the most part. However there is a directory /shared/media that we <b>don't</b> want to be touched, even though there is a "media" symlink checked into git.
I've added "media" to .git/info/exclude, but regardless, "git reset --hard HEAD" removes /shared/media and replaces it with the checked in symlink.
Is there any way to get "git reset --hard HEAD" to leave this directory alone, other than e.g. by moving it out of the way beforehand and restoring it afterwards?
| 0 |
1,948,397 | 12/22/2009 18:52:59 | 223,112 | 12/02/2009 17:47:37 | 13 | 5 | POE BOOK/Tutorials | Could someone provide a link to a book on POE (Perl object environment )if there any book like this ?
or could someone provide a good tutorial about POE in addtion to the tutorials that found under this site poe.perl.org? | perl | poe | books | null | null | 08/01/2012 12:43:50 | not constructive | POE BOOK/Tutorials
===
Could someone provide a link to a book on POE (Perl object environment )if there any book like this ?
or could someone provide a good tutorial about POE in addtion to the tutorials that found under this site poe.perl.org? | 4 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.