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
6,523,033
06/29/2011 15:17:10
449,837
09/16/2010 17:53:37
150
2
Does DotNetOpenAuth support associting multiple Open IDs with the same user?
When using DotNetOpenAuth, is there support for associating multiple Open IDs with the same user? If so, where can I find more information on this?
openid
dotnetopenauth
null
null
null
null
open
Does DotNetOpenAuth support associting multiple Open IDs with the same user? === When using DotNetOpenAuth, is there support for associating multiple Open IDs with the same user? If so, where can I find more information on this?
0
7,839,331
10/20/2011 16:47:41
871,079
07/30/2011 21:47:36
177
3
php html design alignment
I used fireworks with netbeans to make php website. First i sliced my design with fireworks and exported into netbeans. Now on netbeans it created css and html files. The problem is, my design is 960px wide and it should come center of the webbrowser and there should be background on both sides. But now it is showi...
php
html
css
null
null
null
open
php html design alignment === I used fireworks with netbeans to make php website. First i sliced my design with fireworks and exported into netbeans. Now on netbeans it created css and html files. The problem is, my design is 960px wide and it should come center of the webbrowser and there should be background on ...
0
7,451,690
09/17/2011 00:43:59
398,696
07/22/2010 04:05:24
27
0
Check if all children objects belong to same parent?
Rails 3.1, Ruby 1.8.7 I have `Group`, which `:has_many => :items` I have `Item`, which `:belongs_to => :group` Then, I sometimes run a search which returns many items - which may or may not all belong to the same group. Is there a way to check in the view if all items in the returned array belong to the sam...
ruby-on-rails
null
null
null
null
null
open
Check if all children objects belong to same parent? === Rails 3.1, Ruby 1.8.7 I have `Group`, which `:has_many => :items` I have `Item`, which `:belongs_to => :group` Then, I sometimes run a search which returns many items - which may or may not all belong to the same group. Is there a way to check in the...
0
11,519,353
07/17/2012 09:10:31
1,229,834
02/24/2012 03:06:27
15
0
Suddenly found bugs when using git
When I switch my git to a branch doing a change, I suddenly found a bug that I need to fix. What should I do?<br/> Do I need to record the bug in a excel or piece of paper then fix it in another branch?<br/> If that is the case, I think git is stupid.
git
null
null
null
null
07/18/2012 10:01:37
not a real question
Suddenly found bugs when using git === When I switch my git to a branch doing a change, I suddenly found a bug that I need to fix. What should I do?<br/> Do I need to record the bug in a excel or piece of paper then fix it in another branch?<br/> If that is the case, I think git is stupid.
1
8,869,413
01/15/2012 11:53:21
282,601
02/27/2010 08:33:15
6,248
516
PHP exceptions: where to put dynamic data?
I'm in the process of rewriting the error handling of PEAR's [Text_LanguageDetect][1] to exceptions and don't really know what to do with dynamic data in exceptions: throw new Text_LanguageDetect_Exception( 'Language database does not exist.', Text_LanguageDetect_Exception::DB_NOT_FOUND );...
php
exception
null
null
null
01/16/2012 02:55:55
not constructive
PHP exceptions: where to put dynamic data? === I'm in the process of rewriting the error handling of PEAR's [Text_LanguageDetect][1] to exceptions and don't really know what to do with dynamic data in exceptions: throw new Text_LanguageDetect_Exception( 'Language database does not exist.', Tex...
4
9,895,394
03/27/2012 18:28:59
286,289
03/04/2010 13:38:58
1,249
4
How to item to the beginning of a ObservableCollection?
How can I do that? I need a list (of type ObservableCollection) where the latest item is first
c#
null
null
null
null
null
open
How to item to the beginning of a ObservableCollection? === How can I do that? I need a list (of type ObservableCollection) where the latest item is first
0
4,235,943
11/21/2010 01:24:05
514,103
11/16/2010 19:20:39
44
0
Will PHP die without Zend company?
Everone know that Zend rewrite the PHP engine but let's imagine that Zend comapny stopped their business for any reason, in this case will PHP die? And if not then who will care of PHP engine and other stuff related?
php
null
null
null
null
11/21/2010 01:27:30
off topic
Will PHP die without Zend company? === Everone know that Zend rewrite the PHP engine but let's imagine that Zend comapny stopped their business for any reason, in this case will PHP die? And if not then who will care of PHP engine and other stuff related?
2
6,205,506
06/01/2011 17:48:56
341,121
05/14/2010 09:58:42
44
2
Is there a GPS app for Android that doesn't cease logging when the phone sleeps?
People seem to be struggling to get over the CPU and therefore the GPS service getting stopped when their device goes into sleep mode. I have experimented with a few different apps and had a browse around Stackoverflow and other sites looking for clues but my knowledge of both Android and Java is somewhat prohibitiv...
android
gps
null
null
null
06/01/2011 18:46:51
off topic
Is there a GPS app for Android that doesn't cease logging when the phone sleeps? === People seem to be struggling to get over the CPU and therefore the GPS service getting stopped when their device goes into sleep mode. I have experimented with a few different apps and had a browse around Stackoverflow and other si...
2
7,686,987
10/07/2011 12:06:07
983,921
10/07/2011 11:50:25
1
0
Trying to push results of hash to an array - Ruby on rails
I'm just beginning to (hopefully!) learn programming / ruby on rails and trying to push the results of a hash to an array using: ApplicationController: def css_class css = Array.new product = {@product.oil => ' oil', @product.pressure_meters => ' pressure_meters', @product.commercial => 'commercial'...
ruby-on-rails
ruby
arrays
hashes
null
null
open
Trying to push results of hash to an array - Ruby on rails === I'm just beginning to (hopefully!) learn programming / ruby on rails and trying to push the results of a hash to an array using: ApplicationController: def css_class css = Array.new product = {@product.oil => ' oil', @product.pressure_m...
0
3,066,732
06/18/2010 01:46:34
229,484
12/11/2009 08:57:50
18
3
PHP- Curl Download Bandwidth Limiting
hey guys, i have been trying to limit the bandwidth with php can you please help here, i cant get the download rate to be limited with php thanks a million! <pre> function total_filesize($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLINFO_SPEED_DOWNLOAD,12); //IT...
php
curl
download
null
null
null
open
PHP- Curl Download Bandwidth Limiting === hey guys, i have been trying to limit the bandwidth with php can you please help here, i cant get the download rate to be limited with php thanks a million! <pre> function total_filesize($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url"); curl_s...
0
3,286,161
07/20/2010 00:34:01
9,169
09/15/2008 17:56:35
123
8
Why isn't my Registry Launch Condition working in my Windows Installer file?
I'm trying to check for SharePoint 2010 being installed before permitting the installer to continue. In order for this to happen, I added the following "Search Target Machine" property: Name = "Search for MOSS2010" Property = SHAREPOINT2010INSTALLED RegKey = SOFTWARE\Microsoft\Shared Tools\Web Server Extension...
installer
installation
msi
windows-installer
install
null
open
Why isn't my Registry Launch Condition working in my Windows Installer file? === I'm trying to check for SharePoint 2010 being installed before permitting the installer to continue. In order for this to happen, I added the following "Search Target Machine" property: Name = "Search for MOSS2010" Property = SHAREP...
0
2,951,638
06/01/2010 16:47:00
327,602
04/28/2010 07:55:39
1
2
Does binarywriter.flush() also flush the underlying filestream object?
I have got a code snippet as follows: Dim fstream = new filestream(some file here) dim bwriter = new binarywriter(fstream) while not end of file read from source file bwriter.write() bwriter.flush() end while The question I have is the following. When I call bwriter.f...
c#
.net
vb.net
filestream
binarywriter
null
open
Does binarywriter.flush() also flush the underlying filestream object? === I have got a code snippet as follows: Dim fstream = new filestream(some file here) dim bwriter = new binarywriter(fstream) while not end of file read from source file bwriter.write() bwriter.flush() ...
0
11,417,161
07/10/2012 15:52:15
722,764
04/24/2011 16:54:43
36
0
Ideas on how to create an iOS pull down menu with tab
I am attempting to create a menu with a tab that the user could pull down to display the menu. In some cases the menu would open automagically if there is data that is urgent. In other cases the menu would be closed with just the tab visible where the user could touch/pull the tab to display the menu. I'm not clear...
objective-c
ios
ios5
apple
null
07/11/2012 16:44:15
not a real question
Ideas on how to create an iOS pull down menu with tab === I am attempting to create a menu with a tab that the user could pull down to display the menu. In some cases the menu would open automagically if there is data that is urgent. In other cases the menu would be closed with just the tab visible where the user cou...
1
5,520,349
04/02/2011 00:54:09
395,343
07/18/2010 21:13:03
31
1
How safe is jQuery?
I have a requirement to send the contents of a form to my webservice. The form is the order submit on an existing ecommerce site. So I can do that easily through jQuery, attaching to the submit button and submitting an ajax call to my webservice. But, is there any way that this could fail, and prevent the normal sub...
jquery
null
null
null
null
04/02/2011 01:18:16
not a real question
How safe is jQuery? === I have a requirement to send the contents of a form to my webservice. The form is the order submit on an existing ecommerce site. So I can do that easily through jQuery, attaching to the submit button and submitting an ajax call to my webservice. But, is there any way that this could fail, a...
1
6,812,862
07/25/2011 07:22:13
347,727
05/22/2010 09:01:49
293
6
Slim PHP in sub directory not working...
I have the slim directory unpacked in http://example.com/api/ and I have the index.php file looking as such: <?php require 'Slim/Slim.php'; Slim::init(); Slim::get('/hello/:name', function ($name) { echo "Hello $name"; }); Sli...
php
http
class
rest
slim
null
open
Slim PHP in sub directory not working... === I have the slim directory unpacked in http://example.com/api/ and I have the index.php file looking as such: <?php require 'Slim/Slim.php'; Slim::init(); Slim::get('/hello/:name', function ($name) { echo "H...
0
3,780,974
09/23/2010 17:27:07
270,190
02/10/2010 10:31:34
343
65
Any software like blend for HTML5 canvas animation?
Is there any software available like blend, for working with HTML5. Especially, to do animation related stuffs.
html5
html5-animation
null
null
null
05/30/2012 21:20:10
off topic
Any software like blend for HTML5 canvas animation? === Is there any software available like blend, for working with HTML5. Especially, to do animation related stuffs.
2
11,554,074
07/19/2012 04:44:40
1,296,497
03/27/2012 20:01:17
21
7
war file generation, deployment
How can I generate war file from my project? I am able to generate wsdl, xsd and other other files from java2wsdl. I am running tomcat apache on my computer. I want to deploy war file in that tomcat. How can I generate war file from all my class files and wsdl file that I have already generated. Also I don't want to us...
java
web-services
ant
wsdl2java
null
07/20/2012 00:26:08
not a real question
war file generation, deployment === How can I generate war file from my project? I am able to generate wsdl, xsd and other other files from java2wsdl. I am running tomcat apache on my computer. I want to deploy war file in that tomcat. How can I generate war file from all my class files and wsdl file that I have alrea...
1
8,178,967
11/18/2011 07:12:34
428,270
08/23/2010 09:52:42
46
1
How do i change IP Locatin in whois lookup?
I have seen many websites change the IP Location under "Server Stats" in whois lookup like this [link] http://whois.domaintools.com/kbeezie.com and will like to know how i can do the same. What do i need to do to achieve this? What do i need? Thanks
whois
null
null
null
null
11/18/2011 07:29:27
off topic
How do i change IP Locatin in whois lookup? === I have seen many websites change the IP Location under "Server Stats" in whois lookup like this [link] http://whois.domaintools.com/kbeezie.com and will like to know how i can do the same. What do i need to do to achieve this? What do i need? Thanks
2
9,745,839
03/16/2012 23:37:02
235,021
12/19/2009 06:54:54
303
3
FB.ui callback doesn't work?
When I use the Send dialog using the Facebook JS SDK FB.ui call, the callback does not trigger. Why is this? I am able to make other Facebook JS SDK calls (like FB.login) and the callbacks work fine.
facebook
facebook-graph-api
sdk
facebook-javascript-sdk
null
null
open
FB.ui callback doesn't work? === When I use the Send dialog using the Facebook JS SDK FB.ui call, the callback does not trigger. Why is this? I am able to make other Facebook JS SDK calls (like FB.login) and the callbacks work fine.
0
11,021,868
06/13/2012 19:20:33
1,026,865
11/03/2011 02:12:54
13
1
ANR error when get SensorManager after updating ADT
Today, I updated the ADT plugin in Eclipse to "Android SDK Tools 19" and "Android SDK Platform-tools 11". After that, my application gets ANR error when running on AVD (but is good on a real device). I checked the traces.txt file and find these information: Cmd line: com.mycomp.myapp DALVIK THREADS: ...
android
update
adt
null
null
null
open
ANR error when get SensorManager after updating ADT === Today, I updated the ADT plugin in Eclipse to "Android SDK Tools 19" and "Android SDK Platform-tools 11". After that, my application gets ANR error when running on AVD (but is good on a real device). I checked the traces.txt file and find these information: ...
0
8,843,232
01/12/2012 22:24:03
210,262
11/13/2009 07:42:18
228
1
Problems with getattr
I've been tearing my hair out for the past hour trying to figure out a bug in the IRC-enabled program I'm working on, and after some debugging I've found that for some reason, getattr isn't working properly. I have following test code: def privmsg(self, user, channel, msg): #Callback for when the user...
python
pyqt
getattr
null
null
null
open
Problems with getattr === I've been tearing my hair out for the past hour trying to figure out a bug in the IRC-enabled program I'm working on, and after some debugging I've found that for some reason, getattr isn't working properly. I have following test code: def privmsg(self, user, channel, msg): ...
0
1,810,038
11/27/2009 18:10:41
220,183
11/27/2009 18:04:03
1
0
If you can't do a Support Role, does this mean you should not be in development?
I've been shifted around roles a lot, and have been put in a support role which seems to deal out a lot of rubbish due to poor business management. Anyway, my line manager says that he's not sure he would recommend me for a developer role as they regard support as a poor technical role. What I resent is the fact th...
support
career-development
null
null
null
02/03/2012 14:52:09
not constructive
If you can't do a Support Role, does this mean you should not be in development? === I've been shifted around roles a lot, and have been put in a support role which seems to deal out a lot of rubbish due to poor business management. Anyway, my line manager says that he's not sure he would recommend me for a developer...
4
8,236,034
11/23/2011 00:54:58
161,746
08/23/2009 23:37:01
987
2
Java Regex to match a Card
Quick question. What's the code for Java regex that matches a string that has {1,2,3,4,5,6,7,8,9,T,J,Q,K} on the 1st char and {S,D,C,H} on the second. How can I do that? Thanks.
java
regex
null
null
null
02/18/2012 02:19:48
not a real question
Java Regex to match a Card === Quick question. What's the code for Java regex that matches a string that has {1,2,3,4,5,6,7,8,9,T,J,Q,K} on the 1st char and {S,D,C,H} on the second. How can I do that? Thanks.
1
10,641,061
05/17/2012 18:02:35
1,246,957
03/03/2012 14:48:21
1
0
Calling function with interval but until some time passed Iphone
I have a simple probem to solve, which is, am calling a function with that way : NSTimer* myTimer = [NSTimer scheduledTimerWithTimeInterval: 0.025 target: self selector: @selector(GetScreen:) userInfo: nil repeats:YES ]; But what i want is to make it works only during 30 sec not forev...
iphone
nstimer
scheduler
intervals
null
null
open
Calling function with interval but until some time passed Iphone === I have a simple probem to solve, which is, am calling a function with that way : NSTimer* myTimer = [NSTimer scheduledTimerWithTimeInterval: 0.025 target: self selector: @selector(GetScreen:) userInfo: nil repeats:YES ...
0
7,293,479
09/03/2011 13:44:40
616,217
05/29/2010 04:45:28
9
0
How to Open a URL on Linux Shell Prompt
, Can anybody help me , **How to Open a URL on Linux Shell Prompt** ?
linux
browser
null
null
null
09/03/2011 22:33:34
not a real question
How to Open a URL on Linux Shell Prompt === , Can anybody help me , **How to Open a URL on Linux Shell Prompt** ?
1
7,486,652
09/20/2011 14:16:28
272,532
02/13/2010 19:47:19
111
4
Conditional Random Fields and the Label Bias Problem
I was reading [this paper][1] about conditional random fields and was confused by the "label bias problem" mentioned in the paper. I've looked online for some explanations of it but still don't feel like I have a good grasp of the issue. What exactly is the label bias problem? Can someone provide a clear example of it...
nlp
tagging
null
null
null
09/21/2011 06:48:18
off topic
Conditional Random Fields and the Label Bias Problem === I was reading [this paper][1] about conditional random fields and was confused by the "label bias problem" mentioned in the paper. I've looked online for some explanations of it but still don't feel like I have a good grasp of the issue. What exactly is the lab...
2
10,717,279
05/23/2012 09:39:17
406,382
07/30/2010 03:14:45
142
12
Using the Transmit FTP client, is it possible to download a files full path to my local directory?
When I have my local and remote panels open side-by-side, I navigate through directories, locate the file I want to download, and then double-click to download. I want Transmit to then create the parent directories on my local computer to match my remote server. Example:<br /> I have both my root directories open: ...
osx
application
ftp-client
null
null
05/23/2012 18:58:35
off topic
Using the Transmit FTP client, is it possible to download a files full path to my local directory? === When I have my local and remote panels open side-by-side, I navigate through directories, locate the file I want to download, and then double-click to download. I want Transmit to then create the parent directories o...
2
9,568,243
03/05/2012 14:24:00
898,635
08/17/2011 12:42:30
6
0
ANNOYANCE - Pressing F2 Key Creates another instance of Outlook
I noticed a while back (not sure how long ago) when I tried to use the F2 key to rename a file in windows explorer, if Outlook was running another instance of it would pop up. This is very annoying since I am trying to write a Python program that uses the function keys. I searched Google and Outlook settings to no avai...
outlook
null
null
null
null
03/06/2012 02:28:19
off topic
ANNOYANCE - Pressing F2 Key Creates another instance of Outlook === I noticed a while back (not sure how long ago) when I tried to use the F2 key to rename a file in windows explorer, if Outlook was running another instance of it would pop up. This is very annoying since I am trying to write a Python program that uses...
2
6,184,463
05/31/2011 07:46:45
734,374
05/02/2011 11:32:14
6
0
Hi I have problem on dynamic content validation I render a user control
Hi I have problem on dynamic content validation I render a user control use: $('#result').html(response.d); User control has validation $('#btnsaveandnext').live('click', function(event) { Validate(); var isValid = $("#aspnetForm").valid(); but validation not working any idea a...
validation
dynamic
control
content
render
06/01/2011 04:42:57
not a real question
Hi I have problem on dynamic content validation I render a user control === Hi I have problem on dynamic content validation I render a user control use: $('#result').html(response.d); User control has validation $('#btnsaveandnext').live('click', function(event) { Validate(); var...
1
11,724,119
07/30/2012 15:02:24
1,536,172
07/18/2012 21:22:12
1
0
Redirect CakePHP action to subdomain
What I want: http://mydomain.com/view/paris -> http://paris.mydomain.com http://mydomain.com/view/new-york -> http://new-york.mydomain.com etc How can I make it using .htaccess, or tell me another solution if it exists. **P.S.** Sorry for my English.
.htaccess
cakephp
subdomain
null
null
null
open
Redirect CakePHP action to subdomain === What I want: http://mydomain.com/view/paris -> http://paris.mydomain.com http://mydomain.com/view/new-york -> http://new-york.mydomain.com etc How can I make it using .htaccess, or tell me another solution if it exists. **P.S.** Sorry for my English.
0
2,877,477
05/20/2010 20:18:26
346,523
05/20/2010 20:18:26
1
0
Should you use LAMP or Spring Framework ?
Recently, I've been exploring Java space, and came across Spring Framework. Is this a web app framework like CodeIgniter or Rails ? If so, is Springs used for developing enterprise web applications that runs on Java EE technology ? I am curious, why Spring is getting lot of attention. Isn't it a lot cheaper t...
spring-framework
null
null
null
null
05/21/2010 01:22:07
not constructive
Should you use LAMP or Spring Framework ? === Recently, I've been exploring Java space, and came across Spring Framework. Is this a web app framework like CodeIgniter or Rails ? If so, is Springs used for developing enterprise web applications that runs on Java EE technology ? I am curious, why Spring is get...
4
1,395,147
09/08/2009 17:12:31
161,808
08/24/2009 03:17:53
1
0
Best way to plot interaction effects from a linear model
In an effort to help populate the R tag here, I am posting a few questions I have often received from students. I have developed my own answers to these over the years, but perhaps there are better ways floating around that I don't know about. The question: I just ran a regression with continuous y and x but factor ...
r
null
null
null
null
null
open
Best way to plot interaction effects from a linear model === In an effort to help populate the R tag here, I am posting a few questions I have often received from students. I have developed my own answers to these over the years, but perhaps there are better ways floating around that I don't know about. The questio...
0
7,166,103
08/23/2011 18:57:01
577,979
01/17/2011 02:06:29
116
11
SQL CONTAINS or FREETEXT
Im trying to use either CONTAINS or FREETEXT in SQL programing to be able to search couple words all at the same time. The issue is when you search couple words FREETEXT or CONTAINS will search by column not by row for example: Imagine this is my database id | c1 | c2 =======================...
sql
sql-server-2008
asp
null
null
null
open
SQL CONTAINS or FREETEXT === Im trying to use either CONTAINS or FREETEXT in SQL programing to be able to search couple words all at the same time. The issue is when you search couple words FREETEXT or CONTAINS will search by column not by row for example: Imagine this is my database id | c1 | c2...
0
2,679,842
04/21/2010 02:01:39
212,505
11/17/2009 00:17:10
95
10
Pruning data for better viewing on loglog graph - Matlab
just wondering if anyone has any ideas about an issue I'm having. I have a fair amount of data that needs to be displayed on one graph. Two theoretical lines that are bold and solid are displayed on top, then 10 experimental data sets that converge to these lines are graphed, each using a different identifier (eg th...
matlab
visualization
graph
indexing
logarithm
null
open
Pruning data for better viewing on loglog graph - Matlab === just wondering if anyone has any ideas about an issue I'm having. I have a fair amount of data that needs to be displayed on one graph. Two theoretical lines that are bold and solid are displayed on top, then 10 experimental data sets that converge to the...
0
8,607,358
12/22/2011 17:03:57
603,758
02/04/2011 20:13:33
25
1
storing a number of b2body in a vector
so my intention is to create a number of associated b2body objects, in this case making a stickman sprite. Once the bodies are created and joined together I want to store a reference to all the related bodies in a std::vector (I realise I could use wrap the objects and put them in a NSArray but I think as we are dealin...
c++
objective-c
objective-c++
box2d-iphone
null
12/31/2011 06:20:51
too localized
storing a number of b2body in a vector === so my intention is to create a number of associated b2body objects, in this case making a stickman sprite. Once the bodies are created and joined together I want to store a reference to all the related bodies in a std::vector (I realise I could use wrap the objects and put th...
3
10,223,670
04/19/2012 07:43:33
1,293,474
03/26/2012 15:59:34
55
2
Phonegap Applications
I'm totally new to phonegap & I want to try to make an application that makes me more familiar with localstorage files on the mobile & contacts ... like getting files from webserver then sharing them with my phone contacts or something like this. So, if you have any simple ideas that I can start implementing for now ...
html
mobile
phonegap
local-storage
file-sharing
04/20/2012 12:25:28
not constructive
Phonegap Applications === I'm totally new to phonegap & I want to try to make an application that makes me more familiar with localstorage files on the mobile & contacts ... like getting files from webserver then sharing them with my phone contacts or something like this. So, if you have any simple ideas that I can ...
4
4,687,354
01/14/2011 02:09:58
575,146
01/14/2011 02:09:58
1
0
Strange struct declaration, help please!
I am familiar with structs and arrays in c, however I have no idea what is going on in the below code. The order for struc declaration is usually: struct employee { char title; int year; } mark; //why below are there 2 words after struct, as well as the [] bracket? As far as I know it is used as condition...
c
table
struct
const
lookup
null
open
Strange struct declaration, help please! === I am familiar with structs and arrays in c, however I have no idea what is going on in the below code. The order for struc declaration is usually: struct employee { char title; int year; } mark; //why below are there 2 words after struct, as well as the [] bra...
0
8,403,749
12/06/2011 17:00:32
1,053,602
11/18/2011 10:38:27
1
0
Unknown method in auto-generated code
Long story short I am working on modifications for an existing project, and instead of a UInt to represent an account number I have a string to represent an account username. So I need to modify the methods which are used to look up the AccountNb against the .xsd table to accept a string. The problem I am having is ...
c#
table
methods
auto-generate
null
12/07/2011 20:14:39
not a real question
Unknown method in auto-generated code === Long story short I am working on modifications for an existing project, and instead of a UInt to represent an account number I have a string to represent an account username. So I need to modify the methods which are used to look up the AccountNb against the .xsd table to a...
1
11,506,164
07/16/2012 14:12:11
230,547
12/13/2009 04:52:26
10
0
How to edit my websites source code
Hi guys I am sure this question has been asked already but I am a draw me pictures type of person so I need to ask again in my own language. I have a website and when I run the W3 Validator on it it says I need to fix some areas of code. Here is the problem: It is written in .php. All I know is .html. How can...
php
html
null
null
null
07/16/2012 16:19:17
not a real question
How to edit my websites source code === Hi guys I am sure this question has been asked already but I am a draw me pictures type of person so I need to ask again in my own language. I have a website and when I run the W3 Validator on it it says I need to fix some areas of code. Here is the problem: It is written ...
1
11,574,352
07/20/2012 06:58:46
1,239,775
02/29/2012 08:50:14
1
0
iOS customize scrollbar in UITableView
In iPhone I am going to customize the scrollbar of UITableView with images. But I didn't find correct method. Please help me. Thanks in advance.
iphone
ios
uitableview
scrollbar
customization
null
open
iOS customize scrollbar in UITableView === In iPhone I am going to customize the scrollbar of UITableView with images. But I didn't find correct method. Please help me. Thanks in advance.
0
9,597,897
03/07/2012 08:15:43
811,220
06/22/2011 21:41:56
39
2
How to pause a video at a particular interval, show a second video completely, and resume first video from paused point
The problem stems from the situation that I have a video that is being launched in an activity, and I am monitoring the playback of the video in a ASyncTask. There is a doWhileloop in the AsyncTask that checks for certain time in the video, and when that time in seconds occurs. I wish to "Pause" the original video, sho...
android
android-intent
android-activity
null
null
null
open
How to pause a video at a particular interval, show a second video completely, and resume first video from paused point === The problem stems from the situation that I have a video that is being launched in an activity, and I am monitoring the playback of the video in a ASyncTask. There is a doWhileloop in the AsyncTa...
0
11,683,573
07/27/2012 07:47:10
1,553,969
07/26/2012 08:36:16
3
0
how to make dynamic result if checked some radio button?
<script type="text/javascript> $("input[type=checkbox]").on('change', function() { var val = this.value; var dataSplit = val.split("_"); if (this.checked) { var result = '<div id="div'+dataSp...
javascript
jquery
null
null
null
null
open
how to make dynamic result if checked some radio button? === <script type="text/javascript> $("input[type=checkbox]").on('change', function() { var val = this.value; var dataSplit = val.split("_"); if (this.checked) { ...
0
2,076,407
01/16/2010 06:23:49
184,777
10/06/2009 06:21:40
88
0
JLabel is not repainting
I am doing an animator showing a series of .jpg. The animator is a thread which is running as it is updating the other JLabel which I use to display text. But it just will not repaint the ImageIcon. The thread class is txAnimate. What's wrong? <code> public class main extends JFrame implements ActionListener, ItemL...
java
gui
null
null
null
null
open
JLabel is not repainting === I am doing an animator showing a series of .jpg. The animator is a thread which is running as it is updating the other JLabel which I use to display text. But it just will not repaint the ImageIcon. The thread class is txAnimate. What's wrong? <code> public class main extends JFrame im...
0
9,446,366
02/25/2012 17:44:43
646,080
03/05/2011 14:39:59
41
0
wordpress template rewrite url
currently my site has a page url /catalog/websites/ then to open up a project the url is /portfolio/site1 i would like to change these to just /websites/ and websites/site1 After some digging around iv found which i believe is the code i need to change in "includes/template.php" code here: ...
wordpress
url-rewriting
null
null
null
null
open
wordpress template rewrite url === currently my site has a page url /catalog/websites/ then to open up a project the url is /portfolio/site1 i would like to change these to just /websites/ and websites/site1 After some digging around iv found which i believe is the code i need to change in "includes/template.p...
0
5,931,097
05/08/2011 23:28:30
603,007
02/04/2011 10:51:19
141
1
filepath of uploaded file in asp.net mvc 2
i am trying to get the filepath for my uploaded file. Is there a way to get it? <%= Html.BeginForm("Upload","Home",FormMethod.Post,new { enctype = "multipart/form-data" }) %> <%{ %> <input type="file" id="upload" name="upload" /> <button id="btnUpload"> upload</button> ...
c#
jquery
asp.net-mvc-2
null
null
null
open
filepath of uploaded file in asp.net mvc 2 === i am trying to get the filepath for my uploaded file. Is there a way to get it? <%= Html.BeginForm("Upload","Home",FormMethod.Post,new { enctype = "multipart/form-data" }) %> <%{ %> <input type="file" id="upload" name="upload" /> <butto...
0
6,479,206
06/25/2011 16:57:08
815,505
06/25/2011 16:57:08
1
0
c# Reading xml with namespace problem
I want to read the value in **rss/channel/itunes:subtitle** xml: see [http://podcast.q-dance.nl/audio/qdance/q-dancepodcast.xml][1] I tried: System.Xml.XmlDocument pd = new System.Xml.XmlDocument(); pd.Load(podcasterUrl); XmlElement resultt = pd.DocumentElement; XmlNamespaceManager mgr =...
c#
xml
namespaces
value
null
08/21/2011 15:22:55
too localized
c# Reading xml with namespace problem === I want to read the value in **rss/channel/itunes:subtitle** xml: see [http://podcast.q-dance.nl/audio/qdance/q-dancepodcast.xml][1] I tried: System.Xml.XmlDocument pd = new System.Xml.XmlDocument(); pd.Load(podcasterUrl); XmlElement resultt = pd.Docu...
3
2,147,314
01/27/2010 13:52:22
260,116
01/27/2010 13:52:22
1
0
Is there an HTML browser rendering engine for Ruby?
Given a URL, I would like to be able to render the returned HTML to know width and height for each div, fonts' size for each piece of text, color of each element, position of each element on screen, etc. A possible approach could be traversing the DOM tree with Hpricot and checking CSS style by parsing the associate...
ruby
html
rendering
null
null
null
open
Is there an HTML browser rendering engine for Ruby? === Given a URL, I would like to be able to render the returned HTML to know width and height for each div, fonts' size for each piece of text, color of each element, position of each element on screen, etc. A possible approach could be traversing the DOM tree wit...
0
6,112,258
05/24/2011 14:42:53
766,367
05/23/2011 16:33:45
18
0
How to Build a Data Feed?
I'd like to create a lab type replica of data feeds provided by the likes of Bloomberg, Reuters/Thomson, etc. To that need I'd appreciate help in gaining a clearer conceptual understanding of the components of the feed. For example, are feeds implemented as HTTP Services? Or as a cluster of sockets? If the latter, ...
java
sockets
data
network-programming
feeds
05/26/2011 00:34:47
not a real question
How to Build a Data Feed? === I'd like to create a lab type replica of data feeds provided by the likes of Bloomberg, Reuters/Thomson, etc. To that need I'd appreciate help in gaining a clearer conceptual understanding of the components of the feed. For example, are feeds implemented as HTTP Services? Or as a clus...
1
2,578,748
04/05/2010 14:03:35
309,238
04/05/2010 14:03:35
1
0
2d int array Drawing Canvas
How do you print out the contents of a 2d int array Ive code written in java for a sudoku game and im trying to create a game on the android using the same code My code in java reads in a text file(sudoku grid) i see canvas.drawText will read in a string, but how do you do it for a 2d int array, so it print...
android
null
null
null
null
null
open
2d int array Drawing Canvas === How do you print out the contents of a 2d int array Ive code written in java for a sudoku game and im trying to create a game on the android using the same code My code in java reads in a text file(sudoku grid) i see canvas.drawText will read in a string, but how do you do ...
0
3,128,717
06/27/2010 20:03:57
294,327
03/15/2010 21:39:25
36
1
Designing a Thread Safe Class
When reading the MSDN documentation it always lets you know if a class is thread safe or not. My question is how do you design a class to be thread safe? I am not talking about calling the class with locking I am meaning I am working for Microsoft create XXX class\object and I want to be say it is "Thread Safe" what wo...
c#
java
null
null
null
null
open
Designing a Thread Safe Class === When reading the MSDN documentation it always lets you know if a class is thread safe or not. My question is how do you design a class to be thread safe? I am not talking about calling the class with locking I am meaning I am working for Microsoft create XXX class\object and I want t...
0
8,510,464
12/14/2011 19:26:14
106,658
05/13/2009 21:04:16
3,995
125
What is the visibility of @synthesized instance variables?
If you have a property in your public interface like the following @interface MyClass : NSObject @property(strong) NSString *myProp; @end And then synthesize it, in effect synthesizing the variable: @implementation MyClass @synthesize myProp = _myProp; // or just leave it at the default ...
objective-c
cocoa
properties
encapsulation
null
null
open
What is the visibility of @synthesized instance variables? === If you have a property in your public interface like the following @interface MyClass : NSObject @property(strong) NSString *myProp; @end And then synthesize it, in effect synthesizing the variable: @implementation MyClass @...
0
4,065,421
10/31/2010 22:13:29
493,047
10/31/2010 22:13:29
1
0
Whats the most BEAUTIFUL html/css/javascript/php editor for windows in your opinion?
Guys, i've been using notepad++ for some time now and i'm kinda sick of the ui it has. I don't know its just too.... old or what should i say. I need something that is more simple in the ui but still has good functionality, and also i need something that is really an eye-candy. Do you have anything to recommend?
php
javascript
html
editor
null
10/31/2010 22:17:06
not constructive
Whats the most BEAUTIFUL html/css/javascript/php editor for windows in your opinion? === Guys, i've been using notepad++ for some time now and i'm kinda sick of the ui it has. I don't know its just too.... old or what should i say. I need something that is more simple in the ui but still has good functionality, and al...
4
6,235,464
06/04/2011 07:37:29
783,627
06/04/2011 04:36:40
-3
1
video embedding
html video embedding , ie a user needs to be able to provide url etc inside a textbox of video he intends to display in his profile "html video embedding , ie a user needs to be able to provide url etc inside a textbox of video he intends to display in his profile " any help on this is welcome. It have to be done wit...
php
null
null
null
null
06/04/2011 10:05:17
not a real question
video embedding === html video embedding , ie a user needs to be able to provide url etc inside a textbox of video he intends to display in his profile "html video embedding , ie a user needs to be able to provide url etc inside a textbox of video he intends to display in his profile " any help on this is welcome. I...
1
9,757,958
03/18/2012 11:34:39
1,090,130
12/09/2011 16:39:09
1
0
Facebook mobile not showing post created by the app
my app posting use function. app permissions is publish_stream,offline_access post(feed) does not seem to mobile. but seems the web. Why, I'm not sure if this happens. var stream = { method: 'stream.publish', message: 'aaa', attachment: { ...
facebook
post
fb.ui
null
null
null
open
Facebook mobile not showing post created by the app === my app posting use function. app permissions is publish_stream,offline_access post(feed) does not seem to mobile. but seems the web. Why, I'm not sure if this happens. var stream = { method: 'stream.publish', messa...
0
2,899,590
05/24/2010 19:17:30
321,567
04/20/2010 17:59:12
1
0
proper way to hide dynamic elements with jQuery
I have a div element which my code will fill with a dynamic amount of links. Using jquery, I want to hide all the links except the first one. This is what I came up with and it works, I was just wondering if this is the best way to do it: <pre><code> $("#panelContainer").each(function(n) { $(this).children().h...
jquery
hide
null
null
null
null
open
proper way to hide dynamic elements with jQuery === I have a div element which my code will fill with a dynamic amount of links. Using jquery, I want to hide all the links except the first one. This is what I came up with and it works, I was just wondering if this is the best way to do it: <pre><code> $("#panelC...
0
5,738,974
04/21/2011 02:52:53
695,696
04/06/2011 21:57:54
25
0
How do I check to see if I have 3 of a kind for a poker program?
the poker hand has 5 cards. i thought i could start with a for loop like `(int a = 0; a < 5; a++)` then inside that i would have another for loop like so `(int b = a + 1; b < 5; b++`) then inside that would be an if statement if(c[a].getValue() == c[b].getValue()) inside that would be another...
java
null
null
null
null
null
open
How do I check to see if I have 3 of a kind for a poker program? === the poker hand has 5 cards. i thought i could start with a for loop like `(int a = 0; a < 5; a++)` then inside that i would have another for loop like so `(int b = a + 1; b < 5; b++`) then inside that would be an if statement ...
0
10,889,756
06/04/2012 23:29:06
1,405,318
05/19/2012 15:52:58
38
2
connect.static() interpret PHP files with node.js and connect
I successfully configured node with connect and nowjs. Calling localhost:8001/test.html and localhost:8001/chat.html works without any problems. But when calling a PHP-file localhost:8001/test.php my browser wants me to download that file. Obviously connect.static won't interpret the PHP file. Is there any other possib...
node.js
connect
nowjs
null
null
null
open
connect.static() interpret PHP files with node.js and connect === I successfully configured node with connect and nowjs. Calling localhost:8001/test.html and localhost:8001/chat.html works without any problems. But when calling a PHP-file localhost:8001/test.php my browser wants me to download that file. Obviously con...
0
10,580,371
05/14/2012 09:08:41
709,333
04/15/2011 07:14:39
330
23
css selector for first list item
I have the following html structure. <ul> <script id="agendaTmpl" type="text/x-jquery-tmpl"> <li class="arrow boundElement" style="height:40px;" onclick="GoToPage('session.html?session_id=${agenda_id}');"> </li> </script> ...
html
css
null
null
null
null
open
css selector for first list item === I have the following html structure. <ul> <script id="agendaTmpl" type="text/x-jquery-tmpl"> <li class="arrow boundElement" style="height:40px;" onclick="GoToPage('session.html?session_id=${agenda_id}');"> ...
0
11,159,249
06/22/2012 15:24:33
65,387
02/12/2009 03:01:00
21,651
628
Why are semi-colons necessary in non-whitespace significant programming languages? Where would the lack of one create an ambiguity?
[see also](http://stackoverflow.com/q/4701137/65387) I understand that semi-colons "terminate a statement" and "allow a statement to span multiple lines" and also "allow you to put multiple statements on a single line", but that doesn't really answer the question. Someone in the other question gave [this example]...
c#
java
php
c++
c
06/23/2012 17:17:30
not constructive
Why are semi-colons necessary in non-whitespace significant programming languages? Where would the lack of one create an ambiguity? === [see also](http://stackoverflow.com/q/4701137/65387) I understand that semi-colons "terminate a statement" and "allow a statement to span multiple lines" and also "allow you to put...
4
722,562
04/06/2009 18:11:15
58,109
01/22/2009 23:40:27
35
0
How do I get a random number in template toolkit?
I want to get a random number using template toolkit. It doesn't have to be particularly random. How do I do it?
template-toolkit
null
null
null
null
null
open
How do I get a random number in template toolkit? === I want to get a random number using template toolkit. It doesn't have to be particularly random. How do I do it?
0
9,449,589
02/26/2012 00:57:55
1,233,209
02/26/2012 00:18:56
1
0
java: end mouseDragged when releasing the mouse outside the source component
we are currently working on fixes for a project that has to be finished next week, so we are kinda running out of time (don't worry, all I want to say is that we do not have the time to toss away all our code and start again fresh...). We have a `JPanel` (="page") with a bunch of other `JPanels` (which act as nodes ...
java
swing
release
mouseevent
drag
null
open
java: end mouseDragged when releasing the mouse outside the source component === we are currently working on fixes for a project that has to be finished next week, so we are kinda running out of time (don't worry, all I want to say is that we do not have the time to toss away all our code and start again fresh...). ...
0
8,301,050
11/28/2011 19:17:36
200,894
11/02/2009 11:17:14
592
6
facebook interview implement readline function
Implement a function char* readLine(); which returns single lines from a buffer. To read the buffer, you can makes use of a function int read(char* buf, int len) which fills buf with upto len chars and returns the actual number of chars filled in. Function readLine can be called as many times as desired. If there i...
c
algorithm
interview-questions
null
null
11/29/2011 05:36:58
too localized
facebook interview implement readline function === Implement a function char* readLine(); which returns single lines from a buffer. To read the buffer, you can makes use of a function int read(char* buf, int len) which fills buf with upto len chars and returns the actual number of chars filled in. Function readLin...
3
11,378,029
07/07/2012 19:29:46
1,285,107
03/22/2012 05:43:44
66
2
Get ObjectId MongoDB via PHP
Here's my script $terms = ['username' => $uri]; $user = $collection->findOne($terms); result array (size=4) '_id' => object(MongoId)[29] public '$id' => string '4ff6e96bb0b4599016000006' (length=24) 'username' => string 'me' (length=10) 'name' => string '...
php
mongodb
null
null
null
07/13/2012 09:17:34
not constructive
Get ObjectId MongoDB via PHP === Here's my script $terms = ['username' => $uri]; $user = $collection->findOne($terms); result array (size=4) '_id' => object(MongoId)[29] public '$id' => string '4ff6e96bb0b4599016000006' (length=24) 'username' => string 'me' (le...
4
9,416,520
02/23/2012 15:56:11
1,215,039
02/16/2012 23:18:05
19
0
Unexpected list overflow
I want the <h1>(Current Location)</h1> directly under +Location in the inline list. What am I doing wrong? I can't seem to not make it overflow. http://jsfiddle.net/h3twR/5/
html
css
null
null
null
02/23/2012 23:21:35
not a real question
Unexpected list overflow === I want the <h1>(Current Location)</h1> directly under +Location in the inline list. What am I doing wrong? I can't seem to not make it overflow. http://jsfiddle.net/h3twR/5/
1
5,326,337
03/16/2011 13:55:43
17,279
09/18/2008 05:53:12
16,327
602
Lost in NSButton types and alternate images
I’d like to have an `NSButton` with an image and an alternate image. The alternate image should be displayed while the button is being pressed and I’d also like to display the alternate image from code, calling something like `[button setSelected:YES]`. Is this possible without monkeing with the `alternateImage` proper...
cocoa
osx
nsbutton
null
null
null
open
Lost in NSButton types and alternate images === I’d like to have an `NSButton` with an image and an alternate image. The alternate image should be displayed while the button is being pressed and I’d also like to display the alternate image from code, calling something like `[button setSelected:YES]`. Is this possible ...
0
8,905,359
01/18/2012 04:51:54
315,046
04/13/2010 01:28:38
190
51
Error in running Android's TouchPaint example program
I am just trying out the "TouchPaint" sample provided by Google Android examples at: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html Created my own AndroidManifest.xml, and I figured that "GraphicsActivity.java" and "PictureLayout.java" are two other j...
android
graphics
touch
null
null
null
open
Error in running Android's TouchPaint example program === I am just trying out the "TouchPaint" sample provided by Google Android examples at: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html Created my own AndroidManifest.xml, and I figured that "Grap...
0
11,099,965
06/19/2012 11:26:38
1,423,039
05/29/2012 07:02:35
11
0
Rearrange NSArray and insert Object
I have an NSMutableArray which has five objects in it. I want to insert an object in the middle of an array, let me say atIndex 1, and move all the objects to index+1 how do I do that? Can you please help me?
iphone
objective-c
nsarray
null
null
null
open
Rearrange NSArray and insert Object === I have an NSMutableArray which has five objects in it. I want to insert an object in the middle of an array, let me say atIndex 1, and move all the objects to index+1 how do I do that? Can you please help me?
0
4,746,748
01/20/2011 11:50:00
279,966
02/24/2010 00:42:09
241
41
import of xml nodes and removing namespace
I have a xml feed of products that I break down into smaller xml files using DOMDocument and DOMXpath in PHP. I create the new xml file, add a root node then import all the deep-copied nodes from the main feed. I want to remove the namespace from the imported node. I have tried $node->removeAttributeNS( 'myurl' ,...
php
xml
namespaces
domdocument
null
null
open
import of xml nodes and removing namespace === I have a xml feed of products that I break down into smaller xml files using DOMDocument and DOMXpath in PHP. I create the new xml file, add a root node then import all the deep-copied nodes from the main feed. I want to remove the namespace from the imported node. ...
0
9,913,950
03/28/2012 18:57:38
1,166,651
01/24/2012 09:21:00
13
0
PHP REST API with OAuth Tutorial/Example
i would like to implement an api for my current web application project. I think a REST api is a good idea, but REST is stateless and i need a bit more security as HTTP basic or digest auth. I've read that OAuth can be used for the authentication part. I am very new to this topics and would like to know if there are...
api
rest
oauth
kohana
null
04/05/2012 18:19:13
not constructive
PHP REST API with OAuth Tutorial/Example === i would like to implement an api for my current web application project. I think a REST api is a good idea, but REST is stateless and i need a bit more security as HTTP basic or digest auth. I've read that OAuth can be used for the authentication part. I am very new to t...
4
6,762,278
07/20/2011 12:55:51
538,256
12/10/2010 19:09:15
85
1
python errors number codes
sorry if I will be not too much clear... I wrote a program (a simple wiki editor), which BTW uses tkinter, and I'm debugging it slowly. Now there is a page with a large number of hyperlinks (coded by using the simple code at http://effbot.org/zone/tkinter-text-hyperlink.htm), and when I enter this page the progra...
python
null
null
null
null
null
open
python errors number codes === sorry if I will be not too much clear... I wrote a program (a simple wiki editor), which BTW uses tkinter, and I'm debugging it slowly. Now there is a page with a large number of hyperlinks (coded by using the simple code at http://effbot.org/zone/tkinter-text-hyperlink.htm), and w...
0
9,447,281
02/25/2012 19:25:52
1,180,990
01/31/2012 17:57:17
119
1
Facebook like login screen and validation
I need my login screen look like the following. In `Facebooks` login, if you leave the username or password fields blank and click the Log in button, the `user name` and `password` fields vibrates (as in shakes). How is this done ? ![enter image description here][1] [1]: http://i.stack.imgur.com/BJvMe.j...
iphone
objective-c
facebook
null
null
02/28/2012 17:59:38
not a real question
Facebook like login screen and validation === I need my login screen look like the following. In `Facebooks` login, if you leave the username or password fields blank and click the Log in button, the `user name` and `password` fields vibrates (as in shakes). How is this done ? ![enter image description here][...
1
5,506,373
03/31/2011 21:09:32
286,802
03/05/2010 03:13:31
1,356
3
@override annonation
Do I need to put '@override' annotation when i am implement an interface (not override an abstract class)? And what does '@override' annotation achieve? Thank you.
java
null
null
null
null
null
open
@override annonation === Do I need to put '@override' annotation when i am implement an interface (not override an abstract class)? And what does '@override' annotation achieve? Thank you.
0
3,556,294
08/24/2010 12:16:09
92,040
04/17/2009 09:12:31
861
36
Get the ListBoxItem in a ListBox
I am trying to change the Control template on a ListBoxItem when It is selected from the ListBox. To do so, I was going to get the selected ListBoxItem from the ListBox itself, and set the control template on that. How would i go about doing this? I have tried, SelectedItem and that returns the bound object within the ...
c#
wpf
silverlight
silverlight-4.0
null
null
open
Get the ListBoxItem in a ListBox === I am trying to change the Control template on a ListBoxItem when It is selected from the ListBox. To do so, I was going to get the selected ListBoxItem from the ListBox itself, and set the control template on that. How would i go about doing this? I have tried, SelectedItem and tha...
0
8,507,324
12/14/2011 15:43:35
915,709
08/27/2011 17:34:22
1
0
Blowfish implementation on a IMAGE
I need a working C, C++ or Java code which can encrypt a Image in Blowfish. I need it fr a project where i need to secure the image using Blowfish algorithm before transfering it. All the codes on net are for Strings... Plz help me in getting a code which works on IMAGE.
image
blowfish
encyption
null
null
12/16/2011 09:15:44
not a real question
Blowfish implementation on a IMAGE === I need a working C, C++ or Java code which can encrypt a Image in Blowfish. I need it fr a project where i need to secure the image using Blowfish algorithm before transfering it. All the codes on net are for Strings... Plz help me in getting a code which works on IMAGE.
1
2,792,577
05/08/2010 01:26:04
142,476
07/22/2009 02:23:11
175
4
How to use SQLErrorCodeSQLExceptionTranslator and DAO class with @Repository in Spring?
I'm using Spring 3.0.2 and I have a class called MovieDAO that uses JDBC to handle the db. I have set the @Repository annotations and I want to convert the SQLException to the Spring's DataAccessException I have the following example: @Repository public class JDBCCommentDAO implements CommentDAO...
java
spring-mvc
spring-jdbc
exception-handling
null
null
open
How to use SQLErrorCodeSQLExceptionTranslator and DAO class with @Repository in Spring? === I'm using Spring 3.0.2 and I have a class called MovieDAO that uses JDBC to handle the db. I have set the @Repository annotations and I want to convert the SQLException to the Spring's DataAccessException I have the following e...
0
8,102,639
11/12/2011 04:52:39
347,039
05/21/2010 11:50:27
125
2
Get a list of internal URL's on a site
What is the best get a list of internal URL's on a site, given domain name. The list needs to be saved in a text file. It could be any open source app, or python
python
open-source
null
null
null
11/12/2011 11:34:34
not a real question
Get a list of internal URL's on a site === What is the best get a list of internal URL's on a site, given domain name. The list needs to be saved in a text file. It could be any open source app, or python
1
7,057,436
08/14/2011 14:42:06
365,426
06/12/2010 22:33:10
21
0
MAC UNIX sh: ./init_config.sh: No such file or directory
I have a big problem. I have downloaded and installed a MAC software for cctv from the following page: http://www.adata.co.uk/support/ApolloRemoteViewingSoftware.htm Direct link to download: http://www.adata.co.uk/support/PSSMACOSX.zip Once the software is installed, it creates a directory called PSS in the...
osx
file
unix
sh
mac
08/15/2011 14:35:57
off topic
MAC UNIX sh: ./init_config.sh: No such file or directory === I have a big problem. I have downloaded and installed a MAC software for cctv from the following page: http://www.adata.co.uk/support/ApolloRemoteViewingSoftware.htm Direct link to download: http://www.adata.co.uk/support/PSSMACOSX.zip Once the s...
2
11,745,806
07/31/2012 17:31:19
1,263,583
03/12/2012 08:07:58
45
3
Javafx Pane vs Region?
According to the documentation, both Region and Pane will resize any resizable child nodes to their preferred size, but will not reposition them. So i can't see where the differencies between these two containers remain and when use one or another.
javafx
javafx-2
null
null
null
null
open
Javafx Pane vs Region? === According to the documentation, both Region and Pane will resize any resizable child nodes to their preferred size, but will not reposition them. So i can't see where the differencies between these two containers remain and when use one or another.
0
9,979,900
04/02/2012 16:14:06
1,064,514
11/24/2011 18:40:24
1
1
Razor and interface inheritance in ASP.NET MVC3: why can't this property be found?
I have an odd problem with one of my Razor views in an ASP.NET MVC3 application. I am getting an error telling me that a property cannot be found, when the property does seem to exist when I write out its value to the debugger console. My view takes as its model a class called FormEditViewModel. FormEditViewModel ha...
c#
asp.net-mvc-3
razor
null
null
null
open
Razor and interface inheritance in ASP.NET MVC3: why can't this property be found? === I have an odd problem with one of my Razor views in an ASP.NET MVC3 application. I am getting an error telling me that a property cannot be found, when the property does seem to exist when I write out its value to the debugger conso...
0
5,738,571
04/21/2011 01:38:12
718,115
04/21/2011 00:55:53
1
0
Whats the best way to lower the bitdepth of a PNG
I have a PNG image in an BufferedImage and I would like to lower the bitdepth in order to make it smaller. Below is a function that saves a small portion of an image to "disk." The writeImage function is the function that writes it to disk. Any ideas? private BufferedImage createSubImage(Avatar avatar, int[] s...
java
image
png
null
null
null
open
Whats the best way to lower the bitdepth of a PNG === I have a PNG image in an BufferedImage and I would like to lower the bitdepth in order to make it smaller. Below is a function that saves a small portion of an image to "disk." The writeImage function is the function that writes it to disk. Any ideas? priv...
0
9,333,150
02/17/2012 18:02:37
188,577
10/12/2009 17:33:06
140
12
JQuery getting element from variable
I know this is really stupid But I dont know jquery at all All I am trying to do is get the element based on a Id that I pass in. But I cant figure this out. If I dont use the variable, I can get it to work. IE $("#1_pipeline").css("border", "3px solid red"); function (Id) { // ACCORDION SCRIPT ...
jquery
null
null
null
null
02/21/2012 13:56:40
too localized
JQuery getting element from variable === I know this is really stupid But I dont know jquery at all All I am trying to do is get the element based on a Id that I pass in. But I cant figure this out. If I dont use the variable, I can get it to work. IE $("#1_pipeline").css("border", "3px solid red"); functi...
3
9,911,813
03/28/2012 16:27:05
589,254
01/25/2011 15:55:17
158
2
Android device name == "BlueZ"?
I am new to Android development and built 4.0.3 from source. build.prop does list my device as "Incredible 2" yet in the Bluetooth settings my device is listed as "BlueZ". Sure I can change it but I'd like to know where in the source that is handled so I can see how to fix it.
android
bluetooth
null
null
null
null
open
Android device name == "BlueZ"? === I am new to Android development and built 4.0.3 from source. build.prop does list my device as "Incredible 2" yet in the Bluetooth settings my device is listed as "BlueZ". Sure I can change it but I'd like to know where in the source that is handled so I can see how to fix it.
0
6,232,429
06/03/2011 20:39:36
783,350
06/03/2011 20:39:36
1
0
Hello...I have a small problem with the JQuery Date Picker Range..
I have two date pickers..The first is the "From or Starting Date" and the second is the " TO or Ending Date". What i need to do is to be able to add one year to the Starting date and then automatically display that value in the Ending Date. I am quite new to Jquery and need help with it. Thanks a million in advance..
jquery
date
datepicker
range
picker
null
open
Hello...I have a small problem with the JQuery Date Picker Range.. === I have two date pickers..The first is the "From or Starting Date" and the second is the " TO or Ending Date". What i need to do is to be able to add one year to the Starting date and then automatically display that value in the Ending Date. I am qu...
0
2,252,372
02/12/2010 14:22:08
163,407
08/26/2009 10:22:28
341
0
How do you make a program sleep in C++ on Win 32?
How to "pause" a program in C++ on Win 32, and what libraries to include?
c++
sleep
null
null
null
null
open
How do you make a program sleep in C++ on Win 32? === How to "pause" a program in C++ on Win 32, and what libraries to include?
0
4,847,514
01/31/2011 04:02:49
106,111
05/13/2009 08:59:24
453
2
How to create dynamic LI and DIV for template
I want to know what language can make my template being dynamic. Example HTML sturtcure <div id="tabs"> <ul class="tabs"> <li><a href="#tabs-1">Header</a></li> <li><a href="#tabs-2">Navigation</a></li> <li><a href="#tabs-3">Layout &amp; Colors</a></li> <li><a href="#tab...
php
jquery
html
arrays
null
null
open
How to create dynamic LI and DIV for template === I want to know what language can make my template being dynamic. Example HTML sturtcure <div id="tabs"> <ul class="tabs"> <li><a href="#tabs-1">Header</a></li> <li><a href="#tabs-2">Navigation</a></li> <li><a href="#tabs-3">Lay...
0
1,205,468
07/30/2009 09:25:42
141,810
07/21/2009 06:43:14
19
0
Java Developer Interview Question
I worked at a fortune 500 insurance company for almost 2 years. I worked on a reporting application that used Java, XML, XSLT, JavaScript, AJAX. It was a J2EE application but it didn't use any of the major frameworks like Struts, Spring, EJB, any ORM, JAXP, JAXB. But we developed our own software in house that co...
interview-questions
java
java-ee
null
null
01/31/2012 13:10:47
not constructive
Java Developer Interview Question === I worked at a fortune 500 insurance company for almost 2 years. I worked on a reporting application that used Java, XML, XSLT, JavaScript, AJAX. It was a J2EE application but it didn't use any of the major frameworks like Struts, Spring, EJB, any ORM, JAXP, JAXB. But we deve...
4
9,379,363
02/21/2012 14:35:03
1,005,125
10/20/2011 11:52:24
15
1
How to build OpenSSL with MinGW in WIndows?
I want to build OpenSSL in Windows with MinGW.<br /> How can i do that? please help me.<br /> Thanks
c++
qt
openssl
mingw
null
02/22/2012 14:42:17
off topic
How to build OpenSSL with MinGW in WIndows? === I want to build OpenSSL in Windows with MinGW.<br /> How can i do that? please help me.<br /> Thanks
2
1,026,173
06/22/2009 09:01:19
116
08/02/2008 05:51:57
12,069
319
X11: get list of all gnome-terminal windows on my display?
I have two xterms and several gnome-terminal windows active on my X display. However, xlsclients only shows one gnome-terminal client. $ xlsclients luban.local /usr/X11/bin/xterm ohm gnome-terminal luban.local xterm How can I get a list of the gnome-terminal sessions attached to my dis...
x11
gnome
gnome-terminal
null
null
null
open
X11: get list of all gnome-terminal windows on my display? === I have two xterms and several gnome-terminal windows active on my X display. However, xlsclients only shows one gnome-terminal client. $ xlsclients luban.local /usr/X11/bin/xterm ohm gnome-terminal luban.local xterm How ca...
0
2,489,610
03/22/2010 01:58:09
294,022
03/15/2010 14:17:36
43
1
Textarea for my web application
I am developing an application web based which would let the users extend a part of an applcation using javascript via java.scripting http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html The problem is that the user should write only some coditions and i want if possible to colou...
textarea
html
javascript
null
null
null
open
Textarea for my web application === I am developing an application web based which would let the users extend a part of an applcation using javascript via java.scripting http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html The problem is that the user should write only some codi...
0
7,745,329
10/12/2011 19:18:20
241,552
12/31/2009 13:53:37
420
28
QTKit, capture video for live streaming
I am trying to create an application for the Mac that would create live video streaming. I know about VLC and other solutions, but still. To that end i am trying to record video from iSight using QTKit, and save it continuously as a series of tiny video files. However, the recording turns out not quite continuous, w...
cocoa
qtkit
live-streaming
null
null
null
open
QTKit, capture video for live streaming === I am trying to create an application for the Mac that would create live video streaming. I know about VLC and other solutions, but still. To that end i am trying to record video from iSight using QTKit, and save it continuously as a series of tiny video files. However, th...
0
11,250,639
06/28/2012 18:19:00
1,101,083
12/16/2011 01:28:47
264
10
Flex vs HTML/jQuery
Many times I get quick page design inputs from business/clients which will be finally developed and integrated with application.<br/> Before getting a sign off from them I let give them wire frames to get a feel of new UI.<br/> My application UI is in Flex. But I find HTML/jQuery easy and quick to develop wire frames...
jquery
html
flash
flex
null
06/29/2012 23:05:33
not a real question
Flex vs HTML/jQuery === Many times I get quick page design inputs from business/clients which will be finally developed and integrated with application.<br/> Before getting a sign off from them I let give them wire frames to get a feel of new UI.<br/> My application UI is in Flex. But I find HTML/jQuery easy and qui...
1
9,001,509
01/25/2012 10:54:29
1,069,533
11/28/2011 14:38:05
13
2
python dictionary sort bt key
What would be a nice way to go from this {2:3, 1:89, 4:5, 3:0} -> {1:89, 2:3, 3:0, 4:5} ? I checked some posts but they all use the "sorted" operator that returns tuples. Any ideas are welcome, Thanks!
python
sorting
dictionary
null
null
null
open
python dictionary sort bt key === What would be a nice way to go from this {2:3, 1:89, 4:5, 3:0} -> {1:89, 2:3, 3:0, 4:5} ? I checked some posts but they all use the "sorted" operator that returns tuples. Any ideas are welcome, Thanks!
0
3,516,295
08/18/2010 20:17:22
285,856
03/03/2010 23:56:47
230
22
Ext.JS Store Record is undefined
var debtProtectionId = 0 // get the selected id of debt protection dropdown if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') { debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue(); } // get the store...
asp.net
asp.net-mvc
vb.net
extjs
null
null
open
Ext.JS Store Record is undefined === var debtProtectionId = 0 // get the selected id of debt protection dropdown if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') { debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue()...
0
752,460
04/15/2009 16:10:33
70,826
02/25/2009 12:47:03
217
16
Socket programmimg in C, need sample codes and tutorials
I want to do socket programming in C. Where client and server are exchanging messages. I have the sample codes with me, but i wanted some elaborate links and tutorials for socket programming C, so that i can write effective and error free code. I will be working with WinSock library and not on Linux. Any help?
sockets
c
winsock
tutorials
sample-code
null
open
Socket programmimg in C, need sample codes and tutorials === I want to do socket programming in C. Where client and server are exchanging messages. I have the sample codes with me, but i wanted some elaborate links and tutorials for socket programming C, so that i can write effective and error free code. I will be wor...
0
8,965,162
01/22/2012 22:07:13
312,161
04/08/2010 18:01:14
562
39
Can doophp use autorouting and defined routes together
Is possible use defined routes and autorouting together? Defined routes must have higher priority than autoroutes. I tried to use, but after I set autoroutes on, defined routes dont work at all. index.php leaved unchanged: <?php include './protected/config/common.conf.php'; include './protected/conf...
php
mvc
php5
null
null
null
open
Can doophp use autorouting and defined routes together === Is possible use defined routes and autorouting together? Defined routes must have higher priority than autoroutes. I tried to use, but after I set autoroutes on, defined routes dont work at all. index.php leaved unchanged: <?php include './prote...
0
9,154,908
02/06/2012 02:09:54
221,250
11/30/2009 10:06:46
48
0
How to paginate xml file using PHP? suggestions?
can you give just a sample script on how to paginate an XML document using PHP? let say this is the sample xml document <?xml version="1.0" encoding="iso-8859-1"?> <categories> <category type="category1"> <image> ../../images/gps2012_postImg1.jpg </image> ...
php
xml
pagination
null
null
null
open
How to paginate xml file using PHP? suggestions? === can you give just a sample script on how to paginate an XML document using PHP? let say this is the sample xml document <?xml version="1.0" encoding="iso-8859-1"?> <categories> <category type="category1"> <image...
0
10,692,809
05/21/2012 21:22:49
1,408,829
05/21/2012 21:16:45
1
0
Web Development -- Learning Web development languages, Platform - Grails or Ruby or any other ones?
I want to spend the summer getting into web development. I have some basic C++ and Java background. I was told by some people to master HTML & CSS first then Javascript. Then someone else told me that I should go with Grails while another person told me Ruby on Rails. I've always been interested in web development but ...
html
ruby-on-rails
css
grails
null
05/23/2012 03:42:13
not constructive
Web Development -- Learning Web development languages, Platform - Grails or Ruby or any other ones? === I want to spend the summer getting into web development. I have some basic C++ and Java background. I was told by some people to master HTML & CSS first then Javascript. Then someone else told me that I should go wi...
4
6,335,586
06/13/2011 19:56:02
729,624
04/28/2011 15:26:46
38
0
How to get a collapsible bottom bar Jquery?
I want to do something like this: http://devheart.org/articles/jquery-collapsible-sidebar-layout/ But I would like the separator bar to be vertical such that the sidepanel is on the bottom and content is on top divided by a separator that runs horizontally to expand and collapse. What tweaks are needed to acc...
javascript
jquery
null
null
null
06/13/2011 22:24:55
not a real question
How to get a collapsible bottom bar Jquery? === I want to do something like this: http://devheart.org/articles/jquery-collapsible-sidebar-layout/ But I would like the separator bar to be vertical such that the sidepanel is on the bottom and content is on top divided by a separator that runs horizontally to expan...
1
10,484,278
05/07/2012 14:55:54
1,380,016
05/07/2012 14:47:01
1
0
latexdiff error: program refuses to recognize my .tex file
I have zero background in programming, but I need to use latexdiff to track changes between two documents. I've installed a cygwin terminal and used "make install" to install the latexdiff program, but when I execute the following command line: "latexdiff chienyu.tex chienyuedited.tex > diff.tex" I get the follow...
latex
null
null
null
null
05/08/2012 18:04:44
off topic
latexdiff error: program refuses to recognize my .tex file === I have zero background in programming, but I need to use latexdiff to track changes between two documents. I've installed a cygwin terminal and used "make install" to install the latexdiff program, but when I execute the following command line: "latexdi...
2
6,497,862
06/27/2011 19:25:39
675,285
03/23/2011 13:40:15
1,041
40
Calling Process.Start with invalid credentials.
What happens if I call [Process.Start](http://msdn.microsoft.com/en-us/library/ed04yy3t.aspx) with invalid credentials (i.e., password)? I'm getting a Win32Exception but that doesn't seem right to me. However, the documentation suggests it's not designed to report credential errors. Is this a security feature?
c#
process
remote-working
null
null
null
open
Calling Process.Start with invalid credentials. === What happens if I call [Process.Start](http://msdn.microsoft.com/en-us/library/ed04yy3t.aspx) with invalid credentials (i.e., password)? I'm getting a Win32Exception but that doesn't seem right to me. However, the documentation suggests it's not designed to report cr...
0