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,225,645
06/03/2011 10:05:39
358,649
06/04/2010 16:14:55
115
0
Subscribing to Web Application Events from WCF
I have a simple web application that allows users to upload a file to the server and store the data in the Database. There will be a decoupled service (probably WCF) which needs to act upon the data, but i am not sure what the best mechanism is to alert the service? Is it a good idea for the WCF service to poll the database every few minutes to check for new data? Or should i be looking at other patterns (?) to better accomplish this task? using Events perhaps? I have not done anything like this before so looking for some guidance to start off with. Thanks
asp.net
wcf
events
null
null
null
open
Subscribing to Web Application Events from WCF === I have a simple web application that allows users to upload a file to the server and store the data in the Database. There will be a decoupled service (probably WCF) which needs to act upon the data, but i am not sure what the best mechanism is to alert the service? Is it a good idea for the WCF service to poll the database every few minutes to check for new data? Or should i be looking at other patterns (?) to better accomplish this task? using Events perhaps? I have not done anything like this before so looking for some guidance to start off with. Thanks
0
10,499,172
05/08/2012 13:04:07
1,382,096
05/08/2012 12:50:04
1
0
how to import xlsx file(2010) into R
we have more than 7000 excel data files for .xlsx(2010). my R version is R 2.15.0. if i do manual operation to convert xlsx to xlx, .cvs, or txt., it will spend more time to do it .
excel
null
null
null
null
05/09/2012 13:23:30
not a real question
how to import xlsx file(2010) into R === we have more than 7000 excel data files for .xlsx(2010). my R version is R 2.15.0. if i do manual operation to convert xlsx to xlx, .cvs, or txt., it will spend more time to do it .
1
2,758,549
05/03/2010 14:00:53
107,435
05/15/2009 01:50:21
61
2
XSD.exe doesn't enforce minOccurs
I have a simple schema where I'm declaring both minOccurs and maxOccurs to 1. When I run the XSD.exe to generate a C# class and consume the class in code; the field is not enforced as mandatory. Is there some additional step missing? or does the classes generated using XSD.exe don't mandatory fields? any suggestions or insight will be helpful.
xsd.exe
xml-serialization
null
null
null
null
open
XSD.exe doesn't enforce minOccurs === I have a simple schema where I'm declaring both minOccurs and maxOccurs to 1. When I run the XSD.exe to generate a C# class and consume the class in code; the field is not enforced as mandatory. Is there some additional step missing? or does the classes generated using XSD.exe don't mandatory fields? any suggestions or insight will be helpful.
0
6,678,310
07/13/2011 11:43:52
240,141
12/29/2009 11:47:49
1,080
187
Tip to analyze and write simple or complex sql queries ?
I just want to know the ways you guys use while writing a complex queries depending upon the scenario. Any tool or instant logic or paper pen. I am asking so as Sql do not provide as much as flexibility (like API, Debuggers etc) than Visual Studio, where we can debug and fix code instantly. I has posted numerous questions here on SO regarding SQL and got the answer in a minute or two. I am not that much good in Sql programming, as I feel more comfortable in the C# or VB.net. But i am working on that part too. So, How Do I improve my programming skill in SQL query writing, apart from studying books. Please guide...
sql
tsql
null
null
null
07/14/2011 19:25:21
not a real question
Tip to analyze and write simple or complex sql queries ? === I just want to know the ways you guys use while writing a complex queries depending upon the scenario. Any tool or instant logic or paper pen. I am asking so as Sql do not provide as much as flexibility (like API, Debuggers etc) than Visual Studio, where we can debug and fix code instantly. I has posted numerous questions here on SO regarding SQL and got the answer in a minute or two. I am not that much good in Sql programming, as I feel more comfortable in the C# or VB.net. But i am working on that part too. So, How Do I improve my programming skill in SQL query writing, apart from studying books. Please guide...
1
5,657,157
04/14/2011 00:11:32
613,394
02/11/2011 17:07:52
283
31
masking hostname to IP address lookup in Linux/Bash/Perl
Many of the servers in our environment have their loop-back line in **`/etc/hosts`** configured like so: 127.0.0.1 mydevserver.testdomain.com mydevserver localhost.localdomain localhost Normally, this is not an issue. However, we are now dealing with some external software from a vendor that calls gethostbyaddr and their installer is designed to fail if the result of **`hostname --ip-address`** is 127.0.0.1. This of course causes it to fail on our systems because the servers hostname is in the loopback line of `/etc/hosts`. My question is, if I wrap the installer in a bash or perl script, is there a way to "mask" or temporarily alter the results of **`hostname --ip-address`** without changing the /etc/hosts file?
linux
perl
bash
rhel5
null
null
open
masking hostname to IP address lookup in Linux/Bash/Perl === Many of the servers in our environment have their loop-back line in **`/etc/hosts`** configured like so: 127.0.0.1 mydevserver.testdomain.com mydevserver localhost.localdomain localhost Normally, this is not an issue. However, we are now dealing with some external software from a vendor that calls gethostbyaddr and their installer is designed to fail if the result of **`hostname --ip-address`** is 127.0.0.1. This of course causes it to fail on our systems because the servers hostname is in the loopback line of `/etc/hosts`. My question is, if I wrap the installer in a bash or perl script, is there a way to "mask" or temporarily alter the results of **`hostname --ip-address`** without changing the /etc/hosts file?
0
6,211,707
06/02/2011 07:30:12
780,722
06/02/2011 07:30:12
1
0
What book can we use to learn c#, when we know java?
i want to learn about c#. I have read java and It's jvm languages like groovy. Now i have to move to c# (as a matter of my college course), as i have mentioned i know java, and i knew what is object, method's or functions , and so on OOP. Now my question is what book i can prefer? I have went on amazon.com review's, and came to know two books, c# 4.0 in a nutshell and c# in depth. Now my doubt is whether i can read c# in depth book, as i guess it need's some basics of c# version 1. Since some says c# have It's roots in java (a little bit), can i go with reading c# in depth book? Or c# in a nutshell or any other book's. Correct me if am wrong.
c#
null
null
null
null
06/02/2011 08:13:46
off topic
What book can we use to learn c#, when we know java? === i want to learn about c#. I have read java and It's jvm languages like groovy. Now i have to move to c# (as a matter of my college course), as i have mentioned i know java, and i knew what is object, method's or functions , and so on OOP. Now my question is what book i can prefer? I have went on amazon.com review's, and came to know two books, c# 4.0 in a nutshell and c# in depth. Now my doubt is whether i can read c# in depth book, as i guess it need's some basics of c# version 1. Since some says c# have It's roots in java (a little bit), can i go with reading c# in depth book? Or c# in a nutshell or any other book's. Correct me if am wrong.
2
4,457,842
12/16/2010 05:53:30
482,102
10/20/2010 18:19:02
123
1
Things to consider while implementing an original website architecture
Things you should know know about my disposition - 1. My **First Time** building a "big" site. 2. Working on **PHP** 3. Have **no idea about how scalable** the site can be and all that jazz. 4. **Willing to use a framework** if it gives me a **LOT of flexibility** in architecture while still providing me the advantages like **security, performance** etc. The main question being - *Suppose you were in my place and wanted to implement your original architecture, what are the things you'd be careful about? How will you go about implementing security? Anyway you can import and integrate third party security modules into your website?* I know i'm making flaws... just wanting to know what they are primarily..solving them will come next. Thank you :].
php
security
architecture
zend
null
null
open
Things to consider while implementing an original website architecture === Things you should know know about my disposition - 1. My **First Time** building a "big" site. 2. Working on **PHP** 3. Have **no idea about how scalable** the site can be and all that jazz. 4. **Willing to use a framework** if it gives me a **LOT of flexibility** in architecture while still providing me the advantages like **security, performance** etc. The main question being - *Suppose you were in my place and wanted to implement your original architecture, what are the things you'd be careful about? How will you go about implementing security? Anyway you can import and integrate third party security modules into your website?* I know i'm making flaws... just wanting to know what they are primarily..solving them will come next. Thank you :].
0
5,691,557
04/17/2011 04:51:51
144,695
07/24/2009 18:53:31
1,416
21
git: Keeping my branch up to date with master
I have a bug fix in my master, and I also want my branch to get that bug fix. What git command do I use?
svn
git
github
null
null
null
open
git: Keeping my branch up to date with master === I have a bug fix in my master, and I also want my branch to get that bug fix. What git command do I use?
0
9,182,617
02/07/2012 19:33:06
1,123,502
12/30/2011 20:24:23
28
0
my definition of thread-safety for stackoverflow tag wiki
Wikipedia has the following definition: > Thread safety is a computer programming concept applicable in the > context of multi-threaded programs. A piece of code is thread-safe if > it only manipulates shared data structures in a manner that guarantees > safe execution by multiple threads at the same time. There are various strategies for making thread-safe data structures.[1][2] ... and so on ( http://en.wikipedia.org/wiki/Thread-safety ) Great! Code is thread-safe if it operates in thread-safe manner! It's a very, very informative definition! My proposition -- specifically for stackoverflow tag wiki -- is the following: **Basically, thread-safety means that program's observable behavior does not depend on eligible thread scheduling order.** Still, it is a very basic definition. Say, threads may log messages into log file, and reodering of log messages may be OK. So program observable behavior may vary, but the program may be considered thread-safe. Probably, we need to specify allowed types of different program observable behaviors while being thread-safe. Yet another complication: there may be thread-safe (or thread-unsafe) code, not the whole program. Note, that tag wiki definition is limited in size. So it may be possible that my concise definition is OK, despite its minor imprecision. So, the question is: how to precisely define thread-safety for tag wiki? // Note: I do know about meta.*.stackoverflow, but this question seems not for meta.
language-agnostic
thread-safety
definition
thread-safe
null
05/01/2012 17:38:01
off topic
my definition of thread-safety for stackoverflow tag wiki === Wikipedia has the following definition: > Thread safety is a computer programming concept applicable in the > context of multi-threaded programs. A piece of code is thread-safe if > it only manipulates shared data structures in a manner that guarantees > safe execution by multiple threads at the same time. There are various strategies for making thread-safe data structures.[1][2] ... and so on ( http://en.wikipedia.org/wiki/Thread-safety ) Great! Code is thread-safe if it operates in thread-safe manner! It's a very, very informative definition! My proposition -- specifically for stackoverflow tag wiki -- is the following: **Basically, thread-safety means that program's observable behavior does not depend on eligible thread scheduling order.** Still, it is a very basic definition. Say, threads may log messages into log file, and reodering of log messages may be OK. So program observable behavior may vary, but the program may be considered thread-safe. Probably, we need to specify allowed types of different program observable behaviors while being thread-safe. Yet another complication: there may be thread-safe (or thread-unsafe) code, not the whole program. Note, that tag wiki definition is limited in size. So it may be possible that my concise definition is OK, despite its minor imprecision. So, the question is: how to precisely define thread-safety for tag wiki? // Note: I do know about meta.*.stackoverflow, but this question seems not for meta.
2
7,479,086
09/20/2011 01:17:10
953,780
09/20/2011 01:11:13
1
0
Javascript Move Help
I am currently making javascript where when I use the w,a,s,d keys it move a block left, right, up, and down. It also only lets you move the div within a bigger div. What I want to do is be able to add more blocks but the block you are moving wont be able to move through the block, you will have to move around it.
javascript
null
null
null
null
09/20/2011 09:28:19
not a real question
Javascript Move Help === I am currently making javascript where when I use the w,a,s,d keys it move a block left, right, up, and down. It also only lets you move the div within a bigger div. What I want to do is be able to add more blocks but the block you are moving wont be able to move through the block, you will have to move around it.
1
7,287,367
09/02/2011 17:51:46
700,338
04/09/2011 21:25:34
41
4
XCode 4.2 Beta and iOS 4.2
I am having a problem with developing a new project using XCode 4.2 (the beta) and deploying this onto an iPod touch running ios 4.2.1. I told xcode that the built target was ios 4.2, but it does not seem to want to run on it at all. The project builds successfully, but then never actually runs on the iPod. However, it does work fine if I am using an iPod Touch that has iOS 4.3 on it. Does anyone know how I could fix this or what the problem may be. I was wondering if there was an easy way that did not involve me pretty much redoing everything in an older version of xcode with the older SDK's installed. Thanks in advance for your help!
iphone
ios
xcode
ios-4.2
ios5
09/03/2011 02:03:15
not constructive
XCode 4.2 Beta and iOS 4.2 === I am having a problem with developing a new project using XCode 4.2 (the beta) and deploying this onto an iPod touch running ios 4.2.1. I told xcode that the built target was ios 4.2, but it does not seem to want to run on it at all. The project builds successfully, but then never actually runs on the iPod. However, it does work fine if I am using an iPod Touch that has iOS 4.3 on it. Does anyone know how I could fix this or what the problem may be. I was wondering if there was an easy way that did not involve me pretty much redoing everything in an older version of xcode with the older SDK's installed. Thanks in advance for your help!
4
42,966
09/04/2008 01:06:51
2,066
08/20/2008 03:59:13
120
13
Google Suggestish text box
What would be the easiest way to develop a text box that remembers the last x number of entries that were put into it. This is a standalone app written with C#.
c#
windows-app
null
null
null
null
open
Google Suggestish text box === What would be the easiest way to develop a text box that remembers the last x number of entries that were put into it. This is a standalone app written with C#.
0
8,151,839
11/16/2011 12:39:12
1,049,551
11/16/2011 11:39:23
1
0
TableView ---> DetailView
everyone! I would like the organization names on TableView, and find more information on DetailView. But I do not know where is error, DetailView is not find my information. Here is the didselectrow code. TableView - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { switch (section) { case 0: return 2; break; case 1: return 2; break; case 2: return 2; break; } return 0; } - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { NSString *sectionHeader = nil; if(section == 0) { sectionHeader = @"Red Wine"; } if(section == 1) { sectionHeader = @"White Wine"; } if(section == 2) { sectionHeader = @"Sparkling Wine"; } return sectionHeader; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; [cell.textLabel setNumberOfLines:3]; } switch (indexPath.section) { case 0: switch (indexPath.row) { case 0: cell.textLabel.text = @"Black Wattle Mt Benson Merlot 2008"; cell.detailTextLabel.text = @"Mt Benson, South Australia."; break; case 1: cell.textLabel.text = @"Two Hands Canny Butcher Barossa Valley Shiraz Grenache Mataro 2009"; cell.detailTextLabel.text = @"Barossa Valley, South Australia."; break; } break; case 1: switch (indexPath.row) { case 0: cell.textLabel.text = @"Amberton Lizard Sauvignon Blanc Semillon 2011"; cell.detailTextLabel.text = @"South Eastern Australia."; break; case 1: cell.textLabel.text = @"Vasse Felix Margaret River Chardonnay Margaret River"; cell.detailTextLabel.text = @"Western Australia."; break; } break; case 2: switch (indexPath.row) { case 0: cell.textLabel.text = @"Janisson Fils Brut Non Vintage Champagne"; cell.detailTextLabel.text = @"Champagne, France."; break; case 3: cell.textLabel.text = @"Francois Montand Brut Blanc De Blancs NV"; cell.detailTextLabel.text = @"Premium French sparkling vineyard areas."; break; } break; } return cell; } -(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailViewController *ViewController = [[DetailViewController alloc] init]; ViewController.Wine = [indexPath section]; [self.navigationController pushViewController:ViewController animated:YES]; } DetailView - (void)viewDidLoad{ [super viewDidLoad]; switch (Wine) { case 0: switch (Wine) { case 0: self.navigationItem.title = @"Black Wattle Mt Benson Merlot 2008"; WineTextView.text = @"Alcohol: 14.5%\n" "\n" "Foods: Pan grilled fillet mignon with buttered mushrooms and silky mashed potatoes.\n"; break; case 1: self.navigationItem.title = @"Two Hands Canny Butcher Barossa Valley Shiraz Grenache Mataro 2009"; WineTextView.text = @"Alcohol: 14.2%\n" "\n" "Foods: Enjoy with beef stew and winter vegetables.\n"; break; default: break; } break; case 1: switch (Wine) { case 0: self.navigationItem.title = @"Amberton Lizard Sauvignon Blanc Semillon 2011"; WineTextView.text = @"Alcohol: 14.5%\n" "\n" "Foods: Pan grilled fillet mignon with buttered mushrooms and silky mashed potatoes.\n"; break; case 1: self.navigationItem.title = @"Vasse Felix Margaret River Chardonnay Margaret River"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Enjoy with Chinese roast duck salad.\n"; break; default: break; } break; case 2: switch (Wine) { case 0: self.navigationItem.title = @"Janisson Fils Brut Non Vintage Champagne"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Ideal aperitif style, to accompany canapés and hors doeuvres.\n"; break; case 1: self.navigationItem.title = @"Francois Montand Brut Blanc De Blancs NV"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Apéritif, fish, and creamy dishes..\n"; break; default: break; } default: break; }
xcode4
null
null
null
null
null
open
TableView ---> DetailView === everyone! I would like the organization names on TableView, and find more information on DetailView. But I do not know where is error, DetailView is not find my information. Here is the didselectrow code. TableView - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { switch (section) { case 0: return 2; break; case 1: return 2; break; case 2: return 2; break; } return 0; } - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { NSString *sectionHeader = nil; if(section == 0) { sectionHeader = @"Red Wine"; } if(section == 1) { sectionHeader = @"White Wine"; } if(section == 2) { sectionHeader = @"Sparkling Wine"; } return sectionHeader; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; [cell.textLabel setNumberOfLines:3]; } switch (indexPath.section) { case 0: switch (indexPath.row) { case 0: cell.textLabel.text = @"Black Wattle Mt Benson Merlot 2008"; cell.detailTextLabel.text = @"Mt Benson, South Australia."; break; case 1: cell.textLabel.text = @"Two Hands Canny Butcher Barossa Valley Shiraz Grenache Mataro 2009"; cell.detailTextLabel.text = @"Barossa Valley, South Australia."; break; } break; case 1: switch (indexPath.row) { case 0: cell.textLabel.text = @"Amberton Lizard Sauvignon Blanc Semillon 2011"; cell.detailTextLabel.text = @"South Eastern Australia."; break; case 1: cell.textLabel.text = @"Vasse Felix Margaret River Chardonnay Margaret River"; cell.detailTextLabel.text = @"Western Australia."; break; } break; case 2: switch (indexPath.row) { case 0: cell.textLabel.text = @"Janisson Fils Brut Non Vintage Champagne"; cell.detailTextLabel.text = @"Champagne, France."; break; case 3: cell.textLabel.text = @"Francois Montand Brut Blanc De Blancs NV"; cell.detailTextLabel.text = @"Premium French sparkling vineyard areas."; break; } break; } return cell; } -(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailViewController *ViewController = [[DetailViewController alloc] init]; ViewController.Wine = [indexPath section]; [self.navigationController pushViewController:ViewController animated:YES]; } DetailView - (void)viewDidLoad{ [super viewDidLoad]; switch (Wine) { case 0: switch (Wine) { case 0: self.navigationItem.title = @"Black Wattle Mt Benson Merlot 2008"; WineTextView.text = @"Alcohol: 14.5%\n" "\n" "Foods: Pan grilled fillet mignon with buttered mushrooms and silky mashed potatoes.\n"; break; case 1: self.navigationItem.title = @"Two Hands Canny Butcher Barossa Valley Shiraz Grenache Mataro 2009"; WineTextView.text = @"Alcohol: 14.2%\n" "\n" "Foods: Enjoy with beef stew and winter vegetables.\n"; break; default: break; } break; case 1: switch (Wine) { case 0: self.navigationItem.title = @"Amberton Lizard Sauvignon Blanc Semillon 2011"; WineTextView.text = @"Alcohol: 14.5%\n" "\n" "Foods: Pan grilled fillet mignon with buttered mushrooms and silky mashed potatoes.\n"; break; case 1: self.navigationItem.title = @"Vasse Felix Margaret River Chardonnay Margaret River"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Enjoy with Chinese roast duck salad.\n"; break; default: break; } break; case 2: switch (Wine) { case 0: self.navigationItem.title = @"Janisson Fils Brut Non Vintage Champagne"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Ideal aperitif style, to accompany canapés and hors doeuvres.\n"; break; case 1: self.navigationItem.title = @"Francois Montand Brut Blanc De Blancs NV"; WineTextView.text = @"Alcohol: 12%\n" "\n" "Foods: Apéritif, fish, and creamy dishes..\n"; break; default: break; } default: break; }
0
8,151,635
11/16/2011 12:23:27
1,049,612
11/16/2011 12:11:23
1
0
creating webcam chat from scratch
> I need to create a webcam chat which i intend to use in my website. > It will allow two or more persons to video chat through their webcams. > > > > I want to develop the webcam chat from the scratch. I have no idea > which software to use. I did a thorough search for this topic and all > i got is adobe flash with some actionscript is required to build it. > > I am a complete newbie in this but i want to learn from beginning. > > Please help. > > thanks
flash
flex4
null
null
null
11/16/2011 12:41:01
not a real question
creating webcam chat from scratch === > I need to create a webcam chat which i intend to use in my website. > It will allow two or more persons to video chat through their webcams. > > > > I want to develop the webcam chat from the scratch. I have no idea > which software to use. I did a thorough search for this topic and all > i got is adobe flash with some actionscript is required to build it. > > I am a complete newbie in this but i want to learn from beginning. > > Please help. > > thanks
1
11,698,763
07/28/2012 06:12:16
1,559,198
07/28/2012 06:07:54
1
0
need to download .zip souce code for mytracks opensource app from http://code.google.com/p/mytracks/
i want to downloaad the .zip source code files for mytracks opensource app for android but find no download link and am only able to create clone from http://code.google.com/p/mytracks/ Please tell me or send me a link for the source code for mytracks in .zip format ?
android
null
null
null
null
07/29/2012 18:00:44
off topic
need to download .zip souce code for mytracks opensource app from http://code.google.com/p/mytracks/ === i want to downloaad the .zip source code files for mytracks opensource app for android but find no download link and am only able to create clone from http://code.google.com/p/mytracks/ Please tell me or send me a link for the source code for mytracks in .zip format ?
2
11,111,717
06/20/2012 01:33:12
860,195
07/24/2011 12:17:58
80
1
How to combine php and extjs4?
It seems I cann't combine them smoothy<br/> The only way I use to connect them is Ajax <br/> Any good idea to combine them ?
php
extjs
extjs4
null
null
06/20/2012 02:13:50
not a real question
How to combine php and extjs4? === It seems I cann't combine them smoothy<br/> The only way I use to connect them is Ajax <br/> Any good idea to combine them ?
1
7,255,967
08/31/2011 10:58:03
921,427
08/31/2011 10:58:03
1
0
How can I update a link description cached in Facebook?
I posted links to slideshare on my facebook fanpage but have since updated the slideshow and the link information, however the old cached link description still appears on the fanpage and is repeated when the link is shared. I don't want to delete and repost the links as I will lose the 'likes'. Any suggestions?
facebook
update
hyperlink
facebook-like
facebook-wall
08/31/2011 13:21:19
off topic
How can I update a link description cached in Facebook? === I posted links to slideshare on my facebook fanpage but have since updated the slideshow and the link information, however the old cached link description still appears on the fanpage and is repeated when the link is shared. I don't want to delete and repost the links as I will lose the 'likes'. Any suggestions?
2
87,090
09/17/2008 20:09:11
16,723
09/17/2008 20:09:11
1
0
In Rails, after using find with :select, my objects don't save
Running something like: @users = User.find(:first, :select => "name, lastname, salary") for @user in @users do @user.salary = 100000 @user.save end After this looking up in the Mysql table, the users aren't updated.
ruby
ruby-on-rails
active
activerecord
null
null
open
In Rails, after using find with :select, my objects don't save === Running something like: @users = User.find(:first, :select => "name, lastname, salary") for @user in @users do @user.salary = 100000 @user.save end After this looking up in the Mysql table, the users aren't updated.
0
10,469,282
05/06/2012 08:43:01
1,300,085
03/29/2012 07:06:25
34
0
how to replace specific letters in a list with other letters
I have a feeling there's a very easy answer to this question but ive been thinking about it for days and can't figure it out. its kind of an encryption program im writing for fun to use with my friends. I have a list that looks like this: foo = ["z", "q", "t", "a", "p", "m", "n", "b", "c", "w", "l", "d", "f", "h", "y", "e", "j", "k", "g", "i", "o", "r", "u", "s", "v", "x"] and i have another list that looks like this: bar = ["h", "e", "l", "l", "o", "m", "y", "n", "a", "m", "e", "i", "s", "r", "e", "a", "l", "l", "y", "l", "o", "n", "g", "a", "n", "d"] what i want to do is use the first element of foo, and replace the first element of bar with it, and so that the first element of foo is now always worth "h", so if "h" ever comes up in bar again, "z" (the first element of foo) is automatically put in. the second element of foo is then subbed in for the second element of bar (unless it's "h") and then second element then becomes "e", and so on until the entirety or bar has been encrypted using foo for the letters. and then print the new bar but with the letters changed from the encrypton process. i hope that makes sense, and i really hope someone out there can help me! thank you so much for any help!
python
list
replace
null
null
null
open
how to replace specific letters in a list with other letters === I have a feeling there's a very easy answer to this question but ive been thinking about it for days and can't figure it out. its kind of an encryption program im writing for fun to use with my friends. I have a list that looks like this: foo = ["z", "q", "t", "a", "p", "m", "n", "b", "c", "w", "l", "d", "f", "h", "y", "e", "j", "k", "g", "i", "o", "r", "u", "s", "v", "x"] and i have another list that looks like this: bar = ["h", "e", "l", "l", "o", "m", "y", "n", "a", "m", "e", "i", "s", "r", "e", "a", "l", "l", "y", "l", "o", "n", "g", "a", "n", "d"] what i want to do is use the first element of foo, and replace the first element of bar with it, and so that the first element of foo is now always worth "h", so if "h" ever comes up in bar again, "z" (the first element of foo) is automatically put in. the second element of foo is then subbed in for the second element of bar (unless it's "h") and then second element then becomes "e", and so on until the entirety or bar has been encrypted using foo for the letters. and then print the new bar but with the letters changed from the encrypton process. i hope that makes sense, and i really hope someone out there can help me! thank you so much for any help!
0
10,279,761
04/23/2012 11:36:53
587,377
01/24/2011 10:56:13
145
0
How to change the coordinate system in OpenGL
I am trying to change the coordinate system to the top left corner without any success! Below is the full code. #include <iostream> #include <stdlib.h> #include <glut.h> using namespace std; //Initializes 3D rendering void initRendering() { //Makes 3D drawing work when something is in front of something else glEnable(GL_DEPTH_TEST); } //Called when the window is resized void handleResize(int w, int h) { //Tell OpenGL how to convert from coordinates to pixel values glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); //Switch to setting the camera perspective //Set the camera perspective glLoadIdentity(); //Reset the camera gluPerspective(45.0, //The camera angle (double)w / (double)h, //The width-to-height ratio 1.0, //The near z clipping coordinate 200.0); //The far z clipping coordinate } //Draws the 3D scene void drawScene() { //Clear information from last draw glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //glViewport(0, 0, 800, 600); glMatrixMode(GL_PROJECTION); // Select the Projection matrix gluOrtho2D( 0.0, 800, 600, 0.0,-1,1 ); glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); //Reset the drawing perspective glColor3d(1,0,0); glTranslated(0, 0, 0);//-0.5f, 0.5f, -5.0f glutSolidSphere(0.3, 25, 20);//3,20,20 glutSwapBuffers(); //Send the 3D scene to the screen } int main(int argc, char** argv) { //Initialize GLUT glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); glutInitWindowSize(800, 600); //Set the window size //Create the window glutCreateWindow("Basic Shapes - videotutorialsrock.com"); initRendering(); //Initialize rendering //Set handler functions for drawing, keypresses, and window resizes glutDisplayFunc(drawScene); //glutKeyboardFunc(handleKeypress); glutReshapeFunc(handleResize); glutMainLoop(); //Start the main loop. glutMainLoop doesn't return. return 0; //This line is never reached }
c++
opengl
coordinate-systems
null
null
04/25/2012 11:45:36
not a real question
How to change the coordinate system in OpenGL === I am trying to change the coordinate system to the top left corner without any success! Below is the full code. #include <iostream> #include <stdlib.h> #include <glut.h> using namespace std; //Initializes 3D rendering void initRendering() { //Makes 3D drawing work when something is in front of something else glEnable(GL_DEPTH_TEST); } //Called when the window is resized void handleResize(int w, int h) { //Tell OpenGL how to convert from coordinates to pixel values glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); //Switch to setting the camera perspective //Set the camera perspective glLoadIdentity(); //Reset the camera gluPerspective(45.0, //The camera angle (double)w / (double)h, //The width-to-height ratio 1.0, //The near z clipping coordinate 200.0); //The far z clipping coordinate } //Draws the 3D scene void drawScene() { //Clear information from last draw glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //glViewport(0, 0, 800, 600); glMatrixMode(GL_PROJECTION); // Select the Projection matrix gluOrtho2D( 0.0, 800, 600, 0.0,-1,1 ); glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); //Reset the drawing perspective glColor3d(1,0,0); glTranslated(0, 0, 0);//-0.5f, 0.5f, -5.0f glutSolidSphere(0.3, 25, 20);//3,20,20 glutSwapBuffers(); //Send the 3D scene to the screen } int main(int argc, char** argv) { //Initialize GLUT glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); glutInitWindowSize(800, 600); //Set the window size //Create the window glutCreateWindow("Basic Shapes - videotutorialsrock.com"); initRendering(); //Initialize rendering //Set handler functions for drawing, keypresses, and window resizes glutDisplayFunc(drawScene); //glutKeyboardFunc(handleKeypress); glutReshapeFunc(handleResize); glutMainLoop(); //Start the main loop. glutMainLoop doesn't return. return 0; //This line is never reached }
1
5,555,135
04/05/2011 16:24:47
514,907
11/21/2010 05:24:42
303
19
Not seeing /proc/cpuinfo on FreeBSD 7.3
I'm using FreeBSD 7.3 and the proc file system is not mounted by default. SO I tried teh following command to mount proc file system. sudo mount -t procfs proc /proc Now the /proc directory shows processes information but not cpuinfo. How can I see cpuinfo?. Thanks in advance
cpu
freebsd
proc
null
null
10/13/2011 16:12:33
off topic
Not seeing /proc/cpuinfo on FreeBSD 7.3 === I'm using FreeBSD 7.3 and the proc file system is not mounted by default. SO I tried teh following command to mount proc file system. sudo mount -t procfs proc /proc Now the /proc directory shows processes information but not cpuinfo. How can I see cpuinfo?. Thanks in advance
2
10,800,230
05/29/2012 13:33:13
1,423,788
05/29/2012 13:27:31
1
0
Machine learning techniques
What is the appropriate method to detect or measure persistence and stable communication between two given persons provided that there is huge communication log ? Thanks
machine-learning
null
null
null
null
05/30/2012 20:02:59
not a real question
Machine learning techniques === What is the appropriate method to detect or measure persistence and stable communication between two given persons provided that there is huge communication log ? Thanks
1
8,321,197
11/30/2011 04:33:15
947,659
09/15/2011 20:21:06
38
1
Why does onClickListener not work outside of onCreate method?
When I try to use the `onClickListener` method on the a button variable outside of any `onCreate or onPause or onAnything` method, it does not work. I also cannot even set the value of a button variable outside of an "onAnything" method. Help would be great. Thanks!
android
null
null
null
null
11/30/2011 08:44:23
not a real question
Why does onClickListener not work outside of onCreate method? === When I try to use the `onClickListener` method on the a button variable outside of any `onCreate or onPause or onAnything` method, it does not work. I also cannot even set the value of a button variable outside of an "onAnything" method. Help would be great. Thanks!
1
4,353,505
12/04/2010 12:34:14
439,621
09/04/2010 13:47:27
77
9
php create dynamic html table
I need to create a dynamic html table using PHP after parsing a JSON file.<br> I need this column structure for my table; `Name | Status | Age | Count | Progress | Bad`<br><br> How can i create a new row for every 'record' parsed from the JSON file (i can create a tab separated string).<br>An additional difficulty is that some 'records' only contain data for the column 'Name' and others for all columns.<br><br> So my question is how to add a row dynamically to the table and fill the right column ?<br> (*The key form the JSON file is the column header*)<br><br>I hope my question is sufficiently clear.<br>Thanks in advance.
php
html
json
table
row
null
open
php create dynamic html table === I need to create a dynamic html table using PHP after parsing a JSON file.<br> I need this column structure for my table; `Name | Status | Age | Count | Progress | Bad`<br><br> How can i create a new row for every 'record' parsed from the JSON file (i can create a tab separated string).<br>An additional difficulty is that some 'records' only contain data for the column 'Name' and others for all columns.<br><br> So my question is how to add a row dynamically to the table and fill the right column ?<br> (*The key form the JSON file is the column header*)<br><br>I hope my question is sufficiently clear.<br>Thanks in advance.
0
7,777,613
10/15/2011 11:41:14
45,974
12/13/2008 14:49:17
1,433
32
Excluding bootstrap.html or index.html from the history stack with jQuery mobile
I'm creating a mobile application using jQuery mobile and PhoneGap. When the application is started, the frontpage will be loaded dynamically. What frontpage will appear depends on certain states, for example whether the app has been configured. This is why I have a bootstrap.html, which only loads all code and has no body. Some logic then calls ```jQuery.mobile.changePage``` to load the desired frontpage. The issue is that bootstrap.html, which is empty, will be put in the application's history stack. When the user then presses the back button, he or she will go to this empty bootstrap page. This is undesirable behavior. Is it possible to exclude this bootstrap file from the history stack with jQuery mobile?
jquery
jquery-mobile
history
bootstrapping
null
null
open
Excluding bootstrap.html or index.html from the history stack with jQuery mobile === I'm creating a mobile application using jQuery mobile and PhoneGap. When the application is started, the frontpage will be loaded dynamically. What frontpage will appear depends on certain states, for example whether the app has been configured. This is why I have a bootstrap.html, which only loads all code and has no body. Some logic then calls ```jQuery.mobile.changePage``` to load the desired frontpage. The issue is that bootstrap.html, which is empty, will be put in the application's history stack. When the user then presses the back button, he or she will go to this empty bootstrap page. This is undesirable behavior. Is it possible to exclude this bootstrap file from the history stack with jQuery mobile?
0
6,301,250
06/10/2011 02:05:27
774,831
05/29/2011 02:53:26
1
0
GPU perfomance request, what's the best solution?
I work on an audio processing project with some friends and we need to do a lot of basic computations (+, -, *) like a FFT (Fast Fourier Transform) calcul. Also we don't have lot of money, about 500$. So we think about use graphic card to accelerate this computations. But we don't no if this is the best solution, and all the existing solutions to have a good computation system under 500$. For information we use Matlab programming, and we have a sound card acquisition which have to be plug in the system. Here is my question, do you know other solution than graphic card with motherboard to do lot of calculus? Thank you. GrWEn
hardware
null
null
null
null
null
open
GPU perfomance request, what's the best solution? === I work on an audio processing project with some friends and we need to do a lot of basic computations (+, -, *) like a FFT (Fast Fourier Transform) calcul. Also we don't have lot of money, about 500$. So we think about use graphic card to accelerate this computations. But we don't no if this is the best solution, and all the existing solutions to have a good computation system under 500$. For information we use Matlab programming, and we have a sound card acquisition which have to be plug in the system. Here is my question, do you know other solution than graphic card with motherboard to do lot of calculus? Thank you. GrWEn
0
9,608,084
03/07/2012 19:50:00
1,149,797
01/14/2012 21:52:58
95
9
Multiple objects tracking algorithm
I need to solve the following problem: suppose i have a sequence of images, with detected traffic signs (i have bounding boxes around this signs). Traffic signs can be occluded by cars, trees and so on. The problem is to link each physical sign with it's detections on each frame. Can you give me the link to the appropriate matlab code please, which can help to solve this problem. Any general ideas are welcome too.
image
matlab
tracking
vision
cv
03/14/2012 12:06:34
not a real question
Multiple objects tracking algorithm === I need to solve the following problem: suppose i have a sequence of images, with detected traffic signs (i have bounding boxes around this signs). Traffic signs can be occluded by cars, trees and so on. The problem is to link each physical sign with it's detections on each frame. Can you give me the link to the appropriate matlab code please, which can help to solve this problem. Any general ideas are welcome too.
1
2,882,375
05/21/2010 13:19:58
347,102
05/21/2010 13:19:58
1
0
How to REALLY delete a git branch (i.e. remove all of its objects/commits)?
I have a git tree like A---B---C topic / D---E---F---G master <-- I would like to remove topic and all objects on it. I note the SHA ID of topic, then type: git branch -D topic git gc # <-- I also tried prune here... git checkout -b temp <SHA1 ID of topic> After the last command I expect to get an error (something like "Non-existent object ID..." or somth. like that). However there is no error and gitk shows the same tree structure as above?? What am I missing - I thought gc/prune are supposed to delete all unreachable objects?
git
branch
git-gc
delete
null
null
open
How to REALLY delete a git branch (i.e. remove all of its objects/commits)? === I have a git tree like A---B---C topic / D---E---F---G master <-- I would like to remove topic and all objects on it. I note the SHA ID of topic, then type: git branch -D topic git gc # <-- I also tried prune here... git checkout -b temp <SHA1 ID of topic> After the last command I expect to get an error (something like "Non-existent object ID..." or somth. like that). However there is no error and gitk shows the same tree structure as above?? What am I missing - I thought gc/prune are supposed to delete all unreachable objects?
0
3,218,333
07/10/2010 07:42:37
388,341
07/10/2010 07:42:37
1
0
WEBpages to EXE
**1) couple of HTML files in which javascript is embeded.....** My Requirements **1) I want my whole website to be in exe format so that i can protect my javascript code.** **2) or tell me how to open website inside the vb6 program ...so that i can build a exe. And yeah i want the webpages to use the Internet Explorer but i want only the titlebar.....nothing else in the window frame.** **3) if you know any method to get it done through java ... then please give me the exact codes without any errors....i dont know coding that much ...i just started coding.** **Note:** Please dont ask me to use html2exe converter .....i tried using that but some javascript and html frames dont work. if you know any other software which can do the job correctly then please let me know. And please give detailed explanations in your vb codes .....i am a newbie in vb just started learning 3 days ago... The idea: **The whole idea is to make those webfiles act like a software. Like a standalone exe** Any help would be aprreciated....I have been searching all over the net for 2 weeks.....please help Thanks Friends Looking forward for your replies Regards -Shubanki
java
vb6
exe
null
null
07/10/2010 08:55:11
not a real question
WEBpages to EXE === **1) couple of HTML files in which javascript is embeded.....** My Requirements **1) I want my whole website to be in exe format so that i can protect my javascript code.** **2) or tell me how to open website inside the vb6 program ...so that i can build a exe. And yeah i want the webpages to use the Internet Explorer but i want only the titlebar.....nothing else in the window frame.** **3) if you know any method to get it done through java ... then please give me the exact codes without any errors....i dont know coding that much ...i just started coding.** **Note:** Please dont ask me to use html2exe converter .....i tried using that but some javascript and html frames dont work. if you know any other software which can do the job correctly then please let me know. And please give detailed explanations in your vb codes .....i am a newbie in vb just started learning 3 days ago... The idea: **The whole idea is to make those webfiles act like a software. Like a standalone exe** Any help would be aprreciated....I have been searching all over the net for 2 weeks.....please help Thanks Friends Looking forward for your replies Regards -Shubanki
1
6,717,371
07/16/2011 12:31:14
847,727
07/16/2011 12:00:21
1
0
marshalling to a native library in C#
Someone can help me to define this C struct in C#? #if !defined(PROJECTS_H) typedef struct { double u, v; } projUV; typedef void *projPJ; #define projXY projUV #define projLP projUV #else typedef PJ *projPJ; # define projXY XY # define projLP LP #endif typedef struct PJconsts { XY (*fwd)(LP, struct PJconsts *); LP (*inv)(XY, struct PJconsts *); void (*spc)(LP, struct PJconsts *, struct FACTORS *); void (*pfree)(struct PJconsts *); const char *descr; paralist *params; /* parameter list */ int over; /* over-range flag */ int geoc; /* geocentric latitude flag */ int is_latlong; /* proj=latlong ... not really a projection at all */ int is_geocent; /* proj=geocent ... not really a projection at all */ double a, /* major axis or radius if es==0 */ a_orig, /* major axis before any +proj related adjustment */ es, /* e ^ 2 */ es_orig, /* es before any +proj related adjustment */ e, /* eccentricity */ ra, /* 1/A */ one_es, /* 1 - e^2 */ rone_es, /* 1/one_es */ lam0, phi0, /* central longitude, latitude */ x0, y0, /* easting and northing */ k0, /* general scaling factor */ to_meter, fr_meter; /* cartesian scaling */ int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */ double datum_params[7]; double from_greenwich; /* prime meridian offset (in radians) */ double long_wrap_center; /* 0.0 for -180 to 180, actually in radians*/ } PJ; Thanks in advance, G.
c#
c
dllimport
null
null
07/17/2011 17:11:30
not a real question
marshalling to a native library in C# === Someone can help me to define this C struct in C#? #if !defined(PROJECTS_H) typedef struct { double u, v; } projUV; typedef void *projPJ; #define projXY projUV #define projLP projUV #else typedef PJ *projPJ; # define projXY XY # define projLP LP #endif typedef struct PJconsts { XY (*fwd)(LP, struct PJconsts *); LP (*inv)(XY, struct PJconsts *); void (*spc)(LP, struct PJconsts *, struct FACTORS *); void (*pfree)(struct PJconsts *); const char *descr; paralist *params; /* parameter list */ int over; /* over-range flag */ int geoc; /* geocentric latitude flag */ int is_latlong; /* proj=latlong ... not really a projection at all */ int is_geocent; /* proj=geocent ... not really a projection at all */ double a, /* major axis or radius if es==0 */ a_orig, /* major axis before any +proj related adjustment */ es, /* e ^ 2 */ es_orig, /* es before any +proj related adjustment */ e, /* eccentricity */ ra, /* 1/A */ one_es, /* 1 - e^2 */ rone_es, /* 1/one_es */ lam0, phi0, /* central longitude, latitude */ x0, y0, /* easting and northing */ k0, /* general scaling factor */ to_meter, fr_meter; /* cartesian scaling */ int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */ double datum_params[7]; double from_greenwich; /* prime meridian offset (in radians) */ double long_wrap_center; /* 0.0 for -180 to 180, actually in radians*/ } PJ; Thanks in advance, G.
1
10,798,368
05/29/2012 11:37:30
995,113
10/14/2011 09:21:51
1,114
44
PHP is a compiled language since PHP 4.0?
I am in doubt after reading [This Article][1]. I had read on several forms and articles that php is an **interpreted** language, even i found the same thing with [Stackoverflow][2] but when i read it from [here][3] I got confused. Can anyone explain me about this with certain authenticated links or refrences. [1]: http://www.phpclasses.org/blog/post/117-PHP-compiler-performance.html [2]: http://stackoverflow.com/questions/5387405/php-is-compiled-language-or-interpreted-language [3]: http://www.phpclasses.org/blog/post/117-PHP-compiler-performance.html
php
zend-framework
php5
null
null
05/30/2012 20:16:02
not constructive
PHP is a compiled language since PHP 4.0? === I am in doubt after reading [This Article][1]. I had read on several forms and articles that php is an **interpreted** language, even i found the same thing with [Stackoverflow][2] but when i read it from [here][3] I got confused. Can anyone explain me about this with certain authenticated links or refrences. [1]: http://www.phpclasses.org/blog/post/117-PHP-compiler-performance.html [2]: http://stackoverflow.com/questions/5387405/php-is-compiled-language-or-interpreted-language [3]: http://www.phpclasses.org/blog/post/117-PHP-compiler-performance.html
4
11,716,634
07/30/2012 06:54:16
984,734
10/07/2011 21:18:27
280
2
Difference between different methods for calculate the page load time
**First method** $start = microtime(true); // code $end = microtime(true); echo 'This page loaded in '.round($end - $start, 4).' sec'; **Second method** $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; // code $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo 'This page loaded in '.$total_time.' sec'; What is the difference between them and which one is better ? And also do you have other suggestions?
php
performance
null
null
null
07/31/2012 07:31:30
not constructive
Difference between different methods for calculate the page load time === **First method** $start = microtime(true); // code $end = microtime(true); echo 'This page loaded in '.round($end - $start, 4).' sec'; **Second method** $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; // code $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo 'This page loaded in '.$total_time.' sec'; What is the difference between them and which one is better ? And also do you have other suggestions?
4
5,406,730
03/23/2011 14:26:20
344,394
05/18/2010 19:04:15
29
1
difference between linq compound from clause and inner join
enter code here var orders = from c in customers from o in c.Orders where o.Total < 500.00M select new { c.CustomerID, o.OrderID, o.Total }; What is the difference between using 2 from clause and making inner join? Which one do I use? And When?
linq-to-sql
null
null
null
null
null
open
difference between linq compound from clause and inner join === enter code here var orders = from c in customers from o in c.Orders where o.Total < 500.00M select new { c.CustomerID, o.OrderID, o.Total }; What is the difference between using 2 from clause and making inner join? Which one do I use? And When?
0
8,866,873
01/15/2012 01:28:28
937,841
09/10/2011 04:11:33
444
18
Bash control+c process
I have a couple of servers each that have a 'screen' that is running a program. This way, i am able to ssh in and monitor their out putat any given time. The problem, is that i am often having to ssh in, log into the screen, control+c the process and then restart it. I would like to write a bash script that would do this for each of my servers, and i think i understand how to do it, aside from the control+c bit. ssh ubuntu@ipaddress screen -dr that_one_screen #control+c somehow restart_process Can someone please help me out?
bash
ssh
amazon-ec2
null
null
02/09/2012 17:14:13
off topic
Bash control+c process === I have a couple of servers each that have a 'screen' that is running a program. This way, i am able to ssh in and monitor their out putat any given time. The problem, is that i am often having to ssh in, log into the screen, control+c the process and then restart it. I would like to write a bash script that would do this for each of my servers, and i think i understand how to do it, aside from the control+c bit. ssh ubuntu@ipaddress screen -dr that_one_screen #control+c somehow restart_process Can someone please help me out?
2
10,771,552
05/27/2012 03:59:46
871,322
07/31/2011 06:12:52
20
0
Need advice for Android UI design
<p>I want to create simple Android application, which will want to input N integer. N is not constant, it will be inputted by the user.</p> Currently I have 2 design in mind :<br> 1. Create N EditText at runtime<br> 2. Create 1 EditText, and parse it to get the N integer. Please suggest me which one to choose, or maybe another better design.
android
android-layout
user-interface
null
null
05/27/2012 05:50:05
not constructive
Need advice for Android UI design === <p>I want to create simple Android application, which will want to input N integer. N is not constant, it will be inputted by the user.</p> Currently I have 2 design in mind :<br> 1. Create N EditText at runtime<br> 2. Create 1 EditText, and parse it to get the N integer. Please suggest me which one to choose, or maybe another better design.
4
4,693,719
01/14/2011 17:01:25
274,475
02/16/2010 15:26:39
60
3
v4.master page - access is denied on saving
I've got a plain vanilla SharePoint2010 Blank Site installed (through the wizard) in a Win2k8 VM. When attempting to save changes to the v4.master page, I get an access denied error. I'm logged in as a local admin. I've tried editing the file with VS2010 and with Notepad++. Thanks for any help!
sharepoint2010
null
null
null
null
null
open
v4.master page - access is denied on saving === I've got a plain vanilla SharePoint2010 Blank Site installed (through the wizard) in a Win2k8 VM. When attempting to save changes to the v4.master page, I get an access denied error. I'm logged in as a local admin. I've tried editing the file with VS2010 and with Notepad++. Thanks for any help!
0
9,416,004
02/23/2012 15:28:59
821,674
06/29/2011 18:02:45
11
1
openswan l2tp server to android client
I'm trying to figure out how to set up openvpn on my linux mint so I can connect to it with my android (T-Mobile HTC MyTouch 4G Slide) device. I think I'm part way there but I am still having fits getting it to connect. So far I have installed openswan, openssl and tinyca I was able to create a CA certificate and a request certificate in tinyca. If I am reading it correct it creates them using the openssl settings so I copied the /etc/ssl/cert/MyserverCert.pem and /etc/ssl/private/MyserverKey.pem to the appropriate directories in /etc/ipsec.d/* I copied the example l2tp-psk.conf into /etc/ipsec.d/ and modified the left to my eth0 interface address, and leftnexthop to my router address, saved then restarted ipsec service. I generated a Myserver.crt file using tinyca from the existing ssl keys and sent it to my phone and was able to import it. Where I'm confused is when I try to set up an L2TP PSK vpn in my phone, it is asking for 'username'. It also has a setting when you set up the connection that asks for 'IPSec pre-shared key' - I'm assuming this is the name I gave the .crt settings when I imported them? Any other tips/suggestions would be greatly appreciated (like where to look in log files to see what might be failing and why both on the phone and on the server) Thanks in advance for any tips!
android
linux
vpn
null
null
02/24/2012 16:52:25
off topic
openswan l2tp server to android client === I'm trying to figure out how to set up openvpn on my linux mint so I can connect to it with my android (T-Mobile HTC MyTouch 4G Slide) device. I think I'm part way there but I am still having fits getting it to connect. So far I have installed openswan, openssl and tinyca I was able to create a CA certificate and a request certificate in tinyca. If I am reading it correct it creates them using the openssl settings so I copied the /etc/ssl/cert/MyserverCert.pem and /etc/ssl/private/MyserverKey.pem to the appropriate directories in /etc/ipsec.d/* I copied the example l2tp-psk.conf into /etc/ipsec.d/ and modified the left to my eth0 interface address, and leftnexthop to my router address, saved then restarted ipsec service. I generated a Myserver.crt file using tinyca from the existing ssl keys and sent it to my phone and was able to import it. Where I'm confused is when I try to set up an L2TP PSK vpn in my phone, it is asking for 'username'. It also has a setting when you set up the connection that asks for 'IPSec pre-shared key' - I'm assuming this is the name I gave the .crt settings when I imported them? Any other tips/suggestions would be greatly appreciated (like where to look in log files to see what might be failing and why both on the phone and on the server) Thanks in advance for any tips!
2
6,484,130
06/26/2011 13:13:07
682,252
03/29/2011 14:29:40
96
2
Is Qt Quick mature enough for large desktop applications?
I'm planning to write a program that is especially designed for tablets, the main platform is MeeGo (because I'm taking a contest), so Qt is the only toolkit to choose. As the UI is highly designed for tablets, I will customize most of the UI components. So I have two choices, one is to use classic C++ ways to paint all of them, which is hard but familiar to me, another is to use the new Qt Quick. Qt Quick is great at first glance, but after a few days' exploring, I found it rather tough. It lacks many important components. And as far as I can see, it is very hard to use Qt Quick to generate dynamic contents (like what the Flipboard app does). My program will need C++ to do lots of heavy low level things, and meanwhile it requires a highly customized and very dynamic GUI. Is Qt Quick mature enough for my purpose now?
c++
qt
qml
null
null
06/26/2011 19:00:46
not constructive
Is Qt Quick mature enough for large desktop applications? === I'm planning to write a program that is especially designed for tablets, the main platform is MeeGo (because I'm taking a contest), so Qt is the only toolkit to choose. As the UI is highly designed for tablets, I will customize most of the UI components. So I have two choices, one is to use classic C++ ways to paint all of them, which is hard but familiar to me, another is to use the new Qt Quick. Qt Quick is great at first glance, but after a few days' exploring, I found it rather tough. It lacks many important components. And as far as I can see, it is very hard to use Qt Quick to generate dynamic contents (like what the Flipboard app does). My program will need C++ to do lots of heavy low level things, and meanwhile it requires a highly customized and very dynamic GUI. Is Qt Quick mature enough for my purpose now?
4
10,569,705
05/13/2012 06:11:30
505,931
11/12/2010 15:37:55
539
17
can you recommand classic membership php open source
I am starting to build a new php project, and its my first time with php For that I need classic membership template, Which enable user to register, login, forget password, send email to verify email address.. Its very basic functionality, and I want to save time, So if you know such open source project please let me know
php
membership
null
null
null
05/13/2012 07:36:26
not constructive
can you recommand classic membership php open source === I am starting to build a new php project, and its my first time with php For that I need classic membership template, Which enable user to register, login, forget password, send email to verify email address.. Its very basic functionality, and I want to save time, So if you know such open source project please let me know
4
10,486,291
05/07/2012 17:21:23
1,336,213
04/16/2012 11:47:12
57
1
how to amplify audio from app in android
I want to develop android app that that would activate the microphone on the phone and amplify the sound around the phone. The user would then listen to their headphones. Is it possible to develop such app? Thanks in advance!
android
audio
audio-recording
null
null
05/08/2012 11:28:12
not a real question
how to amplify audio from app in android === I want to develop android app that that would activate the microphone on the phone and amplify the sound around the phone. The user would then listen to their headphones. Is it possible to develop such app? Thanks in advance!
1
5,714,110
04/19/2011 09:13:39
265,107
02/03/2010 08:42:18
271
6
C governs variables to be declared at beginning
C- language governs that all variables used in the program should be declared before any other statements. <br> Why was this of significance? Was it for readability? if it was for readability, then why don't other languages follow the same rule? I personally prefer declaring all my variables at the very start. - Ivard. Moderators: Please delete if this is off-topic or already been asked. I was just keen to know improve my knowledge. Thanks.
c
null
null
null
null
04/21/2011 03:10:29
not constructive
C governs variables to be declared at beginning === C- language governs that all variables used in the program should be declared before any other statements. <br> Why was this of significance? Was it for readability? if it was for readability, then why don't other languages follow the same rule? I personally prefer declaring all my variables at the very start. - Ivard. Moderators: Please delete if this is off-topic or already been asked. I was just keen to know improve my knowledge. Thanks.
4
11,565,056
07/19/2012 16:18:23
1,538,438
07/19/2012 15:51:42
1
0
Android circular menu, please
I want to create a menu that rotates the rotary type with OpenGL I want to yourself, things like the dial to adjust the audio volume I looked but could not find it for a few days I can't speak English very well, sorry. Help me, please. [1]: http://i.stack.imgur.com/gf0Yu.png [2]: http://i.stack.imgur.com/9gioF.jpg
android
opengl
menu
circular
null
07/20/2012 00:24:42
not a real question
Android circular menu, please === I want to create a menu that rotates the rotary type with OpenGL I want to yourself, things like the dial to adjust the audio volume I looked but could not find it for a few days I can't speak English very well, sorry. Help me, please. [1]: http://i.stack.imgur.com/gf0Yu.png [2]: http://i.stack.imgur.com/9gioF.jpg
1
9,936,240
03/30/2012 02:32:49
977,168
10/03/2011 17:52:02
178
8
How can I store two values associated with an image in an array?
I'm trying to figure out a way I can store and associate a letter (a-z), a value (1-10), and an image with each other. For example, lets say that associate: A with 2 with letterA.png B with 1 with letterB.png ..etc I'm thinking that I need some kind of array. It would be nice if I could use the letters as the indexes.
objective-c
arrays
null
null
null
null
open
How can I store two values associated with an image in an array? === I'm trying to figure out a way I can store and associate a letter (a-z), a value (1-10), and an image with each other. For example, lets say that associate: A with 2 with letterA.png B with 1 with letterB.png ..etc I'm thinking that I need some kind of array. It would be nice if I could use the letters as the indexes.
0
5,688,430
04/16/2011 17:55:27
680,936
03/28/2011 20:44:05
16
0
What is the purpose of DIFS (Distributed Inter-Frame Space) in 802.11?
If a station senses that the channel is idle, it transmits its frame after a short period of time, called DIFS (Distributed Inter-Frame Space). Why can't it transmit its data immediately?
networking
null
null
null
null
04/16/2011 20:00:58
off topic
What is the purpose of DIFS (Distributed Inter-Frame Space) in 802.11? === If a station senses that the channel is idle, it transmits its frame after a short period of time, called DIFS (Distributed Inter-Frame Space). Why can't it transmit its data immediately?
2
2,788,963
05/07/2010 13:39:46
335,482
05/07/2010 13:39:46
1
0
The lua stack overflow,is this a bug?
I use lua some years, thank you all for developing lua language! Some days ago, our program crash. I found the crash in lua code. So I check lua code, found the stack overflow. Please look this code In function luaD_precall: 1 if (!cl->isC) { /* Lua function? prepare its call */ 2 CallInfo *ci; 3 StkId st, base; 4 Proto *p = cl->p; 5 luaD_checkstack(L, p->maxstacksize); 6 func = restorestack(L, funcr); 7 if (!p->is_vararg) { /* no varargs? */ 8 base = func + 1; 9 if (L->top > base + p->numparams) 10 L->top = base + p->numparams; 11 } 12 else { /* vararg function */ 13 int nargs = cast_int(L->top - func) - 1; 14 base = adjust_varargs(L, p, nargs); 15 func = restorestack(L, funcr); /* previous call may change the stack */ 16 } 17 ci = inc_ci(L); /* now `enter' new function */ 18 ci->func = func; 19 L->base = ci->base = base; 20 ci->top = L->base + p->maxstacksize; 21 lua_assert(ci->top <= L->stack_last); 22 L->savedpc = p->code; /* starting point */ 23 ci->tailcalls = 0; 24 ci->nresults = nresults; 25 for (st = L->top; st < ci->top; st++) 26 setnilvalue(st); 27 L->top = ci->top; In my program, the p->maxstacksize is 79 before line 5, the current stacksize is 51, after call luaD_checkstack,the stacksize grow to 130. The lua function use vararg, so will run to line 14. Function adjust_varargs will be called. static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { int i; int nfixargs = p->numparams; Table *htab = NULL; StkId base, fixed; for (; actual < nfixargs; ++actual) setnilvalue(L->top++); #if defined(LUA_COMPAT_VARARG) if (p->is_vararg & VARARG_NEEDSARG) { /* compat. with old-style vararg? */ int nvar = actual - nfixargs; /* number of extra arguments */ lua_assert(p->is_vararg & VARARG_HASARG); luaC_checkGC(L); htab = luaH_new(L, nvar, 1); /* create `arg' table */ In function adjust_varargs(), the lua function use “arg”, So luaC_checkGC will be called. In luaC_checkGC, the current lua stack size will be reduce to 65! The call stack like this: luaC_step()- singlestep()-propagatemark()traversestack()checkstacksizes()luaD_reallocstack() But the p->maxstacksize is 79, the stacksize is not enough… When the program run to line 27,the L->top is bigger than L->stack_last, in the next operation, will cause crash! Thank you!
lua
stack
overflow
null
null
null
open
The lua stack overflow,is this a bug? === I use lua some years, thank you all for developing lua language! Some days ago, our program crash. I found the crash in lua code. So I check lua code, found the stack overflow. Please look this code In function luaD_precall: 1 if (!cl->isC) { /* Lua function? prepare its call */ 2 CallInfo *ci; 3 StkId st, base; 4 Proto *p = cl->p; 5 luaD_checkstack(L, p->maxstacksize); 6 func = restorestack(L, funcr); 7 if (!p->is_vararg) { /* no varargs? */ 8 base = func + 1; 9 if (L->top > base + p->numparams) 10 L->top = base + p->numparams; 11 } 12 else { /* vararg function */ 13 int nargs = cast_int(L->top - func) - 1; 14 base = adjust_varargs(L, p, nargs); 15 func = restorestack(L, funcr); /* previous call may change the stack */ 16 } 17 ci = inc_ci(L); /* now `enter' new function */ 18 ci->func = func; 19 L->base = ci->base = base; 20 ci->top = L->base + p->maxstacksize; 21 lua_assert(ci->top <= L->stack_last); 22 L->savedpc = p->code; /* starting point */ 23 ci->tailcalls = 0; 24 ci->nresults = nresults; 25 for (st = L->top; st < ci->top; st++) 26 setnilvalue(st); 27 L->top = ci->top; In my program, the p->maxstacksize is 79 before line 5, the current stacksize is 51, after call luaD_checkstack,the stacksize grow to 130. The lua function use vararg, so will run to line 14. Function adjust_varargs will be called. static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { int i; int nfixargs = p->numparams; Table *htab = NULL; StkId base, fixed; for (; actual < nfixargs; ++actual) setnilvalue(L->top++); #if defined(LUA_COMPAT_VARARG) if (p->is_vararg & VARARG_NEEDSARG) { /* compat. with old-style vararg? */ int nvar = actual - nfixargs; /* number of extra arguments */ lua_assert(p->is_vararg & VARARG_HASARG); luaC_checkGC(L); htab = luaH_new(L, nvar, 1); /* create `arg' table */ In function adjust_varargs(), the lua function use “arg”, So luaC_checkGC will be called. In luaC_checkGC, the current lua stack size will be reduce to 65! The call stack like this: luaC_step()- singlestep()-propagatemark()traversestack()checkstacksizes()luaD_reallocstack() But the p->maxstacksize is 79, the stacksize is not enough… When the program run to line 27,the L->top is bigger than L->stack_last, in the next operation, will cause crash! Thank you!
0
8,090,109
11/11/2011 05:40:05
883,931
08/08/2011 11:16:35
76
2
MVC: Restrict access to execute .aspx scripts in specific path location
For some reasons, sometimes may occurr that some .aspx files could appear in /Uploads/Photo/Avatar folder, and I want to restrict access to deny execution .aspx or any other scripts inside this folder. Anyway, files like .jpg .gif and other should be accessed (but not executed) by IIS. What is the best way to configure web.config, or maybe setup Routes in global.asax project is using: MVC3 IIS7 ASP.NET
asp.net-mvc
asp.net-mvc-3
null
null
null
null
open
MVC: Restrict access to execute .aspx scripts in specific path location === For some reasons, sometimes may occurr that some .aspx files could appear in /Uploads/Photo/Avatar folder, and I want to restrict access to deny execution .aspx or any other scripts inside this folder. Anyway, files like .jpg .gif and other should be accessed (but not executed) by IIS. What is the best way to configure web.config, or maybe setup Routes in global.asax project is using: MVC3 IIS7 ASP.NET
0
5,229,735
03/08/2011 07:46:08
634,692
02/25/2011 18:39:07
23
0
pass variable from href to another php page
.I have this code: <a id="various3" href="picture.php?id=',$pid,'" title="'.$info.'"><img src="picture.php?id=',$pid,'" width="150" height="210"></a> it passes the id to my picture.php where i use it on a query string. $sql = sprintf("select pics, ext from `06-07` where id='%d'",$_GET['id']); Is it possible to pass more than one variable using this method? because i would like to pass "dept" along with the "id". if it is then how?
php
mysql
null
null
null
null
open
pass variable from href to another php page === .I have this code: <a id="various3" href="picture.php?id=',$pid,'" title="'.$info.'"><img src="picture.php?id=',$pid,'" width="150" height="210"></a> it passes the id to my picture.php where i use it on a query string. $sql = sprintf("select pics, ext from `06-07` where id='%d'",$_GET['id']); Is it possible to pass more than one variable using this method? because i would like to pass "dept" along with the "id". if it is then how?
0
8,384,204
12/05/2011 10:54:00
776,967
05/31/2011 02:02:20
40
2
Aptana FTP plugin notification like SVN or Git
Can I configure Aptana's FTP connections in such a way that it shows some type of symbols like * or + for those files which are not yet uploaded? Just like it shows for files when not committed to Git or SVN repositories. If yes how?
eclipse
plugins
ftp
aptana
null
null
open
Aptana FTP plugin notification like SVN or Git === Can I configure Aptana's FTP connections in such a way that it shows some type of symbols like * or + for those files which are not yet uploaded? Just like it shows for files when not committed to Git or SVN repositories. If yes how?
0
11,480,191
07/14/2012 01:12:48
31,308
10/24/2008 20:04:37
1,167
36
How do I tell D3 to make the dendrogram vertical (top down) instead of left to right?
I'm looking at [this example][1] that uses cluster layout to assign the X and Y coordinates. to nodes on a dendrogram. How can I tell [cluster][2] to layout vertically, top down, instead of the default left to right? [1]: http://mbostock.github.com/d3/ex/cluster.html [2]: https://github.com/mbostock/d3/wiki/Cluster-Layout#wiki-cluster
d3.js
null
null
null
null
null
open
How do I tell D3 to make the dendrogram vertical (top down) instead of left to right? === I'm looking at [this example][1] that uses cluster layout to assign the X and Y coordinates. to nodes on a dendrogram. How can I tell [cluster][2] to layout vertically, top down, instead of the default left to right? [1]: http://mbostock.github.com/d3/ex/cluster.html [2]: https://github.com/mbostock/d3/wiki/Cluster-Layout#wiki-cluster
0
7,652,607
10/04/2011 18:45:09
979,024
10/04/2011 17:54:53
-1
0
I have some C language assembly code
I have some assembly code from a program that i have to try to understand by looking at the assembly code and debugging. Im having trouble getting started. What do the different commands (push, mov, sub, test, je) mean?? Along with the %esp and %ebp, and $0x18 etc etc, what do they mean? Does anyone have a table that labels all these different commands? Any help would be appreciated. I hope this isnt too vague please dont delete my question. the two methods i want to look at are phase1 and phase2. http://i.imgur.com/o59xf.jpg help please
c
assembly
null
null
null
10/04/2011 19:06:08
not a real question
I have some C language assembly code === I have some assembly code from a program that i have to try to understand by looking at the assembly code and debugging. Im having trouble getting started. What do the different commands (push, mov, sub, test, je) mean?? Along with the %esp and %ebp, and $0x18 etc etc, what do they mean? Does anyone have a table that labels all these different commands? Any help would be appreciated. I hope this isnt too vague please dont delete my question. the two methods i want to look at are phase1 and phase2. http://i.imgur.com/o59xf.jpg help please
1
68,454
09/16/2008 01:12:20
10,352
09/15/2008 22:35:57
6
0
Has Ubuntu reached the point yet where it's user friendly for most users?
I remember once before (1-2 yrs ago) if you needed to configure ANYTHING in Ubuntu, you needed to go use the command line. How is it today? Can I use it as my full desktop? Can I take it to presentations around the country and not embarrass myself because the projector won't work? Does it work well when I have to connect to various static networks? Basically, is it user friendly enough that I don't need to fight it in order to do things. Note: After my last experience, I absolutely positively refuse to use command line.
linux
ubuntu
null
null
null
03/31/2011 04:51:43
off topic
Has Ubuntu reached the point yet where it's user friendly for most users? === I remember once before (1-2 yrs ago) if you needed to configure ANYTHING in Ubuntu, you needed to go use the command line. How is it today? Can I use it as my full desktop? Can I take it to presentations around the country and not embarrass myself because the projector won't work? Does it work well when I have to connect to various static networks? Basically, is it user friendly enough that I don't need to fight it in order to do things. Note: After my last experience, I absolutely positively refuse to use command line.
2
9,439,821
02/25/2012 00:05:45
1,210,153
02/14/2012 22:45:26
6
0
algorithm for a 2-D game
>I have an idea for a 2-D game that it contains some monsters attack man and I want to >know which algorithm can be used for these monsters and which for the man if I want to >make the computer play against himself,and can I use (for example: XNA) to make this >game
algorithm
null
null
null
null
02/26/2012 05:58:07
not a real question
algorithm for a 2-D game === >I have an idea for a 2-D game that it contains some monsters attack man and I want to >know which algorithm can be used for these monsters and which for the man if I want to >make the computer play against himself,and can I use (for example: XNA) to make this >game
1
9,156,186
02/06/2012 06:08:59
824,301
07/01/2011 06:08:03
55
0
Using boost to generate random numbers between 1 and 9999
How can i used boost library in C++ to generate random numbers between 1 and 9999
c++
boost
random
null
null
02/06/2012 06:15:57
not constructive
Using boost to generate random numbers between 1 and 9999 === How can i used boost library in C++ to generate random numbers between 1 and 9999
4
7,619,468
10/01/2011 09:47:40
974,339
10/01/2011 09:43:00
1
0
DLL not working
Recently, I decided to get into DLL programming with C++. I made a simple DLL but when I inject it into a process, nothing happens. Here's the code: #include <windows.h> BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if(fdwReason == DLL_PROCESS_ATTACH){ MessageBoxA(0,"Injected","Injected",MB_OK); } return TRUE; // succesful } It's supposed to display a message box when it gets injected into a process, but it doesn't work. Any help would be appreciated
c++
dll
null
null
null
null
open
DLL not working === Recently, I decided to get into DLL programming with C++. I made a simple DLL but when I inject it into a process, nothing happens. Here's the code: #include <windows.h> BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if(fdwReason == DLL_PROCESS_ATTACH){ MessageBoxA(0,"Injected","Injected",MB_OK); } return TRUE; // succesful } It's supposed to display a message box when it gets injected into a process, but it doesn't work. Any help would be appreciated
0
7,407,595
09/13/2011 19:48:53
771,477
05/26/2011 14:24:41
81
0
Passing an array of Char s through a method
I have two blocks of code, the second of which works fine. I am trying to pass the second method an array of characters that represent a file name. My methods are as follows: void addFile(const char* file) { ... readFile(file); } File(const char* file) { ... } When I pass a file name directly into the second method, it works fine, but when I try to do the above, it fails when I try to compile with the message: "error: no matching function for call to File::File(const char**)". The two functions are in different classes, but I have no issues calling methods from the seconds class with any of my other methods from the first class. What is the compiler looking for that I don't have?
c++
compiler-errors
char
null
null
09/14/2011 09:08:08
not a real question
Passing an array of Char s through a method === I have two blocks of code, the second of which works fine. I am trying to pass the second method an array of characters that represent a file name. My methods are as follows: void addFile(const char* file) { ... readFile(file); } File(const char* file) { ... } When I pass a file name directly into the second method, it works fine, but when I try to do the above, it fails when I try to compile with the message: "error: no matching function for call to File::File(const char**)". The two functions are in different classes, but I have no issues calling methods from the seconds class with any of my other methods from the first class. What is the compiler looking for that I don't have?
1
11,246,056
06/28/2012 13:45:00
1,405,415
05/19/2012 17:41:30
6
0
Visual C#: Align the TabControl-Tabs centered at the top
I wonder how I can make a Windows-Forms-Project look like these Mac OS X-Apps with top-centered tabs? Is there any way to do this in Visual Studio?
c#
visual-studio
tabcontrol
null
null
06/29/2012 11:44:05
not a real question
Visual C#: Align the TabControl-Tabs centered at the top === I wonder how I can make a Windows-Forms-Project look like these Mac OS X-Apps with top-centered tabs? Is there any way to do this in Visual Studio?
1
2,400,227
03/08/2010 09:10:34
221,149
11/30/2009 06:47:26
395
3
jquery timer implementation
All, Is there a jquery timer which should start a timer for 20 minutes and display time elapsed.Please point me to a small code for it. var austDay = new getTime(); austDay = new getSeconds(austDay); var duration = 1200; duration += austDay; Thanks
jquery
jquery-ui
javascript
null
null
null
open
jquery timer implementation === All, Is there a jquery timer which should start a timer for 20 minutes and display time elapsed.Please point me to a small code for it. var austDay = new getTime(); austDay = new getSeconds(austDay); var duration = 1200; duration += austDay; Thanks
0
7,880,351
10/24/2011 18:50:11
1,011,484
10/24/2011 18:47:35
1
0
Embed third party exe in my Form?
Is this possible? Like embedding the actual .exe in your program, for example embedding notepad in it, preferably also without the border.
c#
null
null
null
null
10/24/2011 20:25:59
not a real question
Embed third party exe in my Form? === Is this possible? Like embedding the actual .exe in your program, for example embedding notepad in it, preferably also without the border.
1
7,882,049
10/24/2011 21:13:03
1,002,288
10/19/2011 02:07:29
12
0
How to insert a new node to a single-linked list, where we do not have a pointer pointed to its head?
Given a pointer that points to an intermediate node (non-head, noon-tail) on a single-link list . How to insert a new node just before the node pointed to by the given pointer ? Example, Given single-linked list: A -> B -> C -> D -> E Given a pointer pointed to C (ptr = &C), and a new node F, how to get A -> B -> F -> C -> D -> E Attention: we do not have pointers pointed to A. Thanks
c++
algorithm
list
data-structures
linked-list
null
open
How to insert a new node to a single-linked list, where we do not have a pointer pointed to its head? === Given a pointer that points to an intermediate node (non-head, noon-tail) on a single-link list . How to insert a new node just before the node pointed to by the given pointer ? Example, Given single-linked list: A -> B -> C -> D -> E Given a pointer pointed to C (ptr = &C), and a new node F, how to get A -> B -> F -> C -> D -> E Attention: we do not have pointers pointed to A. Thanks
0
8,628,269
12/25/2011 04:51:33
330,396
05/01/2010 14:26:00
207
1
Have no idea how to imlpement Quicksort
I am trying to implement quicksort in this for just research. But i have no idea how quicksort works im looking at this algorithm but have no idea what or how to implement it right now im using bubble sort but how do i go ahead and implement quicksort? # choose pivot swap a[1,rand(1,n)] # 2-way partition k = 1 for i = 2:n, if a[i] < a[1], swap a[++k,i] swap a[1,k] → invariant: a[1..k-1] < a[k] <= a[k+1..n] # recursive sorts sort a[1..k-1] sort a[k+1,n] This is my code below int main() { srand(time(NULL)); int length = 250000; double arr[length]; for(int i = 0; i<length; ++i) arr[i] = rand(); // mergeSort2(arr, arr+length-1); for(int i = 0; i < (length-1); i++) { for(int j = i+1; j < length; j++) { if( arr[i] > arr[j]) { swap(arr[i], arr[j]); } } } ofstream ofs("input.txt"); for(int i = 0; i<length; ++i) ofs << i << " " << arr[i] << endl; }
c++
quicksort
null
null
null
12/25/2011 09:08:16
not a real question
Have no idea how to imlpement Quicksort === I am trying to implement quicksort in this for just research. But i have no idea how quicksort works im looking at this algorithm but have no idea what or how to implement it right now im using bubble sort but how do i go ahead and implement quicksort? # choose pivot swap a[1,rand(1,n)] # 2-way partition k = 1 for i = 2:n, if a[i] < a[1], swap a[++k,i] swap a[1,k] → invariant: a[1..k-1] < a[k] <= a[k+1..n] # recursive sorts sort a[1..k-1] sort a[k+1,n] This is my code below int main() { srand(time(NULL)); int length = 250000; double arr[length]; for(int i = 0; i<length; ++i) arr[i] = rand(); // mergeSort2(arr, arr+length-1); for(int i = 0; i < (length-1); i++) { for(int j = i+1; j < length; j++) { if( arr[i] > arr[j]) { swap(arr[i], arr[j]); } } } ofstream ofs("input.txt"); for(int i = 0; i<length; ++i) ofs << i << " " << arr[i] << endl; }
1
6,326,209
06/13/2011 02:41:53
755,673
05/16/2011 13:07:17
12
0
table not displaying html page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserCreation.aspx.cs" Inherits="UserCreation" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>ePay</title> <style type="text/css"> html, body { height:100%; margin:0; padding:0; overflow: hidden; width:100%; background-position:center; background-repeat:no-repeat; } #page-background {position:fixed; top:0; left:0; width:100%; height:100%;} #content {position:relative; z-index:1; padding:10px;} .leftAlignment { padding-left:10px; } .heading { padding-left:10px; color:#7a7474; font-size:20; } .content { padding-left:10px; padding-top:20px; } #background img{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; margin-right: 0px; } #bodywrap { position:absolute; width: 94%; margin-left: 3%; margin-right: 3%; margin-top: 10px; z-index: 20; } #backdrop { position: absolute; } </style> </head> <body> <div style="padding-top:10px;"> <div id="background"> <img src="images/background.jpg" alt="Background Image"/> </div> <div id="bodywrap"> <div id="backdrop"> <span class="heading" > User Creation </span></div> <div class="leftAlignment" ><img src="images/line.png" width="600"/></div> <div class="content"> <form id="form1" runat="server"> <div> <br /> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Panel ID="PanelUser" runat="server"> <table border="0" align="center" style="position:absolute;"> <tr> <td> Employee ID:</td> <td> <asp:TextBox ID="TexEmpID" runat="server" AutoPostBack="True" ontextchanged="TexEmpID_TextChanged"></asp:TextBox> </td> </tr> <tr> <td>Employee Name:</td> <td> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:TextBox ID="TextEmpName" runat="server"> </asp:TextBox> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel></td> </tr> <tr> <td>User Name:</td> <td><asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:TextBox ID="TextUserName" runat="server"> </asp:TextBox> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel> </td> </tr> <tr> <td>Password:</td> <td> <asp:TextBox ID="TextPassword" runat="server" TextMode="Password"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextPassword" ControlToValidate="TextRePassword" ErrorMessage="*"></asp:CompareValidator> </td> </tr> <tr> <td>Re Type Password:</td> <td> <asp:TextBox ID="TextRePassword" runat="server" TextMode="Password"></asp:TextBox></td> </tr> <tr> <td> <asp:UpdatePanel ID="UpdatePanel3" runat="server"> <ContentTemplate> <asp:CheckBox ID="cbIsInactive" runat="server" Text=" Inactive" Width="108px" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel></td> <td></td> </tr> <tr> <td align="center"> <asp:Button ID="btSubmit" runat="server" onclick="btSubmit_Click" Text="Submit" /> </td> <td align="center"> <asp:Button ID="btnReset" runat="server" Text="Reset" /> </td> </tr> </table> </asp:Panel> </div> </div> </div> </form> </div> <p> &nbsp;</p> </body> </html>
html
css
xhtml
frontend
null
null
open
table not displaying html page === <%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserCreation.aspx.cs" Inherits="UserCreation" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>ePay</title> <style type="text/css"> html, body { height:100%; margin:0; padding:0; overflow: hidden; width:100%; background-position:center; background-repeat:no-repeat; } #page-background {position:fixed; top:0; left:0; width:100%; height:100%;} #content {position:relative; z-index:1; padding:10px;} .leftAlignment { padding-left:10px; } .heading { padding-left:10px; color:#7a7474; font-size:20; } .content { padding-left:10px; padding-top:20px; } #background img{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; margin-right: 0px; } #bodywrap { position:absolute; width: 94%; margin-left: 3%; margin-right: 3%; margin-top: 10px; z-index: 20; } #backdrop { position: absolute; } </style> </head> <body> <div style="padding-top:10px;"> <div id="background"> <img src="images/background.jpg" alt="Background Image"/> </div> <div id="bodywrap"> <div id="backdrop"> <span class="heading" > User Creation </span></div> <div class="leftAlignment" ><img src="images/line.png" width="600"/></div> <div class="content"> <form id="form1" runat="server"> <div> <br /> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:Panel ID="PanelUser" runat="server"> <table border="0" align="center" style="position:absolute;"> <tr> <td> Employee ID:</td> <td> <asp:TextBox ID="TexEmpID" runat="server" AutoPostBack="True" ontextchanged="TexEmpID_TextChanged"></asp:TextBox> </td> </tr> <tr> <td>Employee Name:</td> <td> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:TextBox ID="TextEmpName" runat="server"> </asp:TextBox> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel></td> </tr> <tr> <td>User Name:</td> <td><asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:TextBox ID="TextUserName" runat="server"> </asp:TextBox> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel> </td> </tr> <tr> <td>Password:</td> <td> <asp:TextBox ID="TextPassword" runat="server" TextMode="Password"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextPassword" ControlToValidate="TextRePassword" ErrorMessage="*"></asp:CompareValidator> </td> </tr> <tr> <td>Re Type Password:</td> <td> <asp:TextBox ID="TextRePassword" runat="server" TextMode="Password"></asp:TextBox></td> </tr> <tr> <td> <asp:UpdatePanel ID="UpdatePanel3" runat="server"> <ContentTemplate> <asp:CheckBox ID="cbIsInactive" runat="server" Text=" Inactive" Width="108px" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="TexEmpID" EventName="TextChanged" /> </Triggers> </asp:UpdatePanel></td> <td></td> </tr> <tr> <td align="center"> <asp:Button ID="btSubmit" runat="server" onclick="btSubmit_Click" Text="Submit" /> </td> <td align="center"> <asp:Button ID="btnReset" runat="server" Text="Reset" /> </td> </tr> </table> </asp:Panel> </div> </div> </div> </form> </div> <p> &nbsp;</p> </body> </html>
0
11,004,056
06/12/2012 20:09:39
398,460
07/21/2010 20:58:15
1,606
87
Who wrote cramfs?
Does anyone know? > README file from the cramfs project Unsigned (assumed to be the > project author) http://sourceforge.net/projects/cramfs/ ~Hallinan, Christopher (2010-10-26). Embedded Linux Primer: A Practical Real-World Approach (2nd Edition) (Kindle Locations 4764-4765). Pearson Education (USA). Kindle Edition.
linux
filesystems
null
null
null
06/12/2012 20:10:23
off topic
Who wrote cramfs? === Does anyone know? > README file from the cramfs project Unsigned (assumed to be the > project author) http://sourceforge.net/projects/cramfs/ ~Hallinan, Christopher (2010-10-26). Embedded Linux Primer: A Practical Real-World Approach (2nd Edition) (Kindle Locations 4764-4765). Pearson Education (USA). Kindle Edition.
2
7,882,567
10/24/2011 21:12:26
708,025
04/14/2011 13:16:40
8
0
Php title issue
Hi Ive tried to find an answer to this but nothing seems to be helping I have my page setup as - **index.php, skills.php** and **contact.php** I also have setup an **include folder** which contains - **header.php** and **footer.php** currently using the include function to put the header and footer within the seperate pages above. However im trying to write a script for variables that allows - **$title, $page_width**, **$meta_description, $meta_keywords** That replace the information in the **header.php** file dependent on which page is loaded above. Ive tried numerous things but none seem to work, just keep getting php errors. Thanks for any advice on this Kris
php
null
null
null
null
null
open
Php title issue === Hi Ive tried to find an answer to this but nothing seems to be helping I have my page setup as - **index.php, skills.php** and **contact.php** I also have setup an **include folder** which contains - **header.php** and **footer.php** currently using the include function to put the header and footer within the seperate pages above. However im trying to write a script for variables that allows - **$title, $page_width**, **$meta_description, $meta_keywords** That replace the information in the **header.php** file dependent on which page is loaded above. Ive tried numerous things but none seem to work, just keep getting php errors. Thanks for any advice on this Kris
0
7,561,755
09/26/2011 21:49:43
130,015
06/14/2009 01:36:13
5,711
73
Resource Files how to name them?
I am playing around with resource files and have run into a problem. I have a folder called Languages. When I make a resource file and say call it "R.resx" I can call this resource file up in my classes. If I rename this file(or delete and make a new resource file) and call it R.en.resx I **cannot** call this resource file up in my class anymore. Does the first language need to be in R.resx where the rest would be R.language.resx?
c#
.net
resource-files
null
null
null
open
Resource Files how to name them? === I am playing around with resource files and have run into a problem. I have a folder called Languages. When I make a resource file and say call it "R.resx" I can call this resource file up in my classes. If I rename this file(or delete and make a new resource file) and call it R.en.resx I **cannot** call this resource file up in my class anymore. Does the first language need to be in R.resx where the rest would be R.language.resx?
0
8,753,862
01/06/2012 05:41:54
1,095,363
12/13/2011 08:59:08
29
0
How many users per CPU core to keep my website fast?
I'm building a social network type of website, and I am going to be setting up hosting servers for it to run on, I'm just wondering what the number of users per CPU core is recommended to keep my website going fast for everyone. Say I were to have 1 Million users on my website at any given time, I want them each to have optimal speeds at doing anything. Thanks.
webserver
self-hosting
null
null
null
01/06/2012 06:22:29
not constructive
How many users per CPU core to keep my website fast? === I'm building a social network type of website, and I am going to be setting up hosting servers for it to run on, I'm just wondering what the number of users per CPU core is recommended to keep my website going fast for everyone. Say I were to have 1 Million users on my website at any given time, I want them each to have optimal speeds at doing anything. Thanks.
4
11,429,861
07/11/2012 09:44:37
1,517,317
07/11/2012 09:33:38
1
0
Error while creating iOS static library
I am creating a static library to track events and page views. I have used UINotification services such as appDidEnterBackground/Forground and Terminate to track and process the evnts and batch process them.. But error is being thrown in these lines.. Can any1 help with this pls.. Any help is appreciated.. Thanks in advance
syntax-error
static-libraries
null
null
null
07/11/2012 16:44:03
not a real question
Error while creating iOS static library === I am creating a static library to track events and page views. I have used UINotification services such as appDidEnterBackground/Forground and Terminate to track and process the evnts and batch process them.. But error is being thrown in these lines.. Can any1 help with this pls.. Any help is appreciated.. Thanks in advance
1
8,870,482
01/15/2012 14:36:02
1,118,909
12/28/2011 07:57:33
6
0
How to combining a record that separate between 2 pages in iReport?
When the last entry in a page is too long, It will show in next page, when it show all the table line is missing. This is the result http://i.imgur.com/1EkHr.png Sorry I can't post an image because the system said my reputation not more than 10 yet :P How do I move the last record (no.26) to the next page, or how I can show the line?
pdf
report
ireport
null
null
null
open
How to combining a record that separate between 2 pages in iReport? === When the last entry in a page is too long, It will show in next page, when it show all the table line is missing. This is the result http://i.imgur.com/1EkHr.png Sorry I can't post an image because the system said my reputation not more than 10 yet :P How do I move the last record (no.26) to the next page, or how I can show the line?
0
7,406,198
09/13/2011 17:49:31
859,649
07/23/2011 19:43:46
1
0
security advisor on windows 7
I have a project about a building a security advisor which have to show up always user access a commerce website.The advisor should tell if any security configuration is not as it should be for a secure transaction(e.g. if firewall is turned off,antivirus is disabled etc). Can you help me by giving some idea how to check (hard-coded) these sort of configurations?
c#
java
javascript
security
windows-firewall
09/14/2011 04:01:57
not a real question
security advisor on windows 7 === I have a project about a building a security advisor which have to show up always user access a commerce website.The advisor should tell if any security configuration is not as it should be for a secure transaction(e.g. if firewall is turned off,antivirus is disabled etc). Can you help me by giving some idea how to check (hard-coded) these sort of configurations?
1
464,674
01/21/2009 10:09:27
42,475
12/02/2008 15:10:57
1,330
81
What is your most useful programming relatet website?
Which is your most useful and important website for programming? I don't want to know which website you visit daily like [discussed here][1], but where do you go to get your programming problems solved? (Except stackoverflow of course) [1]: http://stackoverflow.com/questions/333701/which-are-the-must-visit-daily-websites-for-programmers
website
problem-solving
null
null
null
02/14/2012 02:07:10
off topic
What is your most useful programming relatet website? === Which is your most useful and important website for programming? I don't want to know which website you visit daily like [discussed here][1], but where do you go to get your programming problems solved? (Except stackoverflow of course) [1]: http://stackoverflow.com/questions/333701/which-are-the-must-visit-daily-websites-for-programmers
2
11,651,804
07/25/2012 14:15:32
961,333
09/23/2011 14:10:12
237
22
Bind List(Of String) to Repeater
How can I bind a simple list of strings to a repeater? Protected Sub Page_Load(sender As Object, e As System.EventArgs) 'create sample data: Dim photos As New List(Of String) photos.Add("large1.jpeg") photos.Add("large2.jpeg") photos.Add("large3.jpeg") photos.Add("large4.jpeg") photos.Add("large5.jpeg") 'bind data: Repeater1.DataSource = photos Repeater1.DataBind() End Sub The HTML is simply: <asp:Repeater ID="Repeater1" runat="server" ClientIDMode="Predictable"> <HeaderTemplate><ul></HeaderTemplate> <FooterTemplate></ul></FooterTemplate> <SeparatorTemplate> <li> <asp:Image ID="img_photo" runat="server" ImageUrl="<%# Container.DataItem %>" /></li> </SeparatorTemplate> </asp:Repeater> The value from Container.DataItem is always empty. Any ideas?
asp.net
vb.net
arraylist
null
null
07/25/2012 14:46:52
too localized
Bind List(Of String) to Repeater === How can I bind a simple list of strings to a repeater? Protected Sub Page_Load(sender As Object, e As System.EventArgs) 'create sample data: Dim photos As New List(Of String) photos.Add("large1.jpeg") photos.Add("large2.jpeg") photos.Add("large3.jpeg") photos.Add("large4.jpeg") photos.Add("large5.jpeg") 'bind data: Repeater1.DataSource = photos Repeater1.DataBind() End Sub The HTML is simply: <asp:Repeater ID="Repeater1" runat="server" ClientIDMode="Predictable"> <HeaderTemplate><ul></HeaderTemplate> <FooterTemplate></ul></FooterTemplate> <SeparatorTemplate> <li> <asp:Image ID="img_photo" runat="server" ImageUrl="<%# Container.DataItem %>" /></li> </SeparatorTemplate> </asp:Repeater> The value from Container.DataItem is always empty. Any ideas?
3
8,661,109
12/28/2011 20:46:04
566,745
01/07/2011 10:35:26
49
2
MVC3 jQuery how to change size of modal dialog dynamically?
I have a modal dialog in main page, then I add jPlayer to this dialog. All works fine, but I see only part of player in thsi dialog. How to change dialog size to the player size after player inserted? I.e. I want to insert audio or video player to thi sdialog and they have different sizes. $(document).ready(function(){ $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { mp3: "media/track.mp3", }).jPlayer("play"); // auto play }, ended: function (event) { $(this).jPlayer("play"); }, swfPath: "swf", supplied: "mp3" }) .bind($.jPlayer.event.play, function() { // pause other instances of player when current one play $(this).jPlayer("pauseOthers"); }); }); <script type="text/javascript"> $.ajaxSetup({ cache: false }); $(document).ready(function () { $(".openDialog").live("click", function (e) { e.preventDefault(); $("<div></div>") .addClass("dialog") .attr("id", $(this) .attr("data-dialog-id")) .appendTo("body") .dialog({ title: $(this).attr("data-dialog-title"), close: function () { $(this).remove() }, modal: true }) .load(this.href); }); $(".close").live("click", function (e) { e.preventDefault(); $(this).closest(".dialog").dialog("close"); }); }); </script>
jquery
asp.net-mvc-3
dialog
size
null
null
open
MVC3 jQuery how to change size of modal dialog dynamically? === I have a modal dialog in main page, then I add jPlayer to this dialog. All works fine, but I see only part of player in thsi dialog. How to change dialog size to the player size after player inserted? I.e. I want to insert audio or video player to thi sdialog and they have different sizes. $(document).ready(function(){ $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { mp3: "media/track.mp3", }).jPlayer("play"); // auto play }, ended: function (event) { $(this).jPlayer("play"); }, swfPath: "swf", supplied: "mp3" }) .bind($.jPlayer.event.play, function() { // pause other instances of player when current one play $(this).jPlayer("pauseOthers"); }); }); <script type="text/javascript"> $.ajaxSetup({ cache: false }); $(document).ready(function () { $(".openDialog").live("click", function (e) { e.preventDefault(); $("<div></div>") .addClass("dialog") .attr("id", $(this) .attr("data-dialog-id")) .appendTo("body") .dialog({ title: $(this).attr("data-dialog-title"), close: function () { $(this).remove() }, modal: true }) .load(this.href); }); $(".close").live("click", function (e) { e.preventDefault(); $(this).closest(".dialog").dialog("close"); }); }); </script>
0
5,931,558
05/09/2011 01:20:54
742,836
05/07/2011 08:09:50
1
0
How does gdb interpret `main` when no debug symbols loaded?
<http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /root/ctest/printf...(no debugging symbols found)...done. (gdb) disas main Dump of assembler code for function main: 0x0000000000400498 <main+0>: push %rbp 0x0000000000400499 <main+1>: mov %rsp,%rbp 0x000000000040049c <main+4>: sub $0x10,%rsp How does gdb interpret `main` when no debug symbols loaded?
c
gdb
null
null
null
null
open
How does gdb interpret `main` when no debug symbols loaded? === <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /root/ctest/printf...(no debugging symbols found)...done. (gdb) disas main Dump of assembler code for function main: 0x0000000000400498 <main+0>: push %rbp 0x0000000000400499 <main+1>: mov %rsp,%rbp 0x000000000040049c <main+4>: sub $0x10,%rsp How does gdb interpret `main` when no debug symbols loaded?
0
9,429,378
02/24/2012 10:44:01
1,118,481
12/28/2011 00:22:34
6
0
htaccess rewrite adds "index.php" when I add a trailing slash to an address
I've got my htaccess rewriting on the following rules: RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)/([a-zA-Z0-9\-_]*)$ /content.php?a=$1&b=$2&c=$3 RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)$ /content.php?a=$1&b=$2 RewriteRule ^([a-zA-Z0-9\-]*)$ /index.php?a=$1 that works wonderfully when i go to "mydomain.com/nameofpage/id" but when i add a trailing slash "mydomain.com/nameofpage/id/" the browser adds "index.php" to the end and 404's me. Thoughts? Thanks!
.htaccess
mod-rewrite
null
null
null
null
open
htaccess rewrite adds "index.php" when I add a trailing slash to an address === I've got my htaccess rewriting on the following rules: RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)/([a-zA-Z0-9\-_]*)$ /content.php?a=$1&b=$2&c=$3 RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)$ /content.php?a=$1&b=$2 RewriteRule ^([a-zA-Z0-9\-]*)$ /index.php?a=$1 that works wonderfully when i go to "mydomain.com/nameofpage/id" but when i add a trailing slash "mydomain.com/nameofpage/id/" the browser adds "index.php" to the end and 404's me. Thoughts? Thanks!
0
6,591,286
07/06/2011 03:35:51
220,410
11/28/2009 09:31:46
31
3
To Silverlight or XNA?
I want to make a Windows Phone app, but apparently there's a lot of confusion as to the future of the Windows product. It seems they're going to shift away from their proprietary technologies in favor of HTML5 and Javascript. Or, that is at least the current suspicion, and Microsoft has delayed any final wording until September. So, I'm caught in the middle. What platform should I choose to develop this standard app, Silverlight or XNA? For now, either option would be okay, but I don't want to remake the app from scratch for Windows 8.
silverlight
html5
windows-phone-7
xna
null
07/06/2011 07:11:07
not constructive
To Silverlight or XNA? === I want to make a Windows Phone app, but apparently there's a lot of confusion as to the future of the Windows product. It seems they're going to shift away from their proprietary technologies in favor of HTML5 and Javascript. Or, that is at least the current suspicion, and Microsoft has delayed any final wording until September. So, I'm caught in the middle. What platform should I choose to develop this standard app, Silverlight or XNA? For now, either option would be okay, but I don't want to remake the app from scratch for Windows 8.
4
5,433,557
03/25/2011 14:08:42
276,783
02/19/2010 08:07:49
924
78
How to compare two eclipse installations for missing features?
I have two coexisting installations of eclipse on my machine. One is the plain eclipse and one is STS (Spring Sourct Tool Suite). For some strange reason (which would be too tedious to explain here) I have to use the plain eclipse. However, I want to import, use some of the plugins that already exist in STS. Is there a way I can go about achieving this?
eclipse
eclipse-plugin
null
null
null
null
open
How to compare two eclipse installations for missing features? === I have two coexisting installations of eclipse on my machine. One is the plain eclipse and one is STS (Spring Sourct Tool Suite). For some strange reason (which would be too tedious to explain here) I have to use the plain eclipse. However, I want to import, use some of the plugins that already exist in STS. Is there a way I can go about achieving this?
0
7,733,995
10/12/2011 00:19:44
990,521
10/12/2011 00:13:42
1
0
MySQL-server version on USB key
Hi I know that there is a: -Tomcat server -Eclipse version for USB key. Is there a MySQL-server version for USB key too? Thanks.
mysql
jsp
usb-drive
null
null
10/12/2011 00:43:10
off topic
MySQL-server version on USB key === Hi I know that there is a: -Tomcat server -Eclipse version for USB key. Is there a MySQL-server version for USB key too? Thanks.
2
1,291,768
08/18/2009 04:13:55
152,077
08/06/2009 20:57:26
336
26
Is it unhealthy to program 60+ hours per week?
I'm in my early twenties and I work a lot. Is it unhealthy to program this much and often much more? I know this is subjective, but the question has been nagging me a lot lately. EDIT: To clarify, despite spending a massive amount of time at the keyboard, I have an otherwise relatively healthy lifestyle. Eat (mostly) right, exercise a few times per week, and take 1-2 nights per week to just socialize.
workflow
null
null
null
null
12/27/2011 19:38:20
not constructive
Is it unhealthy to program 60+ hours per week? === I'm in my early twenties and I work a lot. Is it unhealthy to program this much and often much more? I know this is subjective, but the question has been nagging me a lot lately. EDIT: To clarify, despite spending a massive amount of time at the keyboard, I have an otherwise relatively healthy lifestyle. Eat (mostly) right, exercise a few times per week, and take 1-2 nights per week to just socialize.
4
7,182,753
08/24/2011 21:50:14
759,532
05/18/2011 15:52:58
243
0
What is the purpose of CTRL+T and CTRL+SHIFT+T in all modern text editors?
I have seen this in countless text editors, including Visual Studio. Can anyone explain where is this useful for? So far i have only managed to break my undo/redo chain with it countless of times. (tried to hit `CTRL+Y` but instead i hit `CTRL+T` == ARGH!). Today i noticed there is even worser shortkey in Visual Studio 2008: `CTRL+SHIFT+T` - its similar to `CTRL+T` but actually much worse: int some_funny(){ return stuff; } void hehe(){ return haha; } bool finished; Becomes (after dozen of CTRL+SHIFT+T hits): some_funny return(){ stuff void; } hehe return(){ haha bool; } finished int; I dont understand how this can possibly be useful for anybody.
visual-studio-2008
keyboard-shortcuts
null
null
null
08/29/2011 07:36:40
off topic
What is the purpose of CTRL+T and CTRL+SHIFT+T in all modern text editors? === I have seen this in countless text editors, including Visual Studio. Can anyone explain where is this useful for? So far i have only managed to break my undo/redo chain with it countless of times. (tried to hit `CTRL+Y` but instead i hit `CTRL+T` == ARGH!). Today i noticed there is even worser shortkey in Visual Studio 2008: `CTRL+SHIFT+T` - its similar to `CTRL+T` but actually much worse: int some_funny(){ return stuff; } void hehe(){ return haha; } bool finished; Becomes (after dozen of CTRL+SHIFT+T hits): some_funny return(){ stuff void; } hehe return(){ haha bool; } finished int; I dont understand how this can possibly be useful for anybody.
2
9,806,746
03/21/2012 14:35:12
713,179
04/05/2011 10:09:17
1,000
1
using memset in c lang
#define MAX 100 struct bs{ int ab; int ac; }be; struct s{ be b; int c; int d; int e; }f; int a[MAX]; f a; Technique 1: ------------ f.b.ab = a; memset(&a,0,sizeof(a)); f.b.ac = MAX; Technique 2: ------------ f.b.ab = a; f.b.ac = MAX; memset(&a,0,sizeof(a)); Technique 3: ------------ memset(&a,0,sizeof(a)); f.b.ab = a; f.b.ac = MAX; which is the best technique to follow and why?
c
null
null
null
null
null
open
using memset in c lang === #define MAX 100 struct bs{ int ab; int ac; }be; struct s{ be b; int c; int d; int e; }f; int a[MAX]; f a; Technique 1: ------------ f.b.ab = a; memset(&a,0,sizeof(a)); f.b.ac = MAX; Technique 2: ------------ f.b.ab = a; f.b.ac = MAX; memset(&a,0,sizeof(a)); Technique 3: ------------ memset(&a,0,sizeof(a)); f.b.ab = a; f.b.ac = MAX; which is the best technique to follow and why?
0
9,180,769
02/07/2012 17:21:08
1,195,249
02/07/2012 17:13:30
1
0
C2146: syntax : missing ')' before identifier 's' {Different than other questions on stackoverflow}
So I this is a sample code. I just started using Visual C++ 2010 Express Edition, and I keep getting this error along with others but this bothers me a lot. Program 9.cpp(15): error C2146: syntax error : missing ')' before identifier 's' Here's my code: #include <iostream> #include <conio.h> #include <string> #include <string.h> using namespace std; class Salesman { char name[26]; float total_sales; public: Salesman (char *s, float f) { strcpy(name s); //Error occurs here. :( total_sales=f; } void prnobject (void) { cout<<this->name; cout<<"\tHas invoked probject: \n"; } }; void main() { clrscr(); salesman Raman ("Raman", 21450), Sita ("Sita", 23190), Vedant ("Vedant", 19142); Raman.prnobject(); Sita.prnobject(); Vedant.prnobject(); getch(); } Please help.
c++
string
microsoft
null
null
02/07/2012 17:46:34
too localized
C2146: syntax : missing ')' before identifier 's' {Different than other questions on stackoverflow} === So I this is a sample code. I just started using Visual C++ 2010 Express Edition, and I keep getting this error along with others but this bothers me a lot. Program 9.cpp(15): error C2146: syntax error : missing ')' before identifier 's' Here's my code: #include <iostream> #include <conio.h> #include <string> #include <string.h> using namespace std; class Salesman { char name[26]; float total_sales; public: Salesman (char *s, float f) { strcpy(name s); //Error occurs here. :( total_sales=f; } void prnobject (void) { cout<<this->name; cout<<"\tHas invoked probject: \n"; } }; void main() { clrscr(); salesman Raman ("Raman", 21450), Sita ("Sita", 23190), Vedant ("Vedant", 19142); Raman.prnobject(); Sita.prnobject(); Vedant.prnobject(); getch(); } Please help.
3
994,483
06/15/2009 04:24:21
119,032
06/08/2009 05:16:26
35
8
Market Places to sell your works
What are some online market places that i can sell my works online? for example here are some i know: - [Theme Forest][1]: for HTML/CSS/CMS Templates - [Flash Den][2]: for Flash components, website templates etc - [Envato Marketplaces][3] say i have maybe a Windows app i want to put up or something? or maybe something similar like Silverlight apps etc [1]: http://themeforest.net [2]: http://flashden.net [3]: http://envato.com/marketplace/
e-commerce
marketplace
null
null
null
null
open
Market Places to sell your works === What are some online market places that i can sell my works online? for example here are some i know: - [Theme Forest][1]: for HTML/CSS/CMS Templates - [Flash Den][2]: for Flash components, website templates etc - [Envato Marketplaces][3] say i have maybe a Windows app i want to put up or something? or maybe something similar like Silverlight apps etc [1]: http://themeforest.net [2]: http://flashden.net [3]: http://envato.com/marketplace/
0
6,170,284
05/29/2011 20:37:31
775,363
05/29/2011 18:15:02
49
0
C++/bug testing
I was asked this on an interview. I was absolutely clueless how I to solve this... /* You are writing a unit test to confirm the correctness of a function which takes 3 float values as arguments. You decide to stress test it by testing 1000000 'random' inputs. You find that the function will fail, but very rarely, so you include code to print out all failure cases, hoping to grab a simple repro case which you can debug into. Note: All code here is run in a single-threaded environment. */ //... // Some code sets a,b,c //... if ( testPasses(a,b,c) ) { printf("Pass\n"); } else // someFunc fails, print the values so we can reproduce { printf("Fail: %f %f %f\n", a, b, c); } Can you help me? Thanks!
c++
null
null
null
null
05/29/2011 23:41:42
not a real question
C++/bug testing === I was asked this on an interview. I was absolutely clueless how I to solve this... /* You are writing a unit test to confirm the correctness of a function which takes 3 float values as arguments. You decide to stress test it by testing 1000000 'random' inputs. You find that the function will fail, but very rarely, so you include code to print out all failure cases, hoping to grab a simple repro case which you can debug into. Note: All code here is run in a single-threaded environment. */ //... // Some code sets a,b,c //... if ( testPasses(a,b,c) ) { printf("Pass\n"); } else // someFunc fails, print the values so we can reproduce { printf("Fail: %f %f %f\n", a, b, c); } Can you help me? Thanks!
1
3,033,331
06/13/2010 18:09:24
354,216
05/30/2010 23:51:26
42
0
Cnoverting application to MVC architecture
I'm practicing writing MVC applications. I have a Mastermind game, that I would like to rewrite as MVC app. I have divided my code to parts, but instead of working game I'm getting empty Frame and an error in "public void paint( Graphics g )". Error comes from calling this method in my view with null argument. But how to overcome this ? MVC was quite simple with swing but awt and it's paint methods are much more complicated. Code of working app : http://paste.pocoo.org/show/224982/ App divided to MVC : Main : public class Main { public static void main(String[] args){ Model model = new Model(); View view = new View("Mastermind", 400, 590, model); Controller controller = new Controller(model, view); view.setVisible(true); } } Controller : import java.awt.*; import java.awt.event.*; public class Controller implements MouseListener, ActionListener { private Model model; private View view; public Controller(Model m, View v){ model = m; view = v; view.addWindowListener( new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); view.addMouseListener(this); } public void actionPerformed( ActionEvent e ) { if(e.getSource() == view.checkAnswer){ if(model.isRowFull){ model.check(); } } } public void mousePressed(MouseEvent e) { Point mouse = new Point(); mouse = e.getPoint(); if (model.isPlaying){ if (mouse.x > 350) { int button = 1 + (int)((mouse.y - 32) / 50); if ((button >= 1) && (button <= 5)){ model.fillHole(button); } } } } public void mouseClicked(MouseEvent e) {} public void mouseReleased(MouseEvent e){} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) {} } View : import java.awt.*; import javax.swing.*; import java.awt.event.*; public class View extends Frame implements ActionListener { Model model; JButton checkAnswer; private JPanel button; static final int HIT_X[] = {270,290,310,290,310}, HIT_Y[] = {506,496,496,516,516}; public View(String name, int w, int h, Model m){ model = m; setTitle( name ); setSize( w,h ); setResizable( false ); this.setLayout(new BorderLayout()); button = new JPanel(); button.setSize( new Dimension(400, 100)); button.setVisible(true); checkAnswer = new JButton("Check"); checkAnswer.addActionListener(this); checkAnswer.setSize( new Dimension(200, 30)); button.add( checkAnswer ); this.add( button, BorderLayout.SOUTH); button.setVisible(true); for ( int i=0; i < model.SCORE; i++ ){ for ( int j = 0; j < model.LINE; j++ ){ model.pins[i][j] = new Pin(20,0); model.pins[i][j].setPosition(j*50+30,510-i*50); model.pins[i+model.SCORE][j] = new Pin(8,0); model.pins[i+model.SCORE][j].setPosition(HIT_X[j],HIT_Y[j]-i*50); } } for ( int i=0; i < model.LINE; i++ ){ model.pins[model.OPTIONS][i] = new Pin( 20, i+2 ); model.pins[model.OPTIONS][i].setPosition( 370,i * 50 + 56); } model.combination(); model.paint(null); } public void actionPerformed( ActionEvent e ) { } } Model: import java.awt.*; public class Model extends Frame{ static final int LINE = 5, SCORE = 10, OPTIONS = 20; Pin pins[][] = new Pin[21][LINE]; int combination[] = new int[LINE]; int curPin = 0; int turn = 1; int repaintPin; boolean isUpdate = true, isPlaying = true, isRowFull = false; public Model(){ } void fillHole(int color) { pins[turn-1][curPin].setColor(color+1); repaintPins( turn ); curPin = (curPin+1) % LINE; if (curPin == 0){ isRowFull = true; } } public void paint( Graphics g ) { g.setColor( new Color(238, 238, 238)); g.fillRect( 0,0,400,590); for ( int i=0; i < pins.length; i++ ) { pins[i][0].paint(g); pins[i][1].paint(g); pins[i][2].paint(g); pins[i][3].paint(g); pins[i][4].paint(g); } } public void update( Graphics g ) { if ( isUpdate ) { paint(g); } else { isUpdate = true; pins[repaintPin-1][0].paint(g); pins[repaintPin-1][1].paint(g); pins[repaintPin-1][2].paint(g); pins[repaintPin-1][3].paint(g); pins[repaintPin-1][4].paint(g); } } void repaintPins( int pin ) { repaintPin = pin; isUpdate = false; repaint(); } void check() { int junkPegs[] = new int[LINE], junkCode[] = new int[LINE]; int pegCount = 0, pico = 0; for ( int i = 0; i < LINE; i++ ) { junkPegs[i] = pins[turn-1][i].getColor(); junkCode[i] = combination[i]; } for ( int i = 0; i < LINE; i++ ){ if (junkPegs[i]==junkCode[i]) { pins[turn+SCORE][pegCount].setColor(1); pegCount++; pico++; junkPegs[i] = 98; junkCode[i] = 99; } } for ( int i = 0; i < LINE; i++ ){ for ( int j = 0; j < LINE; j++ ) if (junkPegs[i]==junkCode[j]) { pins[turn+SCORE][pegCount].setColor(2); pegCount++; junkPegs[i] = 98; junkCode[j] = 99; j = LINE; } } repaintPins( turn+SCORE ); if ( pico == LINE ){ isPlaying = false; } else if ( turn >= 10 ){ isPlaying = false; } else{ curPin = 0; isRowFull = false; turn++; } } void combination() { for ( int i = 0; i < LINE; i++ ){ combination[i] = 1 + (int)(Math.random()*5); System.out.print(i+","); } } } class Pin{ private int color, X, Y, radius; private static final Color COLORS[] = { Color.black, Color.white, Color.red, Color.yellow, Color.green, Color.blue, new Color(7, 254, 250)}; public Pin(){ X = 0; Y = 0; radius = 0; color = 0; } public Pin( int r,int c ){ X = 0; Y = 0; radius = r; color = c; } public void paint( Graphics g ){ int x = X-radius; int y = Y-radius; if (color > 0){ g.setColor( COLORS[color]); g.fillOval( x,y,2*radius,2*radius ); } else{ g.setColor( new Color(238, 238, 238) ); g.drawOval( x,y,2*radius-1,2*radius-1 ); } g.setColor( Color.black ); g.drawOval( x,y,2*radius,2*radius ); } public void setPosition( int x,int y ){ this.X = x ; this.Y = y ; } public void setColor( int c ){ color = c; } public int getColor() { return color; } } Any clues on how to overcome this would be great. Have I divided my code improperly ?
java
mvc
null
null
null
null
open
Cnoverting application to MVC architecture === I'm practicing writing MVC applications. I have a Mastermind game, that I would like to rewrite as MVC app. I have divided my code to parts, but instead of working game I'm getting empty Frame and an error in "public void paint( Graphics g )". Error comes from calling this method in my view with null argument. But how to overcome this ? MVC was quite simple with swing but awt and it's paint methods are much more complicated. Code of working app : http://paste.pocoo.org/show/224982/ App divided to MVC : Main : public class Main { public static void main(String[] args){ Model model = new Model(); View view = new View("Mastermind", 400, 590, model); Controller controller = new Controller(model, view); view.setVisible(true); } } Controller : import java.awt.*; import java.awt.event.*; public class Controller implements MouseListener, ActionListener { private Model model; private View view; public Controller(Model m, View v){ model = m; view = v; view.addWindowListener( new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); view.addMouseListener(this); } public void actionPerformed( ActionEvent e ) { if(e.getSource() == view.checkAnswer){ if(model.isRowFull){ model.check(); } } } public void mousePressed(MouseEvent e) { Point mouse = new Point(); mouse = e.getPoint(); if (model.isPlaying){ if (mouse.x > 350) { int button = 1 + (int)((mouse.y - 32) / 50); if ((button >= 1) && (button <= 5)){ model.fillHole(button); } } } } public void mouseClicked(MouseEvent e) {} public void mouseReleased(MouseEvent e){} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) {} } View : import java.awt.*; import javax.swing.*; import java.awt.event.*; public class View extends Frame implements ActionListener { Model model; JButton checkAnswer; private JPanel button; static final int HIT_X[] = {270,290,310,290,310}, HIT_Y[] = {506,496,496,516,516}; public View(String name, int w, int h, Model m){ model = m; setTitle( name ); setSize( w,h ); setResizable( false ); this.setLayout(new BorderLayout()); button = new JPanel(); button.setSize( new Dimension(400, 100)); button.setVisible(true); checkAnswer = new JButton("Check"); checkAnswer.addActionListener(this); checkAnswer.setSize( new Dimension(200, 30)); button.add( checkAnswer ); this.add( button, BorderLayout.SOUTH); button.setVisible(true); for ( int i=0; i < model.SCORE; i++ ){ for ( int j = 0; j < model.LINE; j++ ){ model.pins[i][j] = new Pin(20,0); model.pins[i][j].setPosition(j*50+30,510-i*50); model.pins[i+model.SCORE][j] = new Pin(8,0); model.pins[i+model.SCORE][j].setPosition(HIT_X[j],HIT_Y[j]-i*50); } } for ( int i=0; i < model.LINE; i++ ){ model.pins[model.OPTIONS][i] = new Pin( 20, i+2 ); model.pins[model.OPTIONS][i].setPosition( 370,i * 50 + 56); } model.combination(); model.paint(null); } public void actionPerformed( ActionEvent e ) { } } Model: import java.awt.*; public class Model extends Frame{ static final int LINE = 5, SCORE = 10, OPTIONS = 20; Pin pins[][] = new Pin[21][LINE]; int combination[] = new int[LINE]; int curPin = 0; int turn = 1; int repaintPin; boolean isUpdate = true, isPlaying = true, isRowFull = false; public Model(){ } void fillHole(int color) { pins[turn-1][curPin].setColor(color+1); repaintPins( turn ); curPin = (curPin+1) % LINE; if (curPin == 0){ isRowFull = true; } } public void paint( Graphics g ) { g.setColor( new Color(238, 238, 238)); g.fillRect( 0,0,400,590); for ( int i=0; i < pins.length; i++ ) { pins[i][0].paint(g); pins[i][1].paint(g); pins[i][2].paint(g); pins[i][3].paint(g); pins[i][4].paint(g); } } public void update( Graphics g ) { if ( isUpdate ) { paint(g); } else { isUpdate = true; pins[repaintPin-1][0].paint(g); pins[repaintPin-1][1].paint(g); pins[repaintPin-1][2].paint(g); pins[repaintPin-1][3].paint(g); pins[repaintPin-1][4].paint(g); } } void repaintPins( int pin ) { repaintPin = pin; isUpdate = false; repaint(); } void check() { int junkPegs[] = new int[LINE], junkCode[] = new int[LINE]; int pegCount = 0, pico = 0; for ( int i = 0; i < LINE; i++ ) { junkPegs[i] = pins[turn-1][i].getColor(); junkCode[i] = combination[i]; } for ( int i = 0; i < LINE; i++ ){ if (junkPegs[i]==junkCode[i]) { pins[turn+SCORE][pegCount].setColor(1); pegCount++; pico++; junkPegs[i] = 98; junkCode[i] = 99; } } for ( int i = 0; i < LINE; i++ ){ for ( int j = 0; j < LINE; j++ ) if (junkPegs[i]==junkCode[j]) { pins[turn+SCORE][pegCount].setColor(2); pegCount++; junkPegs[i] = 98; junkCode[j] = 99; j = LINE; } } repaintPins( turn+SCORE ); if ( pico == LINE ){ isPlaying = false; } else if ( turn >= 10 ){ isPlaying = false; } else{ curPin = 0; isRowFull = false; turn++; } } void combination() { for ( int i = 0; i < LINE; i++ ){ combination[i] = 1 + (int)(Math.random()*5); System.out.print(i+","); } } } class Pin{ private int color, X, Y, radius; private static final Color COLORS[] = { Color.black, Color.white, Color.red, Color.yellow, Color.green, Color.blue, new Color(7, 254, 250)}; public Pin(){ X = 0; Y = 0; radius = 0; color = 0; } public Pin( int r,int c ){ X = 0; Y = 0; radius = r; color = c; } public void paint( Graphics g ){ int x = X-radius; int y = Y-radius; if (color > 0){ g.setColor( COLORS[color]); g.fillOval( x,y,2*radius,2*radius ); } else{ g.setColor( new Color(238, 238, 238) ); g.drawOval( x,y,2*radius-1,2*radius-1 ); } g.setColor( Color.black ); g.drawOval( x,y,2*radius,2*radius ); } public void setPosition( int x,int y ){ this.X = x ; this.Y = y ; } public void setColor( int c ){ color = c; } public int getColor() { return color; } } Any clues on how to overcome this would be great. Have I divided my code improperly ?
0
5,612,776
04/10/2011 15:33:21
591,506
01/26/2011 23:57:50
203
3
C++ pair delete error
I have the similar code as follows pair<int,int> *findPair(){ pair<int,int> *t = new pair<int,int> [10]; for(int i=0;i<10;i++) { t[i].first =1; t[i].second =2; } return t; } int main() { pair<int, int> * tt = findPair(); tt[1].first =8; delete [] tt; // error return 0; } There is segment fault error. I have similar code and `new pair` but get segment fault.
c++
null
null
null
null
04/10/2011 15:59:33
not a real question
C++ pair delete error === I have the similar code as follows pair<int,int> *findPair(){ pair<int,int> *t = new pair<int,int> [10]; for(int i=0;i<10;i++) { t[i].first =1; t[i].second =2; } return t; } int main() { pair<int, int> * tt = findPair(); tt[1].first =8; delete [] tt; // error return 0; } There is segment fault error. I have similar code and `new pair` but get segment fault.
1
10,222,922
04/19/2012 06:46:36
1,343,191
04/19/2012 06:41:19
1
0
Constrains are not allowed at non-generic declation
private Result Execute(out T returnValue, string storedProcedureName, Hashtable parameters, ExecuteType executeType) where T : class Error at where :Constrains are not allowed at non-generic declation
.net
generics
methods
null
null
null
open
Constrains are not allowed at non-generic declation === private Result Execute(out T returnValue, string storedProcedureName, Hashtable parameters, ExecuteType executeType) where T : class Error at where :Constrains are not allowed at non-generic declation
0
9,304,350
02/16/2012 01:43:55
1,212,801
02/16/2012 01:38:29
1
0
TCP issue: sending data to specific client from server on vvvv
I have few questions to ask about TCP on vvvv. First, is it impossible to TCP Server to send data only to clients I choose, not every client? I need to send different data to different clients, but I noticed that TCP Server node seems that it has no pins to manipulate such operation. I have no idea if this problem is of vvvv or of TCP communication itself. Second, is there any way to access to core code of existing node, like editing dynamic plugins? Thanks for reading and paying attention. Every answer will be greatly appreciated and help me a lot!
tcp
null
null
null
null
02/16/2012 19:29:05
not a real question
TCP issue: sending data to specific client from server on vvvv === I have few questions to ask about TCP on vvvv. First, is it impossible to TCP Server to send data only to clients I choose, not every client? I need to send different data to different clients, but I noticed that TCP Server node seems that it has no pins to manipulate such operation. I have no idea if this problem is of vvvv or of TCP communication itself. Second, is there any way to access to core code of existing node, like editing dynamic plugins? Thanks for reading and paying attention. Every answer will be greatly appreciated and help me a lot!
1
8,949,862
01/21/2012 01:07:12
118,154
06/05/2009 17:08:56
2,090
25
winrt autoupdate
I have an out of browser app with silverlight. If I switch to winrt can it automatically update like silverlight does or is it just like a WPF app. Where can I learn about winRT as a cloud app?
silverlight
winrt
null
null
null
null
open
winrt autoupdate === I have an out of browser app with silverlight. If I switch to winrt can it automatically update like silverlight does or is it just like a WPF app. Where can I learn about winRT as a cloud app?
0
8,560,795
12/19/2011 11:42:30
701,980
04/11/2011 10:35:17
1
0
Facebox not working on elements loaded into specific div with jQuery
just want to put it out there, that I have searched all over stackoverflow and google but couldn't resolve my problem with the help I found. I have a weekly calendar, which days are separated into div elements. Each div has an ID of d-m-Y. I use a mix of php and jQuery to load events into days of the selected week. Below is the mix of jQuery and PHP that does just that (loads events into certain days of the week). echo "<script type=\"text/javascript\"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox({ loadingImage : '/scripts/facebox-v1.3/loading.gif', closeImage : '/scripts/facebox-v1.3/closelabel.png' }); $(document).bind('beforeReveal.facebox', function() { $(\"#facebox .content\").empty(); }); "; for($day=1; $day<=5; $day++) { echo "$('#".date('d-m-Y', strtotime($year."W".$week.$day))."').append( $('<div />').load('/cal/load #".date('d-m-Y', strtotime($year."W".$week.$day))."' ));\n"; } echo "}); </script>"; Below is the data that gets loaded into the specific div. echo "<div id='".date('d-m-Y', strtotime($event['timeStart']))."' style='width: 100%; height: ".$eventLong."px; top: ".$eventPosition."px; left: 0%; position: absolute; z-index: 1; background: #C30;'><a href='#' rel='facebox'>Delete</a></div>"; My problem is that I can't get facebox to work - I want to achieve that when I click on the delete button, facebox pops out.
jquery
ajax
facebox
null
null
null
open
Facebox not working on elements loaded into specific div with jQuery === just want to put it out there, that I have searched all over stackoverflow and google but couldn't resolve my problem with the help I found. I have a weekly calendar, which days are separated into div elements. Each div has an ID of d-m-Y. I use a mix of php and jQuery to load events into days of the selected week. Below is the mix of jQuery and PHP that does just that (loads events into certain days of the week). echo "<script type=\"text/javascript\"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox({ loadingImage : '/scripts/facebox-v1.3/loading.gif', closeImage : '/scripts/facebox-v1.3/closelabel.png' }); $(document).bind('beforeReveal.facebox', function() { $(\"#facebox .content\").empty(); }); "; for($day=1; $day<=5; $day++) { echo "$('#".date('d-m-Y', strtotime($year."W".$week.$day))."').append( $('<div />').load('/cal/load #".date('d-m-Y', strtotime($year."W".$week.$day))."' ));\n"; } echo "}); </script>"; Below is the data that gets loaded into the specific div. echo "<div id='".date('d-m-Y', strtotime($event['timeStart']))."' style='width: 100%; height: ".$eventLong."px; top: ".$eventPosition."px; left: 0%; position: absolute; z-index: 1; background: #C30;'><a href='#' rel='facebox'>Delete</a></div>"; My problem is that I can't get facebox to work - I want to achieve that when I click on the delete button, facebox pops out.
0
7,128,469
08/19/2011 23:37:12
828,584
07/04/2011 18:34:01
293
12
PHP viewing a file as hex?
I had looked for a way to view a file as hex a while ago and found: class Hex { var $file; var $hex; function __construct($file) { $this->file = $file; } function gethex() { $handle = fopen($this->file, 'r') or die('Permission?'); while(!feof($handle)) { foreach(unpack('C*',fgets($handle)) as $dec) { $tmp = dechex($dec); $this->hex[] .= strtoupper(str_repeat('0',2-strlen($tmp)).$tmp); } } return join($this->hex); } function writehex($hexcode) { foreach(str_split($hexcode,2) as $hex) { $tmp .= pack('C*', hexdec($hex)); } $handle = fopen($this->file, 'w+') or die('Permission?'); fwrite($handle, $tmp); } } It worked great for one file, but I think I'm running into problems with trying to do it with multiple files. Is there anything wrong with the script? Should it close the files somewhere? Should I delete the instances of it after using them?
php
null
null
null
null
null
open
PHP viewing a file as hex? === I had looked for a way to view a file as hex a while ago and found: class Hex { var $file; var $hex; function __construct($file) { $this->file = $file; } function gethex() { $handle = fopen($this->file, 'r') or die('Permission?'); while(!feof($handle)) { foreach(unpack('C*',fgets($handle)) as $dec) { $tmp = dechex($dec); $this->hex[] .= strtoupper(str_repeat('0',2-strlen($tmp)).$tmp); } } return join($this->hex); } function writehex($hexcode) { foreach(str_split($hexcode,2) as $hex) { $tmp .= pack('C*', hexdec($hex)); } $handle = fopen($this->file, 'w+') or die('Permission?'); fwrite($handle, $tmp); } } It worked great for one file, but I think I'm running into problems with trying to do it with multiple files. Is there anything wrong with the script? Should it close the files somewhere? Should I delete the instances of it after using them?
0
5,393,204
03/22/2011 14:59:11
526,924
10/28/2010 14:40:15
133
8
why is Linux a base for Android devices
I have 2 questions. 1- Why did Android founders chose Linux? 2- Is Linux the so called middleware in Android? Thanks.
android
null
null
null
null
03/22/2011 15:11:51
off topic
why is Linux a base for Android devices === I have 2 questions. 1- Why did Android founders chose Linux? 2- Is Linux the so called middleware in Android? Thanks.
2
8,414,489
12/07/2011 11:21:39
534,908
12/08/2010 11:21:30
180
8
Configure password-less SSH access among UNIX boxes
I need to configure ssh session between two unix boxes with public key encryption. Issue is these two boxes dosen't have the automounter running.
unix
ssh
null
null
null
12/07/2011 20:48:45
not a real question
Configure password-less SSH access among UNIX boxes === I need to configure ssh session between two unix boxes with public key encryption. Issue is these two boxes dosen't have the automounter running.
1
10,974,541
06/11/2012 04:35:21
894,334
08/14/2011 23:51:50
1
0
Document conversion and viewing, what are the cutting edge solutions?
Goal: building a web application where a user can: 1. Upload a document (doc, docx, pdf, additional office formats a +) 2. View that document in a browser, preferably in html 3. Download the document (in doc, pdf, additional open formats a +) Current solution: - Ruby on Rails Application on Rackspace - Users can upload doc and pdf files (AWS) - Files can be downloaded in the format in which they were uploaded - Thumbnail generation ([doc, pdf] -> pdf -> png) is done through AbiWord. Certain doc files do not convert well. - Documents can be viewed in embedded Google docs viewer (https://docs.google.com/viewer). Certain doc files cannot be displayed. Little flexibility. Potential improvements: - Document viewing in pdf through [pdf.js][1] - Viewing in html (+ annotation) through [Crocodoc][2] I'd be glad to hear other users' experiences, and will add good recommendations to this list. [1]: https://addons.mozilla.org/en-US/firefox/addon/pdfjs/ [2]: https://crocodoc.com/
html5
pdf
converter
docx
doc
06/11/2012 13:48:08
not constructive
Document conversion and viewing, what are the cutting edge solutions? === Goal: building a web application where a user can: 1. Upload a document (doc, docx, pdf, additional office formats a +) 2. View that document in a browser, preferably in html 3. Download the document (in doc, pdf, additional open formats a +) Current solution: - Ruby on Rails Application on Rackspace - Users can upload doc and pdf files (AWS) - Files can be downloaded in the format in which they were uploaded - Thumbnail generation ([doc, pdf] -> pdf -> png) is done through AbiWord. Certain doc files do not convert well. - Documents can be viewed in embedded Google docs viewer (https://docs.google.com/viewer). Certain doc files cannot be displayed. Little flexibility. Potential improvements: - Document viewing in pdf through [pdf.js][1] - Viewing in html (+ annotation) through [Crocodoc][2] I'd be glad to hear other users' experiences, and will add good recommendations to this list. [1]: https://addons.mozilla.org/en-US/firefox/addon/pdfjs/ [2]: https://crocodoc.com/
4
1,379,525
09/04/2009 14:10:48
6,896
09/15/2008 12:46:57
449
17
How to implement a custom ColumnSorter with ScrollTable (GWT-incubator)
I've implemented my custom column sorter which is used to sort the elements in my table. <pre> class FileColumnSorter extends SortableGrid.ColumnSorter { @Override public void onSortColumn(SortableGrid sortableGrid, TableModelHelper.ColumnSortList columnSortList, SortableGrid.ColumnSorterCallback columnSorterCallback) .... } </pre> When I initialize the FixedWidthGrid I do the following: <pre> FixedWidthGrid dataTable = new FixedWidthGrid(rows, cols); dataTable.setSelectionPolicy(SelectionGrid.SelectionPolicy.ONE_ROW); dataTable.setColumnSorter(new FileColumnSorter()); </pre> The scrolltable is initialized the following way: <pre> FixedWidthFlexTable headerTable = createHeaderTable(); // Calling the lines described above FixedWidthGrid fileListGrid = createDataTable (currentDescriptorList.size(), 6); // Combine the components into a ScrollTable scrollTable = new ScrollTable(fileListGrid, headerTable); scrollTable.setSortPolicy(AbstractScrollTable.SortPolicy.SINGLE_CELL); scrollTable.setColumnSortable(0, false); scrollTable.setColumnSortable(1, true); scrollTable.setColumnSortable(2, true); scrollTable.setColumnSortable(3, true); scrollTable.setColumnSortable(4, true); scrollTable.setColumnSortable(5, false); </pre> When I run the application, I get the built in sorting instead of my custom sorting. I've also tried to do the following: <pre> ColumnSorter sorter = new FileColumnSorter(); FixedWidthGrid dataTable = new FixedWidthGrid(rows, cols) { @Override public ColumnSorter getColumnSorter() { return sorter; } }; </pre> To ensure that my sorter get used, but I still get the same experience.
gwt
sorting
table
java
null
null
open
How to implement a custom ColumnSorter with ScrollTable (GWT-incubator) === I've implemented my custom column sorter which is used to sort the elements in my table. <pre> class FileColumnSorter extends SortableGrid.ColumnSorter { @Override public void onSortColumn(SortableGrid sortableGrid, TableModelHelper.ColumnSortList columnSortList, SortableGrid.ColumnSorterCallback columnSorterCallback) .... } </pre> When I initialize the FixedWidthGrid I do the following: <pre> FixedWidthGrid dataTable = new FixedWidthGrid(rows, cols); dataTable.setSelectionPolicy(SelectionGrid.SelectionPolicy.ONE_ROW); dataTable.setColumnSorter(new FileColumnSorter()); </pre> The scrolltable is initialized the following way: <pre> FixedWidthFlexTable headerTable = createHeaderTable(); // Calling the lines described above FixedWidthGrid fileListGrid = createDataTable (currentDescriptorList.size(), 6); // Combine the components into a ScrollTable scrollTable = new ScrollTable(fileListGrid, headerTable); scrollTable.setSortPolicy(AbstractScrollTable.SortPolicy.SINGLE_CELL); scrollTable.setColumnSortable(0, false); scrollTable.setColumnSortable(1, true); scrollTable.setColumnSortable(2, true); scrollTable.setColumnSortable(3, true); scrollTable.setColumnSortable(4, true); scrollTable.setColumnSortable(5, false); </pre> When I run the application, I get the built in sorting instead of my custom sorting. I've also tried to do the following: <pre> ColumnSorter sorter = new FileColumnSorter(); FixedWidthGrid dataTable = new FixedWidthGrid(rows, cols) { @Override public ColumnSorter getColumnSorter() { return sorter; } }; </pre> To ensure that my sorter get used, but I still get the same experience.
0
356,137
12/10/2008 14:04:47
29,515
10/20/2008 07:07:24
362
79
How to learn Java from scratch?
Java is really vast and I want to start learning it. What is the best approach to start from scratch? Should i start with core java? And does any one knows any site/free e-book that explains each and every concept of Java with the help of examples?
java
null
null
null
null
11/19/2011 23:14:34
off topic
How to learn Java from scratch? === Java is really vast and I want to start learning it. What is the best approach to start from scratch? Should i start with core java? And does any one knows any site/free e-book that explains each and every concept of Java with the help of examples?
2
6,549,259
07/01/2011 14:25:53
109,341
05/19/2009 12:32:02
476
25
let child dom element out of bounds of the parent div with html and javascript on hover
Very hard to summarize in the title what the question is exactly so more info here... an image-gallery consisting of a list element with images (and a span to display a text label). the html layout looks like this: <div class="caracteristics_list gallery"> <ul class="thumb"> <li><a href="#"><span class="video">Play</span><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><span class="tagline">Lorem ipsum</span><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><span class="tagline">Lorem ipsum</span><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery4.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery4.jpg" alt="" /></a></li> </ul> </div> this gallery has a zoom effect ([taken from this guide][1] ([demo][2])) the catch here is that the gallery has a fixed width, and height and a overflow: scroll (it does not grow it is contained within the bounds of that gallery div. that means, the zoom effect is cut of by the overflow css settings. an example of what i have now (with broken images though) [can be seen on jsfiddle here][3] I fear the overflow constraint will make this method impossible, unless i take the element out of the gallery div, and position it exactly at the same spot absolute or relative. but first i want to make sure that is the only way to go. thanks Sander [1]: http://www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/ [2]: http://www.sohtanaka.com/web-design/examples/image-zoom/ [3]: http://jsfiddle.net/aaSKy/
javascript
html
css
jquery-hover
null
null
open
let child dom element out of bounds of the parent div with html and javascript on hover === Very hard to summarize in the title what the question is exactly so more info here... an image-gallery consisting of a list element with images (and a span to display a text label). the html layout looks like this: <div class="caracteristics_list gallery"> <ul class="thumb"> <li><a href="#"><span class="video">Play</span><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery1.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery2.jpg" alt="" /></a></li> <li><a href="#"><span class="tagline">Lorem ipsum</span><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><span class="tagline">Lorem ipsum</span><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery3.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery4.jpg" alt="" /></a></li> <li><a href="#"><img src="images/gallery4.jpg" alt="" /></a></li> </ul> </div> this gallery has a zoom effect ([taken from this guide][1] ([demo][2])) the catch here is that the gallery has a fixed width, and height and a overflow: scroll (it does not grow it is contained within the bounds of that gallery div. that means, the zoom effect is cut of by the overflow css settings. an example of what i have now (with broken images though) [can be seen on jsfiddle here][3] I fear the overflow constraint will make this method impossible, unless i take the element out of the gallery div, and position it exactly at the same spot absolute or relative. but first i want to make sure that is the only way to go. thanks Sander [1]: http://www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/ [2]: http://www.sohtanaka.com/web-design/examples/image-zoom/ [3]: http://jsfiddle.net/aaSKy/
0
8,387,922
12/05/2011 15:48:11
492,035
10/30/2010 08:38:40
68
2
WCF Service Library Connection Issue to DAL in an ASP.NET web application
I have the following set up in the same solution. - A WCF Services Library with one main service called MatchService.cs - A DAL with a EntityDataModel for my classes which retrieves my information about football matches from a DB - An ASP.NET Website which is hosting the WCF Service Library Match Service (from the WCF service libracy mentioned above) My problem is that this fine runs locally, but not on the production server. Locally the WCF project has an app.config from which it gets the connection details for the DB DAL, however I'm thinking that this does not get put into the compiled .dll for the WCF Services Project as I get the following error when I upload this to the production site: "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." So I thought it would attempt to get the DB details from the web.config, however this does not seem to be the case either. Can anyone let me know what I'm doing wrong?
asp.net
wcf
dll
null
null
null
open
WCF Service Library Connection Issue to DAL in an ASP.NET web application === I have the following set up in the same solution. - A WCF Services Library with one main service called MatchService.cs - A DAL with a EntityDataModel for my classes which retrieves my information about football matches from a DB - An ASP.NET Website which is hosting the WCF Service Library Match Service (from the WCF service libracy mentioned above) My problem is that this fine runs locally, but not on the production server. Locally the WCF project has an app.config from which it gets the connection details for the DB DAL, however I'm thinking that this does not get put into the compiled .dll for the WCF Services Project as I get the following error when I upload this to the production site: "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." So I thought it would attempt to get the DB details from the web.config, however this does not seem to be the case either. Can anyone let me know what I'm doing wrong?
0
888,083
05/20/2009 14:00:45
31,130
10/24/2008 10:16:18
35
0
Using spaced repetition to retain programming knowledge
Has anybody successfully used spaced repetition concepts embodied in programs like supermemo in the context of programming ? The motivation for this question: I'm increasingly having to look up things I knew. Reading this Wired piece <a href="http://www.wired.com/medtech/health/magazine/16-05/ff_wozniak">"Want to Remember Everything You'll Ever Learn? Surrender to This Algorithm"</a> has me wondering if this has worked in practice for anybody. I'm talking about using it to remember programming snippets, keywords, APIs etc so I don't have to browse through "X in a Nutshell" just to refresh my memory.
information-retrieval
human-factors
null
null
null
03/03/2012 01:29:47
off topic
Using spaced repetition to retain programming knowledge === Has anybody successfully used spaced repetition concepts embodied in programs like supermemo in the context of programming ? The motivation for this question: I'm increasingly having to look up things I knew. Reading this Wired piece <a href="http://www.wired.com/medtech/health/magazine/16-05/ff_wozniak">"Want to Remember Everything You'll Ever Learn? Surrender to This Algorithm"</a> has me wondering if this has worked in practice for anybody. I'm talking about using it to remember programming snippets, keywords, APIs etc so I don't have to browse through "X in a Nutshell" just to refresh my memory.
2
6,160,877
05/28/2011 09:52:13
631,915
02/24/2011 08:04:31
59
1
What is the different between PAC and MVC?
I have doubt about this two pattern, like MVC and PAC, which is more powerful for a web Application.
mvc
pac
null
null
null
05/28/2011 12:08:08
not constructive
What is the different between PAC and MVC? === I have doubt about this two pattern, like MVC and PAC, which is more powerful for a web Application.
4
367,272
12/15/2008 01:32:47
40,441
11/24/2008 23:28:29
399
25
Which are your best secrets/tricks for a good project scheduling?
Scheduling is so difficult. Which are your best tricks to achieve your scheduling target?
scheduling
project-management
null
null
null
12/07/2011 21:53:12
not constructive
Which are your best secrets/tricks for a good project scheduling? === Scheduling is so difficult. Which are your best tricks to achieve your scheduling target?
4
306,267
11/20/2008 18:07:09
38,522
11/18/2008 10:18:37
69
3
Future Of The Browser - Open Client Hardware API Initiatives?
Are there any initiatives to implement/agree upon a standard API for connectivity between web browsers and specific pieces of client hardware. Example: The iPhone has a GPS/Camera/Accellerometer in it. It'd be very cool if my web app could communicate with them (rather than me having to write a thick ObjectiveC application).
future-browser
browser
api
thin-client
null
null
open
Future Of The Browser - Open Client Hardware API Initiatives? === Are there any initiatives to implement/agree upon a standard API for connectivity between web browsers and specific pieces of client hardware. Example: The iPhone has a GPS/Camera/Accellerometer in it. It'd be very cool if my web app could communicate with them (rather than me having to write a thick ObjectiveC application).
0