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,779,004
07/21/2011 15:54:41
787,756
06/07/2011 15:25:27
1
0
How to initialize pointers properly
I have the following code that calls the function uint32_pack. This program compiles with no errors in Dev-C++ but does not produce the correct result when 'tag' is an even number. In Visual Studio the program compiles but produces errors and I'm guessing that these errors are why I don't get the correct output when '...
c
visual-studio-2010
function
pointers
null
null
open
How to initialize pointers properly === I have the following code that calls the function uint32_pack. This program compiles with no errors in Dev-C++ but does not produce the correct result when 'tag' is an even number. In Visual Studio the program compiles but produces errors and I'm guessing that these errors are ...
0
4,036,251
10/27/2010 18:06:14
416,926
08/11/2010 06:46:13
159
58
How to connect to modems within tcp clients in multiple port or other way?
I have around 5000 modem (thin clients), and I want to communicate with them, one of a my method is like this : `string GetModemData(modemID)`, now I have an open port in server that listens to modem and I'm using socket programming to send data to modems (calling related function), but when i want send data to multipl...
c#
asp.net
sockets
parallel-processing
null
null
open
How to connect to modems within tcp clients in multiple port or other way? === I have around 5000 modem (thin clients), and I want to communicate with them, one of a my method is like this : `string GetModemData(modemID)`, now I have an open port in server that listens to modem and I'm using socket programming to send...
0
11,288,633
07/02/2012 06:23:28
1,442,115
06/07/2012 11:49:40
1
0
Can you launch jQuery from SVG?
I would like to post on http://anysite.com (any forum/blog/site/...) a *SVG* IMAGE TAG remotely like this: < img src="http://myownsite.com/myimage.svg" > (my own site) in order to launch jQuery/javascript/ajax from it. In detail, I would like the .svg file to open a bigger div including interactive feature...
javascript
jquery
svg
null
null
07/02/2012 14:20:37
not a real question
Can you launch jQuery from SVG? === I would like to post on http://anysite.com (any forum/blog/site/...) a *SVG* IMAGE TAG remotely like this: < img src="http://myownsite.com/myimage.svg" > (my own site) in order to launch jQuery/javascript/ajax from it. In detail, I would like the .svg file to open a big...
1
10,786,022
05/28/2012 14:09:28
1,372,393
05/03/2012 11:54:26
1
0
Writing data into a bmp file
I'm currently interfacing an oscilloscope (agilent DSO7104B) in objective-c, and my goal is to get the image displayed on the screen of the oscilloscope. The scope sends me the bmp data and then i put it into an empty file and I try to open it, but the image is displayed weirdly, with a kind of offset. Here is my code...
objective-c
bitmap
bmp
null
null
null
open
Writing data into a bmp file === I'm currently interfacing an oscilloscope (agilent DSO7104B) in objective-c, and my goal is to get the image displayed on the screen of the oscilloscope. The scope sends me the bmp data and then i put it into an empty file and I try to open it, but the image is displayed weirdly, with...
0
1,282,763
08/15/2009 20:27:35
45,005
12/10/2008 14:51:54
875
19
Physical world examples of design for testability and test driven development
I'm going to be doing a presentation on unit testing and in doing so I will touch on "design for testability" patterns. In other words using IOC containers, Dependency Injection, avoiding static methods etc. I have a feeling my team will be cold to starting to code differently to accommodate for testing. So I was ...
design-patterns
unit-testing
design
presentations
null
05/05/2012 13:54:40
not constructive
Physical world examples of design for testability and test driven development === I'm going to be doing a presentation on unit testing and in doing so I will touch on "design for testability" patterns. In other words using IOC containers, Dependency Injection, avoiding static methods etc. I have a feeling my team ...
4
11,529,374
07/17/2012 19:20:44
1,362,765
04/28/2012 10:51:44
4
0
problems displaying data from mysql
I'm trying to display data from the database. But there are many errors. I can not understand them, please help. I use PHP 5.2 This is the text of the error: ## ERRNO: 2 TEXT: filemtime() [function.filemtime]: stat failed for C:\megapolis/presentation/templates_c90c5e5fee090eaeeef24c7237c96d1343779fa70.fil...
php
mysql
null
null
null
07/17/2012 19:32:49
too localized
problems displaying data from mysql === I'm trying to display data from the database. But there are many errors. I can not understand them, please help. I use PHP 5.2 This is the text of the error: ## ERRNO: 2 TEXT: filemtime() [function.filemtime]: stat failed for C:\megapolis/presentation/templates_c90c...
3
9,759,139
03/18/2012 14:31:45
962,667
09/24/2011 13:42:35
51
0
PHP Zend Framework Zend_Pdf - number of pages of pdf document
simple thing which I need to do is, that I have a pdf document and i need return number of pages of this document. I should to do this with a Zend Framework. Thanks in advance for answers
php
zend-framework
pdf
null
null
null
open
PHP Zend Framework Zend_Pdf - number of pages of pdf document === simple thing which I need to do is, that I have a pdf document and i need return number of pages of this document. I should to do this with a Zend Framework. Thanks in advance for answers
0
467,276
01/21/2009 22:20:57
17,847
09/18/2008 15:27:47
1,317
62
How do I map a one-to-one association with NHibernate using foreign key generator?
So far the association works fine (the `User` class loads the appropriate `UserRoles` instance when present), but when creating a new `User` and setting its `Roles` property to a new instance of `UserRoles`, the `UserRoles` object is not saved. Here is my abridged User.hbm.xml: <?xml version="1.0" encoding="u...
nhibernate
object-relational-mapping
foreign-keys
.net
null
null
open
How do I map a one-to-one association with NHibernate using foreign key generator? === So far the association works fine (the `User` class loads the appropriate `UserRoles` instance when present), but when creating a new `User` and setting its `Roles` property to a new instance of `UserRoles`, the `UserRoles` object i...
0
10,140,523
04/13/2012 12:08:30
1,144,869
01/12/2012 06:50:01
36
0
Hadoop memory limit exceeded
I am running a Hadoop streaming job. This job fails with error: "TaskTree [pid=13549,tipID=attempt_201202130706_121058_m_000000_0] is running beyond memory-limits. Current usage : 1667149824bytes. Limit : 1610612736bytes. Killing task." For this job, mapred.job.map.memory.mb is set to 1536. Setting this to 1536*2 =...
hadoop
mapreduce
null
null
null
null
open
Hadoop memory limit exceeded === I am running a Hadoop streaming job. This job fails with error: "TaskTree [pid=13549,tipID=attempt_201202130706_121058_m_000000_0] is running beyond memory-limits. Current usage : 1667149824bytes. Limit : 1610612736bytes. Killing task." For this job, mapred.job.map.memory.mb is set...
0
11,292,932
07/02/2012 11:41:01
497,084
11/04/2010 11:02:24
514
15
Cannot stop Verbose Trace Logs from shipping on Windows Azure
We use the Windows Azure Diagnostics Monitor Trace Listener to ship our trace logs to Azure Diagnostics. As we have a large number of verbose logs we have decided to stop shipping these to Azure Diagnostics to simply debugging. However when we set the `ScheduledTransferLogLevelFilter` property it seems to be ignore...
c#
logging
azure
windows-azure-diagnostics
null
null
open
Cannot stop Verbose Trace Logs from shipping on Windows Azure === We use the Windows Azure Diagnostics Monitor Trace Listener to ship our trace logs to Azure Diagnostics. As we have a large number of verbose logs we have decided to stop shipping these to Azure Diagnostics to simply debugging. However when we set t...
0
8,921,702
01/19/2012 05:59:32
614,130
02/12/2011 10:35:11
168
4
What are the advantage and disadvantage using Phongap build?
What are the advantage and disadvantage using Phongap build? Is it the only way to build your apps, if not then why should I be using it? I have a Sencha touch application which I developed for Android and would like to distribute it to the Android market using phonegap as my wrapper. I was looking at the phonegap b...
android
ios
phonegap
null
null
01/19/2012 08:06:51
not constructive
What are the advantage and disadvantage using Phongap build? === What are the advantage and disadvantage using Phongap build? Is it the only way to build your apps, if not then why should I be using it? I have a Sencha touch application which I developed for Android and would like to distribute it to the Android mar...
4
2,851,831
05/17/2010 18:49:49
71,877
02/27/2009 14:02:52
1,217
56
SHBrowseForFolder and shortcuts
In my C++ Windows application, I have a function that is supposed to allow the end-user select a folder. I'm using SHBrowseForFolder and it is working fine except that folder shortcuts are not being displayed in the dialog. Does anyone know if it is possible to configure SHBrowseForFolder so that the end-users will ...
windows
winapi
visual-studio-2005
null
null
null
open
SHBrowseForFolder and shortcuts === In my C++ Windows application, I have a function that is supposed to allow the end-user select a folder. I'm using SHBrowseForFolder and it is working fine except that folder shortcuts are not being displayed in the dialog. Does anyone know if it is possible to configure SHBrowse...
0
4,975,484
02/12/2011 00:39:30
613,799
02/12/2011 00:08:51
1
0
need example sql transaction procedures for sales tracking or financial database
i am making a database for an accounting/sales type system similar to a car sales database and would like to make some transactions for the following real world actions salesman creates new product shipped onto floor (itempk, car make, year, price). salesman changes price. salesman creates sale entry for produ...
sql
stored-procedures
transactions
financial
sales
02/12/2011 14:57:34
not a real question
need example sql transaction procedures for sales tracking or financial database === i am making a database for an accounting/sales type system similar to a car sales database and would like to make some transactions for the following real world actions salesman creates new product shipped onto floor (itempk, car m...
1
5,968,595
05/11/2011 18:04:31
214,112
11/18/2009 21:38:33
509
27
Minimum bar width in Highcharts column charts
I'm using Highcharts to create some vertical bars (a.k.a. "column charts") a lot like here: http://www.highcharts.com/demo/column-basic Thing is, sometimes there are 30 bars in the chart, sometimes only two. Where then are two really wide bars in the chart, it looks really weird, so the decision was made to set a mi...
javascript
highcharts
null
null
null
null
open
Minimum bar width in Highcharts column charts === I'm using Highcharts to create some vertical bars (a.k.a. "column charts") a lot like here: http://www.highcharts.com/demo/column-basic Thing is, sometimes there are 30 bars in the chart, sometimes only two. Where then are two really wide bars in the chart, it looks...
0
3,035,868
06/14/2010 08:32:17
136,141
07/10/2009 08:41:48
1,093
17
Can you reccomend a podcast on OOP & Design?
Can you recommend me a web site providing pod-casts focused on OOP & Design? Thanks
oop
podcast
null
null
null
09/18/2011 02:53:39
not constructive
Can you reccomend a podcast on OOP & Design? === Can you recommend me a web site providing pod-casts focused on OOP & Design? Thanks
4
8,527,128
12/15/2011 21:52:21
1,092,428
12/11/2011 16:33:51
6
0
Could you recommend me a way to do this?
I am building a photo organizer and I want my app to have this function I can select menu and choose an option, and I can put down a description on the photo, such as where it was taken, what the picture is about, and when the picture was taken, and make my application remember the description and let me view ...
android
null
null
null
null
12/16/2011 15:34:30
not a real question
Could you recommend me a way to do this? === I am building a photo organizer and I want my app to have this function I can select menu and choose an option, and I can put down a description on the photo, such as where it was taken, what the picture is about, and when the picture was taken, and make my applica...
1
3,896,789
10/09/2010 09:40:58
470,979
10/09/2010 09:40:58
1
0
error java.net.socketexception permission denied
i am working with andriod2.2 while calling web service getting error like java.net.SocketException permission denied error ...already added the internet permission in andriodmanifeast file since getting error ....plz help me soon...............
android
null
null
null
null
04/07/2012 14:30:32
too localized
error java.net.socketexception permission denied === i am working with andriod2.2 while calling web service getting error like java.net.SocketException permission denied error ...already added the internet permission in andriodmanifeast file since getting error ....plz help me soon...............
3
5,147,656
02/28/2011 21:14:53
9
07/31/2008 21:35:26
2,984
40
Animation a Silverlight UI element width from 0 to auto, smoothly
I have a Silverlight UI with a slide-out panel. When a button is clicked, I'd like the panel to animate out smoothly, with the width going from 0 to Auto. Is there a way to do this (ideally with pure XAML)?
silverlight
animation
null
null
null
null
open
Animation a Silverlight UI element width from 0 to auto, smoothly === I have a Silverlight UI with a slide-out panel. When a button is clicked, I'd like the panel to animate out smoothly, with the width going from 0 to Auto. Is there a way to do this (ideally with pure XAML)?
0
9,180,320
02/07/2012 16:50:39
313,093
04/09/2010 19:01:24
374
7
MySQL order by field
Hi im trying to order domain data using their status. As you might know, domain status DOM_EXP or DOM_DAKT applies before domain hits DOM_HELD therefore i dont care whitch one of this status has a domain before it became DOM_HELD How can i order this data? Using select provided below i only achieve that DOM_DAKT is ...
mysql
order-by
order
ordering
null
null
open
MySQL order by field === Hi im trying to order domain data using their status. As you might know, domain status DOM_EXP or DOM_DAKT applies before domain hits DOM_HELD therefore i dont care whitch one of this status has a domain before it became DOM_HELD How can i order this data? Using select provided below i only...
0
8,205,415
11/20/2011 22:50:14
179,736
09/27/2009 11:27:55
7,435
53
What JavaScript libraries should be used for creating Gmail-like webapps?
I want to build a social network that's like Google Plus. In other words, parts of the page load, and the user doesn't have to wait for the whole page to re-load. I'm familiar with JQuery. But I've been hearing about: - Backbone.js - Spine.js - Sproutcore I have no idea where to start. Can Backbone.js do it ...
javascript
jquery
backbone.js
null
null
11/20/2011 22:57:14
not a real question
What JavaScript libraries should be used for creating Gmail-like webapps? === I want to build a social network that's like Google Plus. In other words, parts of the page load, and the user doesn't have to wait for the whole page to re-load. I'm familiar with JQuery. But I've been hearing about: - Backbone.js - ...
1
10,263,708
04/21/2012 22:46:38
122,769
06/14/2009 16:17:08
721
26
How to add <soap:Header> tag? WSDL not appearing with these info
I need to add to my message something like this: <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"> <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu...
web-services
c#-4.0
ws-security
soapheader
web-reference
null
open
How to add <soap:Header> tag? WSDL not appearing with these info === I need to add to my message something like this: <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"> <wsse:UsernameToken xml...
0
8,873,211
01/15/2012 20:42:07
1,067,819
11/27/2011 12:00:58
93
0
No suitable driver found exception in a Web Service on Glassfish server
I have a Java Web Application and using an operation of it from a consumer Java App i want to handle a MySQL database. When i am trying to get a connection to the database i get a: No suitable driver found for jdbc:mysql://localhost:3306/mysql I have put the JDBC connector jar to the classpath of both my Web ...
java
mysql
web-services
netbeans
jdbc
null
open
No suitable driver found exception in a Web Service on Glassfish server === I have a Java Web Application and using an operation of it from a consumer Java App i want to handle a MySQL database. When i am trying to get a connection to the database i get a: No suitable driver found for jdbc:mysql://localhost:330...
0
7,525,953
09/23/2011 08:01:23
795,849
06/13/2011 11:31:43
75
0
SSIS 2008 delete folder labeled with date
in SSIS 2008, how can code the following requirement: - delete all folder (labeled with date) < Current Date -30 Days ? any help much appreciate thxs!
ssis
null
null
null
null
null
open
SSIS 2008 delete folder labeled with date === in SSIS 2008, how can code the following requirement: - delete all folder (labeled with date) < Current Date -30 Days ? any help much appreciate thxs!
0
9,534,395
03/02/2012 13:50:24
1,058,586
11/21/2011 20:51:49
69
0
jQuery AJAX call to a database query
I have an AJAX function as so: function admin_check_fn(type) { //$("#notice_div").show(); //var allform = $('form#all').serialize(); $.ajax({ type: "POST", //async: false, url: "<?php bloginfo('template_url'); ?>/profile/adminquery_check....
jquery
mysql
ajax
null
null
null
open
jQuery AJAX call to a database query === I have an AJAX function as so: function admin_check_fn(type) { //$("#notice_div").show(); //var allform = $('form#all').serialize(); $.ajax({ type: "POST", //async: false, url: "<?php bloginfo('te...
0
422,543
01/07/2009 23:01:10
45,533
12/11/2008 22:17:46
1
0
Determining when a sound has finished playing in C#
Here is the situation:<br> User looks something up.<br> - Alert sound is played because there is a notice on the item he looked up - User closes the notice - the application continues to retrieve information - User is sent a 'ding' telling them the information has finished retrieving - Application begins...
c#
audio
.net
null
null
null
open
Determining when a sound has finished playing in C# === Here is the situation:<br> User looks something up.<br> - Alert sound is played because there is a notice on the item he looked up - User closes the notice - the application continues to retrieve information - User is sent a 'ding' telling them the in...
0
7,108,628
08/18/2011 14:01:03
884,007
08/08/2011 11:56:14
23
0
eclipse do two tasks in one step
I'd like a macro recorder, such as [this one](http://sourceforge.net/projects/practicalmacro/files/), or any other macro recorder, or any other eclipse trick that doesn't use a macro recorder (see I'm not exigent!) to do in one step only (click or keyboard shortcut) the two following tasks: running a maven configuratio...
eclipse
null
null
null
null
null
open
eclipse do two tasks in one step === I'd like a macro recorder, such as [this one](http://sourceforge.net/projects/practicalmacro/files/), or any other macro recorder, or any other eclipse trick that doesn't use a macro recorder (see I'm not exigent!) to do in one step only (click or keyboard shortcut) the two followi...
0
642,103
03/13/2009 10:28:58
77,616
03/13/2009 09:16:08
1
0
Casting interfaces and MEF
I have the following problem with MEF: Interface definition to be used by host: Public Interface IExecuteDoSomething Inherits IAddinSettings Event DataReceived As EventHandler(Of DataReceivedEventArgs) Function DoSomething() As Boolean End Interface Public C...
mef
vb.net
interface
null
null
null
open
Casting interfaces and MEF === I have the following problem with MEF: Interface definition to be used by host: Public Interface IExecuteDoSomething Inherits IAddinSettings Event DataReceived As EventHandler(Of DataReceivedEventArgs) Function DoSomething() As Boolean E...
0
2,193,682
02/03/2010 16:54:56
265,451
02/03/2010 16:45:23
1
0
Jython & Mysql - what is the current practice for connection?
Just trying jython for the first time, because something came up at work that would fit for this perfect for it. I assume jython can make mysql jdbc connection using the mysql jdbc driver. After googling and reading, however I am having problems and it seems jython specific and probably simple. so i do jython: ...
mysql
jython
null
null
null
null
open
Jython & Mysql - what is the current practice for connection? === Just trying jython for the first time, because something came up at work that would fit for this perfect for it. I assume jython can make mysql jdbc connection using the mysql jdbc driver. After googling and reading, however I am having problems and i...
0
11,098,746
06/19/2012 10:04:23
1,211,465
02/15/2012 13:46:07
389
2
play icon youtube video div overlay
I have an image nav but the client wants to add a video icon via the product description. ![enter image description here][1] When the user clicks on the video icon it should overlay the youtube video on top of the main product image. Kinda like hiding it and just showing the video. I cannot find any jquery plu...
javascript
jquery
css
youtube
overlay
null
open
play icon youtube video div overlay === I have an image nav but the client wants to add a video icon via the product description. ![enter image description here][1] When the user clicks on the video icon it should overlay the youtube video on top of the main product image. Kinda like hiding it and just showing t...
0
3,134,585
06/28/2010 17:19:20
82,368
03/25/2009 04:27:50
1,099
32
Book Recommendation to learn more about Virtual Machines
I have always been intrigued and mystified by Virtual Machines and how they operate. I want to learn more about the inner workings of a virtual machine. Are there any good books on Virtual Machines/Virtual machine designs/Tour of a sample machine? How do I go about studying one? Do I pick up a spec for the JVM ...
clr
jvm
virtual-machine
vm
null
09/17/2011 22:42:49
not constructive
Book Recommendation to learn more about Virtual Machines === I have always been intrigued and mystified by Virtual Machines and how they operate. I want to learn more about the inner workings of a virtual machine. Are there any good books on Virtual Machines/Virtual machine designs/Tour of a sample machine? Ho...
4
1,858,886
12/07/2009 09:38:15
102,040
03/21/2009 15:04:39
434
20
what are the fastest/Popular search technologies
What are the fastest search technologies apart from Relational DB Searches ? I have a collection of Text Files from varied sources (Banks/Ledgers/Stock Markets). Each line in these Text Files is a Record. Each line can further be parsed into some DB Columns(Stock Name/Date of purchase/Owner/...). It is not necessary...
database
search
full-text-search
indexing
null
04/27/2012 12:22:04
not constructive
what are the fastest/Popular search technologies === What are the fastest search technologies apart from Relational DB Searches ? I have a collection of Text Files from varied sources (Banks/Ledgers/Stock Markets). Each line in these Text Files is a Record. Each line can further be parsed into some DB Columns(Stock...
4
4,236,352
11/21/2010 03:53:29
514,880
11/21/2010 03:47:58
1
0
No ADT plugin options available
I'm running Ubuntu 10.10 and installed Eclipse 3.5 (Galileo) for Java Developers along with the Android SDK. When I add the following URL into the "work With" field under Eclipse's Install New Software menu: https://dl-ssl.google.com/android/eclipse No plugins appear between the "Work With" and "Options" section...
eclipse-plugin
null
null
null
null
null
open
No ADT plugin options available === I'm running Ubuntu 10.10 and installed Eclipse 3.5 (Galileo) for Java Developers along with the Android SDK. When I add the following URL into the "work With" field under Eclipse's Install New Software menu: https://dl-ssl.google.com/android/eclipse No plugins appear between ...
0
2,459,897
03/17/2010 04:25:50
40,945
11/26/2008 08:20:12
1,651
44
Using grails service in domain class
In my grails application I want use service.However it is always coming as null.I am using grails 1.1 version.How to solve this problem. Sample code: class A{ String name; def testService; static transients=['testService'] } Can we use service inside domain class?
grails
null
null
null
null
null
open
Using grails service in domain class === In my grails application I want use service.However it is always coming as null.I am using grails 1.1 version.How to solve this problem. Sample code: class A{ String name; def testService; static transients=['testService'] } Can we us...
0
5,636,028
04/12/2011 13:32:50
767,766
04/12/2011 13:02:08
1
0
query related to window7(64bit) and (32 bit) O.S
how to run 32 bit apps on 64 bit o.s?
query
null
null
null
null
04/12/2011 15:24:08
not a real question
query related to window7(64bit) and (32 bit) O.S === how to run 32 bit apps on 64 bit o.s?
1
3,788,667
09/24/2010 15:39:17
405,398
07/29/2010 07:41:10
311
0
Can any one explain this SQL Query?
Today, my boss told the below SQL query and went out without explaining it. Its working good. But i want to know the way how it works. `SELECT NAME FROM PERMISSIONTOKENS WHERE ID IN(SELECT TOKENID FROM ROLETOKENASSOCIATION WHERE ROLEID = '1');`
sql
null
null
null
null
null
open
Can any one explain this SQL Query? === Today, my boss told the below SQL query and went out without explaining it. Its working good. But i want to know the way how it works. `SELECT NAME FROM PERMISSIONTOKENS WHERE ID IN(SELECT TOKENID FROM ROLETOKENASSOCIATION WHERE ROLEID = '1');`
0
4,611,111
01/06/2011 01:59:00
192,910
10/20/2009 07:56:41
3,700
194
Best framework or system architecture for telemetry / SCADA system design & programming
I asked [a question about a good book for this topic][1]. It's not getting many replies, so maybe there arn't any good books (although I find that strange; I must go search Amazon for myself). In the absence of a book, maybe tehre is a good framework, some good URLs, or just general advice. As I asked in the ...
web-applications
architecture
frameworks
performance-measurement
scada
null
open
Best framework or system architecture for telemetry / SCADA system design & programming === I asked [a question about a good book for this topic][1]. It's not getting many replies, so maybe there arn't any good books (although I find that strange; I must go search Amazon for myself). In the absence of a book, m...
0
7,481,934
09/20/2011 08:04:16
860,191
07/24/2011 12:11:55
19
0
Asp.net mvc work with out Inernet connection on Server computer
Does someone has done the following: Omu.Awesome.Core.dll and Omu.Awesome.Mvc.dll asp.net mvc applications should be running on your computer that has no connection to I internet.All localized and removed files are not the only acquaintance I Has anyone worked with him and how can you look at the source code of the ...
asp.net-mvc
null
null
null
null
09/20/2011 19:15:11
not a real question
Asp.net mvc work with out Inernet connection on Server computer === Does someone has done the following: Omu.Awesome.Core.dll and Omu.Awesome.Mvc.dll asp.net mvc applications should be running on your computer that has no connection to I internet.All localized and removed files are not the only acquaintance I Has a...
1
9,074,771
01/31/2012 05:17:37
1,179,554
01/31/2012 05:03:14
1
0
Java - How do I Retrieve Text from Website (Not Source)
I want to use java to retrieve text from a website. I can easily get the source by doing: (Thank you random internet person who posted this somewhere else) import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; ...
java
bots
null
null
null
01/31/2012 13:05:44
not constructive
Java - How do I Retrieve Text from Website (Not Source) === I want to use java to retrieve text from a website. I can easily get the source by doing: (Thank you random internet person who posted this somewhere else) import java.io.BufferedReader; import java.io.InputStreamReader; import ja...
4
6,636,810
07/09/2011 18:56:47
458,610
09/26/2010 08:40:27
727
6
What is CMS anyway?
I understand that CMS stands for "Content Management System". As much as I understand... that means that user can change pages of site without knowing HTML, right? He just sign in (so there are some authorization system) and can freely add/modify/remove pages with some kind of rich-text editor. Right? And when he saves...
php
web-applications
content-management-system
null
null
07/09/2011 19:22:57
not a real question
What is CMS anyway? === I understand that CMS stands for "Content Management System". As much as I understand... that means that user can change pages of site without knowing HTML, right? He just sign in (so there are some authorization system) and can freely add/modify/remove pages with some kind of rich-text editor....
1
11,317,117
07/03/2012 18:38:50
1,499,683
07/03/2012 18:36:03
1
0
Mod_Rewrite Expert Needed
I'm creating a website with Mod_Rewrite at the Moment All urls are redirected to the page name with .php on the end. But /about/ and /photos/ should redirect to page.php?page=about and page.php?page=photos. Is there a way to do this? Connor
php
mod-rewrite
null
null
null
null
open
Mod_Rewrite Expert Needed === I'm creating a website with Mod_Rewrite at the Moment All urls are redirected to the page name with .php on the end. But /about/ and /photos/ should redirect to page.php?page=about and page.php?page=photos. Is there a way to do this? Connor
0
11,113,867
06/20/2012 06:21:00
1,321,343
04/09/2012 06:59:30
1
0
Best technique to do multi theading in C++
Which is the best technique to do multi threading in C++ on linux platform.
c++
linux
multithreading
api
null
06/20/2012 06:29:57
not a real question
Best technique to do multi theading in C++ === Which is the best technique to do multi threading in C++ on linux platform.
1
9,666,629
03/12/2012 12:00:37
1,263,859
03/12/2012 10:25:48
1
0
InetAddress not able to retrieve FQDN while nslookup is able to
I'm trying to retrieve a FQDN of a specific computer from the DNS but on my environment when I use nslookup on the hostname I get its FQDN but when I try this code in Java I only get the host name back: netAddress.getByName("Host name or address").getCanonicalHostName() What can be the cause? Is there a better metho...
java
ldap
domain
dns
null
null
open
InetAddress not able to retrieve FQDN while nslookup is able to === I'm trying to retrieve a FQDN of a specific computer from the DNS but on my environment when I use nslookup on the hostname I get its FQDN but when I try this code in Java I only get the host name back: netAddress.getByName("Host name or address").get...
0
6,616,976
07/07/2011 20:47:52
814,962
06/25/2011 02:43:40
32
0
Why does this SSL_pending call always return zero?
This code is for an HTTPS server using blocking sockets: request := ''; start := gettickcount; repeat if SSL_pending(ssl) > 0 then begin bytesin := SSL_read(ssl, buffer, sizeof(buffer)-1); if bytesin > 0 then begin buffer[bytesin...
https
openssl
winsock
null
null
null
open
Why does this SSL_pending call always return zero? === This code is for an HTTPS server using blocking sockets: request := ''; start := gettickcount; repeat if SSL_pending(ssl) > 0 then begin bytesin := SSL_read(ssl, buffer, sizeof(buffer)-1); if bytesin...
0
4,116,306
11/07/2010 02:54:03
294,916
03/16/2010 15:59:44
6
0
NSFetchedResultsController and childController
In the [RootViewController][1] I do a fetch request to the core data store (?) and it returns an NSSet of, let's say, recipes. When a user selects a recipe in the rootviewcontroller I do a pushViewController and push one of the recipes to the childcontroller. In the childController the user has the possibility to re...
iphone
null
null
null
null
null
open
NSFetchedResultsController and childController === In the [RootViewController][1] I do a fetch request to the core data store (?) and it returns an NSSet of, let's say, recipes. When a user selects a recipe in the rootviewcontroller I do a pushViewController and push one of the recipes to the childcontroller. In th...
0
3,780,515
09/23/2010 16:30:24
363,889
06/10/2010 19:39:01
123
0
Hibernate Annotations and SQL Server
I'm using Hibernate Annotations and trying to save an object. But when saving object I get: Cannot insert the value NULL into column 'status' The thing is that in my SQL Server 2008 configuration that field is defaulted to '0'. Now I dot not want to manually set the default value in my Java code like status...
java
sql-server
hibernate
jpa
annotations
09/24/2010 02:37:24
too localized
Hibernate Annotations and SQL Server === I'm using Hibernate Annotations and trying to save an object. But when saving object I get: Cannot insert the value NULL into column 'status' The thing is that in my SQL Server 2008 configuration that field is defaulted to '0'. Now I dot not want to manually set the...
3
5,924,631
05/07/2011 23:16:46
743,497
05/07/2011 23:16:46
1
0
insert from two database some row to one data base that rows
if i have database with name db1 and db1 have row 1, row 2, row 3, row 4, row 5 and i have database with name db2 and db2 have row a, row b, row c, row d, row e and i have database with name db3 wih row f1, row f2, row f3 and i whant to conect next to db3 take data from row 1 and set it in row f1; to ta...
php
null
null
null
null
05/08/2011 18:26:08
not a real question
insert from two database some row to one data base that rows === if i have database with name db1 and db1 have row 1, row 2, row 3, row 4, row 5 and i have database with name db2 and db2 have row a, row b, row c, row d, row e and i have database with name db3 wih row f1, row f2, row f3 and i whant to c...
1
4,528,414
12/24/2010 21:33:59
1,736
08/18/2008 11:29:16
2,117
26
How to scale text when drawing to an Image with c#
I would like to draw some text in a rectangle and have it scale to the maximum size that fits within the rectangle. So far I have this: Bitmap bitmapImage = new Bitmap(500, 500); Graphics graphicImage = Graphics.FromImage(bitmapImage); graphicImage.SmoothingMode = System.Drawing.Drawing...
c#
text
scale
system.drawing
null
null
open
How to scale text when drawing to an Image with c# === I would like to draw some text in a rectangle and have it scale to the maximum size that fits within the rectangle. So far I have this: Bitmap bitmapImage = new Bitmap(500, 500); Graphics graphicImage = Graphics.FromImage(bitmapImage); ...
0
7,879,317
10/24/2011 17:19:46
51,649
01/05/2009 13:47:38
1,617
52
Speeding Up Writes to Amazon S3
I am trying to upload an image to Amazon S3 using C#: PutObjectRequest titledRequest = null; S3Response response = null; using (var memoryStream = new MemoryStream()) { image.Save(memoryStream, ImageFormat.Png); titledRequest = new PutObjectRequest(); ...
c#
amazon-s3
null
null
null
null
open
Speeding Up Writes to Amazon S3 === I am trying to upload an image to Amazon S3 using C#: PutObjectRequest titledRequest = null; S3Response response = null; using (var memoryStream = new MemoryStream()) { image.Save(memoryStream, ImageFormat.Png); titledR...
0
7,447,759
09/16/2011 16:28:24
755,393
05/16/2011 09:04:11
502
31
PHP and "array json style", why not?
I don't know if I can ask this question here. I usually mistake, but... I every want the "array json style" on PHP, like `$a = [1, 2, $value];`. But I read that PHP developers HATE this idea because too many people wants, and they thought it best not to offer the feature. The question is: **WHY?** I thought that...
php
arrays
json
null
null
09/16/2011 16:47:32
not constructive
PHP and "array json style", why not? === I don't know if I can ask this question here. I usually mistake, but... I every want the "array json style" on PHP, like `$a = [1, 2, $value];`. But I read that PHP developers HATE this idea because too many people wants, and they thought it best not to offer the feature. ...
4
3,890,738
10/08/2010 13:05:04
188,475
10/12/2009 14:25:20
558
53
I can code only in evenings, but not in the morning or noon. Is there any way to fix it?
This is probably not the 100% programming question. But the SO is best place to ask it. **I can code only in the evenings.** After 15:00 I perform very-very good. Till the midnight I can do more than any of my colleagues did same day. But my colleagues requires me in the morning and noon. So I must be in the office ...
productivity
time-management
null
null
null
10/08/2010 16:28:09
off topic
I can code only in evenings, but not in the morning or noon. Is there any way to fix it? === This is probably not the 100% programming question. But the SO is best place to ask it. **I can code only in the evenings.** After 15:00 I perform very-very good. Till the midnight I can do more than any of my colleagues di...
2
8,557,130
12/19/2011 04:35:13
535,967
12/09/2010 05:51:49
969
5
Nested foreach to echo a particular key from sub-array?
I'm trying to get key = 'Tipo' from each nested sub-array. This is array `$palabras`: Array ( [0] => Array ( [Palabra] => juan ) [1] => Array ( [Palabra] => es [0] => Array ( [Raiz] => ...
php
null
null
null
null
null
open
Nested foreach to echo a particular key from sub-array? === I'm trying to get key = 'Tipo' from each nested sub-array. This is array `$palabras`: Array ( [0] => Array ( [Palabra] => juan ) [1] => Array ( [Palabra] => es [0...
0
9,935,344
03/30/2012 00:04:55
1,292,857
03/26/2012 11:12:44
26
0
Ideas on how to copy something from 1 application to another
I am looking for ideas but what I want to know is that I am creating multiple exams. Now lets say I have 2 exams, I create the questions and answers for exam 1 and the submit the form, I then get onto exam 2, now in exam 2 there will be some different questions but there could also be the same questions from exam 1 but...
php
jquery
html
forms
null
03/30/2012 21:25:45
not a real question
Ideas on how to copy something from 1 application to another === I am looking for ideas but what I want to know is that I am creating multiple exams. Now lets say I have 2 exams, I create the questions and answers for exam 1 and the submit the form, I then get onto exam 2, now in exam 2 there will be some different qu...
1
11,702,088
07/28/2012 14:59:07
1,348,905
04/21/2012 22:57:41
87
20
Javascript Redirect with SetTimout Not Working
Can't seem to get this javascript redirect to work? Suggestions? Should I maybe do it with a meta refresh and how? // If we have a successful location update function onGeoSuccess(event) { document.getElementById("Latitude").value = event.coords.latitude; document.getElementById("Longitude").value...
javascript
gps
null
null
null
null
open
Javascript Redirect with SetTimout Not Working === Can't seem to get this javascript redirect to work? Suggestions? Should I maybe do it with a meta refresh and how? // If we have a successful location update function onGeoSuccess(event) { document.getElementById("Latitude").value = event.coords.lati...
0
1,045,617
06/25/2009 18:57:13
127,776
06/23/2009 18:45:59
5
1
ASP .NET - Setting the value of a DetailsView TextBox
I am attempting to use the code-behind (Page_Load or PreRender) to set a date-time textbox in a DetailsView so that it defaults to a current date-time. What I have attempted is (one of many variations): protected void DetailsView2_PreRender(object sender, EventArgs e) { ((TextBox)DetailsView...
asp
.net
c#
null
null
null
open
ASP .NET - Setting the value of a DetailsView TextBox === I am attempting to use the code-behind (Page_Load or PreRender) to set a date-time textbox in a DetailsView so that it defaults to a current date-time. What I have attempted is (one of many variations): protected void DetailsView2_PreRender(object sen...
0
6,239,530
06/04/2011 21:31:54
760,538
05/19/2011 07:21:57
1
0
supporting multiple screen sizes in android
Hi I'm new to android world.Iam working on an application that supports multiple screen sizes i did as explained here http://developer.android.com/guide/practices/screens_support.html#screen-independence . I didn't create different xmls for each screen size. But when I tested it on android 3 emulator it appears in smal...
android
screen-size
null
null
null
null
open
supporting multiple screen sizes in android === Hi I'm new to android world.Iam working on an application that supports multiple screen sizes i did as explained here http://developer.android.com/guide/practices/screens_support.html#screen-independence . I didn't create different xmls for each screen size. But when I t...
0
9,836,220
03/23/2012 08:46:18
1,163,486
01/22/2012 13:33:15
8
0
AAC-LC format and RTP
I'm trying to encode AAC-LC data packed in 3gpp to RTP. I've gone through rfc 3640 but I still don't know exactly where to start from. What will I find in the AAC data exactly ? If I'm not wrong , the first 40 bytes will be the MP4 header, but what comes afterwards and where can I find It's definition ? In order to bui...
rtp
aac
null
null
null
null
open
AAC-LC format and RTP === I'm trying to encode AAC-LC data packed in 3gpp to RTP. I've gone through rfc 3640 but I still don't know exactly where to start from. What will I find in the AAC data exactly ? If I'm not wrong , the first 40 bytes will be the MP4 header, but what comes afterwards and where can I find It's d...
0
8,487,673
12/13/2011 10:33:06
1,029,944
11/04/2011 15:18:02
492
34
How would you make this Python Dictionary thread-safe?
I have a Web Server running in `Python`. The server is private, so i only expect around 20 users to connect to it. The server is multi-threaded (8 cores at the moment, so 8 threads I guessed). When requests come in, I am able to identify the users. On some queries, I need to update a simple `dictionary` of the form ...
python
multithreading
null
null
null
null
open
How would you make this Python Dictionary thread-safe? === I have a Web Server running in `Python`. The server is private, so i only expect around 20 users to connect to it. The server is multi-threaded (8 cores at the moment, so 8 threads I guessed). When requests come in, I am able to identify the users. On some ...
0
6,067,335
05/20/2011 04:01:35
553,739
12/25/2010 08:13:52
207
4
javascript use for getting element
<li class="even"> <a href="www.google.com">Click here </a> </li> I want to change anchor tag text "Click here" using javascript. How can i accomplish this ? I do not want to use jquery.
javascript
null
null
null
null
null
open
javascript use for getting element === <li class="even"> <a href="www.google.com">Click here </a> </li> I want to change anchor tag text "Click here" using javascript. How can i accomplish this ? I do not want to use jquery.
0
10,583,770
05/14/2012 12:55:28
617,554
02/15/2011 10:05:53
1
0
Copying List to Map in C++
****I an new to C++ I need to know how to copy form the list to Map in C++. Please provide the code snippet.****
c++
null
null
null
null
05/14/2012 13:39:41
not a real question
Copying List to Map in C++ === ****I an new to C++ I need to know how to copy form the list to Map in C++. Please provide the code snippet.****
1
11,197,789
06/25/2012 21:42:34
1,430,675
06/01/2012 12:24:23
1
0
decision tree error in SPSS is too big
I implement decision trees in SPSS using the CRT Growing Method. Iam using the datasets COCOMO81, NASA93, Desharnais, Maxwell. The values I get for estimate and std error in the table of Risk are too big like thousands. What can i do for it? I tried to change the nodes for parent node and child nodes but again I...
spss
null
null
null
null
06/25/2012 21:55:07
off topic
decision tree error in SPSS is too big === I implement decision trees in SPSS using the CRT Growing Method. Iam using the datasets COCOMO81, NASA93, Desharnais, Maxwell. The values I get for estimate and std error in the table of Risk are too big like thousands. What can i do for it? I tried to change the nodes...
2
11,610,657
07/23/2012 10:22:18
802,105
06/16/2011 18:47:09
12
0
Java Servlet Hosting
I want to find a hosting service for a small Java servlet (running on Tomcat, no database required). Any suggestions or anything I need to be careful about? Also: The only thing I need to upload to the hosting service is the .war file? thanks a lot.
java
servlets
hosting
null
null
07/23/2012 10:45:49
off topic
Java Servlet Hosting === I want to find a hosting service for a small Java servlet (running on Tomcat, no database required). Any suggestions or anything I need to be careful about? Also: The only thing I need to upload to the hosting service is the .war file? thanks a lot.
2
5,227,565
03/08/2011 02:14:21
228,521
12/10/2009 05:19:51
1
0
How do I find .bash_profile and add to my shell's initialization file?
I am trying to upgrade ruby using rvm. On the pragmatic site (http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac), it says: `The important part is to add the following line to the end of your shell's initialization file (.bash_profile): [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/script...
ruby
upgrade
null
null
null
03/08/2011 03:19:48
off topic
How do I find .bash_profile and add to my shell's initialization file? === I am trying to upgrade ruby using rvm. On the pragmatic site (http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac), it says: `The important part is to add the following line to the end of your shell's initialization file (.bash...
2
7,006,611
08/10/2011 06:15:50
533,399
12/07/2010 08:52:27
3,136
236
Looking for a funny and intelligent C code depicting this situation
As a content for a blog entry, I am looking for a simple C program which has following behaviour: Consider a situation,I am a programmer, participating in a programming competition and solving a problem given. I write down a program, and just before the submission time, 1-2 lines of my code seem uncertain to me, so ...
c
null
null
null
null
08/10/2011 06:25:44
too localized
Looking for a funny and intelligent C code depicting this situation === As a content for a blog entry, I am looking for a simple C program which has following behaviour: Consider a situation,I am a programmer, participating in a programming competition and solving a problem given. I write down a program, and just b...
3
9,999,322
04/03/2012 18:37:27
1,148,439
01/13/2012 20:14:59
8
0
How to run long running report in the background
Oracle Application server 10g I need to run the long running reports in the background because while the report is running the cursor is loading and the control doesn't return to the user this feature exist in oracle 6i by set the following parameter RUN_PRODUCT( REPORTS, 'r_1', ASYNCHRONOUS, RUNTIME, FILESYST...
oracle10g
oas
null
null
null
null
open
How to run long running report in the background === Oracle Application server 10g I need to run the long running reports in the background because while the report is running the cursor is loading and the control doesn't return to the user this feature exist in oracle 6i by set the following parameter RUN_PR...
0
10,778,659
05/28/2012 02:09:24
1,328,356
04/12/2012 06:45:41
82
1
Creating a variable selector with jQuery?
Let me clarify. I have a giant loop which parses XML, places markers on a google map accordingly, and makes hidden divs, one per marker, which contain info relating to that marker. The loop also places on each marker an event which opens an info window. The info window contains a button which must show that parti...
jquery
null
null
null
null
null
open
Creating a variable selector with jQuery? === Let me clarify. I have a giant loop which parses XML, places markers on a google map accordingly, and makes hidden divs, one per marker, which contain info relating to that marker. The loop also places on each marker an event which opens an info window. The info wind...
0
8,179,468
11/18/2011 08:11:16
1,053,364
11/18/2011 08:03:17
1
0
Neo4J as OLAP performance benchmark
I would like to know if Neo4J can be used as OLAP. The search says it is great tool as OLTP. However there are no proven case studies as OLAP. Also only Jasper 1st version of connector with Neo4J. I have not seen any connectors from other BI providers. If there are any BI providers that have auto connector with Neo...
olap
neo4j
null
null
null
null
open
Neo4J as OLAP performance benchmark === I would like to know if Neo4J can be used as OLAP. The search says it is great tool as OLTP. However there are no proven case studies as OLAP. Also only Jasper 1st version of connector with Neo4J. I have not seen any connectors from other BI providers. If there are any BI pr...
0
6,121,060
05/25/2011 07:38:13
461,972
09/29/2010 16:06:34
558
56
Activity in android
I load lots of contents(images,text,etc..) from server and displayed it on the listview in the activity-A.on clicking the any one row of the listview,i finish the activity and release all the variables(to avoid memory problems) and open another activity-B and display the content in detailed format.suppose when hitting...
android
null
null
null
null
null
open
Activity in android === I load lots of contents(images,text,etc..) from server and displayed it on the listview in the activity-A.on clicking the any one row of the listview,i finish the activity and release all the variables(to avoid memory problems) and open another activity-B and display the content in detailed fo...
0
6,332,662
06/13/2011 15:38:00
796,201
06/13/2011 15:38:00
1
0
Crash log analysis
I have a customer who has submitted to me about ten crash logs, and I have symbolized the logs in XCode. I just have no idea what this means. Please help me analyze this crash log: Incident Identifier: 0E7CF1DF-B79C-4AE1-9FB3-7F13D916C844 CrashReporter Key: 0d530a5efc7ff5fff35f75efe047862f1e3ec068 Hardware Mod...
iphone
ios
xcode
ipad
crash-reports
06/13/2011 19:15:22
too localized
Crash log analysis === I have a customer who has submitted to me about ten crash logs, and I have symbolized the logs in XCode. I just have no idea what this means. Please help me analyze this crash log: Incident Identifier: 0E7CF1DF-B79C-4AE1-9FB3-7F13D916C844 CrashReporter Key: 0d530a5efc7ff5fff35f75efe04786...
3
7,091,356
08/17/2011 10:32:06
898,450
08/17/2011 10:32:06
1
0
Improving quicksort by implementing insertion sort
The running time of quick sort can be improved in practice by taking advantage of the fast running time of insertion sort when its input is nearly sorted. When quicksort is called on a subarray with fewer than k elements, let it simply return without sorting the subarray. After the top level call to quicksort returns,...
sorting
quicksort
insertion
null
null
08/17/2011 11:44:13
not a real question
Improving quicksort by implementing insertion sort === The running time of quick sort can be improved in practice by taking advantage of the fast running time of insertion sort when its input is nearly sorted. When quicksort is called on a subarray with fewer than k elements, let it simply return without sorting the ...
1
9,778,586
03/19/2012 22:00:07
331,637
05/03/2010 17:17:57
776
30
Comparing version numbers in ANSI C
I'm in need of a piece of c code that can compare two version-numbers, preferably in <a href="http://semver.org/">'semantic versioning'</a> format (0.1.7, 1.3.2), to determine which one is the later version. Yes, I could certainly write this code myself. However, I expect thousands of developers to have done this b...
c
versioning
semantic-versioning
null
null
03/19/2012 22:12:45
not a real question
Comparing version numbers in ANSI C === I'm in need of a piece of c code that can compare two version-numbers, preferably in <a href="http://semver.org/">'semantic versioning'</a> format (0.1.7, 1.3.2), to determine which one is the later version. Yes, I could certainly write this code myself. However, I expect th...
1
10,229,530
04/19/2012 13:50:15
29,244
10/18/2008 16:13:24
1,782
46
Link to a non mobile page from a jquery mobile page -> css not loaded
Context: asp.net MVC 3 app. Page1 is a mobile page using jquery mobile and it contains a link to Page2 which is a normal page which uses a specific stylesheet. Issue: on my phone, when I click the link on Page1, it goes to Page2 (with a horizontal sliding effect) but the stylesheet is not loaded. If I force a reload...
asp.net-mvc
jquery-mobile
null
null
null
null
open
Link to a non mobile page from a jquery mobile page -> css not loaded === Context: asp.net MVC 3 app. Page1 is a mobile page using jquery mobile and it contains a link to Page2 which is a normal page which uses a specific stylesheet. Issue: on my phone, when I click the link on Page1, it goes to Page2 (with a horiz...
0
9,047,510
01/28/2012 17:55:19
1,175,537
01/28/2012 17:45:52
1
0
Throwing an exception or returning an error - What is the better approach?
What is the better approach when handling errors - throwing it as an exception or returning a an object that contains the error and its details? I'm thinking what is the better approach to notifying errors - in terms of system resources, coding practices and overall enterprise practices ? I've seen in most cases,...
c#
winforms
exception
null
null
01/29/2012 03:14:33
not constructive
Throwing an exception or returning an error - What is the better approach? === What is the better approach when handling errors - throwing it as an exception or returning a an object that contains the error and its details? I'm thinking what is the better approach to notifying errors - in terms of system resources,...
4
2,770,148
05/05/2010 01:56:54
225,439
12/05/2009 15:41:37
3
0
Where UnityContainerElement in Unity 2?
I was in Unity 1.2, use the following code: UnityConfigurationSection UnitySection = (UnityConfigurationSection)ConfigurationManager.GetSection("Unity"); Dictionary<string, IUnityContainer> Containers = new Dictionary<string, IUnityContainer>(); foreach (UnityContainerElement element in UnitySect...
patterns
practices
unity
null
null
null
open
Where UnityContainerElement in Unity 2? === I was in Unity 1.2, use the following code: UnityConfigurationSection UnitySection = (UnityConfigurationSection)ConfigurationManager.GetSection("Unity"); Dictionary<string, IUnityContainer> Containers = new Dictionary<string, IUnityContainer>(); foreac...
0
4,227,953
11/19/2010 17:59:40
243,500
01/04/2010 21:54:42
394
3
nifty_generators gem appears installed but still can't use generators
I'm running Ruby 1.9.2 and Rails 3.0.0 in WinXP. I ran `gem install nifty-generators` from inside a new project directory. It said the gem, version 0.4.2, was successfully installed but there was an error installing ri and rdoc, so I ran the same command again but with the --no-ri --no-rdoc switches. Now it appears nif...
ruby-on-rails
ruby
gem
null
null
null
open
nifty_generators gem appears installed but still can't use generators === I'm running Ruby 1.9.2 and Rails 3.0.0 in WinXP. I ran `gem install nifty-generators` from inside a new project directory. It said the gem, version 0.4.2, was successfully installed but there was an error installing ri and rdoc, so I ran the sam...
0
4,842,331
01/30/2011 10:18:13
313,088
04/09/2010 18:55:29
938
73
Kinect pattern recognition
I bought a Kinect to play around with on my PC in C#. I'm using CLNUIDevice.dll to get the depth image from Kinect. This works fine and I'm able to read the depth through the RGB values in the image. Now I'm wondering what libraries there are to do different types of recognition. I've seen hand recognition, face ...
c#
.net
algorithm
image
analysis
07/15/2012 17:30:47
not constructive
Kinect pattern recognition === I bought a Kinect to play around with on my PC in C#. I'm using CLNUIDevice.dll to get the depth image from Kinect. This works fine and I'm able to read the depth through the RGB values in the image. Now I'm wondering what libraries there are to do different types of recognition. I...
4
11,002,929
06/12/2012 18:50:41
1,279,820
03/20/2012 00:50:44
420
18
On a webpage how do you find which file is responsible for a certain feature
I'm trouble shooting a bunch of files with lots of includes and am trying to find the file where the text "Sorry, an error occurred while processing your request." is. What's the best way to go about this? I tried using Fire Fox's inspect element but it doesn't say what file it's coming from. I tried using Windows sear...
html
search
include
null
null
06/22/2012 17:50:32
off topic
On a webpage how do you find which file is responsible for a certain feature === I'm trouble shooting a bunch of files with lots of includes and am trying to find the file where the text "Sorry, an error occurred while processing your request." is. What's the best way to go about this? I tried using Fire Fox's inspect...
2
1,753,588
11/18/2009 04:15:29
102,422
05/06/2009 19:11:55
74
2
Trigger thickbox from flash
i wonder if somebody knows how to trigger thickbox from onRelease() event in flash. is that possible?
flash
thickbox
triggers
null
null
null
open
Trigger thickbox from flash === i wonder if somebody knows how to trigger thickbox from onRelease() event in flash. is that possible?
0
3,319,063
07/23/2010 14:24:06
347,216
05/21/2010 15:27:01
26
3
Should I go to get my degree after finishing my diploma?
I've got a question regarding a 'higher education' opportunity which is available to me. I'm a 22 year old student currently in a 16 month co-op term for a Software Engineering Technologist diploma at a polytechnical college in Canada. I'm doing quite well in the program and feel that I have really found my calling....
education
career-development
degree
null
null
07/23/2010 15:17:46
off topic
Should I go to get my degree after finishing my diploma? === I've got a question regarding a 'higher education' opportunity which is available to me. I'm a 22 year old student currently in a 16 month co-op term for a Software Engineering Technologist diploma at a polytechnical college in Canada. I'm doing quite wel...
2
8,716,767
01/03/2012 18:13:10
278,470
02/22/2010 05:31:46
811
38
Replacing data with another data using regular expressions
Can i replace a big text like `During the day, abc is working.` with new text `abc is happy to work.` using only regular expressions. This was asked in some text papers. And it also said that code cannot be more then 2 lines.
php5
null
null
null
null
01/08/2012 05:12:04
not a real question
Replacing data with another data using regular expressions === Can i replace a big text like `During the day, abc is working.` with new text `abc is happy to work.` using only regular expressions. This was asked in some text papers. And it also said that code cannot be more then 2 lines.
1
8,970,086
01/23/2012 10:17:18
28,149
10/15/2008 08:33:01
3,353
101
After taking 2 pictures in a MonoDroid app the camera app stops working
In a MonoDroid app, the following code is used to start the native camera application: internal void TakePicture(int pictureId) { var uri = ContentResolver.Insert(MediaStore.Images.Media.ExternalContentUri, new ContentValues()); var intent = new Intent(MediaStore.ActionIm...
c#
android
monodroid
null
null
null
open
After taking 2 pictures in a MonoDroid app the camera app stops working === In a MonoDroid app, the following code is used to start the native camera application: internal void TakePicture(int pictureId) { var uri = ContentResolver.Insert(MediaStore.Images.Media.ExternalContentUri, new...
0
8,832,215
01/12/2012 08:47:21
276,733
02/19/2010 06:25:15
363
19
Can't open a view in Business Activity Monitoring
I use BizTalk Server 2010. Yesterday I deployed a BAM activity and could browse a corresponding view in the BAM portal. Today I've created another activity, but this time I made it non-RTA and hence I can't open a view for that. Every browser gives me an error: Views cannot be displayed for one or more of the fo...
biztalk
bam
null
null
null
null
open
Can't open a view in Business Activity Monitoring === I use BizTalk Server 2010. Yesterday I deployed a BAM activity and could browse a corresponding view in the BAM portal. Today I've created another activity, but this time I made it non-RTA and hence I can't open a view for that. Every browser gives me an error: ...
0
2,199,027
02/04/2010 10:54:07
202,862
11/04/2009 19:00:10
125
1
VB6: problem with activeX dll
i created an activeX-dll which returns a class object (let's call it myclass). the problem: although i got myclass added in my host-project, i'm getting a type mismatch error when trying to define the returned object as myclass like: sub dll_done(obj as myclass) it only works with type variant. seems like...
vb6
activex
null
null
null
null
open
VB6: problem with activeX dll === i created an activeX-dll which returns a class object (let's call it myclass). the problem: although i got myclass added in my host-project, i'm getting a type mismatch error when trying to define the returned object as myclass like: sub dll_done(obj as myclass) it only ...
0
9,623,573
03/08/2012 19:26:31
258,483
01/25/2010 14:19:08
639
23
How to take portlet preferences correctly in Liferay?
If a portlet is a web application, then why portlet preferences are taken from ServletRequest (at request scope)? http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/util/PortalUtil.html#getPreferences(javax.servlet.http.HttpServletRequest) How is it possible to take preferences object at application s...
java
liferay
preferences
portlet
liferay-6
null
open
How to take portlet preferences correctly in Liferay? === If a portlet is a web application, then why portlet preferences are taken from ServletRequest (at request scope)? http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/util/PortalUtil.html#getPreferences(javax.servlet.http.HttpServletRequest) How...
0
4,429,998
12/13/2010 14:49:25
479,384
10/18/2010 14:25:29
276
24
SharedSizeGroup in menuItem template
I have to apply a specific design to my application's menus. So I took Miscrosoft's template example as a basis to build on: http://msdn.microsoft.com/en-gb/library/ms747082.aspx so what I did is I created a new ResourceDictionary containing all those templates/Brushes/Styles etc... (just copy/pasted them) in ...
wpf
xaml
alignment
controltemplate
null
null
open
SharedSizeGroup in menuItem template === I have to apply a specific design to my application's menus. So I took Miscrosoft's template example as a basis to build on: http://msdn.microsoft.com/en-gb/library/ms747082.aspx so what I did is I created a new ResourceDictionary containing all those templates/Brushes...
0
11,187,099
06/25/2012 09:57:53
1,479,548
06/25/2012 09:37:31
1
0
connection refused in redis delay() method
I make periodic_task using celery, redis. I follow this site : http://pastebin.com/ivQahjJ0 It works well in command line. $ python ./manage.py shell<br> -from app.tasks import add<br> -r = add.delay(3, 4)<br> -r.result But, I want to see this message on browser, so I make another app and create sample.p...
connection
errno
null
null
null
null
open
connection refused in redis delay() method === I make periodic_task using celery, redis. I follow this site : http://pastebin.com/ivQahjJ0 It works well in command line. $ python ./manage.py shell<br> -from app.tasks import add<br> -r = add.delay(3, 4)<br> -r.result But, I want to see this message on br...
0
11,409,962
07/10/2012 09:02:57
1,514,243
07/10/2012 08:50:54
1
0
How can i Code "Happy Birthday Josh" in ruby
Can someone help me with this. Im baking a cake and i want the code in ruby saying Happy Birthday Josh" On the icing. Can someone give some ideas. Josh is my brother and an avid programmers. I would really appreciate it :)
ruby
null
null
null
null
07/10/2012 11:38:11
off topic
How can i Code "Happy Birthday Josh" in ruby === Can someone help me with this. Im baking a cake and i want the code in ruby saying Happy Birthday Josh" On the icing. Can someone give some ideas. Josh is my brother and an avid programmers. I would really appreciate it :)
2
8,895,127
01/17/2012 13:08:23
971,741
09/29/2011 18:18:58
41
0
Hosting providers for .Net 4 / MVC 3 applications
I’ve developed an application over .Net 4 / MVC 3. And now I want to host, this is my first ever hosting experience so I m confused and seriously need help. It’s not so complex application basically serving as a community image sharing website. Now I am looking for a hosting service for it, I don’t know much about ...
asp.net-mvc-3
iis7
.net-4.0
hosting
null
03/18/2012 15:50:48
not constructive
Hosting providers for .Net 4 / MVC 3 applications === I’ve developed an application over .Net 4 / MVC 3. And now I want to host, this is my first ever hosting experience so I m confused and seriously need help. It’s not so complex application basically serving as a community image sharing website. Now I am looking...
4
10,816,991
05/30/2012 13:10:35
412,923
08/06/2010 10:44:07
1,500
111
Regular expression validator for an eight digit long number starting with 1
I know I can use `[Required]`, `[StringLength]` annotations for validating empty string and length requirements but would like to use same regular expression for validating them as well. I haven't tried as I am not very good on regex. Regular Expression should validate 1.Empty string 2.Length of characters ...
regex
asp.net-mvc-3
dataannotations
null
null
null
open
Regular expression validator for an eight digit long number starting with 1 === I know I can use `[Required]`, `[StringLength]` annotations for validating empty string and length requirements but would like to use same regular expression for validating them as well. I haven't tried as I am not very good on regex. ...
0
6,644,745
07/11/2011 00:47:05
838,075
07/11/2011 00:47:05
1
0
Jquery: Select a radiobutton
Hello. I'm trying to get that when you click on a row in the table then the radio button on the same row will be selected. Have anyone some suggestions for how this can be done? <form name="form1" method="post" action=""> <table id="simplehighlight" class="REW_table" style="width: 350px; margin-left: auto; mar...
jquery
null
null
null
null
null
open
Jquery: Select a radiobutton === Hello. I'm trying to get that when you click on a row in the table then the radio button on the same row will be selected. Have anyone some suggestions for how this can be done? <form name="form1" method="post" action=""> <table id="simplehighlight" class="REW_table" style="wi...
0
7,128,252
08/19/2011 22:57:48
696,042
04/07/2011 04:10:13
107
2
External Constants for UIColor, UIFont, etc
I have a constants.m file that is a centralized collection of many program constants. To set a color, I do this: @implementation UIColor (UIColor_Constants) +(UIColor *) defaultResultTableBackgroundColor{ //return [[UIColor colorWithRed:0.6f green:0.004f blue:0.0f alpha:1.0f] retain]; ...
iphone
cocoa
ipad
extern
null
null
open
External Constants for UIColor, UIFont, etc === I have a constants.m file that is a centralized collection of many program constants. To set a color, I do this: @implementation UIColor (UIColor_Constants) +(UIColor *) defaultResultTableBackgroundColor{ //return [[UIColor colorWithRed:0.6f ...
0
4,101,787
11/04/2010 21:57:42
254,709
01/20/2010 08:48:37
179
23
z-index values not working the way it should - z-index 50 item shows up underneath
http://new.michaellane.com/listing-gallery.php The yellow strips of paper you see there have this set: .listing_specs { width:230px; height:140px; background-image:url('/images/featured_listing_specs.png'); background-repeat:no-repeat; color:#836637; padding-top:10px; ...
html
css
position
z-index
layer
null
open
z-index values not working the way it should - z-index 50 item shows up underneath === http://new.michaellane.com/listing-gallery.php The yellow strips of paper you see there have this set: .listing_specs { width:230px; height:140px; background-image:url('/images/featured_listing_specs.png...
0
2,947,219
06/01/2010 04:07:57
183,424
10/03/2009 00:24:22
372
5
Where are Silverlight assemblies stored when a xap file is run?
We currently have a XAP file which contains Foo.dll, and another XAP file (with a completely different name) which contains an updated version Foo.dll (but the same version number). When we run the second XAP file, it looks as though the Silverlight runtime on the client, is picking up the old version of Foo.dll fro...
.net
silverlight
appdomain
null
null
null
open
Where are Silverlight assemblies stored when a xap file is run? === We currently have a XAP file which contains Foo.dll, and another XAP file (with a completely different name) which contains an updated version Foo.dll (but the same version number). When we run the second XAP file, it looks as though the Silverligh...
0
10,687,590
05/21/2012 14:51:43
1,343,591
04/19/2012 09:36:15
10
0
From mdb Access application to windows application C#
I've to recode a small access mdb application using c#. What' the best way to re-use and store data now stored in access tables?
c#
ms-access
null
null
null
05/22/2012 15:04:03
not a real question
From mdb Access application to windows application C# === I've to recode a small access mdb application using c#. What' the best way to re-use and store data now stored in access tables?
1
7,019,744
08/11/2011 01:09:03
753,603
05/14/2011 12:33:29
598
77
How to print value of a variable by NSLog?
A really basic question, I have recently started exploring Objective C and Trying to mess with one example code. However just for debugging purpose I want print value of NSString variable on console. How do I achieve this? Basically I am a java developer, So I am looking something similar as... String hello ...
objective-c
ios
xcode4
null
null
null
open
How to print value of a variable by NSLog? === A really basic question, I have recently started exploring Objective C and Trying to mess with one example code. However just for debugging purpose I want print value of NSString variable on console. How do I achieve this? Basically I am a java developer, So I am look...
0
3,716,903
09/15/2010 10:51:20
445,646
09/12/2010 16:05:54
1
0
How can we prevent our web sites from spammers..?
I have looked some web sites in which automatically scripts run by spammers. How can we prevent our web sites from that spammers. Any help or reference to the article. Thanks in Advance
spam-prevention
null
null
null
null
09/15/2010 11:08:36
off topic
How can we prevent our web sites from spammers..? === I have looked some web sites in which automatically scripts run by spammers. How can we prevent our web sites from that spammers. Any help or reference to the article. Thanks in Advance
2
5,234,838
03/08/2011 15:52:18
625,878
02/21/2011 02:18:00
11
1
How do i detect what device the user of my app is using
Hey guys my question is i want to detect if my user is using a iPhone 4 (For its camera flash) or any other iDevice .I know how to detect what version of iOS. or how would i detect the device has camera flash capabilities .
ios
device
detect
null
null
null
open
How do i detect what device the user of my app is using === Hey guys my question is i want to detect if my user is using a iPhone 4 (For its camera flash) or any other iDevice .I know how to detect what version of iOS. or how would i detect the device has camera flash capabilities .
0
11,109,067
06/19/2012 20:41:06
1,145,827
01/12/2012 15:23:20
53
7
I need an explaination on this
I have to rewrite a web application and there is some javascript code that I was trying to understand. There is this simple function function declareVars(value) { this.value = value; } That is called this way var frequency_factor = new declareVars(1); Then, there are things lik...
javascript
null
null
null
null
06/19/2012 20:49:01
too localized
I need an explaination on this === I have to rewrite a web application and there is some javascript code that I was trying to understand. There is this simple function function declareVars(value) { this.value = value; } That is called this way var frequency_factor = new declareVa...
3
3,700,349
09/13/2010 12:28:11
313,106
04/09/2010 19:16:28
121
8
Simple URL Rewrite
Using http://www.urlrewriting.net/ I want /File1.aspx to be /File1 Ive been trying like this: <add name="Rule1" virtualUrl="~/File1" desinationUrl="~/File1.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" /> How do i do it?
asp.net
web-config
url-rewriting
null
null
null
open
Simple URL Rewrite === Using http://www.urlrewriting.net/ I want /File1.aspx to be /File1 Ive been trying like this: <add name="Rule1" virtualUrl="~/File1" desinationUrl="~/File1.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" /> How do i do it?
0
10,928,003
06/07/2012 08:07:35
1,441,614
06/07/2012 07:52:27
1
0
Moving stored procedure from Firebird to MS SQL
There are databases on firebird and MS SQL. I have working stored procedure in firebird. Question is: How to translate it into MS SQL syntax... begin IF ((:PHONE_N is NULL) or (STRLEN(:PHONE_N)<1)) THEN BEGIN O_PHONE_N = NULL; EXIT; END IF (STRLEN(PH...
sql
null
null
null
null
06/07/2012 14:19:45
too localized
Moving stored procedure from Firebird to MS SQL === There are databases on firebird and MS SQL. I have working stored procedure in firebird. Question is: How to translate it into MS SQL syntax... begin IF ((:PHONE_N is NULL) or (STRLEN(:PHONE_N)<1)) THEN BEGIN O_PHONE_N = NULL; ...
3
7,103,369
08/18/2011 06:40:40
829,066
07/05/2011 06:03:24
76
4
What is the difference between Live IP and STATIC IP?
I came across these tyerms LIVE IP and STATIC IP and did R&D on them but couldnt find usefull info abt the main diffrnce in them. can anyone plz tell me that basic main diffrnce in simple words :)
ip
address
null
null
null
11/27/2011 22:21:20
off topic
What is the difference between Live IP and STATIC IP? === I came across these tyerms LIVE IP and STATIC IP and did R&D on them but couldnt find usefull info abt the main diffrnce in them. can anyone plz tell me that basic main diffrnce in simple words :)
2