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
9,265,701
02/13/2012 18:16:27
1,192,617
02/06/2012 15:35:36
18
0
sql error - data truncation for datetime - using java/hibernate/timestamp property
The scenario: I have a servlet that receives xmls, parses them (using jaxb), persists the parsed data to a mysql db (using hibernate) and also saves a copy of the xml for future reference. It saves this xml also when parsing fails. In these cases I receive an email with a summary of the error and then check the s...
java
mysql
hibernate
jaxb
truncation
null
open
sql error - data truncation for datetime - using java/hibernate/timestamp property === The scenario: I have a servlet that receives xmls, parses them (using jaxb), persists the parsed data to a mysql db (using hibernate) and also saves a copy of the xml for future reference. It saves this xml also when parsing fai...
0
8,320,312
11/30/2011 02:07:32
18,309
09/18/2008 22:13:45
3,792
42
Why is .index() resolving as a number in this statement while .parent().index() is resolving as a string?
Here is the code, it is referencing a TD and "farmland" is the id of the table: $("#farmland td").click(function(){ $("#console").html($(this).index() + 1 + ", " + $(this).parent().index() + 1); }); When I click a TD, I am getting 1,01 or 1,11 or 1,21 etc... the number is properly adding for .ind...
javascript
jquery
null
null
null
null
open
Why is .index() resolving as a number in this statement while .parent().index() is resolving as a string? === Here is the code, it is referencing a TD and "farmland" is the id of the table: $("#farmland td").click(function(){ $("#console").html($(this).index() + 1 + ", " + $(this).parent().index() + 1); ...
0
6,301,546
06/10/2011 03:03:06
511,438
11/17/2010 22:55:52
382
12
Return (T)Request[key];
I have this existing code which works very well. public static T SessionGet<T>(string key) { if (Session[key] == null) return default(T); else return (T)Session[key]; } I wanted to make a version that works for Request. I realise that Request is string based. So how can I c...
c#
asp.net
null
null
null
null
open
Return (T)Request[key]; === I have this existing code which works very well. public static T SessionGet<T>(string key) { if (Session[key] == null) return default(T); else return (T)Session[key]; } I wanted to make a version that works for Request. I realise that Request is...
0
4,355,756
12/04/2010 20:49:18
173,149
09/14/2009 13:42:30
132
8
Why most open source (OSI) license contain text about Warranty Disclaimers?
Suppose I put open source code on public without Warranty Disclaimers and some one use it. Then this person can damage me in judgement?
copyright
copyright-law
null
null
null
12/05/2010 20:38:36
off topic
Why most open source (OSI) license contain text about Warranty Disclaimers? === Suppose I put open source code on public without Warranty Disclaimers and some one use it. Then this person can damage me in judgement?
2
9,349,044
02/19/2012 12:15:01
576,758
01/15/2011 14:12:54
1,074
30
Load Properties from resources folder within JAR
I have a JAR file Movie Library.jar, its contents are depicted below: ![enter image description here][1] [1]: http://i.stack.imgur.com/eMHgk.png The class PropertiesUtils is resides in the client.jar (shown in picture) and the properties files are in properties folder which resides in resources folder. ...
java
file
properties
io
inputstream
null
open
Load Properties from resources folder within JAR === I have a JAR file Movie Library.jar, its contents are depicted below: ![enter image description here][1] [1]: http://i.stack.imgur.com/eMHgk.png The class PropertiesUtils is resides in the client.jar (shown in picture) and the properties files are in pr...
0
10,055,792
04/07/2012 15:36:53
1,299,507
03/29/2012 00:01:27
1
0
Convert dict to string
Have been searching how to convert a dictionary to a string. But the results found is not the ones i am looking for. The results i currently find is basically turning the whole dictionary into a string, but i don't really want {}, , and : in my string. So i got a dictionary of sorted URLvars i wanted to join together...
string
dictionary
python-2.7
null
null
null
open
Convert dict to string === Have been searching how to convert a dictionary to a string. But the results found is not the ones i am looking for. The results i currently find is basically turning the whole dictionary into a string, but i don't really want {}, , and : in my string. So i got a dictionary of sorted URLva...
0
8,570,981
12/20/2011 04:55:26
554,075
12/26/2010 02:42:39
1,057
19
How to implement `opIndex` in higher dimensions?
struct M{ T opIndex(uint i){ ... } } which gives me this: m[i] but what if I want it in two dimension so that I could do: m[i][j] is there anyway to do this?
d
null
null
null
null
null
open
How to implement `opIndex` in higher dimensions? === struct M{ T opIndex(uint i){ ... } } which gives me this: m[i] but what if I want it in two dimension so that I could do: m[i][j] is there anyway to do this?
0
6,658,477
07/12/2011 01:07:42
815,560
06/25/2011 18:10:38
114
13
What is the best way to develop a mobile application that run on multiple devices mainly (android and iPhone)?
What is the best way to develop a mobile application that run on multiple devices mainly (android and iPhone)? 1) Use android frame work and iOS framework. 2) Or use a cross platform development library something like (AirPlay SDK for example). 3) Or there is other way else you prefer. Please feel free to give ...
iphone
android
mobile-application
null
null
null
open
What is the best way to develop a mobile application that run on multiple devices mainly (android and iPhone)? === What is the best way to develop a mobile application that run on multiple devices mainly (android and iPhone)? 1) Use android frame work and iOS framework. 2) Or use a cross platform development libra...
0
10,691,453
05/21/2012 19:34:43
1,312,478
04/04/2012 09:40:22
73
4
AWS EC2 pricing
I am planning to start with small EC2 RESERVED instance with 3 year commitment. If in between I upgrade it to Large instance; will I be able to use my upfront payment I made for small instance ?
amazon-ec2
amazon-web-services
null
null
null
05/22/2012 14:07:02
off topic
AWS EC2 pricing === I am planning to start with small EC2 RESERVED instance with 3 year commitment. If in between I upgrade it to Large instance; will I be able to use my upfront payment I made for small instance ?
2
9,633,814
03/09/2012 12:07:47
1,259,236
03/09/2012 11:59:58
1
0
How To Secure Shared MySql User
We have a mySql user that have about 20 database and all of each database is for one site , and i know its not secure and i want secure it and the users hadn't any access to other users database . and i dont want to create a new mysql user for each users , is there any way to secure this databases with this condition ?...
php
mysql
database
security
null
03/09/2012 15:49:26
not a real question
How To Secure Shared MySql User === We have a mySql user that have about 20 database and all of each database is for one site , and i know its not secure and i want secure it and the users hadn't any access to other users database . and i dont want to create a new mysql user for each users , is there any way to secure...
1
6,458,024
06/23/2011 17:17:24
778,653
06/01/2011 02:42:09
16
0
Websites looking different across browsers? Why don't people care?
Our company is looking at building a brand new website in the next couple of months and the IT director is all gung-ho to start using HTML5 and CSS3. He really thinks it's the coolest thing and definitely doesn't care that a website styled with HTML5 and CSS3 is going to look and function great in Firefox, safari, oper...
html5
css3
cross-browser
browser-compatibility
null
06/23/2011 18:20:42
not constructive
Websites looking different across browsers? Why don't people care? === Our company is looking at building a brand new website in the next couple of months and the IT director is all gung-ho to start using HTML5 and CSS3. He really thinks it's the coolest thing and definitely doesn't care that a website styled with HTM...
4
10,056,848
04/07/2012 17:51:24
558,516
12/30/2010 17:18:59
41
5
I don't to compile my app
Anybody has one idea about this problem? I'm developing a app with database SQLite3. Ld /Users/asrsantos/Library/Developer/Xcode/DerivedData/iCollection-gnicszoxzmnmkvdrgskxebfnaqua/Build/Products/Debug-iphonesimulator/iCollection.app/iCollection normal i386 cd "/Users/asrsantos/Documents/Projects/Re...
database
xcode
compiler
null
null
04/09/2012 05:37:55
not a real question
I don't to compile my app === Anybody has one idea about this problem? I'm developing a app with database SQLite3. Ld /Users/asrsantos/Library/Developer/Xcode/DerivedData/iCollection-gnicszoxzmnmkvdrgskxebfnaqua/Build/Products/Debug-iphonesimulator/iCollection.app/iCollection normal i386 cd "/Users/...
1
9,420,656
02/23/2012 20:23:13
1,120,121
12/28/2011 22:32:17
344
14
What is the best dp dimensions to make your xml layouts as a base for?
What Dp and emulator is the best for developing xml layouts on android with eclipse IDE?
java
android
xml
eclipse
android-emulator
02/24/2012 20:31:31
not constructive
What is the best dp dimensions to make your xml layouts as a base for? === What Dp and emulator is the best for developing xml layouts on android with eclipse IDE?
4
9,504,764
02/29/2012 18:40:33
525,240
11/30/2010 13:53:11
26
3
How can I configure execution start between dependent jobs?
My Jenkins server is set up with two jobs A and B say. Job A is triggered from changes in subversion, runs unit tests and if successful, creates a WAR and deploys it to another environment. If Job A succeeds, then Job B triggers. This job runs tests against the deployed WAR. The problem is that the deployment ...
jenkins
null
null
null
null
null
open
How can I configure execution start between dependent jobs? === My Jenkins server is set up with two jobs A and B say. Job A is triggered from changes in subversion, runs unit tests and if successful, creates a WAR and deploys it to another environment. If Job A succeeds, then Job B triggers. This job runs tests...
0
7,477,434
09/19/2011 21:20:00
953,561
09/19/2011 21:20:00
1
0
Android : get the current view (displayed on the screen)?
How can I retrieve the current view that is currently diplayed when processing/handling an event ?
android
events
user-interface
view
null
09/19/2011 23:48:04
not a real question
Android : get the current view (displayed on the screen)? === How can I retrieve the current view that is currently diplayed when processing/handling an event ?
1
10,382,540
04/30/2012 10:57:41
821,442
06/29/2011 15:35:07
10
0
Project Euler #19
Warning! Spoilers ahead! > You are given the following information, but you may prefer to do some > research for yourself. > > 1 Jan 1900 was a Monday. > Thirty days has September, > April, June and November. > All the rest have thirty-one, > Saving February alone, > Which has twenty-eight, rain or shine. ...
c++
project-euler
null
null
null
05/01/2012 01:38:17
too localized
Project Euler #19 === Warning! Spoilers ahead! > You are given the following information, but you may prefer to do some > research for yourself. > > 1 Jan 1900 was a Monday. > Thirty days has September, > April, June and November. > All the rest have thirty-one, > Saving February alone, > Which has twenty-...
3
4,556,387
12/29/2010 17:44:49
556,325
12/28/2010 19:13:13
6
0
MVVM - implementing 'IsDirty' functionality to a ModelView in order to save data
Being new to WPF & MVVM I struggling with some basic functionality. Let me first explain what I am after, and then attach some example code... I have a screen showing a list of users, and I display the details of the selected user on the right-hand side with editable textboxes. I then have a Save button which is...
c#
wpf
mvvm
observablecollection
null
null
open
MVVM - implementing 'IsDirty' functionality to a ModelView in order to save data === Being new to WPF & MVVM I struggling with some basic functionality. Let me first explain what I am after, and then attach some example code... I have a screen showing a list of users, and I display the details of the selected us...
0
8,487,242
12/13/2011 09:59:55
1,095,469
12/13/2011 09:57:27
1
0
set fixed height for header and footer in grid view
I have grid in my project in that i need the fixed height for both header and footer with pagination, i have 10 records per page, for instance i am taking 12 records from database,in the first page, 10 records is showing correctly, GRID height is 220px, while in the second page, 2 records are showing, at that time foot...
asp.net
null
null
null
null
null
open
set fixed height for header and footer in grid view === I have grid in my project in that i need the fixed height for both header and footer with pagination, i have 10 records per page, for instance i am taking 12 records from database,in the first page, 10 records is showing correctly, GRID height is 220px, while in ...
0
11,657,002
07/25/2012 19:19:48
1,552,583
07/25/2012 18:44:25
1
0
Latest fsck execution on Solaris
Linux has a tune2fs command to determine the last time fsck was executed. Is there something similar in Solaris that can be used to determine last fsck execution?
solaris
execution
last
fsc
null
07/26/2012 20:16:17
off topic
Latest fsck execution on Solaris === Linux has a tune2fs command to determine the last time fsck was executed. Is there something similar in Solaris that can be used to determine last fsck execution?
2
9,428,267
02/24/2012 09:24:05
907,695
08/23/2011 12:19:01
3,723
119
LAN setup - Internet and IPTV (separate LANs) over one cable
My goal is to combine Internet and IPTV signal from Optical modem, and bring these signals over one cable to different location at home. Problem is: - Optical modem has 2 ports, one for IPTV, one for Internet over PPPOE - IPTV port has its own DHCP/DNS server and gateway, needed for set top box to work, while ...
networking
router
lan
null
null
02/28/2012 14:11:44
off topic
LAN setup - Internet and IPTV (separate LANs) over one cable === My goal is to combine Internet and IPTV signal from Optical modem, and bring these signals over one cable to different location at home. Problem is: - Optical modem has 2 ports, one for IPTV, one for Internet over PPPOE - IPTV port has its own D...
2
7,105,897
08/18/2011 10:22:06
660,151
03/15/2011 07:44:09
433
19
Git branch and ls
I'm not sure if this is the right place to ask this, please redirect me if not. I'm new to git and while learning it I stumbled upon this. How does `git branch branchName` and 'ls' work with each other. For eg: If I have a master and test branch and test branch has an extra testFile when compared to master branch...
linux
git
git-branch
null
null
null
open
Git branch and ls === I'm not sure if this is the right place to ask this, please redirect me if not. I'm new to git and while learning it I stumbled upon this. How does `git branch branchName` and 'ls' work with each other. For eg: If I have a master and test branch and test branch has an extra testFile when co...
0
5,905,962
05/06/2011 01:37:54
703,856
04/12/2011 10:23:50
1
0
how to use accelerometer to change voice (auto tune)
I am interested in creating an auto tune app and did a bit of research and apparently thats now possible by using accelerometer that apple provides but I have no idea how to do that. can someone help out by giving me a link to a tutorial or give me an example code to change the voice inserted into the function. Tha...
iphone
objective-c
iphone-sdk-4.0
null
null
05/06/2011 03:52:50
not a real question
how to use accelerometer to change voice (auto tune) === I am interested in creating an auto tune app and did a bit of research and apparently thats now possible by using accelerometer that apple provides but I have no idea how to do that. can someone help out by giving me a link to a tutorial or give me an example co...
1
10,486,670
05/07/2012 17:49:52
680,111
03/28/2011 11:21:51
62
0
Is there a package for non-local means filtering in R?
As the title says, is there a premade function for non-local filtering?
r
signal-processing
null
null
null
05/07/2012 17:58:52
not constructive
Is there a package for non-local means filtering in R? === As the title says, is there a premade function for non-local filtering?
4
6,462,711
06/24/2011 02:29:30
811,430
06/23/2011 02:07:47
1
0
How can I capture the custom events being triggered by my plugin using this pattern?
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> <script type="text/javascript"> (function($){ /* Object Template */ var MyPlugin = function(element, options) { var el = $(element), self = this; ...
jquery
jquery-plugins
jquery-events
null
null
06/25/2011 10:14:43
not a real question
How can I capture the custom events being triggered by my plugin using this pattern? === <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> <script type="text/javascript"> (function($){ /* Object Template */ var MyPlugin...
1
1,540,985
10/08/2009 22:58:28
126,681
06/22/2009 04:25:25
1
0
Querying tables listed in DBA_Tables
A third party product we have at my company uses Oracle as a backend. I'm attempting to log into the Oracle database and look at the schema and data. I've logged in as sys/sysdba, created a user with a default tablespace of that created by the application, and granted the user all necessary permissions to query the str...
oracle
null
null
null
null
null
open
Querying tables listed in DBA_Tables === A third party product we have at my company uses Oracle as a backend. I'm attempting to log into the Oracle database and look at the schema and data. I've logged in as sys/sysdba, created a user with a default tablespace of that created by the application, and granted the user ...
0
9,591,766
03/06/2012 20:56:13
2,496
08/22/2008 14:30:33
1,000
32
How do I fix error with MassTransit
I am trying to use MassTransit, I installed it using nuget and am just using their base example: [Quick start guide][1] When I run this code I get an exceptions (with the inner exceptions listed): * "An exception was thrown during service bus creation" * "Failed to create the bus service: SubscriptionRouter...
msmq
masstransit
null
null
null
03/07/2012 21:01:53
not a real question
How do I fix error with MassTransit === I am trying to use MassTransit, I installed it using nuget and am just using their base example: [Quick start guide][1] When I run this code I get an exceptions (with the inner exceptions listed): * "An exception was thrown during service bus creation" * "Failed to c...
1
8,860,667
01/14/2012 06:48:39
1,101,208
12/16/2011 04:06:21
109
6
jquery valid email check
I am just a beginner in jquery.I have used email field in my form. The form shouldn't submit if the email field is empty. I used the following code if(document.getElementById('emailaddress').value == ''){ alert('Enter the Email Address'); document.getElementById('emailaddress').focus(); return fa...
java
php
jquery
null
null
null
open
jquery valid email check === I am just a beginner in jquery.I have used email field in my form. The form shouldn't submit if the email field is empty. I used the following code if(document.getElementById('emailaddress').value == ''){ alert('Enter the Email Address'); document.getElementById('emailadd...
0
3,167,113
07/02/2010 15:35:01
382,155
07/02/2010 14:57:13
1
0
Is there a way to open the content of a page via php, using the cookies stored in the browser?
I have a web-site based on PHP, to which I would like to add a members-only area. Instead of creating my own registration/login pages, I would like to make a piece of code which will look if the user is logged on a particular site (for simplicity, we could assume that this site is Facebook) and if yes, allow him to nav...
php
cookies
curl
null
null
null
open
Is there a way to open the content of a page via php, using the cookies stored in the browser? === I have a web-site based on PHP, to which I would like to add a members-only area. Instead of creating my own registration/login pages, I would like to make a piece of code which will look if the user is logged on a parti...
0
10,749,121
05/25/2012 05:50:26
174,129
09/16/2009 06:00:16
1,671
86
How to regroup records with different values in one SQL query
Let's say I have the following table : Name - Country - Age -------------------- Toto - Switzerland - 10 Titi - France - 12 Tata - Italy - 21 Tutu - England - 13 Tete - Italy - 14 I want to create a sql query as simple as possible to regroup people living in defined grouped count...
sql
query
columns
group
null
null
open
How to regroup records with different values in one SQL query === Let's say I have the following table : Name - Country - Age -------------------- Toto - Switzerland - 10 Titi - France - 12 Tata - Italy - 21 Tutu - England - 13 Tete - Italy - 14 I want to create a sql query as s...
0
9,628,497
03/09/2012 03:22:29
577,950
01/17/2011 01:13:36
1
3
Mathematica List and Which Issue
I am going crazy because I can't make Mathematica behave.. I am solving an ODE with NDSolve and it does not work because of one function that does not output what I would expect. My function is of this form: y[x_] := Which[ 0<=x<=10, {{1,2,3},{-9,-8,-7}}, 10<x<20, {{4,5,6},{-6,-5,-4}}, ...
mathematica
null
null
null
null
03/10/2012 03:23:20
too localized
Mathematica List and Which Issue === I am going crazy because I can't make Mathematica behave.. I am solving an ODE with NDSolve and it does not work because of one function that does not output what I would expect. My function is of this form: y[x_] := Which[ 0<=x<=10, {{1,2,3},{-9,-8,-7}}, ...
3
7,191,578
08/25/2011 13:52:44
450,689
09/17/2010 14:27:58
28
3
Export Jqgrid data to excel using asp.net
I am using Jqgrid 3.7 every thing works fine and now i want to export the data to excel on click event. I am using Load Once method which makes loading and filtering of huge data in a faster way. Can any one suggest any help to fix this issue. I am using asp.net 4.0 and not MVC.
asp.net
jqgrid-asp.net
null
null
null
null
open
Export Jqgrid data to excel using asp.net === I am using Jqgrid 3.7 every thing works fine and now i want to export the data to excel on click event. I am using Load Once method which makes loading and filtering of huge data in a faster way. Can any one suggest any help to fix this issue. I am using asp.net 4.0 and no...
0
8,019,544
11/05/2011 10:22:16
1,030,965
11/05/2011 10:14:02
1
0
Multiple subdirectory error with mod_rewrite
I am trying to use mod_rewrite manually in joomla, and I have the following Rule: RewriteRule ^test/(t1|t2|t3)-(.*).html$ /index.php?option=com_jumi&fileid=39&$1=$2 [L,NC] So that I want the url http://www.mysite.com/index.php?option=com_jumi&fileid=39&t1=foo be displayed like http://www.mysit...
.htaccess
mod-rewrite
joomla
null
null
null
open
Multiple subdirectory error with mod_rewrite === I am trying to use mod_rewrite manually in joomla, and I have the following Rule: RewriteRule ^test/(t1|t2|t3)-(.*).html$ /index.php?option=com_jumi&fileid=39&$1=$2 [L,NC] So that I want the url http://www.mysite.com/index.php?option=com_jumi&fileid=39&t...
0
6,716,197
07/16/2011 08:08:42
669,969
03/21/2011 18:43:18
1
0
Stylize <select> with css
How do I achieve the style like the image below? http://imageshack.us/photo/my-images/268/selectstyle.gif/
css
select
coding-style
null
null
07/17/2011 03:55:14
not a real question
Stylize <select> with css === How do I achieve the style like the image below? http://imageshack.us/photo/my-images/268/selectstyle.gif/
1
1,868,571
12/08/2009 17:34:41
226,962
12/08/2009 08:05:36
1
0
What is RVA and VA?
Plz explain about those things... :)
reverse
software-engineering
null
null
null
07/20/2012 01:52:19
not a real question
What is RVA and VA? === Plz explain about those things... :)
1
4,304,381
11/29/2010 13:51:44
173,718
09/15/2009 12:56:22
446
15
archiving the table : searching for the best way
there is a table which has 80.000 rows. Everyday I will clone this table to another log table giving a name like 20101129_TABLE , and every day the prefix will be changed according to date.. As you calculate, the data will be 2400 000 rows every month.. Advices please for saving space, and getting fast service ...
sql
sql-server-2008
logging
null
null
null
open
archiving the table : searching for the best way === there is a table which has 80.000 rows. Everyday I will clone this table to another log table giving a name like 20101129_TABLE , and every day the prefix will be changed according to date.. As you calculate, the data will be 2400 000 rows every month.. Advi...
0
4,044,737
10/28/2010 16:00:10
465,100
10/03/2010 10:21:52
6
0
Photo of «Introduction to automata...» by Hopcroft and Ullman '79 cover?
Where can I get the photo of “Introduction to automata theory, languages and computation” by Hopcroft and Ullman **'79** (first edition) cover in order to be able to read all the phrases placed on the cover? Obviously the ones that gave me Google.Images (from Wikipedia, Amazon and others) do not allow this.
automata
null
null
null
null
10/28/2010 16:04:13
off topic
Photo of «Introduction to automata...» by Hopcroft and Ullman '79 cover? === Where can I get the photo of “Introduction to automata theory, languages and computation” by Hopcroft and Ullman **'79** (first edition) cover in order to be able to read all the phrases placed on the cover? Obviously the ones that gave me Go...
2
2,524,986
03/26/2010 16:38:19
292,788
03/13/2010 03:23:39
91
10
Delete / Remove node from XPathNodeIterator, given an XPath
First of all, if someone has a different, perhaps shorter (or better), solution to the problem, it's welcome as well. I'm trying to "simply" remove (almost) duplicate elements in XSLT. There's some (metadata) nodes i don't want to include when comparing, and i couldn't figure out how do do that in XSLT so th...
xslt
xml
c#
null
null
null
open
Delete / Remove node from XPathNodeIterator, given an XPath === First of all, if someone has a different, perhaps shorter (or better), solution to the problem, it's welcome as well. I'm trying to "simply" remove (almost) duplicate elements in XSLT. There's some (metadata) nodes i don't want to include when ...
0
3,390,789
08/02/2010 18:45:17
366,252
06/14/2010 10:59:50
198
1
In php what is more efficient n-1 < x OR n <= x
What is more efficient if ($n-1 < $x) or if ($n <= $x) Anyone know?
php
null
null
null
null
null
open
In php what is more efficient n-1 < x OR n <= x === What is more efficient if ($n-1 < $x) or if ($n <= $x) Anyone know?
0
5,892,084
05/05/2011 02:45:52
296,559
03/18/2010 13:49:00
71
4
How to remove evolution from debian but keep gnome
Well it's in the title I did try this: aptitude unmarkauto gnome-desktop-environment gdm-themes gnome-themes-extras gnome-games libpam-gnome-keyring gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg rhythmbox synaptic system-config-printer totem-mozilla epiphany-extensions serpentine gnome-app-install arj avahi-dae...
remove
debian
gnome
evolution
debian-based
05/05/2011 05:53:50
off topic
How to remove evolution from debian but keep gnome === Well it's in the title I did try this: aptitude unmarkauto gnome-desktop-environment gdm-themes gnome-themes-extras gnome-games libpam-gnome-keyring gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg rhythmbox synaptic system-config-printer totem-mozilla epipha...
2
9,530,174
03/02/2012 08:28:55
1,244,619
03/02/2012 08:21:32
1
0
Indent in dreamweaver cs4 like Notepad++ (code indentation preview)
How do i get to see the code indentation preview in Dreamweaver cs4, like the one shown in notepad++? For example i should know where tags are started and closed, so it will be easy to figure it out, and by a click - and + line in notepad++ Thanks.
dreamweaver
indentation
null
null
null
null
open
Indent in dreamweaver cs4 like Notepad++ (code indentation preview) === How do i get to see the code indentation preview in Dreamweaver cs4, like the one shown in notepad++? For example i should know where tags are started and closed, so it will be easy to figure it out, and by a click - and + line in notepad++ Tha...
0
5,791,483
04/26/2011 14:01:00
465,558
10/04/2010 05:58:18
620
16
How to Parse DataContract object to xml ?
I define some class as 'DataContract' I need to save this object in my database ( as xml ) before i sending it to the client. When the .net framework send this object to the client - the object parse to xml - so i want to hold this xml and add it to my Database How can i do it ? How can i get this xml witho...
wcf
null
null
null
null
null
open
How to Parse DataContract object to xml ? === I define some class as 'DataContract' I need to save this object in my database ( as xml ) before i sending it to the client. When the .net framework send this object to the client - the object parse to xml - so i want to hold this xml and add it to my Database H...
0
5,814,286
04/28/2011 06:01:24
675,640
03/24/2011 20:20:14
88
0
Updating a list<Class>
I am trying to update a list<class>, but I have no idea how to pass the values back to the <class>. IE I do not know how to call the list at location 2 changed the class values 1,2,3,4,5 to 6,7,8,9,0 the class is a form and the method I want to use will essentially be: public FormStudent(int a, string b, i...
c#
visual-studio
class
list
listview
null
open
Updating a list<Class> === I am trying to update a list<class>, but I have no idea how to pass the values back to the <class>. IE I do not know how to call the list at location 2 changed the class values 1,2,3,4,5 to 6,7,8,9,0 the class is a form and the method I want to use will essentially be: public Fo...
0
11,132,932
06/21/2012 06:48:10
537,819
12/10/2010 12:08:37
79
1
Appending image in string in ios
I want to draw string in ios like String [image] String [image] String [image] String [image] is there anyway to do the same.Please help.
iphone
objective-c
ios
ios5
null
06/21/2012 08:20:48
not a real question
Appending image in string in ios === I want to draw string in ios like String [image] String [image] String [image] String [image] is there anyway to do the same.Please help.
1
6,639,118
07/10/2011 04:14:35
837,305
07/10/2011 04:14:35
1
0
Issues with @font-face
I'm having trouble using @font-face with fonts located on my machine. My files aren't on a server yet. I'm trying to preview them offline, but they aren't loading. Here is the code from the css file: @font-face{ font-family:"chunk"; src: url('file:///C:/...Fonts/Chunkfive.otf');} div{ font-family:"chunk...
css
css3
null
null
null
null
open
Issues with @font-face === I'm having trouble using @font-face with fonts located on my machine. My files aren't on a server yet. I'm trying to preview them offline, but they aren't loading. Here is the code from the css file: @font-face{ font-family:"chunk"; src: url('file:///C:/...Fonts/Chunkfive.otf');}...
0
6,921,047
08/03/2011 02:35:08
331,896
05/03/2010 23:46:11
305
3
Configure ColdFusion site on Windows Server 2008 R2
I have been asked to migrate a ColdFusion site that is running on Windows Server 2003 to a new server, which is running Windows Server 2008 R2, 64bit. I am a .Net developer and know my way around Windows and IIS fairly well. Though, I have never done anything with ColdFusion. I ran this command: <cfdump var="#SERVER...
windows
coldfusion
null
null
null
08/05/2011 14:08:06
off topic
Configure ColdFusion site on Windows Server 2008 R2 === I have been asked to migrate a ColdFusion site that is running on Windows Server 2003 to a new server, which is running Windows Server 2008 R2, 64bit. I am a .Net developer and know my way around Windows and IIS fairly well. Though, I have never done anything w...
2
3,546,375
08/23/2010 09:46:10
422,562
08/17/2010 07:40:49
6
0
I need a Matlab Code for 16QAM and 64QAM with 3x3 and 4x4 for Likelihood
Heia... I Need a Matlab code for 16QAM and 64QAM with 3x3 and 4x4 For Likelihood thanks alot
matlab
signal-processing
null
null
null
08/25/2010 11:59:54
not a real question
I need a Matlab Code for 16QAM and 64QAM with 3x3 and 4x4 for Likelihood === Heia... I Need a Matlab code for 16QAM and 64QAM with 3x3 and 4x4 For Likelihood thanks alot
1
423,921
01/08/2009 11:14:18
15,233
09/17/2008 07:28:10
23
4
XmlDocument and slow schema processing
I have an xml template document that I need to load into an XmlDocument. eg myXMLDocument.Load(myXMLFile); However this is very slow as it loads in the dtd. I have tried both `"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"` and a local copy of the dtd. Both take more or less the same time. If I turn of loa...
c#
.net
xml
xmldocument
dtd
null
open
XmlDocument and slow schema processing === I have an xml template document that I need to load into an XmlDocument. eg myXMLDocument.Load(myXMLFile); However this is very slow as it loads in the dtd. I have tried both `"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"` and a local copy of the dtd. Both take m...
0
11,106,313
06/19/2012 17:36:50
1,361,972
04/27/2012 20:41:42
1
1
Sort in Forward_lists using BigO notation?
Basically, anyone knows, what should be the Big-O notation (needed for the assignment), for the sort function, of the new C++11 forward_list class? <br /> Just a small, working example of it, reading from a file: std::forward_list<string> words3; ifstream songs; songs.open ("songs.txt"); string l...
algorithm
homework
c++11
big-o
analysis
null
open
Sort in Forward_lists using BigO notation? === Basically, anyone knows, what should be the Big-O notation (needed for the assignment), for the sort function, of the new C++11 forward_list class? <br /> Just a small, working example of it, reading from a file: std::forward_list<string> words3; ifstream son...
0
9,793,674
03/20/2012 19:36:36
479,805
10/18/2010 21:18:34
767
17
full info for GPG/PGP keys
I have a GPG key for which I want all the different algorithms and sizes involved. i.e i want to know 1) the public key algo and key size, 2 the cipher algo and 3) the digest algorithm. is there a command to gpg to list all this info.
encryption
gpg
pgp
null
null
04/03/2012 11:11:15
off topic
full info for GPG/PGP keys === I have a GPG key for which I want all the different algorithms and sizes involved. i.e i want to know 1) the public key algo and key size, 2 the cipher algo and 3) the digest algorithm. is there a command to gpg to list all this info.
2
740,180
04/11/2009 14:28:14
7,391
09/15/2008 13:39:40
1
5
Usage of ORMs like NHibernate when there are many associations - performance concerns
I have created an application (a web-based application) which now has a large number of associations. Simply put, an Account: - has many Users - has Settings - has many Projects Similarly a Project: - has many Items A User: - has many Tasks And so on, with loads more associations. Nothing parti...
nhibernate
orm
web-applications
performance
null
null
open
Usage of ORMs like NHibernate when there are many associations - performance concerns === I have created an application (a web-based application) which now has a large number of associations. Simply put, an Account: - has many Users - has Settings - has many Projects Similarly a Project: - has many Item...
0
11,488,242
07/14/2012 23:41:36
1,526,234
07/14/2012 23:16:01
1
0
Routing issue with shopping cart
I am creating a shopping cart via Rails 3.0.10 & having an ongoing issues with it, so do hope someone here can help me getting it resolved please. After getting NoMethodError in Carts#show fixed-shopping cart working perfectly again, pushing & pulling via GitHub, Routing Error-No route matches is coming up! D...
ruby-on-rails
ruby-on-rails-3
null
null
null
07/16/2012 02:00:30
not a real question
Routing issue with shopping cart === I am creating a shopping cart via Rails 3.0.10 & having an ongoing issues with it, so do hope someone here can help me getting it resolved please. After getting NoMethodError in Carts#show fixed-shopping cart working perfectly again, pushing & pulling via GitHub, Routing Error-...
1
3,959,447
10/18/2010 13:07:36
1,392,690
01/26/2010 22:58:37
188
3
Refactoring sql into regexp - Microsoft Access
I'm not a pro with regexp and especially in this specific context. Any idea how to use a function to do a RegExp Replace and then calling it from the query in Microsoft Access? By the way, this query oddly enough doesn't work fully and maybe it's why this could use regexp. The idea is to match the three fields...
regex
query
ms-access
null
null
null
open
Refactoring sql into regexp - Microsoft Access === I'm not a pro with regexp and especially in this specific context. Any idea how to use a function to do a RegExp Replace and then calling it from the query in Microsoft Access? By the way, this query oddly enough doesn't work fully and maybe it's why this could ...
0
5,632,350
04/12/2011 08:25:15
510,036
11/16/2010 20:49:51
262
22
AS3: Detecting when an object gets added to a movieclip
Alright, so I'm trying to figure out when a child is added to a movieclip "x", and handling/detouring this operation from withing this "x" movieclip. I tried overriding addChild and addChildAt at with no prevail. The movieclips that are placed on the stage via flash still don't trigger addChild or addChildAt. Howeve...
actionscript-3
events
override
detect
addchild
null
open
AS3: Detecting when an object gets added to a movieclip === Alright, so I'm trying to figure out when a child is added to a movieclip "x", and handling/detouring this operation from withing this "x" movieclip. I tried overriding addChild and addChildAt at with no prevail. The movieclips that are placed on the stage...
0
9,645,807
03/10/2012 10:48:49
889,312
08/11/2011 06:02:51
339
7
Youtube Web Integrator on Websites
I recently used **Picasa Webalbum Integrator(PWI)** on my website to fetch images from my picasa account and successfully done it. However i like to know is there **similar approach(API'/toolkit**) available to fetch **Youtube videos** on website. By fetching i don't mean **embedding videos on the page**. I like to use...
javascript
website
youtube
youtube-javascript-api
null
null
open
Youtube Web Integrator on Websites === I recently used **Picasa Webalbum Integrator(PWI)** on my website to fetch images from my picasa account and successfully done it. However i like to know is there **similar approach(API'/toolkit**) available to fetch **Youtube videos** on website. By fetching i don't mean **embed...
0
9,228,637
02/10/2012 13:38:57
635,620
02/26/2011 15:18:21
3
0
Issue in adding dynamic cell in table view?
Please have a look on my code which i am using to add dynamic cells in my table view add run time. At did select of my table view i have called this method. - (void) allServersFound { // called from delegate when bonjourservices has listings of machines: NSArray *newPosts = [[NSAr...
iphone
objective-c
ios
ipad
null
null
open
Issue in adding dynamic cell in table view? === Please have a look on my code which i am using to add dynamic cells in my table view add run time. At did select of my table view i have called this method. - (void) allServersFound { // called from delegate when bonjourservices has listings...
0
9,532,297
03/02/2012 11:08:14
1,244,901
03/02/2012 10:58:31
1
0
corner cut menu bar in using html and css?
I want to design a menu bar with several links using <ul>s and <li>s. In this menu bar, I want "home" and "contact us" on the left and right side corner cut. I would rather not do this in HTML and CSS.
html
css
null
null
null
03/02/2012 11:36:40
not a real question
corner cut menu bar in using html and css? === I want to design a menu bar with several links using <ul>s and <li>s. In this menu bar, I want "home" and "contact us" on the left and right side corner cut. I would rather not do this in HTML and CSS.
1
2,474,294
03/19/2010 00:32:18
99,033
04/30/2009 23:05:56
201
8
Oracle database links between 10g and 11g
Does anyone have experience with database links between 10g and 11g? Is this a supported setup/operation? Is it possible? Are there any problems? Caveats?
oracle
database
oracle10g
oracle11g
null
null
open
Oracle database links between 10g and 11g === Does anyone have experience with database links between 10g and 11g? Is this a supported setup/operation? Is it possible? Are there any problems? Caveats?
0
9,864,602
03/25/2012 22:18:26
1,015,647
10/27/2011 00:53:18
149
18
input text name array
I have a form that uses jquery to generate rows of input fields these text inputs need to be tied into and array 1,2,3... with the sub array designating the value for a,b,c,d.. <td><input type="text" name="1[a]"/></td> <td><input type="text" name="1[b]"/></td> <td><input type="...
php
html
arrays
forms
input
03/26/2012 18:26:32
too localized
input text name array === I have a form that uses jquery to generate rows of input fields these text inputs need to be tied into and array 1,2,3... with the sub array designating the value for a,b,c,d.. <td><input type="text" name="1[a]"/></td> <td><input type="text" name="1[b]"/></td> ...
3
4,502,465
12/21/2010 18:11:09
548,701
12/19/2010 10:07:19
40
0
JSF myBean.myGetter called before form submission
I have the following page: <h:form id="gameSelectionForm"> <h:selectOneMenu id="gameSelection"> <f:selectItems value="#{gameBean.gameIds}" /> </h:selectOneMenu> <h:commandButton id="gameSelector" value="Play" action="#{gameBean.changeGame}" /> </h:form> <h:pan...
jsf
page-refresh
null
null
null
null
open
JSF myBean.myGetter called before form submission === I have the following page: <h:form id="gameSelectionForm"> <h:selectOneMenu id="gameSelection"> <f:selectItems value="#{gameBean.gameIds}" /> </h:selectOneMenu> <h:commandButton id="gameSelector" value="Play" action="#...
0
10,347,626
04/27/2012 08:49:50
970,706
09/29/2011 08:32:05
150
0
Loading XML file once in javascript closure
I am currently trying to create a javascript closure that will create a drop down list using values from the XML file I have. I have got it working for most of the code, and was loading the XML file each time I had to use it. I want to make the code more efficient though and only load the XML file once. I've tried to d...
javascript
xml
closures
null
null
null
open
Loading XML file once in javascript closure === I am currently trying to create a javascript closure that will create a drop down list using values from the XML file I have. I have got it working for most of the code, and was loading the XML file each time I had to use it. I want to make the code more efficient though...
0
1,492,982
09/29/2009 14:40:35
30,587
10/23/2008 00:14:24
2,570
98
Compiling an application that uses WinUsb
I am in the process of writing an application to communicate with Usb devices using WinUsb.dll. This is a user-mode library that allows communication with a device through winusb.sys installed as its driver in the kernel. I am writing this application in C++ with Visual Studio 2008. The header WinUsb.h is found i...
winusb
wdf
c++
null
null
null
open
Compiling an application that uses WinUsb === I am in the process of writing an application to communicate with Usb devices using WinUsb.dll. This is a user-mode library that allows communication with a device through winusb.sys installed as its driver in the kernel. I am writing this application in C++ with Visual...
0
9,906,209
03/28/2012 11:06:30
390,123
07/13/2010 05:35:54
82
6
How to add functionality to elements in the child view in expandable list in android?
![enter image description here][1] I am developing an application for android tablet. i am trying to develop the following UI I have used custom expandable list view, having text views and buttons in xml file. By using SimpleExpandableListAdapter i have added this list to my main activity. Now i want to give a...
android
null
null
null
null
null
open
How to add functionality to elements in the child view in expandable list in android? === ![enter image description here][1] I am developing an application for android tablet. i am trying to develop the following UI I have used custom expandable list view, having text views and buttons in xml file. By using Si...
0
6,436,905
06/22/2011 08:20:46
326,840
06/06/2009 20:12:25
106
4
Automate setting of User Defined Attributes in IB 3.2
Is there a way to automate tasks in Interface Builder version 3.2? Specifically, I need to attache User Defined Attributes to quite a few views. - can it be done using AppleScript? - is the XIB format documented well enough to do this using some general purpose scripting language (say Ruby)?
cocoa
osx
interface-builder
null
null
null
open
Automate setting of User Defined Attributes in IB 3.2 === Is there a way to automate tasks in Interface Builder version 3.2? Specifically, I need to attache User Defined Attributes to quite a few views. - can it be done using AppleScript? - is the XIB format documented well enough to do this using some general pur...
0
7,301,751
09/04/2011 19:54:06
74,908
03/06/2009 22:39:16
433
2
Ruby on rails Layout page blinking on link clicks in Chrome
I have a site-wide header I'm currently using in my layouts/application.html.erb file and when I click on links to go from page to page within the website, the Chrome browser blinks looking like it is doing a full page refresh including the header. In Firefox the header never changes when I go from page to page within...
ruby-on-rails
ruby-on-rails-3
null
null
null
null
open
Ruby on rails Layout page blinking on link clicks in Chrome === I have a site-wide header I'm currently using in my layouts/application.html.erb file and when I click on links to go from page to page within the website, the Chrome browser blinks looking like it is doing a full page refresh including the header. In Fi...
0
8,856,534
01/13/2012 20:01:28
345,138
05/19/2010 14:00:32
58
3
How to Acces all Images and Videos stored on SD-Card in Blackberry?
There is a problem in getting all images and Videos stored on SD-Card in Blackberry, kindly help me that how can i access these. Thanks in Advance.
blackberry
null
null
null
null
01/18/2012 03:07:25
not a real question
How to Acces all Images and Videos stored on SD-Card in Blackberry? === There is a problem in getting all images and Videos stored on SD-Card in Blackberry, kindly help me that how can i access these. Thanks in Advance.
1
537,297
02/11/2009 15:22:02
15,255
09/17/2008 07:42:39
600
34
"Screen" effect in Java 2D graphics
This is a question that's been bugging me for some time now: In photoshop/GIMP, there is a "screen" layer composition mode. This mode has bright colours have a strong alpha, and dark colours a weak one. Black is entirely transparent, white entirely opaque. I would dearly love to be able to replicate this composit...
alpha
composite
java
graphics
screen
null
open
"Screen" effect in Java 2D graphics === This is a question that's been bugging me for some time now: In photoshop/GIMP, there is a "screen" layer composition mode. This mode has bright colours have a strong alpha, and dark colours a weak one. Black is entirely transparent, white entirely opaque. I would dearly l...
0
3,173,448
07/04/2010 01:51:44
188,788
10/13/2009 01:52:53
1,019
75
HTML5 canvas: find out if click co-ordinates are inside a given rectangle
May be some one has had similar experiences on this dilemma and can help me out here... Basically, I have a canvas element on which I draw several rectangles in a loop using context.fillRect (x, y, width, height) Now, I want some of the rectangles to be hotspots and respond to click events. I can find out...
javascript
events
canvas
null
null
null
open
HTML5 canvas: find out if click co-ordinates are inside a given rectangle === May be some one has had similar experiences on this dilemma and can help me out here... Basically, I have a canvas element on which I draw several rectangles in a loop using context.fillRect (x, y, width, height) Now, I want so...
0
7,436,820
09/15/2011 20:03:55
860,324
07/24/2011 15:06:39
52
2
Is Zepto just a subset of jQuery?
I was amazed that backbone.js can use either jQuery or Zepto as its "helper library". How did the Zepto people manage to have a syntax compatible with jQuery's? Is Zepto just a subset of jQuery?
jquery
zepto
null
null
null
09/15/2011 22:14:22
not constructive
Is Zepto just a subset of jQuery? === I was amazed that backbone.js can use either jQuery or Zepto as its "helper library". How did the Zepto people manage to have a syntax compatible with jQuery's? Is Zepto just a subset of jQuery?
4
3,816,445
09/28/2010 19:43:46
61,207
02/01/2009 14:45:27
1,134
52
Undefined reference to static member
I have a static member in my class. It's declared and defined: In my header: class Bla { ... static Bla* instance; ... }; In my implementation file: Bla::Bla* instance = 0; But ld doesn't seems to like it: release/bla.o:bla.cpp:(.text+0x19f7): undefined reference to `Bl...
c++
gcc
null
null
null
null
open
Undefined reference to static member === I have a static member in my class. It's declared and defined: In my header: class Bla { ... static Bla* instance; ... }; In my implementation file: Bla::Bla* instance = 0; But ld doesn't seems to like it: release/bla.o:bla.cpp:...
0
2,141,049
01/26/2010 17:04:19
1,406
08/15/2008 12:26:06
889
24
How to check if an JPA/hibernate database is up with second-level caching
I have a JSP/Spring application using Hibernate/JPA connected to a database. I have an external program that check if the web server is up every 5 minutes. The program call a specific URL to check if the web server is still running. The server returns "SUCCESS". Obviously if the server is now, nothing is returned. T...
jpa
database
hibernate
spring
c3p0
null
open
How to check if an JPA/hibernate database is up with second-level caching === I have a JSP/Spring application using Hibernate/JPA connected to a database. I have an external program that check if the web server is up every 5 minutes. The program call a specific URL to check if the web server is still running. The s...
0
2,697,852
04/23/2010 10:40:40
293,838
03/15/2010 09:15:16
18
0
Programming advice - Which Loops?
Theres no easy way to say this so ill just say it in the form of a story. Im looking for advice on which loops and where. Here goes: - out of 200-odd fields in the database, i need to run the following against each field. - extract allowed values using extract function - place allowed values into an array - lo...
php
loops
mysql
database
array
04/25/2010 10:04:51
not a real question
Programming advice - Which Loops? === Theres no easy way to say this so ill just say it in the form of a story. Im looking for advice on which loops and where. Here goes: - out of 200-odd fields in the database, i need to run the following against each field. - extract allowed values using extract function - p...
1
9,733,327
03/16/2012 07:14:00
1,124,494
12/31/2011 16:22:47
66
4
Is there any way to find out the majority color in an image file in java?
I want to find out the majority color in an image file and set it to background of a swing frame. What should I do?
java
image
swing
file
colors
null
open
Is there any way to find out the majority color in an image file in java? === I want to find out the majority color in an image file and set it to background of a swing frame. What should I do?
0
801,944
04/29/2009 11:34:35
361,526
03/30/2009 11:54:37
1
2
Mjpeg VLC and HTTP Streaming
I'm generating a MJpeg Stream and trying to stream it to VLC and play it there. The code: public void SendMultiPartData(String contentType, Func<byte[]> getData) { MemoryStream mem = null; response.StatusCode = 200; for ( byte[] buffer = getData(); buffe...
http
streaming
c#
mjpeg
vlc
null
open
Mjpeg VLC and HTTP Streaming === I'm generating a MJpeg Stream and trying to stream it to VLC and play it there. The code: public void SendMultiPartData(String contentType, Func<byte[]> getData) { MemoryStream mem = null; response.StatusCode = 200; for ...
0
2,650,780
04/16/2010 05:16:15
141,172
07/20/2009 04:36:50
11,294
535
VS2010 Extension like Smart Paster?
Alex Papadimoulis' [Smart Paster][1] is a great little tool that can paste text in programmer-friendly ways (e.g. as a StringBuilder, as a language-specific string literal, etc.). However, it doesn't seem to be available for VS2010. Anyone know of a similar extension or of plans to port Smart Paster? [1]: ht...
vs2010
extension
null
null
null
null
open
VS2010 Extension like Smart Paster? === Alex Papadimoulis' [Smart Paster][1] is a great little tool that can paste text in programmer-friendly ways (e.g. as a StringBuilder, as a language-specific string literal, etc.). However, it doesn't seem to be available for VS2010. Anyone know of a similar extension or of p...
0
2,688
08/05/2008 18:45:46
432
08/05/2008 17:18:46
21
4
What all do I need to escape when sending a (My)SQL query?
When you execute a SQL query, you have to clean your 'strings' or users can execute malicious SQL on your website. I usually just have a function escape_string(blah), which: - Replaces escapes (\) with double escapes (\\). - Replaces single quotes (') with an escaped single quote (\'). Is this adequate? Is...
mysql
security
null
null
null
null
open
What all do I need to escape when sending a (My)SQL query? === When you execute a SQL query, you have to clean your 'strings' or users can execute malicious SQL on your website. I usually just have a function escape_string(blah), which: - Replaces escapes (\) with double escapes (\\). - Replaces single quotes...
0
7,619,579
10/01/2011 10:10:39
718,315
04/21/2011 05:05:29
448
40
cakephp: find conditions
Array ( [0] => Array ( [DebateComment] => Array ( [id] => 126 [user_id] => 17 [debate_id] => 32 [debate_comment_title] => hiiiiiii [deba...
cakephp
cakephp-1.3
cakephp-1.2
null
null
10/03/2011 11:58:06
too localized
cakephp: find conditions === Array ( [0] => Array ( [DebateComment] => Array ( [id] => 126 [user_id] => 17 [debate_id] => 32 [debate_comment_title] => hiiii...
3
9,429,919
02/24/2012 11:23:40
1,230,619
02/24/2012 11:12:12
1
0
win32 very low level assembly - application startup issue
I am busy programming a win32 program in assembly with a form and buttons... The problem is windows modify my variables in ram. The place were a store my hInstance and hwnd variables. I have found a workaround, but it is not an elegant solution. I would like to know why windows modify my variables and also were can I f...
api
winapi
assembly
user32
null
null
open
win32 very low level assembly - application startup issue === I am busy programming a win32 program in assembly with a form and buttons... The problem is windows modify my variables in ram. The place were a store my hInstance and hwnd variables. I have found a workaround, but it is not an elegant solution. I would lik...
0
9,167,138
02/06/2012 20:56:18
1,193,041
02/06/2012 18:53:56
1
0
when i try to scan more than 1 string in c programming there is something wrong
i m a newbe in programing when i try to do a normal scanning of a string in c programming there is no problem but when i do alot of scanning of c that is when the problem starts PROBLEM: the problem starts when its in the second iteration of the for loop that skips the scanf and does not let me enter data. int...
c
scanf
null
null
null
02/07/2012 16:03:10
not a real question
when i try to scan more than 1 string in c programming there is something wrong === i m a newbe in programing when i try to do a normal scanning of a string in c programming there is no problem but when i do alot of scanning of c that is when the problem starts PROBLEM: the problem starts when its in the second itera...
1
1,904,369
12/14/2009 23:54:59
90,740
04/14/2009 16:27:22
6
0
What should I expect by taking a programming logic test for a potential employer?
I am currently looking for entry level .NET developer positions, and I was contacted by a company today that wants to schedule a "Programmer's Logic Test" that is mainly sequence logic and math but no coding. What is the best way to prepare for such a test, if there is a best way?
interview-questions
career-development
null
null
null
02/06/2012 01:06:46
off topic
What should I expect by taking a programming logic test for a potential employer? === I am currently looking for entry level .NET developer positions, and I was contacted by a company today that wants to schedule a "Programmer's Logic Test" that is mainly sequence logic and math but no coding. What is the best way to...
2
8,283,500
11/27/2011 03:45:29
206,446
11/08/2009 22:19:26
4,280
5
Declare methods dynamically in Javascript
I have a model and want to declare functions for all attributes on it. Let's say these are the attributes: [firstName, lastName] I want to be able to get them with: person.firstName() person.lastName() How do I define methods programmatically from an array of strings?
javascript
node.js
null
null
null
null
open
Declare methods dynamically in Javascript === I have a model and want to declare functions for all attributes on it. Let's say these are the attributes: [firstName, lastName] I want to be able to get them with: person.firstName() person.lastName() How do I define methods programmatically from an a...
0
11,683,021
07/27/2012 07:08:50
496,864
11/04/2010 06:40:40
987
20
Openssl C++ get expiry date
What is the function that I should use to get the x509 certificate expiry date? I will first check the validity of the certificate. If it has expired, I need to get the expiry date of the certificate.
c++
openssl
x509certificate
null
null
null
open
Openssl C++ get expiry date === What is the function that I should use to get the x509 certificate expiry date? I will first check the validity of the certificate. If it has expired, I need to get the expiry date of the certificate.
0
937,646
06/02/2009 02:07:46
8,280
09/15/2008 15:36:56
1,024
30
Can abstract thinking be taught?
I broke some of the cardinal rules for hiring and am now stuck with a fairly 'bad' hire. My biggest concern is that the person's abstract thinking is really weak. So, my question is do you guys think abstract thinking can be taught? And if so how? Or should I start preparing an exit strategy? I'm sure some of you...
abstraction
thinking
problem-solving
null
null
09/22/2011 17:20:27
off topic
Can abstract thinking be taught? === I broke some of the cardinal rules for hiring and am now stuck with a fairly 'bad' hire. My biggest concern is that the person's abstract thinking is really weak. So, my question is do you guys think abstract thinking can be taught? And if so how? Or should I start preparing an ...
2
8,147,483
11/16/2011 06:10:59
336,444
07/31/2009 14:58:45
217
14
Raphaël API and code review
I started playing with Raphaël and I'm wondering if somebody could do the code review of what I have so far and maybe give me some tips how to improve it. Basically what I'm trying to accomplish is the zoom-in/zoom-out effect on the element when mouseover event is being triggered on the element. The effect should pau...
javascript
raphael
null
null
null
12/01/2011 22:25:30
off topic
Raphaël API and code review === I started playing with Raphaël and I'm wondering if somebody could do the code review of what I have so far and maybe give me some tips how to improve it. Basically what I'm trying to accomplish is the zoom-in/zoom-out effect on the element when mouseover event is being triggered on t...
2
7,642,790
10/04/2011 02:44:55
447,979
09/15/2010 03:38:46
1,549
174
file is not read by completely
I have an file text with approximate 113687 lines, but my application read only 314 lines, can anyone say why? Any help is appreciated. My code: string file = @"a:\foo.txt"; StreamReader reader = File.OpenText(file); string line; int rows = 0; while ((line = reader.ReadLine()) != null) {...
c#
.net
file
null
null
10/05/2011 03:52:58
not a real question
file is not read by completely === I have an file text with approximate 113687 lines, but my application read only 314 lines, can anyone say why? Any help is appreciated. My code: string file = @"a:\foo.txt"; StreamReader reader = File.OpenText(file); string line; int rows = 0; while ((...
1
7,983,802
11/02/2011 16:25:55
877,506
08/03/2011 21:37:17
13
0
More than one tab bar in an app?
I have developed an app that has work successfully for the last 4 months using iOS 4.3 and under. Since iOS 5 however the tightening of view hierarchy has left my app dead in the water. The app starts with a tab bar as its main view with 5 tabs. When the user selects a row on a tableview on the first tab it pushes onto...
uitabbarcontroller
null
null
null
null
null
open
More than one tab bar in an app? === I have developed an app that has work successfully for the last 4 months using iOS 4.3 and under. Since iOS 5 however the tightening of view hierarchy has left my app dead in the water. The app starts with a tab bar as its main view with 5 tabs. When the user selects a row on a tab...
0
6,909,861
08/02/2011 09:26:00
830,918
07/06/2011 05:21:28
20
2
How to replace a webfile content with a file content?
I have a file called **filecontent.txt** which includes some php code. And i have another file called **index.php**, I want to **replace** the **index.php** content with the **filecontent.txt** content. Is there any solution for it?? Please help me on this.
php
null
null
null
null
null
open
How to replace a webfile content with a file content? === I have a file called **filecontent.txt** which includes some php code. And i have another file called **index.php**, I want to **replace** the **index.php** content with the **filecontent.txt** content. Is there any solution for it?? P...
0
11,473,094
07/13/2012 15:01:50
914,373
08/26/2011 15:13:05
358
9
SSIS transfer SQL server objects task -> Foreign key constraint error
I try to copy a database from 1 server to the other to build a staging environment. I do this with SSID. First I delete the existing database on my staging server, create a new and empty one and then I run the script. I copy everything. Most of my databases copy correctly except for 1 which gives me a Foreign Key const...
sql-server-2008
ssis
null
null
null
07/16/2012 02:31:52
off topic
SSIS transfer SQL server objects task -> Foreign key constraint error === I try to copy a database from 1 server to the other to build a staging environment. I do this with SSID. First I delete the existing database on my staging server, create a new and empty one and then I run the script. I copy everything. Most of ...
2
8,097,908
11/11/2011 17:46:23
1,010,047
10/23/2011 23:52:19
42
0
Frame to Timecode Conversion HTML5
I'm looking to convert a frame number (for a given sample rate) into time in HTML5. eg: sample_rate = 24fps frame 226 => ? time Please advise.
java
video
null
null
null
null
open
Frame to Timecode Conversion HTML5 === I'm looking to convert a frame number (for a given sample rate) into time in HTML5. eg: sample_rate = 24fps frame 226 => ? time Please advise.
0
5,837,731
04/29/2011 21:47:35
382,906
07/04/2010 01:40:57
936
47
Putting comma between each word in NSString
I have an NSString that is like @"nice car" and would like to create an NSString that is @"nice,car". Is there a way to do this?
objective-c
nsstring
replace
null
null
null
open
Putting comma between each word in NSString === I have an NSString that is like @"nice car" and would like to create an NSString that is @"nice,car". Is there a way to do this?
0
8,977,628
01/23/2012 19:44:16
387,852
07/09/2010 15:03:07
2,071
70
Is Java 7 safe yet?
I remember when Java 7 was initially released, there were many suggestions [not to use it for anything][1] as there were some bugs in compiler optimizations. This was apparently [not merely hypothetical][2]. I haven't followed the situation closely since then; have these issues been worked out and it is generally con...
java
bugs
java-7
hotspot
null
01/24/2012 12:15:09
not constructive
Is Java 7 safe yet? === I remember when Java 7 was initially released, there were many suggestions [not to use it for anything][1] as there were some bugs in compiler optimizations. This was apparently [not merely hypothetical][2]. I haven't followed the situation closely since then; have these issues been worked ou...
4
1,644,737
10/29/2009 15:57:30
56,672
01/19/2009 13:04:20
2,324
165
Un obfuscate URL using mod rewrite.
I work for a company that used to have a polocy of obfuscating URLs for articles which you needed to register to use. So they would have something like /story.php?story_id=Z_ZXYZ which there was some code which mapped letters to numbers to work out the true story id so Z = 0 Y = 1 X = 2 e...
mod-rewrite
obfuscation
null
null
null
null
open
Un obfuscate URL using mod rewrite. === I work for a company that used to have a polocy of obfuscating URLs for articles which you needed to register to use. So they would have something like /story.php?story_id=Z_ZXYZ which there was some code which mapped letters to numbers to work out the true story id so ...
0
10,577,826
05/14/2012 05:17:37
1,033,503
11/07/2011 09:48:11
621
23
Improving OOP skills? Which SmallTalk?
I am going to start learning `SmallTalk` for improving my object oriented skills. Which SmallTalk implementation would best serve my purpose. If possible where could I find material to learn recommended implementation. P.S 1: No please don't recommend skipping the idea of learning Smalltalk and going for C# or Java....
ruby
oop
self-improvement
smalltalk
null
05/14/2012 16:25:21
not constructive
Improving OOP skills? Which SmallTalk? === I am going to start learning `SmallTalk` for improving my object oriented skills. Which SmallTalk implementation would best serve my purpose. If possible where could I find material to learn recommended implementation. P.S 1: No please don't recommend skipping the idea of ...
4
8,554,757
12/18/2011 20:58:06
1,104,561
12/18/2011 14:25:12
1
0
When a user Like my page embeded in my site some functions should call
I have a simple site, I want to code that when ever a user on my site Like my Page which is embeded in it another button should appear below it saying "Proceed to Next Step" Hope so you got my idea.
php
javascript
mysql
facebook
like
null
open
When a user Like my page embeded in my site some functions should call === I have a simple site, I want to code that when ever a user on my site Like my Page which is embeded in it another button should appear below it saying "Proceed to Next Step" Hope so you got my idea.
0
3,135,584
06/28/2010 19:41:17
6,244
09/13/2008 07:26:29
1,949
226
Good javascript event calendar using YUI
Has anyone come across an Events Calendar (eg shows events on a calender format rather than allowing user to choose date) that uses YUI as its base. I have found some based on jquery, but I am trying to standardise my stuff to YUI so wondering if anyone has any there, I cant seem to find one on YUI pages. Otherwise...
javascript
jquery
yui
null
null
02/07/2012 15:07:10
too localized
Good javascript event calendar using YUI === Has anyone come across an Events Calendar (eg shows events on a calender format rather than allowing user to choose date) that uses YUI as its base. I have found some based on jquery, but I am trying to standardise my stuff to YUI so wondering if anyone has any there, I ca...
3
9,120,402
02/02/2012 21:38:30
1,186,138
02/02/2012 21:01:37
1
0
Hibernate - mapping external table
I have 2 oracle tables. One of them is an oracle external table and the other a standard oracle table with a primary key. I want to be able to select columns from both tables using a LEFT OUTER JOIN. I am just not sure how to setup the hql mapping for the external table since it doesn't have a primary key. External ...
hql
null
null
null
null
null
open
Hibernate - mapping external table === I have 2 oracle tables. One of them is an oracle external table and the other a standard oracle table with a primary key. I want to be able to select columns from both tables using a LEFT OUTER JOIN. I am just not sure how to setup the hql mapping for the external table since it ...
0
1,409,003
09/11/2009 04:41:17
93,962
04/21/2009 18:43:17
358
7
mac and iphone development books 2009
What the best books available right now on Mac and iPhone development ? Thanks Michael
osx
iphone
null
null
null
09/24/2011 14:17:53
not constructive
mac and iphone development books 2009 === What the best books available right now on Mac and iPhone development ? Thanks Michael
4
7,464,866
09/18/2011 22:25:40
775,355
05/29/2011 18:06:46
110
1
Server Connection Not Working
I wrote my own server in Java and I'm kind of a noob. The client program connects to my IP Address at port 5000 over a TCP connection. When I run the server and the client on the same machine, it connects and the server is saying the incoming IP Adress is 127.0.0.1 - localhost. When I run the client on a seperate machi...
java
networking
tcp
firewall
null
09/18/2011 23:21:42
not a real question
Server Connection Not Working === I wrote my own server in Java and I'm kind of a noob. The client program connects to my IP Address at port 5000 over a TCP connection. When I run the server and the client on the same machine, it connects and the server is saying the incoming IP Adress is 127.0.0.1 - localhost. When I...
1
7,416,732
09/14/2011 13:01:31
944,659
09/14/2011 12:51:26
1
0
Online Chess by VB.net
as the topic header shows my question is about Coding an online chess by VB.net. I coded the chess game with all rules , now I designed a login form for it, but I don't know how to connect to a Database and send query , to check the User and pass. I searched about connecting to a DB and I found something. but i didn'...
vb.net-2010
null
null
null
null
09/14/2011 14:41:16
not a real question
Online Chess by VB.net === as the topic header shows my question is about Coding an online chess by VB.net. I coded the chess game with all rules , now I designed a login form for it, but I don't know how to connect to a Database and send query , to check the User and pass. I searched about connecting to a DB and I ...
1
8,837,294
01/12/2012 15:09:28
1,086,037
12/07/2011 16:10:11
4
0
run unix script as scheduled job
I want my unix script to run as a scheduled job such that the script is invoked once every 15 minutes. Is there any way to achieve this other than running the script as a cron job?
unix
null
null
null
null
01/12/2012 21:28:39
off topic
run unix script as scheduled job === I want my unix script to run as a scheduled job such that the script is invoked once every 15 minutes. Is there any way to achieve this other than running the script as a cron job?
2
1,867,861
12/08/2009 15:53:35
49,887
12/29/2008 16:36:59
548
8
Python dictionary, keep keys/values in same order as declared
new to Python and had a question about dictionaries. I have a dictionary that I declared in a particular order and want to keep it in that order all the time. The keys/values can't really be kept in order based on their value, I just want it in the order that I declared it. So if I have the dictionary: d = {'...
python
dictionary
order
null
null
null
open
Python dictionary, keep keys/values in same order as declared === new to Python and had a question about dictionaries. I have a dictionary that I declared in a particular order and want to keep it in that order all the time. The keys/values can't really be kept in order based on their value, I just want it in the orde...
0