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
1,819,117
11/30/2009 10:56:54
41,543
11/28/2008 08:04:07
2,261
85
C# do const fields use less memory?
Do const fields use less memory than regular variables?
c#
null
null
null
null
null
open
C# do const fields use less memory? === Do const fields use less memory than regular variables?
0
5,971,768
05/11/2011 23:37:17
497,999
11/05/2010 04:31:38
27
0
Excel: if any field in a row is not null, set the cell in the first column to an incrementing row number?
I'm trying to create a formula that will have the effect of automatically adding an incremental row number to the first column of my spreadsheet when any data is entered in any column of the row. So for example, if my table looks like this: a b c d e f 1 # x x x x x 2 # x x x x x 3 # x x 4 # x 5 # x I would like the 'a' column to read: 0 1 2 3 4 And if I added more data in any column, e.g.: a b c d e f 1 # x x x x x 2 # x x x x x 3 # x x x 4 # x x 5 # x x 6 # x 7 # x It would then automatically up the index row 'a' to read as: 0 1 2 3 4 5 6 I hope this makes sense! Any help, or even just a tutorial to point me in the right direction would be so appreciated!
excel
numbers
index
row
null
null
open
Excel: if any field in a row is not null, set the cell in the first column to an incrementing row number? === I'm trying to create a formula that will have the effect of automatically adding an incremental row number to the first column of my spreadsheet when any data is entered in any column of the row. So for example, if my table looks like this: a b c d e f 1 # x x x x x 2 # x x x x x 3 # x x 4 # x 5 # x I would like the 'a' column to read: 0 1 2 3 4 And if I added more data in any column, e.g.: a b c d e f 1 # x x x x x 2 # x x x x x 3 # x x x 4 # x x 5 # x x 6 # x 7 # x It would then automatically up the index row 'a' to read as: 0 1 2 3 4 5 6 I hope this makes sense! Any help, or even just a tutorial to point me in the right direction would be so appreciated!
0
5,268,888
03/11/2011 04:16:26
352,627
05/28/2010 06:47:05
283
0
Help me to get the IndexPath.row value
I have created a check box using the uiimageview and i have placed the checkbox into the uitableview cell like below i want to get indexpath.row when i check the check box. so i added the uiimageviiew inside the cell. so the didSelectRowAtIndexPath is gets called and gives me the indexpath.row. but when the row is selected i want to show the detailed view. now this runs me into trouble. so can you people suggest me how to tackle my above problem. when i check the checkbox i want to get the indexpath.row. and when the row is selected i need to show the detailed view. Thanks for your time and help if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; UIImageView *imageView = [[UIImageView alloc] initWithImage:unselectedImage]; imageView.frame = CGRectMake(5.0, 10.0, 23.0, 23.0); [cell.contentView addSubview:imageView]; imageView.tag = kCellImageViewTag; [imageView release]; } if ( tableView == myTableView ) { UIImageView *imageView = (UIImageView *)[cell.contentView viewWithTag:kCellImageViewTag]; NSNumber *selected = [selectedArray objectAtIndex:[indexPath row]]; imageView.image = ([selected boolValue]) ? selectedImage : unselectedImage; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath //========================================================================================== { [myTableView deselectRowAtIndexPath:indexPath animated:YES]; BOOL selected = [[selectedArray objectAtIndex:[indexPath row]] boolValue]; [selectedArray replaceObjectAtIndex:[indexPath row] withObject:[NSNumber numberWithBool:!selected]]; [myTableView reloadData]; messageBodyViewController = [[ArchiveMessageViewController alloc]init]; [self.navigationController pushViewController:messageBodyViewController animated:YES]; [messageBodyViewController showMail:indexPath.row]; }
iphone
uitableview
iphone-sdk-4.0
null
null
null
open
Help me to get the IndexPath.row value === I have created a check box using the uiimageview and i have placed the checkbox into the uitableview cell like below i want to get indexpath.row when i check the check box. so i added the uiimageviiew inside the cell. so the didSelectRowAtIndexPath is gets called and gives me the indexpath.row. but when the row is selected i want to show the detailed view. now this runs me into trouble. so can you people suggest me how to tackle my above problem. when i check the checkbox i want to get the indexpath.row. and when the row is selected i need to show the detailed view. Thanks for your time and help if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; UIImageView *imageView = [[UIImageView alloc] initWithImage:unselectedImage]; imageView.frame = CGRectMake(5.0, 10.0, 23.0, 23.0); [cell.contentView addSubview:imageView]; imageView.tag = kCellImageViewTag; [imageView release]; } if ( tableView == myTableView ) { UIImageView *imageView = (UIImageView *)[cell.contentView viewWithTag:kCellImageViewTag]; NSNumber *selected = [selectedArray objectAtIndex:[indexPath row]]; imageView.image = ([selected boolValue]) ? selectedImage : unselectedImage; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath //========================================================================================== { [myTableView deselectRowAtIndexPath:indexPath animated:YES]; BOOL selected = [[selectedArray objectAtIndex:[indexPath row]] boolValue]; [selectedArray replaceObjectAtIndex:[indexPath row] withObject:[NSNumber numberWithBool:!selected]]; [myTableView reloadData]; messageBodyViewController = [[ArchiveMessageViewController alloc]init]; [self.navigationController pushViewController:messageBodyViewController animated:YES]; [messageBodyViewController showMail:indexPath.row]; }
0
1,769,821
11/20/2009 11:14:19
213,981
11/18/2009 18:12:34
14
0
How long should I prepare for SCJP?
Ok I know this might sound a bit silly, as it depends on the person, but on average how much time should I spend on preparing for SCJP? I already have some experience with Java (a few small and medium projects for my university, from implementing a simple "ships" game to some client-server stuff). I was thinking about taking it around jun-july '10 so I'd have around 7-8months, is it enough/too much/not enough? Also I've been looking for a good book, is there anything better than: "Sun Certified Programmer for Java 6 Study Guide" by Kathy Sierra and Bert Bates? And what about some practical questions (like "implement this and this" or "write a piece of code which does...")? Ah and is it really worth it (I'd spend my own money). I'm not asking if it will make me a better programmer (as I've seen such a thread on stackoverflow alread) but do the employers even care about it?
java
null
null
null
null
07/27/2012 12:10:07
off topic
How long should I prepare for SCJP? === Ok I know this might sound a bit silly, as it depends on the person, but on average how much time should I spend on preparing for SCJP? I already have some experience with Java (a few small and medium projects for my university, from implementing a simple "ships" game to some client-server stuff). I was thinking about taking it around jun-july '10 so I'd have around 7-8months, is it enough/too much/not enough? Also I've been looking for a good book, is there anything better than: "Sun Certified Programmer for Java 6 Study Guide" by Kathy Sierra and Bert Bates? And what about some practical questions (like "implement this and this" or "write a piece of code which does...")? Ah and is it really worth it (I'd spend my own money). I'm not asking if it will make me a better programmer (as I've seen such a thread on stackoverflow alread) but do the employers even care about it?
2
9,922,603
03/29/2012 09:28:40
1,192,406
02/06/2012 13:43:26
15
0
How I can make the Menu same this website www.chanel.com by using jquery
Hello I'm new of the jQuery, I found this website http://www.chanel.com/ and I like them menu so much, Ex when it mouse hover it popup the image and when mouse out image is gone and and see the background, So can I do like this in Jquery by using something like this? <ul> <li id="pic1"> Link 1 </li> <li id="pic2"> Link 2 </li> <li id="pic3"> Link 3 </li> <ul> <div id="pic1"><img src="pic1"></div> <div id="pic2"><img src="pic2"></div> <div id="pic3"><img src="pic3"></div> So how can i writhe the jQuery code please. Best Regards
jquery
null
null
null
null
03/30/2012 01:42:06
not a real question
How I can make the Menu same this website www.chanel.com by using jquery === Hello I'm new of the jQuery, I found this website http://www.chanel.com/ and I like them menu so much, Ex when it mouse hover it popup the image and when mouse out image is gone and and see the background, So can I do like this in Jquery by using something like this? <ul> <li id="pic1"> Link 1 </li> <li id="pic2"> Link 2 </li> <li id="pic3"> Link 3 </li> <ul> <div id="pic1"><img src="pic1"></div> <div id="pic2"><img src="pic2"></div> <div id="pic3"><img src="pic3"></div> So how can i writhe the jQuery code please. Best Regards
1
11,665,517
07/26/2012 08:42:37
1,543,179
07/21/2012 20:11:13
15
1
When will the first CSS4-compatible browsers start showing up?
I know that CSS3 is still very new, but from what I understand, the CSS4 spec has already been partially written, and among the new features, is the much-anticipated parent element selector. When will the first CSS4-supporting browsers start coming out?
css
null
null
null
null
07/31/2012 18:15:54
not constructive
When will the first CSS4-compatible browsers start showing up? === I know that CSS3 is still very new, but from what I understand, the CSS4 spec has already been partially written, and among the new features, is the much-anticipated parent element selector. When will the first CSS4-supporting browsers start coming out?
4
7,832,602
10/20/2011 07:41:02
798,916
06/15/2011 04:27:14
1
1
C# Array duplicate count
I Have an array which contains following results red red red blue blue Green White Grey the thing i want to do is i want to get duplicate count of every value of array. For Example: red Count=3ss blue Count=2 Green Count=1 White Count=1 Grey Count=1 Help Me Please. thanks in advance
c#
arrays
null
null
null
null
open
C# Array duplicate count === I Have an array which contains following results red red red blue blue Green White Grey the thing i want to do is i want to get duplicate count of every value of array. For Example: red Count=3ss blue Count=2 Green Count=1 White Count=1 Grey Count=1 Help Me Please. thanks in advance
0
6,109,700
05/24/2011 11:29:49
635,549
02/26/2011 13:49:44
23
0
In bash, what's the regular expression to list two types of files?
A directory contains `.zip` and `.rar` files, and files of other type. To list only `.rar` and `.zip` files, there is `ls *.zip *.rar` In bash, how to match both types with one regex?
regex
bash
null
null
null
null
open
In bash, what's the regular expression to list two types of files? === A directory contains `.zip` and `.rar` files, and files of other type. To list only `.rar` and `.zip` files, there is `ls *.zip *.rar` In bash, how to match both types with one regex?
0
8,695,189
01/01/2012 20:04:38
277,632
01/03/2010 21:54:20
80
8
select * on multiple tables,missing overview
Hello @all (and a Happy New Years Day), i struggle to long now but it seem i dont see what i do wrong. So pls dont ask what i tried so far. But i have the following sql query: SELECT * FROM customers_basket cb, products p, products_description pd WHERE cb.products_id = p.products_id AND cb.products_id = pd.products_id AND customers_id="1" However i also need it to count on a table named: **customers_basket_attributes** , and that table also holds a colum named: **products_id** it looks like i just cant it to work.
sql
count
multiple
null
null
01/26/2012 03:44:11
not a real question
select * on multiple tables,missing overview === Hello @all (and a Happy New Years Day), i struggle to long now but it seem i dont see what i do wrong. So pls dont ask what i tried so far. But i have the following sql query: SELECT * FROM customers_basket cb, products p, products_description pd WHERE cb.products_id = p.products_id AND cb.products_id = pd.products_id AND customers_id="1" However i also need it to count on a table named: **customers_basket_attributes** , and that table also holds a colum named: **products_id** it looks like i just cant it to work.
1
7,959,008
10/31/2011 19:57:00
1,022,619
10/31/2011 19:47:08
1
0
Php database creation and jscript validation
Need to make a page with a private registration form and invite codes. In a two step process. First the user inputs a unique invite code, the code needs to be checked through JavaScript to ensure it passes as a valid code, if not rejected. If the code appears valid it must be validated through the database with PHP, if valid in the database the user is redirected to register, if invalid the user is sent to another page. After the user registers they are sent a confirmation email and a unique "invite code" will be automatically emailed to the user. This user can then give their invite to other users who will be can then register. The database needs to keep track of which invite codes the users are utilizing to register. How would I accomplish this using JavaScript and PHP and a database? Please keep in mind I am new at this and need as much help as possible. Thank you in advance for your help. Message me if you need further details.
php
javascript
null
null
null
10/31/2011 23:02:11
not a real question
Php database creation and jscript validation === Need to make a page with a private registration form and invite codes. In a two step process. First the user inputs a unique invite code, the code needs to be checked through JavaScript to ensure it passes as a valid code, if not rejected. If the code appears valid it must be validated through the database with PHP, if valid in the database the user is redirected to register, if invalid the user is sent to another page. After the user registers they are sent a confirmation email and a unique "invite code" will be automatically emailed to the user. This user can then give their invite to other users who will be can then register. The database needs to keep track of which invite codes the users are utilizing to register. How would I accomplish this using JavaScript and PHP and a database? Please keep in mind I am new at this and need as much help as possible. Thank you in advance for your help. Message me if you need further details.
1
8,347,458
12/01/2011 19:55:06
1,074,024
11/30/2011 18:46:58
3
0
Cannot open Oracle 10G. Getting Crazy
I installed oracle 11g xe and home page was not coming up. similar thing is happening when I installed oracle 10g xe. The home page cannot be connected and run sql command line is also not opening. I checked in services.msc that OracleServiceXE and OracleXETNSListener is running. Firewall is off. Using XP SP3. Previously had Oracle 8i and uninstalled it and deleted all its files. I opened cmd and typed >SQLPLUS / as sysdba >startup I got this result -- SQL> startup ORA-01078: failure in processing system parameters ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\serv er\dbs/spfileXE.ora' ORA-27041: unable to open file OSD-04002: unable to open file O/S-Error: (OS 2) The system cannot find the file specified. SQL> Disconnected I have not made any configuration changes to any .ora files and nothing is listening on 8080 port.
oracle
oracle10g
oracle11g
sqlplus
homepage
12/02/2011 04:02:25
off topic
Cannot open Oracle 10G. Getting Crazy === I installed oracle 11g xe and home page was not coming up. similar thing is happening when I installed oracle 10g xe. The home page cannot be connected and run sql command line is also not opening. I checked in services.msc that OracleServiceXE and OracleXETNSListener is running. Firewall is off. Using XP SP3. Previously had Oracle 8i and uninstalled it and deleted all its files. I opened cmd and typed >SQLPLUS / as sysdba >startup I got this result -- SQL> startup ORA-01078: failure in processing system parameters ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\serv er\dbs/spfileXE.ora' ORA-27041: unable to open file OSD-04002: unable to open file O/S-Error: (OS 2) The system cannot find the file specified. SQL> Disconnected I have not made any configuration changes to any .ora files and nothing is listening on 8080 port.
2
9,264,650
02/13/2012 17:03:32
954,485
09/20/2011 10:05:30
315
20
check duplicates in binary tree
How can I check that my binary tree doens't contain duplicates? Do you have an algorithm with low computational complexity? Please write the pseudocode
algorithm
duplicates
binary-tree
null
null
02/13/2012 17:58:57
not a real question
check duplicates in binary tree === How can I check that my binary tree doens't contain duplicates? Do you have an algorithm with low computational complexity? Please write the pseudocode
1
10,978,881
06/11/2012 11:04:03
1,448,778
06/11/2012 11:00:34
1
0
How to find the IP of a user in a JS based chat room?
What is the algorithm or the code to find the IP of a user while in a javascript based chatroom? logging into one such room and i am told that someone knows my IP and also the OS i am using just by inserting a simple JS based code in the original site code withouth any illegal doing..... help me out i am just curious. Thanks!
javascript
null
null
null
null
06/12/2012 09:48:39
not a real question
How to find the IP of a user in a JS based chat room? === What is the algorithm or the code to find the IP of a user while in a javascript based chatroom? logging into one such room and i am told that someone knows my IP and also the OS i am using just by inserting a simple JS based code in the original site code withouth any illegal doing..... help me out i am just curious. Thanks!
1
10,203,069
04/18/2012 05:01:25
394,586
07/17/2010 10:15:41
68
0
Extracting data from html content in PHP
I want to extract data in between `<div id="navigation"></div>` tags using regular expression from html content(string). Any help is appreciated.
php
html
php5
null
null
null
open
Extracting data from html content in PHP === I want to extract data in between `<div id="navigation"></div>` tags using regular expression from html content(string). Any help is appreciated.
0
11,329,980
07/04/2012 13:22:57
1,016,265
10/27/2011 10:13:08
132
6
non valid JSON - Unexpected token
I have a json file and it can't be parsed by PHP or any other json validator such jsonlint.com jsonlint.com says: Unexpected token and do not even highlight(select) any line number in file content. So maybe anyone else knows, what does it means ?
javascript
json
validator
null
null
07/05/2012 10:43:27
not a real question
non valid JSON - Unexpected token === I have a json file and it can't be parsed by PHP or any other json validator such jsonlint.com jsonlint.com says: Unexpected token and do not even highlight(select) any line number in file content. So maybe anyone else knows, what does it means ?
1
5,666,031
04/14/2011 15:57:00
399,649
07/22/2010 21:23:29
3,028
194
Insert TextBoxes into a Repeater dynamically and retrieve their value
I have a Repeater bound from SQL, containing a mixture of editable and read-only elements. When you click the "Edit" button on a row, the editable portions should convert to textboxes, and when you click "Update", it should save your changes. Here's a (very) simplified version of the Edit and Update buttons' OnClick code: switch(commandName) { case "Edit": Label1.Visible = false; //hide read-only version PlaceHolder1.Visible = true; //show editing version //Dict1 is Dictionary<string, string> in this example. foreach (var key in Dict1) { //insert a TextBox dynamically into the PlaceHolder PlaceHolder1.Controls.Add(new TextBox { ID = "txt" + key, Text = Dict1[key] }); } break; case "Update": //retrieve user input from dynamically-added TextBoxes foreach (var TextBox1 in PlaceHolder1.Controls.Where(c => c.ID.StartsWith("txt"))) { doStuff(TextBox1); } Label1.Visible = true; //show read-only version PlaceHolder1.Visible = false; //hide editing version break; } The problem is that my dynamically-added TextBoxes aren't there when the page posts back. I've examined `PlaceHolder1.Controls` in the debugger, and there are no TextBoxes in it. `PlaceHolder1` itself is inside a Repeater, but I'm not rebinding the Repeater on PostBack. I've considered using raw HTML in place of TextBox controls and pulling the values out of Request.Form, but that feels hackish to me. How can I make the dynamically-added TextBoxes persistent across postbacks?
c#
asp.net
viewstate
repeater
dynamic-controls
null
open
Insert TextBoxes into a Repeater dynamically and retrieve their value === I have a Repeater bound from SQL, containing a mixture of editable and read-only elements. When you click the "Edit" button on a row, the editable portions should convert to textboxes, and when you click "Update", it should save your changes. Here's a (very) simplified version of the Edit and Update buttons' OnClick code: switch(commandName) { case "Edit": Label1.Visible = false; //hide read-only version PlaceHolder1.Visible = true; //show editing version //Dict1 is Dictionary<string, string> in this example. foreach (var key in Dict1) { //insert a TextBox dynamically into the PlaceHolder PlaceHolder1.Controls.Add(new TextBox { ID = "txt" + key, Text = Dict1[key] }); } break; case "Update": //retrieve user input from dynamically-added TextBoxes foreach (var TextBox1 in PlaceHolder1.Controls.Where(c => c.ID.StartsWith("txt"))) { doStuff(TextBox1); } Label1.Visible = true; //show read-only version PlaceHolder1.Visible = false; //hide editing version break; } The problem is that my dynamically-added TextBoxes aren't there when the page posts back. I've examined `PlaceHolder1.Controls` in the debugger, and there are no TextBoxes in it. `PlaceHolder1` itself is inside a Repeater, but I'm not rebinding the Repeater on PostBack. I've considered using raw HTML in place of TextBox controls and pulling the values out of Request.Form, but that feels hackish to me. How can I make the dynamically-added TextBoxes persistent across postbacks?
0
221,207
10/21/2008 08:54:35
6,508
09/15/2008 11:38:58
4,986
173
How do you collect programming knowledge
Everyday we are faced with programming problems ranging from easy to complex. For me it is important to record that knowledge so that I can find it in the future. The features that I consider that most important is recording ease of use (WYSIWIG would be good), good search capabilities and perhaps hierarchical organization or tags enabled. **What tools do you use to collect programming knowledge?** Try to give one solution per answer. Perhaps something like a short one liner clear description followed by a blank line and a paragraph explaining the rationale for your solution. You can include what you consider the strong and weak points of your choice.
language-agnostic
knowledge-management
knowlege
knowledge-capture
null
09/27/2011 17:58:46
not constructive
How do you collect programming knowledge === Everyday we are faced with programming problems ranging from easy to complex. For me it is important to record that knowledge so that I can find it in the future. The features that I consider that most important is recording ease of use (WYSIWIG would be good), good search capabilities and perhaps hierarchical organization or tags enabled. **What tools do you use to collect programming knowledge?** Try to give one solution per answer. Perhaps something like a short one liner clear description followed by a blank line and a paragraph explaining the rationale for your solution. You can include what you consider the strong and weak points of your choice.
4
1,135,631
07/16/2009 05:52:37
74,772
03/06/2009 16:33:04
1,206
49
Vertical flip of CGContext
I have a UIView that I am trying to render into a UIImage using [CALayer renderInContext:]. However, I find that the resultant image is flipped vertically. I kind of expect this due to the different coordinate systems. However, I then try and flip the context back to normal with an affine transform - but it doesn't have any effect: CGAffineTransform flipVertical = CGAffineTransformMake( 1, 0, 0, -1, 0, imageContextHeight ); CGContextConcatCTM(imageContext, flipVertical); CGImageRef cgImage = CGBitmapContextCreateImage(imageContext); UIImage* uiImage = [[UIImage imageWithCGImage:cgImage] retain]; CGImageRelease(cgImage); What am I doing wrong?
core-graphics
uikit
iphone
null
null
null
open
Vertical flip of CGContext === I have a UIView that I am trying to render into a UIImage using [CALayer renderInContext:]. However, I find that the resultant image is flipped vertically. I kind of expect this due to the different coordinate systems. However, I then try and flip the context back to normal with an affine transform - but it doesn't have any effect: CGAffineTransform flipVertical = CGAffineTransformMake( 1, 0, 0, -1, 0, imageContextHeight ); CGContextConcatCTM(imageContext, flipVertical); CGImageRef cgImage = CGBitmapContextCreateImage(imageContext); UIImage* uiImage = [[UIImage imageWithCGImage:cgImage] retain]; CGImageRelease(cgImage); What am I doing wrong?
0
9,063,371
01/30/2012 11:46:04
268,581
02/08/2010 10:57:34
871
17
Rich native client for MSDN library documentation
The [MSDN Library][1] provides great documentation for .NET/C#. However, the primary delivery medium, HTML via a web browser is suboptimal. A rich native Windows client for browsing this documentation seems like a perfect opportunity to showcase WPF. Is there such a client available? Are there any alternative interfaces to the MSDN Library? [1]: http://msdn.microsoft.com/en-us/library/ms123401.aspx
c#
.net
wpf
documentation
msdn
null
open
Rich native client for MSDN library documentation === The [MSDN Library][1] provides great documentation for .NET/C#. However, the primary delivery medium, HTML via a web browser is suboptimal. A rich native Windows client for browsing this documentation seems like a perfect opportunity to showcase WPF. Is there such a client available? Are there any alternative interfaces to the MSDN Library? [1]: http://msdn.microsoft.com/en-us/library/ms123401.aspx
0
10,209,465
04/18/2012 12:34:19
1,085,889
12/07/2011 14:52:41
7
0
What does it means?
I am creating a dialog in VISUAL STUDIO C++ using MFC application. There is a sentence : First choose two edit boxes and placed them on dialog. Use the Class Wizard from the View menu to connect each to a float, value number1 or number2 . Edit boxes are there. Now how to connect them to a float, value number 1 ? What's the procedure? Thanks
visual-studio-2010
null
null
null
null
04/18/2012 12:38:51
too localized
What does it means? === I am creating a dialog in VISUAL STUDIO C++ using MFC application. There is a sentence : First choose two edit boxes and placed them on dialog. Use the Class Wizard from the View menu to connect each to a float, value number1 or number2 . Edit boxes are there. Now how to connect them to a float, value number 1 ? What's the procedure? Thanks
3
7,572,457
09/27/2011 16:24:40
25,909
10/07/2008 18:29:00
850
37
What's wrong with Jsch and Maven?
I try to use Jsch 0.1.44 together with Maven. I have the following dependency in my pom.xml. <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.44</version> <scope>compile</scope> </dependency> If I run <code>mvn compile</code> maven looks normal and tells me that Jsch has been successful downloaded. But when it comes to compile, the Jsch classes could not be found. If I look into my local repository I can see that the Jsch-jar has only a size of 3kb. If I open the jar file I can also see that there is only the META-INF folder. So what is wrong here, how can I fix this?
maven
jsch
null
null
null
null
open
What's wrong with Jsch and Maven? === I try to use Jsch 0.1.44 together with Maven. I have the following dependency in my pom.xml. <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.44</version> <scope>compile</scope> </dependency> If I run <code>mvn compile</code> maven looks normal and tells me that Jsch has been successful downloaded. But when it comes to compile, the Jsch classes could not be found. If I look into my local repository I can see that the Jsch-jar has only a size of 3kb. If I open the jar file I can also see that there is only the META-INF folder. So what is wrong here, how can I fix this?
0
9,762,620
03/18/2012 21:48:26
75,306
03/08/2009 15:27:27
121
0
Is it still worth to invest time into OpenMP implementations?
Since clang/llvm has no plan to support OpenMP any time soon, and Intel is going far away down the road of TBB library. Is it still worth to implement multi-thread scientific libraries (I am working on ccv: http://github.com/liuliu/ccv) on top of OpenMP? Despite all the criticisms, my experience with OpenMP is quite happy (it is super easy to use, and the performance gain is reasonable). But if it is a dying technology, what's the replacement for easier-multi-thread in C? (not pthread, and TBB is C++ thing). Thanks!
c
pthreads
openmp
clang
tbb
03/23/2012 17:09:13
not constructive
Is it still worth to invest time into OpenMP implementations? === Since clang/llvm has no plan to support OpenMP any time soon, and Intel is going far away down the road of TBB library. Is it still worth to implement multi-thread scientific libraries (I am working on ccv: http://github.com/liuliu/ccv) on top of OpenMP? Despite all the criticisms, my experience with OpenMP is quite happy (it is super easy to use, and the performance gain is reasonable). But if it is a dying technology, what's the replacement for easier-multi-thread in C? (not pthread, and TBB is C++ thing). Thanks!
4
5,991,477
05/13/2011 11:57:04
713,124
04/18/2011 09:26:12
246
1
How to make default group write permission in specific folder
I have directory called `/home/bob/public_html` I have set gid bit on on that directory that all new files have group bob. but i also want that all files should have default group write permission on all files which will be created in public_html directory
linux
file-permissions
null
null
null
05/15/2011 07:14:58
off topic
How to make default group write permission in specific folder === I have directory called `/home/bob/public_html` I have set gid bit on on that directory that all new files have group bob. but i also want that all files should have default group write permission on all files which will be created in public_html directory
2
365,817
12/13/2008 22:04:10
30,176
10/21/2008 23:40:29
601
36
Blogging Tool Needed for Standards Compliant Webpages
A programmer I know has a website that is fully Standards Compliant. It uses Unicode-encoded fully-validated XHTML 1.1 with CSS. The pages are frames-free, table-free and JavaScript-free. He would like to be directed to a blogging tool that does not demand any particular database system or web server, but does create static pages that comply with the above standards and best practices and is itself a professionally finished native Windows application. ...and it should be able to produce an RSS feed as well. Is there anything out there that comes close to this?
blogs
standards
web-standards
standards-compliance
null
null
open
Blogging Tool Needed for Standards Compliant Webpages === A programmer I know has a website that is fully Standards Compliant. It uses Unicode-encoded fully-validated XHTML 1.1 with CSS. The pages are frames-free, table-free and JavaScript-free. He would like to be directed to a blogging tool that does not demand any particular database system or web server, but does create static pages that comply with the above standards and best practices and is itself a professionally finished native Windows application. ...and it should be able to produce an RSS feed as well. Is there anything out there that comes close to this?
0
7,987,071
11/02/2011 20:44:25
898,569
08/17/2011 12:03:11
64
0
c# listview disable resizing column mode for user
I use listview but prefer the column size to be fixed. Have no idea how to do this. Can anyone help me?
c#
listview
resize
null
null
11/02/2011 22:00:08
not a real question
c# listview disable resizing column mode for user === I use listview but prefer the column size to be fixed. Have no idea how to do this. Can anyone help me?
1
6,275,062
06/08/2011 06:39:23
352,707
05/14/2010 06:24:01
117
0
How to implement weather functionality in iphone?
I am implementing weather applciation for iphone but dont know which api i have to used. And how to implement this things. Please give me some advice for this. Thanks in advance
iphone
null
null
null
null
null
open
How to implement weather functionality in iphone? === I am implementing weather applciation for iphone but dont know which api i have to used. And how to implement this things. Please give me some advice for this. Thanks in advance
0
5,755,498
04/22/2011 12:42:18
720,527
04/22/2011 12:41:18
1
0
Iphone Orientation
I have lot of views,sub views and controls in a page..here iam struggling to implement orientation perfectly. what is the best way to implement orientation? Thanks..
iphone
null
null
null
null
04/22/2011 14:50:10
not a real question
Iphone Orientation === I have lot of views,sub views and controls in a page..here iam struggling to implement orientation perfectly. what is the best way to implement orientation? Thanks..
1
7,833,900
10/20/2011 09:35:13
809,671
06/22/2011 04:34:16
98
9
iPhone chat program (with server)
I am trying to make an iPhone chat program. Found a website that guides me to do it but I am having trouble making it work. http://www.devx.com/wireless/Article/43551/1954 When I login, it is not showing on the textview that I logged in. Neither C# compiler, the server side, or on Xcode, the client side, is showing the error message on the console. Can anyone try out creating the chat programmed with the link on the top or find the problem of my chat program. Thank you. P.S. I used vmware to run Window 7 and MonoDevelop to create a the server. Client Program http://dl.dropbox.com/u/12439052/Network.zip Server Program http://dl.dropbox.com/u/12439052/Server_CS.tar.gz Ah plus is there any iPhone Book that shows how to make a chat program, not the internal network one with Bonjour, chat program for external network, "long distance internet". Thanks.
iphone
networking
chat
null
null
10/20/2011 10:50:23
not a real question
iPhone chat program (with server) === I am trying to make an iPhone chat program. Found a website that guides me to do it but I am having trouble making it work. http://www.devx.com/wireless/Article/43551/1954 When I login, it is not showing on the textview that I logged in. Neither C# compiler, the server side, or on Xcode, the client side, is showing the error message on the console. Can anyone try out creating the chat programmed with the link on the top or find the problem of my chat program. Thank you. P.S. I used vmware to run Window 7 and MonoDevelop to create a the server. Client Program http://dl.dropbox.com/u/12439052/Network.zip Server Program http://dl.dropbox.com/u/12439052/Server_CS.tar.gz Ah plus is there any iPhone Book that shows how to make a chat program, not the internal network one with Bonjour, chat program for external network, "long distance internet". Thanks.
1
8,279,367
11/26/2011 15:14:29
1,067,017
11/26/2011 15:08:50
1
0
String search in shell
I'm creating a shell script to a basic program. One option is to delete a user, but the problem is that if I search for a string that belongs to the username in question, the program will assume it as a user aswell. For example, if I have the user adminaaa if I search for admin the program will recognize it as a user, even if "admin" is not a user. The piece of code that I'm using is the following: existe=`cat meusutilizadores.txt|grep "$user" |wc -l` if [ $existe = 1 ] then fullUser=`grep $user meusutilizadores.txt` passUser=$(echo $fullUser|awk -F ':' '{ print $2 }') What I need is to be able to program it to recognize the user for his entire string, not only a part of it. I hope I was able to express myself well enough for you to understand. Hope you can help me. Best regards
bash
shell
script
null
null
null
open
String search in shell === I'm creating a shell script to a basic program. One option is to delete a user, but the problem is that if I search for a string that belongs to the username in question, the program will assume it as a user aswell. For example, if I have the user adminaaa if I search for admin the program will recognize it as a user, even if "admin" is not a user. The piece of code that I'm using is the following: existe=`cat meusutilizadores.txt|grep "$user" |wc -l` if [ $existe = 1 ] then fullUser=`grep $user meusutilizadores.txt` passUser=$(echo $fullUser|awk -F ':' '{ print $2 }') What I need is to be able to program it to recognize the user for his entire string, not only a part of it. I hope I was able to express myself well enough for you to understand. Hope you can help me. Best regards
0
4,347,730
12/03/2010 16:38:58
469,408
10/07/2010 17:39:14
309
0
Use of typename keyword with template function parameters
In C++, the `typename` keyword is needed so the compiler can disambiguate between nested types and nested values in templates. However, there are certain situations where no ambiguity is possible, such as when a derived class inherits from a nested class type. template <class T> class Derived : public T::type { }; Here the `typename` keyword is not required, and is in fact not even allowed. This makes sense, because the context removes the ambiguity. Here, `T::type` must refer to a type, since you obviously can't inherit from a value. I would think the same thing would hold true for function template parameters. template <class T> void foo(const T::type& v) { } In this case, the context makes it clear that `T::type` must refer to a type, since a function parameter can't be a value. Yet, the compiler doesn't accept this. It wants `const typename T::type&`. This seems inconsistent. Why does the language allow the implicit assumption of a nested type in the context of inheritance, but *not* in the context of function parameters? In both cases there can be no ambiguity, so why the need for `typename` in one but not the other?
c++
templates
typename
null
null
null
open
Use of typename keyword with template function parameters === In C++, the `typename` keyword is needed so the compiler can disambiguate between nested types and nested values in templates. However, there are certain situations where no ambiguity is possible, such as when a derived class inherits from a nested class type. template <class T> class Derived : public T::type { }; Here the `typename` keyword is not required, and is in fact not even allowed. This makes sense, because the context removes the ambiguity. Here, `T::type` must refer to a type, since you obviously can't inherit from a value. I would think the same thing would hold true for function template parameters. template <class T> void foo(const T::type& v) { } In this case, the context makes it clear that `T::type` must refer to a type, since a function parameter can't be a value. Yet, the compiler doesn't accept this. It wants `const typename T::type&`. This seems inconsistent. Why does the language allow the implicit assumption of a nested type in the context of inheritance, but *not* in the context of function parameters? In both cases there can be no ambiguity, so why the need for `typename` in one but not the other?
0
4,647,161
01/10/2011 13:09:15
97,118
04/28/2009 13:48:58
570
6
Is it good practice to compose an application through multiple .exe?
in a book - I think it was Eric S. Raymonds "the art of unix programming" - I read sth. like that applications should be built by putting multiple small tools together. So, I would like to know if it's a good idea to develop a windows application, for example, by creating one small .exe for every task? For example: You have a Document Managing System: This could be put together like: - an .exe for searching and displaying documents (GUI) - an .exe for indexing document (put documents into a database) - an .exe for deleting documents - etc. Do you think this would be a good idea or should it be put into one big .exe with multiple DLLs (this would be the way I saw most applications built)? What would be the pros and cons?
untagged
null
null
null
null
07/12/2011 14:17:58
off topic
Is it good practice to compose an application through multiple .exe? === in a book - I think it was Eric S. Raymonds "the art of unix programming" - I read sth. like that applications should be built by putting multiple small tools together. So, I would like to know if it's a good idea to develop a windows application, for example, by creating one small .exe for every task? For example: You have a Document Managing System: This could be put together like: - an .exe for searching and displaying documents (GUI) - an .exe for indexing document (put documents into a database) - an .exe for deleting documents - etc. Do you think this would be a good idea or should it be put into one big .exe with multiple DLLs (this would be the way I saw most applications built)? What would be the pros and cons?
2
3,946,365
10/15/2010 21:41:56
273,122
12/04/2009 03:32:25
45
1
Trapping powerpoint 2010 events while doing presentation
Is there a way I can trap event when a presenter switches to a slide on MS power point 2010
add-in
powerpoint
null
null
null
null
open
Trapping powerpoint 2010 events while doing presentation === Is there a way I can trap event when a presenter switches to a slide on MS power point 2010
0
2,189,258
02/03/2010 02:32:01
105,550
05/12/2009 18:35:59
97
1
MySQL - Limit the amount of rows in a join?
Not sure Looking for some guidance here... I have the following tables: site_text id site_id text date_added 1 1 ... 2010-02-02 10:01:00 2 1 ... 2010-02-02 10:01:20 3 2 ... 2010-02-02 10:01:00 4 1 ... 2010-02-02 10:01:40 5 2 ... 2010-02-02 10:02:00 sites id site_name 1 www.a.com 2 www.b.com .... I'm trying to select the last 2 rows (ordered by date desc) in site_text for each site. Can you do this with one query? Something like, but have it only find 2 rows of each site? SELECT * FROM site_text st JOIN sites s ON st.site_id=s.id WHERE st.date_added > '2010-02-01 23:32:04' ORDER BY s.id, st.date_added DESC In the end, I would be looking for site_text.id = 4,2,5,3. Thanks all
mysql
mysql-query
null
null
null
null
open
MySQL - Limit the amount of rows in a join? === Not sure Looking for some guidance here... I have the following tables: site_text id site_id text date_added 1 1 ... 2010-02-02 10:01:00 2 1 ... 2010-02-02 10:01:20 3 2 ... 2010-02-02 10:01:00 4 1 ... 2010-02-02 10:01:40 5 2 ... 2010-02-02 10:02:00 sites id site_name 1 www.a.com 2 www.b.com .... I'm trying to select the last 2 rows (ordered by date desc) in site_text for each site. Can you do this with one query? Something like, but have it only find 2 rows of each site? SELECT * FROM site_text st JOIN sites s ON st.site_id=s.id WHERE st.date_added > '2010-02-01 23:32:04' ORDER BY s.id, st.date_added DESC In the end, I would be looking for site_text.id = 4,2,5,3. Thanks all
0
9,741,939
03/16/2012 17:36:07
467,366
10/05/2010 22:13:31
202
5
Android - Find all internal and external storage
So I've noticed that from device-to-device, there are many different configurations for internal vs. external. On my Evo there's just internal storage and the external SD card, but on a Droid Incredible from the same year, there's internal storage, internal SD card (~8GB) and external SD card (default 1GB). Presumably there are other configurations as well, and there will be more forthcoming. However, all I can seem to find about enumerating the number of storage media available are things like [Environment][1], where you can do things like getExternalStorageDirectory(), which returns a File, not File[] or anything like that. Is there a safer, generalized way to enumerate all the storage media available? Do you just have to navigate to /mnt/ and get a listing there to see all the mounted volumes? [1]: http://developer.android.com/reference/android/os/Environment.html
android
filesystems
sd-card
null
null
null
open
Android - Find all internal and external storage === So I've noticed that from device-to-device, there are many different configurations for internal vs. external. On my Evo there's just internal storage and the external SD card, but on a Droid Incredible from the same year, there's internal storage, internal SD card (~8GB) and external SD card (default 1GB). Presumably there are other configurations as well, and there will be more forthcoming. However, all I can seem to find about enumerating the number of storage media available are things like [Environment][1], where you can do things like getExternalStorageDirectory(), which returns a File, not File[] or anything like that. Is there a safer, generalized way to enumerate all the storage media available? Do you just have to navigate to /mnt/ and get a listing there to see all the mounted volumes? [1]: http://developer.android.com/reference/android/os/Environment.html
0
4,009,810
10/24/2010 18:51:51
465,030
10/03/2010 07:01:43
1
0
Android - why ContentObserver invokes itself?
I am trying to delete received SMS in ContentObserver (on "content://sms/") onChange() method using contentResolver.delete, but after deleting ContentObserver is invoked one more time. Could you explaing my, whe ContentObserver invokes itself despite deliverSelfNotifications() returns false? I foud soultion to uregister ContentObserver before deleting the sms and register again after, but is inelegant. My code: private class SmsMmsContentObserver extends ContentObserver { public SmsMmsContentObserver(Handler handler) { super(handler); } @Override public boolean deliverSelfNotifications() { return false; } @Override public void onChange(boolean selfChange) { super.onChange(selfChange); Uri uriSMSURI = Uri.parse("content://sms/"); Cursor cur = getContentResolver().query(uriSMSURI, null, null, null, null); if (cur.moveToNext()) { int threadIdIn = cur.getInt(cur.getColumnIndex("thread_id")); getContentResolver().delete(Uri.parse("content://sms/conversations/" + threadIdIn), null, null); } } } Methods to register observer in on of services. private void registerSmsMmsObserver() { if (observer == null) { observer = new SmsMmsContentObserver(new Handler()); contentResolver = getContentResolver(); contentResolver.registerContentObserver(uriSmsMms, true, observer); } } private void unregisterSmsMmsObserver() { if (contentResolver != null) contentResolver.unregisterContentObserver(observer); observer = null; }
android
delete
sms
observer-pattern
null
null
open
Android - why ContentObserver invokes itself? === I am trying to delete received SMS in ContentObserver (on "content://sms/") onChange() method using contentResolver.delete, but after deleting ContentObserver is invoked one more time. Could you explaing my, whe ContentObserver invokes itself despite deliverSelfNotifications() returns false? I foud soultion to uregister ContentObserver before deleting the sms and register again after, but is inelegant. My code: private class SmsMmsContentObserver extends ContentObserver { public SmsMmsContentObserver(Handler handler) { super(handler); } @Override public boolean deliverSelfNotifications() { return false; } @Override public void onChange(boolean selfChange) { super.onChange(selfChange); Uri uriSMSURI = Uri.parse("content://sms/"); Cursor cur = getContentResolver().query(uriSMSURI, null, null, null, null); if (cur.moveToNext()) { int threadIdIn = cur.getInt(cur.getColumnIndex("thread_id")); getContentResolver().delete(Uri.parse("content://sms/conversations/" + threadIdIn), null, null); } } } Methods to register observer in on of services. private void registerSmsMmsObserver() { if (observer == null) { observer = new SmsMmsContentObserver(new Handler()); contentResolver = getContentResolver(); contentResolver.registerContentObserver(uriSmsMms, true, observer); } } private void unregisterSmsMmsObserver() { if (contentResolver != null) contentResolver.unregisterContentObserver(observer); observer = null; }
0
3,373,683
07/30/2010 16:54:21
389,651
07/12/2010 16:13:07
81
0
Scraping Data From a Dynamic Website
Background: The page has a table with data in it. There are several hyperlinks that when clicked, the data in the table is replaced with new data. Also, the page is an aspx page. Goal: I want to scrape the data in the table for all hyperlinks pressed. I have looked at what is going on via firebug and when a hyperlink is clicked, it generates an http post back to the server via ajax. The problem is that there are a lot of really garbage post parameters being sent. I assume this is because asp does some sessioning type things. I assume that even if I copied the exact parameters my browser sent, most of them won't be valid later anyway. How do people usually write http scripts that deal with this kind of stuff?
http
asp.net-ajax
screen-scraping
null
null
null
open
Scraping Data From a Dynamic Website === Background: The page has a table with data in it. There are several hyperlinks that when clicked, the data in the table is replaced with new data. Also, the page is an aspx page. Goal: I want to scrape the data in the table for all hyperlinks pressed. I have looked at what is going on via firebug and when a hyperlink is clicked, it generates an http post back to the server via ajax. The problem is that there are a lot of really garbage post parameters being sent. I assume this is because asp does some sessioning type things. I assume that even if I copied the exact parameters my browser sent, most of them won't be valid later anyway. How do people usually write http scripts that deal with this kind of stuff?
0
5,554,175
04/05/2011 15:14:14
255,872
01/21/2010 14:32:23
33
0
Combo-box data input in Datasheet View in MS Access
I need help in creating my first application in MS Access 2007. Consider a table in MS Access with a column "AgeGroup" and the possible values for this column are "Child" and "Adult". Is there an option in MS Access to enter data into this column using a combo-box with these two values in **Datasheet** view?
ms-access
null
null
null
null
null
open
Combo-box data input in Datasheet View in MS Access === I need help in creating my first application in MS Access 2007. Consider a table in MS Access with a column "AgeGroup" and the possible values for this column are "Child" and "Adult". Is there an option in MS Access to enter data into this column using a combo-box with these two values in **Datasheet** view?
0
11,313,443
07/03/2012 14:46:50
1,386,384
05/10/2012 07:05:52
23
0
.net/C# equivalent of this PHP code
I am looking for PHP equivalent of the below code. I am try use HttpWebRequest but it don't working function GetContent( $url ) { $server = strtolower( preg_replace ("~^(?:http://|//)?(?:[a-z0-9\-_]+\.)*([a-z0-9\-_]+\.[a-z0-9\-_]+).*?$~is", "$1", $url ) ); $host = strtolower( preg_replace ("~^(?:http://|//)?((?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+).*?$~is", "$1", $url ) ); $ruri = preg_replace ("~^(?:http://)?(?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+(.*)$~is", "$1", $url ); $socket = @fsockopen( $server, 80, $errno, $errstr, 5 ) or $socket = false; if (!$socket) return @file_get_contents ($url); $request = "GET " . $ruri . " HTTP/1.0\r\n"; $request .= "Host: " . $host . "\r\n"; $request .= "Accept: text/html, application/xml;q=0.9, */*;q=0.1\r\n"; $request .= "Accept-Charset: windows-1251, utf-8;q=0.6, *;q=0.1\r\n"; $request .= "Accept-Encoding: deflate, identity, *;q=0\r\n"; $request .= "Accept-Language: ru\r\n"; $request .= "Connection: close\r\n"; $request .= "Keep-Alive: 300\r\n"; $request .= "Expires: Thu, 01 Jan 1970 00:00:01 GMT\r\n"; $request .= "Cache-Control: no-store, no-cache, must-revalidate\r\n"; $request .= "Pragma: no-cache\r\n"; $request .= "Cookie: income=1\r\n"; //$request .= "Referer: http://" . $ref . "/\r\n"; $request .= "User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows 98)\r\n"; $request .= "\r\n"; fputs($socket, $request); $fcont = ""; while ($line = @fgets ($socket, 1024)) $fcont .= $line; fclose($socket); $pos = strpos ( $fcont, "\r\n\r\n" ); if ($pos !== false) $fcont = substr ( $fcont, $pos + 4 ); if (!$fcont) $fcont = @file_get_contents ($url); return $fcont; }
php
asp.net-mvc
c#-4.0
fsockopen
null
07/03/2012 20:35:40
too localized
.net/C# equivalent of this PHP code === I am looking for PHP equivalent of the below code. I am try use HttpWebRequest but it don't working function GetContent( $url ) { $server = strtolower( preg_replace ("~^(?:http://|//)?(?:[a-z0-9\-_]+\.)*([a-z0-9\-_]+\.[a-z0-9\-_]+).*?$~is", "$1", $url ) ); $host = strtolower( preg_replace ("~^(?:http://|//)?((?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+).*?$~is", "$1", $url ) ); $ruri = preg_replace ("~^(?:http://)?(?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+(.*)$~is", "$1", $url ); $socket = @fsockopen( $server, 80, $errno, $errstr, 5 ) or $socket = false; if (!$socket) return @file_get_contents ($url); $request = "GET " . $ruri . " HTTP/1.0\r\n"; $request .= "Host: " . $host . "\r\n"; $request .= "Accept: text/html, application/xml;q=0.9, */*;q=0.1\r\n"; $request .= "Accept-Charset: windows-1251, utf-8;q=0.6, *;q=0.1\r\n"; $request .= "Accept-Encoding: deflate, identity, *;q=0\r\n"; $request .= "Accept-Language: ru\r\n"; $request .= "Connection: close\r\n"; $request .= "Keep-Alive: 300\r\n"; $request .= "Expires: Thu, 01 Jan 1970 00:00:01 GMT\r\n"; $request .= "Cache-Control: no-store, no-cache, must-revalidate\r\n"; $request .= "Pragma: no-cache\r\n"; $request .= "Cookie: income=1\r\n"; //$request .= "Referer: http://" . $ref . "/\r\n"; $request .= "User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows 98)\r\n"; $request .= "\r\n"; fputs($socket, $request); $fcont = ""; while ($line = @fgets ($socket, 1024)) $fcont .= $line; fclose($socket); $pos = strpos ( $fcont, "\r\n\r\n" ); if ($pos !== false) $fcont = substr ( $fcont, $pos + 4 ); if (!$fcont) $fcont = @file_get_contents ($url); return $fcont; }
3
11,592,348
07/21/2012 12:53:43
948,410
09/16/2011 08:26:45
1
0
Connect Linux web server FTPES via SSH
After deep look over the internet, and not finding the solution to my problem, I am asking it here. I want to connect my website which is on Linux web server over secured FTPES via PUTTY. But it is not connecting as it is giving network error. Please let me know how do it do it. Every help is appreciated Thanks
ssh
putty
ftps
null
null
07/22/2012 06:11:22
off topic
Connect Linux web server FTPES via SSH === After deep look over the internet, and not finding the solution to my problem, I am asking it here. I want to connect my website which is on Linux web server over secured FTPES via PUTTY. But it is not connecting as it is giving network error. Please let me know how do it do it. Every help is appreciated Thanks
2
10,640,527
05/17/2012 17:28:54
1,193,841
02/07/2012 04:30:34
135
8
How to pass parameters to an action that's called on JQuery dialog() Open event
Good morning. I have a modal JQuery dialog that on Open calls and loads a Partial View. Good example can be seen here http://stackoverflow.com/a/4802423/1193841 but I'll re-paste: <script type="text/javascript"> $(function () { $('#dialog').dialog({ autoOpen: false, width: 400, resizable: false, title: 'hi there', modal: true, open: function(event, ui) { //Load the CreateAlbumPartial action which will return // the partial view _CreateAlbumPartial $(this).load("@Url.Action("CreateAlbumPartial")"); }, buttons: { "Close": function () { $(this).dialog("close"); } } }); $('#my-button').click(function () { $('#dialog').dialog('open'); }); }); </script> <div id="dialog" title="Create Album" style="overflow: hidden;"> In my case ActionMethod "CreateAlbumPartial" takes an ID parameter that's passed from another page with onclick="" event. How can I make that Id available to pass to an ActionMethod when its called as shown above ? Something like $('#dialog').dialog('open',Id) Would be awesome but I dont think that's how it works. P.S. Right now I'm displaying my popup by doing $.post() to load .html(data) to div and then displaying that DIV in a .show().dialog('open'). However, instead of having my Action method call and Dialog related stuff separately I would really like to re-do it the way I'm asking to keep all logic in one place. Thank you in advance.
c#
javascript
jquery
ajax
dialog
null
open
How to pass parameters to an action that's called on JQuery dialog() Open event === Good morning. I have a modal JQuery dialog that on Open calls and loads a Partial View. Good example can be seen here http://stackoverflow.com/a/4802423/1193841 but I'll re-paste: <script type="text/javascript"> $(function () { $('#dialog').dialog({ autoOpen: false, width: 400, resizable: false, title: 'hi there', modal: true, open: function(event, ui) { //Load the CreateAlbumPartial action which will return // the partial view _CreateAlbumPartial $(this).load("@Url.Action("CreateAlbumPartial")"); }, buttons: { "Close": function () { $(this).dialog("close"); } } }); $('#my-button').click(function () { $('#dialog').dialog('open'); }); }); </script> <div id="dialog" title="Create Album" style="overflow: hidden;"> In my case ActionMethod "CreateAlbumPartial" takes an ID parameter that's passed from another page with onclick="" event. How can I make that Id available to pass to an ActionMethod when its called as shown above ? Something like $('#dialog').dialog('open',Id) Would be awesome but I dont think that's how it works. P.S. Right now I'm displaying my popup by doing $.post() to load .html(data) to div and then displaying that DIV in a .show().dialog('open'). However, instead of having my Action method call and Dialog related stuff separately I would really like to re-do it the way I'm asking to keep all logic in one place. Thank you in advance.
0
638,304
03/12/2009 11:58:13
42,491
12/02/2008 16:09:55
150
6
Is it possible to compile flex 3 charts in intellij?
I'm aware that mx.charts is part of flex builder professional. I've downloaded the trial version of flex builder professional and added the datavisualization.swc to my intellij Flex_sdk classpath. The IDE is now aware of the classes, but when I come to compile I still get: "Type was not found" Is there a license or something I need to add to the classpath. Can anyone give a step by step guide to compiling a flex app that uses charts, either in intellij, or from the command line. Thanks.
flex
intellij
charts
null
null
null
open
Is it possible to compile flex 3 charts in intellij? === I'm aware that mx.charts is part of flex builder professional. I've downloaded the trial version of flex builder professional and added the datavisualization.swc to my intellij Flex_sdk classpath. The IDE is now aware of the classes, but when I come to compile I still get: "Type was not found" Is there a license or something I need to add to the classpath. Can anyone give a step by step guide to compiling a flex app that uses charts, either in intellij, or from the command line. Thanks.
0
11,524,269
07/17/2012 14:07:04
1,459,654
06/15/2012 19:46:02
27
0
C++ Builder Forms crashing
Form 1: (frmStart) void __fastcall TfrmStart::btnRunClick(TObject *Sender) { frmStart->Hide(); Application->CreateForm(__classid(TfrmRunning), &frmRunning); } Form 2: (Running) void __fastcall TfrmRunning::FormCreate(TObject *Sender) { frmRunning->Show(); //Here i do a lot of stuff to run my main program } The problem is that my first form loads and hides properly. When the second form loads no components are displayed just a GUI that looks like it has crashed/. When the program actually finisihes, the GUI returns to a normal state. Where did i go wrong?
c++
c++builder
null
null
null
null
open
C++ Builder Forms crashing === Form 1: (frmStart) void __fastcall TfrmStart::btnRunClick(TObject *Sender) { frmStart->Hide(); Application->CreateForm(__classid(TfrmRunning), &frmRunning); } Form 2: (Running) void __fastcall TfrmRunning::FormCreate(TObject *Sender) { frmRunning->Show(); //Here i do a lot of stuff to run my main program } The problem is that my first form loads and hides properly. When the second form loads no components are displayed just a GUI that looks like it has crashed/. When the program actually finisihes, the GUI returns to a normal state. Where did i go wrong?
0
7,276,708
09/01/2011 21:22:05
171,142
09/09/2009 22:08:36
721
26
How to remove "Welcome to the Setup Wizard" text from Visual Studio Installer project
I have a Visual Studio Installer Project that I'm making in Visual Studio 2010 and am unable to figure out how to remove the "Welcome to the [Product Name] Setup Wizard" text from the wizard's dialog boxes. For example: How do I remove the text "Welcome to the Setup1 Setup Wizard" from the screenshot below? ![enter image description here][1] [1]: http://i.stack.imgur.com/mYghK.png
visual-studio-2010
installer
setup-project
null
null
null
open
How to remove "Welcome to the Setup Wizard" text from Visual Studio Installer project === I have a Visual Studio Installer Project that I'm making in Visual Studio 2010 and am unable to figure out how to remove the "Welcome to the [Product Name] Setup Wizard" text from the wizard's dialog boxes. For example: How do I remove the text "Welcome to the Setup1 Setup Wizard" from the screenshot below? ![enter image description here][1] [1]: http://i.stack.imgur.com/mYghK.png
0
9,782,167
03/20/2012 06:16:51
1,109,837
12/21/2011 12:28:20
44
5
Running junit test case concurrently
I followed this link http://blog.mycila.com/2010/05/concurrent-junit-tests-with.html It say i need to use this http://mycila.googlecode.com/svn/sandbox/src/main/java/com/mycila/sandbox/junit/runner/ConcurrentJunitRunner.java But then part the code in ConcurrentJunitRunner.java ExecutorService executorService = Executors.newFixedThreadPool( klass.isAnnotationPresent(Concurrent.class) ? klass.getAnnotation(Concurrent.class).threads() : (int) (Runtime.getRuntime().availableProcessors() * 1.5), new NamedThreadFactory(klass.getSimpleName())); Generates error "The method isAnnotationPresent(Class<? extends Annotation>) in the type Class<capture#2-of ?> is not applicable for the arguments (Class<Concurrent>)" What should i do to remove the error ?
java
unit-testing
junit4
null
null
03/20/2012 17:16:59
too localized
Running junit test case concurrently === I followed this link http://blog.mycila.com/2010/05/concurrent-junit-tests-with.html It say i need to use this http://mycila.googlecode.com/svn/sandbox/src/main/java/com/mycila/sandbox/junit/runner/ConcurrentJunitRunner.java But then part the code in ConcurrentJunitRunner.java ExecutorService executorService = Executors.newFixedThreadPool( klass.isAnnotationPresent(Concurrent.class) ? klass.getAnnotation(Concurrent.class).threads() : (int) (Runtime.getRuntime().availableProcessors() * 1.5), new NamedThreadFactory(klass.getSimpleName())); Generates error "The method isAnnotationPresent(Class<? extends Annotation>) in the type Class<capture#2-of ?> is not applicable for the arguments (Class<Concurrent>)" What should i do to remove the error ?
3
5,973,828
05/12/2011 05:52:08
656,521
03/12/2011 11:28:11
87
1
How to redirect more than one links
I need to redirect some of my html pages to corresponding php pages. That means if a user comes from any referring site to my www.example.com/sample.html page, he should be redirected to the www.example.com/sample.php page without showing the html page. I need to do this for 3 pages. How can I do this ? Please help me :)
php
html
redirect
null
null
null
open
How to redirect more than one links === I need to redirect some of my html pages to corresponding php pages. That means if a user comes from any referring site to my www.example.com/sample.html page, he should be redirected to the www.example.com/sample.php page without showing the html page. I need to do this for 3 pages. How can I do this ? Please help me :)
0
7,309,719
09/05/2011 14:54:34
192,204
10/19/2009 03:57:14
695
5
Can you scale SQL Server to handle 100's of Terabytes?
One of my colleagues told me the other day SQL Server wasn't designed to handle Terabytes of data.....that could possibly be true for SQL 2000 or any DB 10 years ago, but I don't believe that to be the case today. How have others approached the situations where they need to store massive amounts of data (100 + Terabytes)? Growing one Single server is probably not the option, but I would think we could partition the data across many smaller servers and use views, etc to allow us to make one query call across the servers. Any idea how concurrency, etc performs in a model like this where data is Horizontally Partitioned across servers? Any suggestions / comments is greatly appreciated. Thanks, S
sql-server
sql-server-2008-r2
null
null
null
09/05/2011 15:26:30
not constructive
Can you scale SQL Server to handle 100's of Terabytes? === One of my colleagues told me the other day SQL Server wasn't designed to handle Terabytes of data.....that could possibly be true for SQL 2000 or any DB 10 years ago, but I don't believe that to be the case today. How have others approached the situations where they need to store massive amounts of data (100 + Terabytes)? Growing one Single server is probably not the option, but I would think we could partition the data across many smaller servers and use views, etc to allow us to make one query call across the servers. Any idea how concurrency, etc performs in a model like this where data is Horizontally Partitioned across servers? Any suggestions / comments is greatly appreciated. Thanks, S
4
11,638,545
07/24/2012 20:08:14
297,964
03/20/2010 11:17:31
1,572
91
MSMQ vs RabbitMQ For a .NET Project
I am mainly looking for pros and cons to using MSMQ vs RabbitMQ for a .NET project (to tie a web front-end to backend workers, standard enterprise setup). Especially if you have used both, or replaced one for the other, please let me know what factors led to your decision. Reliability in case of messaging server reboot, as well as possibility for queue clustering (to enable better up-time) is crucial, so if you have experiences with how well related features work in either, that'll be really great. Many thanks.
.net
msmq
rabbitmq
null
null
07/24/2012 20:13:43
not constructive
MSMQ vs RabbitMQ For a .NET Project === I am mainly looking for pros and cons to using MSMQ vs RabbitMQ for a .NET project (to tie a web front-end to backend workers, standard enterprise setup). Especially if you have used both, or replaced one for the other, please let me know what factors led to your decision. Reliability in case of messaging server reboot, as well as possibility for queue clustering (to enable better up-time) is crucial, so if you have experiences with how well related features work in either, that'll be really great. Many thanks.
4
9,661,442
03/12/2012 03:34:10
1,143,880
01/11/2012 18:34:15
31
2
Image size change(zoom) moves other images
http://tinyurl.com/7zftbao As you go over images they get bigger and thats what I want but they push each other. I dont want them to push each other as they get bigger. How can I fix it ?
css3
null
null
null
null
03/12/2012 04:00:41
too localized
Image size change(zoom) moves other images === http://tinyurl.com/7zftbao As you go over images they get bigger and thats what I want but they push each other. I dont want them to push each other as they get bigger. How can I fix it ?
3
3,399,734
08/03/2010 18:45:59
120,727
06/10/2009 17:57:23
169
2
Importing into SiteFinity
I just finished installing SiteFinity 3.7 standard version on windows server 2008. Is there a way to entirely/partially import an already existing .NET project (ASP.NET) into SiteFinity with some minor changes in the code of course (may be by changinf a couple of xml files or something similar). I could only see an "export" under Administration->Tools section but no import. I am new to SiteFinity so a detailed help/guidance would be much appreciated. Thanks.
asp.net
xml
xaml
website
sitefinity
null
open
Importing into SiteFinity === I just finished installing SiteFinity 3.7 standard version on windows server 2008. Is there a way to entirely/partially import an already existing .NET project (ASP.NET) into SiteFinity with some minor changes in the code of course (may be by changinf a couple of xml files or something similar). I could only see an "export" under Administration->Tools section but no import. I am new to SiteFinity so a detailed help/guidance would be much appreciated. Thanks.
0
1,574,975
10/15/2009 20:49:43
6,624
09/15/2008 12:22:55
1,016
28
Advantages of using SQLDataReader over a reader that implements IDatareader?
What are the advantages of using a SQLDataReader as opposed to a reader that just implements IDatareader if I'm using SQL Server >= 2005? Does the SQLDatareader simply have more functionality to choose from, or are there performance improvements using the SQLDatareader? Any articles that discuss this would be appreciated. Thanks! Chris
sqldatareader
idatareader
null
null
null
null
open
Advantages of using SQLDataReader over a reader that implements IDatareader? === What are the advantages of using a SQLDataReader as opposed to a reader that just implements IDatareader if I'm using SQL Server >= 2005? Does the SQLDatareader simply have more functionality to choose from, or are there performance improvements using the SQLDatareader? Any articles that discuss this would be appreciated. Thanks! Chris
0
6,239,726
06/04/2011 22:16:52
252,253
01/16/2010 16:53:08
1,119
16
How can I calculate the trending nature of a link?
![enter image description here][1] [1]: http://i.stack.imgur.com/BdhY5.jpg The above image represents an article's page views over time. I'm looking for a decent, not to complex either physics or statistical calculation that would be able to give me (based on the history of the page views) what the current trending of the page views is for the past n days (which is represented by the blue box). So basically, in the past 5 days is this link trending unusually higher than it usually does and if so by what degree/magnitude? Ideally the accepted answer would provide an algorithm class that applies to this problem as well as some example of that using the data provided from this chart above. thanks!
algorithm
statistics
physics
null
null
06/05/2011 01:39:38
off topic
How can I calculate the trending nature of a link? === ![enter image description here][1] [1]: http://i.stack.imgur.com/BdhY5.jpg The above image represents an article's page views over time. I'm looking for a decent, not to complex either physics or statistical calculation that would be able to give me (based on the history of the page views) what the current trending of the page views is for the past n days (which is represented by the blue box). So basically, in the past 5 days is this link trending unusually higher than it usually does and if so by what degree/magnitude? Ideally the accepted answer would provide an algorithm class that applies to this problem as well as some example of that using the data provided from this chart above. thanks!
2
6,584,570
07/05/2011 14:45:22
485,252
10/23/2010 19:39:16
6
0
How close context menu
I created javascript context menu. How close it when user click out of menu zone or mouse go out of menu area. I find tow way: I create tin container zone around menu content, when mouse hover this edge hide menu or when menu showed I create dynamically absolute div that is parent of menu and cover all body, when this clicked hide menu.
javascript
null
null
null
null
07/05/2011 16:08:12
not a real question
How close context menu === I created javascript context menu. How close it when user click out of menu zone or mouse go out of menu area. I find tow way: I create tin container zone around menu content, when mouse hover this edge hide menu or when menu showed I create dynamically absolute div that is parent of menu and cover all body, when this clicked hide menu.
1
11,448,452
07/12/2012 09:07:33
1,379,026
05/07/2012 05:46:25
1
0
I want carousel view buttons with rotating with circle eclipse form with an angle so that we can select the buttons at any
![enter image description here][1] [1]: http://i.stack.imgur.com/3q1j2.jpg**strong text** I want carousel view buttons with rotating with circle eclipse form with an angle so that we can select the buttons at any point on the circle display the required view give please me suggestion
iphone
ios5
ios4
ipad-splitview
ipad-ui
07/13/2012 06:21:03
not a real question
I want carousel view buttons with rotating with circle eclipse form with an angle so that we can select the buttons at any === ![enter image description here][1] [1]: http://i.stack.imgur.com/3q1j2.jpg**strong text** I want carousel view buttons with rotating with circle eclipse form with an angle so that we can select the buttons at any point on the circle display the required view give please me suggestion
1
7,811,254
10/18/2011 17:26:59
650,361
03/08/2011 18:59:05
73
7
How do you get the fact that a cell of a datagridview has been modified without the cell losing focus?
I have a datagridview with a check box in it. The point is when the user clicks the check box I immediately want to perform an action. The problem I have is, If I process the cell click method this does not work if the user uses the keyboard. I can tie onto the currentcelldirtystatechanged event but this is only raised the first time the cell is changed but not subsequent times. Essentially I want to act immediately and not force the user to change the cell that is currently in focus.
c#
winforms
null
null
null
null
open
How do you get the fact that a cell of a datagridview has been modified without the cell losing focus? === I have a datagridview with a check box in it. The point is when the user clicks the check box I immediately want to perform an action. The problem I have is, If I process the cell click method this does not work if the user uses the keyboard. I can tie onto the currentcelldirtystatechanged event but this is only raised the first time the cell is changed but not subsequent times. Essentially I want to act immediately and not force the user to change the cell that is currently in focus.
0
5,799,930
04/27/2011 05:48:25
507,737
11/15/2010 00:54:49
175
2
Unix: moving process to a screen.
If I have a process that is already running, and I do not want to interrupt it, is there any way to move it to a screen (for lack of a better way to phrase it), so that I close the connection I've established remotely with a server.
unix
process
terminal
screen
null
04/28/2011 13:27:22
off topic
Unix: moving process to a screen. === If I have a process that is already running, and I do not want to interrupt it, is there any way to move it to a screen (for lack of a better way to phrase it), so that I close the connection I've established remotely with a server.
2
6,392,952
06/18/2011 00:01:45
59,202
01/27/2009 03:11:34
842
18
Where did 42 come from in the programming world?
I see `42` used **A LOT** in the programming world as examples. In screencasts, tutorials, etc. Where did the popularity of this number come from?
random
null
null
null
null
06/18/2011 00:39:27
off topic
Where did 42 come from in the programming world? === I see `42` used **A LOT** in the programming world as examples. In screencasts, tutorials, etc. Where did the popularity of this number come from?
2
11,176,390
06/24/2012 09:39:27
178,379
09/24/2009 10:48:26
6
1
Wrapper to make boost nicer? [boost beginner]
[Sorry, a totally boost beginner question.] I just gave boost a first look. But already the sample code looks quite deterrent to me. I seems to consists only of scopus operators, namespaces, template instantiations, etc. Compared to MFC it looks quite bloated and not easy readable to me. Are there any wrappers to make boost more user-friendly?
boost
wrapper
null
null
null
06/25/2012 03:31:56
not constructive
Wrapper to make boost nicer? [boost beginner] === [Sorry, a totally boost beginner question.] I just gave boost a first look. But already the sample code looks quite deterrent to me. I seems to consists only of scopus operators, namespaces, template instantiations, etc. Compared to MFC it looks quite bloated and not easy readable to me. Are there any wrappers to make boost more user-friendly?
4
9,907,055
03/28/2012 12:00:43
985,699
10/08/2011 18:59:08
1
0
Segmentation fault occurs in the program sometimes, not always. how do i remove it?
My program compiles without any error. and it also executes fine for some inputs. But when i give the an upper bound input, the exe file stops working. And no dump file is created. Plz help me out on this one. #include<stdio.h> #include<stdlib.h> #define SIZE 200000 double finval=32766; void addf(double st); void rec(double** tam,long src,long des,double n,double sum); void op(long u, long v,double** tam,long src,long dest,double n); int main() { double n,m,q; long c,t,i,j,s,d,u,v,w; double** mat; double** tam; double** qe; scanf("%lf",&n); if(n>0 || n<=SIZE) { mat = (double **) malloc(n * sizeof(int *)); tam = (double **) malloc(n * sizeof(int *)); for(i = 0; i < n; i++) { mat[i] = (double *) malloc(n * sizeof(int)); tam[i] = (double *) malloc(n * sizeof(int)); } } else return 1; scanf("%lf",&m); if(m<=0 || m>SIZE) return 1; for(i=0;i<n;i++) for(j=0;j<n;j++) { mat[i][j]=0; tam[i][j]=0; } for(i=0;i<m;i++) { scanf("%ld %ld %ld",&u,&v,&w); mat[u][v]=mat[v][u]=w; } scanf("%ld %ld",&s,&d); scanf("%lf",&q); if(q>0 || q<=SIZE) { qe=(double **) malloc(q * sizeof(int *)); for(i=0;i<q;i++) qe[i]=(double *) malloc(2 * sizeof(int)); } else return 1; for(i=0;i<q;i++) { scanf("%ld %ld",&u,&v); qe[i][0]=u; qe[i][1]=v; } for(i=0;i<q;i++) { for(c=0;c<n;c++) for(t=0;t<n;t++) tam[c][t]=mat[c][t]; finval=32766; op(qe[i][0],qe[i][1],tam,s,d,n); printf("\n%g",finval); } for(i = 0; i < n; i++) { free(mat[i]); free(tam[i]); } free(tam); free(mat); for(i=0;i<q;i++) free(qe[i]); free(qe); return 1; } void op(long u, long v,double** tam,long src,long dest,double n) { double sum=0; tam[u][v]=tam[v][u]=0; rec(tam,src,dest,n,sum); }; void rec(double** tam,long src,long des,double n,double sum) { double que[100],dat; long front=-1,rear=-1; long srec,ref; ref=src; for(;ref<n;ref++) { if(tam[src][ref]!=0) { que[++rear]=ref; } } if(src==des) { addf(sum); return; } else while(front!=rear) { srec=que[++front]; dat=tam[src][srec]; rec(tam,srec,des,n,sum+dat); } /*for(i=0;i<n;i++) { for(j=0;j<n;j++) printf("%lf",tam[i][j]); printf("\n"); }*/ }; void addf(double st) { if(finval>st) { finval=st; } }; I use gcc compiler. and i hav also tried the gdb debugger.. But could not solve the problem.
c
segmentation-fault
null
null
null
null
open
Segmentation fault occurs in the program sometimes, not always. how do i remove it? === My program compiles without any error. and it also executes fine for some inputs. But when i give the an upper bound input, the exe file stops working. And no dump file is created. Plz help me out on this one. #include<stdio.h> #include<stdlib.h> #define SIZE 200000 double finval=32766; void addf(double st); void rec(double** tam,long src,long des,double n,double sum); void op(long u, long v,double** tam,long src,long dest,double n); int main() { double n,m,q; long c,t,i,j,s,d,u,v,w; double** mat; double** tam; double** qe; scanf("%lf",&n); if(n>0 || n<=SIZE) { mat = (double **) malloc(n * sizeof(int *)); tam = (double **) malloc(n * sizeof(int *)); for(i = 0; i < n; i++) { mat[i] = (double *) malloc(n * sizeof(int)); tam[i] = (double *) malloc(n * sizeof(int)); } } else return 1; scanf("%lf",&m); if(m<=0 || m>SIZE) return 1; for(i=0;i<n;i++) for(j=0;j<n;j++) { mat[i][j]=0; tam[i][j]=0; } for(i=0;i<m;i++) { scanf("%ld %ld %ld",&u,&v,&w); mat[u][v]=mat[v][u]=w; } scanf("%ld %ld",&s,&d); scanf("%lf",&q); if(q>0 || q<=SIZE) { qe=(double **) malloc(q * sizeof(int *)); for(i=0;i<q;i++) qe[i]=(double *) malloc(2 * sizeof(int)); } else return 1; for(i=0;i<q;i++) { scanf("%ld %ld",&u,&v); qe[i][0]=u; qe[i][1]=v; } for(i=0;i<q;i++) { for(c=0;c<n;c++) for(t=0;t<n;t++) tam[c][t]=mat[c][t]; finval=32766; op(qe[i][0],qe[i][1],tam,s,d,n); printf("\n%g",finval); } for(i = 0; i < n; i++) { free(mat[i]); free(tam[i]); } free(tam); free(mat); for(i=0;i<q;i++) free(qe[i]); free(qe); return 1; } void op(long u, long v,double** tam,long src,long dest,double n) { double sum=0; tam[u][v]=tam[v][u]=0; rec(tam,src,dest,n,sum); }; void rec(double** tam,long src,long des,double n,double sum) { double que[100],dat; long front=-1,rear=-1; long srec,ref; ref=src; for(;ref<n;ref++) { if(tam[src][ref]!=0) { que[++rear]=ref; } } if(src==des) { addf(sum); return; } else while(front!=rear) { srec=que[++front]; dat=tam[src][srec]; rec(tam,srec,des,n,sum+dat); } /*for(i=0;i<n;i++) { for(j=0;j<n;j++) printf("%lf",tam[i][j]); printf("\n"); }*/ }; void addf(double st) { if(finval>st) { finval=st; } }; I use gcc compiler. and i hav also tried the gdb debugger.. But could not solve the problem.
0
9,975,721
04/02/2012 11:38:57
1,235,568
02/27/2012 12:23:46
134
6
Android create table error
When I try to create the a table the very first time, I always get this error message: > sqlite returned: error code = 1, msg = AUTOINCREMENT is only allowed > on an INTEGER PRIMARY KEY My code looks like this: // debuggin identifier private static final String TAG = DatabaseOpenHandler.class.getSimpleName(); // name and verison of the database private static final String DATABASE_NAME = "OpenConfApp"; private static final int DATABASE_VERSION = 1; // name and attributes of the table notes public static final String TABLE_NAME_NOTES = "notes"; public static final String _NOTE_ID = "_noteId"; public static final String NOTE_CONFERENCE = "conferenceId"; public static final String NOTE_DATE = "dateInMillis"; public static final String NOTE_TEXT = "noteText"; // create table notes public static final String TABLE_NOTES_CREATE = "CREATE TABLE " + TABLE_NAME_NOTES + " (" + _NOTE_ID + "INTEGER PRIMARY KEY AUTOINCREMENT, " + NOTE_CONFERENCE + " INTEGER, " + NOTE_DATE + " INTEGER, " + NOTE_TEXT + " INTEGER);"; // drop table notes public static final String TABLE_NOTES_DROP = "DROP TABLE IF EXIST " + TABLE_NAME_NOTES; public DatabaseOpenHandler(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { Log.d(TAG, "onCreate called"); db.execSQL(TABLE_NOTES_CREATE); } Sorry, I'm new to Android programming.
android
sql
null
null
null
null
open
Android create table error === When I try to create the a table the very first time, I always get this error message: > sqlite returned: error code = 1, msg = AUTOINCREMENT is only allowed > on an INTEGER PRIMARY KEY My code looks like this: // debuggin identifier private static final String TAG = DatabaseOpenHandler.class.getSimpleName(); // name and verison of the database private static final String DATABASE_NAME = "OpenConfApp"; private static final int DATABASE_VERSION = 1; // name and attributes of the table notes public static final String TABLE_NAME_NOTES = "notes"; public static final String _NOTE_ID = "_noteId"; public static final String NOTE_CONFERENCE = "conferenceId"; public static final String NOTE_DATE = "dateInMillis"; public static final String NOTE_TEXT = "noteText"; // create table notes public static final String TABLE_NOTES_CREATE = "CREATE TABLE " + TABLE_NAME_NOTES + " (" + _NOTE_ID + "INTEGER PRIMARY KEY AUTOINCREMENT, " + NOTE_CONFERENCE + " INTEGER, " + NOTE_DATE + " INTEGER, " + NOTE_TEXT + " INTEGER);"; // drop table notes public static final String TABLE_NOTES_DROP = "DROP TABLE IF EXIST " + TABLE_NAME_NOTES; public DatabaseOpenHandler(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { Log.d(TAG, "onCreate called"); db.execSQL(TABLE_NOTES_CREATE); } Sorry, I'm new to Android programming.
0
4,143,169
11/10/2010 09:54:37
463,731
10/01/2010 09:50:40
3
4
Which PHP MVC Framework is the should use ?
I would like to know PHP MVC Framework for normal web application scope. 1. Clean coding style 2. Easy to setup 3. Not too big 4. Easy to develop Which one is suitable for me ?
php
mvc
frameworks
null
null
11/11/2010 01:04:51
not constructive
Which PHP MVC Framework is the should use ? === I would like to know PHP MVC Framework for normal web application scope. 1. Clean coding style 2. Easy to setup 3. Not too big 4. Easy to develop Which one is suitable for me ?
4
11,097,128
06/19/2012 08:24:24
1,369,403
05/02/2012 07:30:07
42
1
Which of the following IP addresses do not belong to the same subnet? (MULTICHOICE) not sure which one is right
I was preparing for my exam and I came across this question and I am not sure how to do it or what the answer is. Can anyone give me a step by step process on how to get the answer. ![enter image description here][1] Cheers [1]: http://i.stack.imgur.com/X0wRB.jpg
java
networking
ip
subnet
netmask
08/01/2012 02:56:12
too localized
Which of the following IP addresses do not belong to the same subnet? (MULTICHOICE) not sure which one is right === I was preparing for my exam and I came across this question and I am not sure how to do it or what the answer is. Can anyone give me a step by step process on how to get the answer. ![enter image description here][1] Cheers [1]: http://i.stack.imgur.com/X0wRB.jpg
3
8,682,948
12/30/2011 18:58:12
733,596
05/01/2011 19:38:44
233
8
Node.js security: protection from unauthorized change
Is it possible to host and run Node.js in some packed/signed state, to make unauthorized to change to application logic impossible for those who have an access to the server? And make level of node.js application security acceptable for use for example in financial sector industries?
security
node.js
null
null
null
null
open
Node.js security: protection from unauthorized change === Is it possible to host and run Node.js in some packed/signed state, to make unauthorized to change to application logic impossible for those who have an access to the server? And make level of node.js application security acceptable for use for example in financial sector industries?
0
8,383,397
12/05/2011 09:43:38
962,672
09/24/2011 13:48:08
35
0
How do I change the background in my WordPress Theme?
I use the following theme for WordPress http://wordpressthemes.mifdesign.com/themeviewer/index.php?wptheme=Deep+Silent http://wordpress.org/extend/themes/deep-silent I want to change the background which I did but it still shows a red border all around (see picture http://imageshack.us/f/710/wordpressg.png/). Where do I delete the frame? Can not find it. Would also like to do the framing / page wider. Seems like I have to change several times in my css or where do I change it? Thanks
html
css
wordpress-theming
null
null
12/06/2011 22:37:47
off topic
How do I change the background in my WordPress Theme? === I use the following theme for WordPress http://wordpressthemes.mifdesign.com/themeviewer/index.php?wptheme=Deep+Silent http://wordpress.org/extend/themes/deep-silent I want to change the background which I did but it still shows a red border all around (see picture http://imageshack.us/f/710/wordpressg.png/). Where do I delete the frame? Can not find it. Would also like to do the framing / page wider. Seems like I have to change several times in my css or where do I change it? Thanks
2
11,659,215
07/25/2012 21:53:22
1,387,607
05/10/2012 15:55:07
11
0
IE bug, autocomplete box position in iframe
After a few hours' of google search, i found that there is autocomplete box bug since almost 10 years ago, until now, on IE9 the bug is still there. <hr/> problem: <br/>when i have an input:text inside iframe, there are positioning bug of the autocomplete box - tested on IE8-compatibility mode, IE8, IE9. <hr/> The problem maybe related to the iframe's parent class (note: may not be the style, because i tested on IE9 console, disabling the class style will not solve the problem; on the other hand, giving the same style but removing the class solved the autocomplete box positioning bug, unfortunately only on IE9). <br/><br/>on IE8 and IE8 compatibility-mode, tried the same method, the position of the autocomplete box bug is still present: sometimes it is located around 50px below the input:text, sometimes it is about 8px above the input:text bottom (like IE9). <hr/> solution i founded from google result, people suggest "position:relative; left:0; top:0;", tested, doesn't work. <hr/> similar problem from another person: http://forums.asp.net/t/1538225.aspx/1 <br/><br/><br/> thanks for your help
internet-explorer
iframe
textbox
bugs
autocompletebox
null
open
IE bug, autocomplete box position in iframe === After a few hours' of google search, i found that there is autocomplete box bug since almost 10 years ago, until now, on IE9 the bug is still there. <hr/> problem: <br/>when i have an input:text inside iframe, there are positioning bug of the autocomplete box - tested on IE8-compatibility mode, IE8, IE9. <hr/> The problem maybe related to the iframe's parent class (note: may not be the style, because i tested on IE9 console, disabling the class style will not solve the problem; on the other hand, giving the same style but removing the class solved the autocomplete box positioning bug, unfortunately only on IE9). <br/><br/>on IE8 and IE8 compatibility-mode, tried the same method, the position of the autocomplete box bug is still present: sometimes it is located around 50px below the input:text, sometimes it is about 8px above the input:text bottom (like IE9). <hr/> solution i founded from google result, people suggest "position:relative; left:0; top:0;", tested, doesn't work. <hr/> similar problem from another person: http://forums.asp.net/t/1538225.aspx/1 <br/><br/><br/> thanks for your help
0
9,638,834
03/09/2012 18:05:38
943,646
09/14/2011 00:52:33
139
16
$GLOBAL associative array getting reset on page redirection
I tried the following code to create a superglobal variable using $GLOBALS. test.php <?php $GLOBALS['test']='hello'; header("location:test3.php"); ?> Here is the test3.php <?php var_dump($GLOBALS); echo $GLOBALS['test']; ?> The output i get is array(5) { ["GLOBALS"]=> *RECURSION* ["_POST"]=> array(0) { } ["_GET"]=> array(0) { }["_COOKIE"]=> array(1) {"PHPSESSID"]=>string(26)"oer267anbfrrhtj64lpqrocdd3"} ["_FILES"]=> array(0) { } } The $GLOBAL['test'] is not getting set. But when I try var_dump in test.php,I find $GLOBAL array to have a key 'test' with value 'hello'. What is the reason of this behaviour? Also I wish to create a superglobal database connection object using the $GLOBAL.Is it recommended?
php
global-variables
null
null
null
03/15/2012 09:07:36
not a real question
$GLOBAL associative array getting reset on page redirection === I tried the following code to create a superglobal variable using $GLOBALS. test.php <?php $GLOBALS['test']='hello'; header("location:test3.php"); ?> Here is the test3.php <?php var_dump($GLOBALS); echo $GLOBALS['test']; ?> The output i get is array(5) { ["GLOBALS"]=> *RECURSION* ["_POST"]=> array(0) { } ["_GET"]=> array(0) { }["_COOKIE"]=> array(1) {"PHPSESSID"]=>string(26)"oer267anbfrrhtj64lpqrocdd3"} ["_FILES"]=> array(0) { } } The $GLOBAL['test'] is not getting set. But when I try var_dump in test.php,I find $GLOBAL array to have a key 'test' with value 'hello'. What is the reason of this behaviour? Also I wish to create a superglobal database connection object using the $GLOBAL.Is it recommended?
1
3,860,483
10/05/2010 02:31:35
463,617
10/01/2010 07:35:25
1
0
How to make dropdownlist as Readonly Field In Infopath 2010.
How to make dropdownlist as Readonly Field In Infopath 2010.
infopath
null
null
null
null
null
open
How to make dropdownlist as Readonly Field In Infopath 2010. === How to make dropdownlist as Readonly Field In Infopath 2010.
0
10,105,059
04/11/2012 11:32:43
1,317,105
04/06/2012 08:58:51
11
0
Vim Macro with arguments
I need to do some search and replace in vim regularly. Using regex I did some operations to get the desired result this time. However since these operations are a bit complicated I would like to have a mechanism where I can take the range of lines under consideration and carry out the sequential operations I have already developed. Is this possible with vim? Now suppose lets say everytime I have to replace a particular word with a desired word which is not fixed, can this also be passed through that mechanism. Thanks.
vim
null
null
null
null
04/12/2012 13:53:40
not a real question
Vim Macro with arguments === I need to do some search and replace in vim regularly. Using regex I did some operations to get the desired result this time. However since these operations are a bit complicated I would like to have a mechanism where I can take the range of lines under consideration and carry out the sequential operations I have already developed. Is this possible with vim? Now suppose lets say everytime I have to replace a particular word with a desired word which is not fixed, can this also be passed through that mechanism. Thanks.
1
3,125,727
06/26/2010 22:39:05
377,161
06/26/2010 22:39:05
1
0
How to differeniate capital letters from lower ones in onkeydown event handler method
<html> <head> <title>Test</title> <script type="text/javascript"> function showChar(e){ if(e.keyCode!=16) alert( "keyCode: " + e.keyCode + "\n" + "SHIFT key pressed: " + e.shiftKey + "\n" ); } </script> </head> <body onkeydown="showChar(event);"> <p>Press any character key, with or without holding down the SHIFT key.<br /></p> </body> </html> How can I differentiate capital **A** from lowercase **a** in onkeydown event handler method? Above algorithm fires the same keyCode value. I need to detect the capital letters when they are pressed in onkeydown. Note: The code contains an exception for SHIFT key. Otherwise it does not allow to type capital letters. BTW, I need to use onkeydown for my trial.
onkeydown
null
null
null
null
null
open
How to differeniate capital letters from lower ones in onkeydown event handler method === <html> <head> <title>Test</title> <script type="text/javascript"> function showChar(e){ if(e.keyCode!=16) alert( "keyCode: " + e.keyCode + "\n" + "SHIFT key pressed: " + e.shiftKey + "\n" ); } </script> </head> <body onkeydown="showChar(event);"> <p>Press any character key, with or without holding down the SHIFT key.<br /></p> </body> </html> How can I differentiate capital **A** from lowercase **a** in onkeydown event handler method? Above algorithm fires the same keyCode value. I need to detect the capital letters when they are pressed in onkeydown. Note: The code contains an exception for SHIFT key. Otherwise it does not allow to type capital letters. BTW, I need to use onkeydown for my trial.
0
9,937,440
03/30/2012 05:30:16
1,290,265
03/24/2012 17:18:25
1
0
image from mysql to html by php-code needed
i want to retrieve image stored in mysql as path using php and display in a table together with other text data in other columns of the table.i tried different codes but in vain. can anybody help me by providing code. thanks
php
mysql
image
null
null
03/30/2012 11:09:03
not a real question
image from mysql to html by php-code needed === i want to retrieve image stored in mysql as path using php and display in a table together with other text data in other columns of the table.i tried different codes but in vain. can anybody help me by providing code. thanks
1
11,635,559
07/24/2012 16:46:19
1,542,903
07/21/2012 16:08:03
34
0
Java Input Buffer Garbage
Why is good practice to empty the 'Garbage' from the input buffer in a block of code like this? What would happen if I didn't? try{ age = scanner.nextInt(); // If the exception is thrown, the following line will be skipped over. // The flow of execution goes directly to the catch statement (Hence, Exception is caught) finish = true; }catch(InputMismatchException e){ System.out.println("Invalid input. age must be a number."); // The following line empties the "garbage" left in the input buffer scanner.next(); }
java
null
null
null
null
null
open
Java Input Buffer Garbage === Why is good practice to empty the 'Garbage' from the input buffer in a block of code like this? What would happen if I didn't? try{ age = scanner.nextInt(); // If the exception is thrown, the following line will be skipped over. // The flow of execution goes directly to the catch statement (Hence, Exception is caught) finish = true; }catch(InputMismatchException e){ System.out.println("Invalid input. age must be a number."); // The following line empties the "garbage" left in the input buffer scanner.next(); }
0
11,324,094
07/04/2012 07:11:30
1,500,567
07/04/2012 05:14:17
1
0
how to use motion simulator in android?
This list gets wrapped in <> tags - how to interface eclipse to motion simulator and how to get output in that
android
android-intent
null
null
null
07/04/2012 07:22:41
not a real question
how to use motion simulator in android? === This list gets wrapped in <> tags - how to interface eclipse to motion simulator and how to get output in that
1
8,504,118
12/14/2011 12:01:27
207,022
11/09/2009 15:12:54
1,879
181
Passing a the datacontext of a control from it's parent
in my mainpage.xaml i'm trying to set the datacontext of my usercontrol like this <theControl DataContext="{Binding theData}" /> now in my control i want to use `theData` like this. ... <ListBox ItemsSource="{Binding}"> ... No such such luck. I'm not using an MVVM toolkit so I need this implementing using the standard tools.
c#
silverlight
windows-phone-7
null
null
02/13/2012 02:00:56
not a real question
Passing a the datacontext of a control from it's parent === in my mainpage.xaml i'm trying to set the datacontext of my usercontrol like this <theControl DataContext="{Binding theData}" /> now in my control i want to use `theData` like this. ... <ListBox ItemsSource="{Binding}"> ... No such such luck. I'm not using an MVVM toolkit so I need this implementing using the standard tools.
1
10,505,389
05/08/2012 19:45:04
848,953
07/17/2011 18:35:31
5
1
How to Get font descriptors - CapHeight, Ascent, Descent, Flags, ItalicAngle, StemV of TTF Font
I am trying to create my own tool for creating the pdf file. Every thing is going well, Only thing I miss is the font descriptors. Kindly let me know the correct values of capheight, ascent, descent, glag, italic angle from afm/pfa/pfb or any tool available to genrate the same
vb6
pdf-generation
true-type-fonts
embedded-fonts
ps
null
open
How to Get font descriptors - CapHeight, Ascent, Descent, Flags, ItalicAngle, StemV of TTF Font === I am trying to create my own tool for creating the pdf file. Every thing is going well, Only thing I miss is the font descriptors. Kindly let me know the correct values of capheight, ascent, descent, glag, italic angle from afm/pfa/pfb or any tool available to genrate the same
0
5,745,809
04/21/2011 14:54:11
504,277
11/11/2010 09:09:57
615
67
What is difference between express checkout and direct payment in paypal pro?
What is difference between **express checkout** and **direct payment** in **paypal pro**?
paypal
null
null
null
null
04/21/2011 21:30:17
off topic
What is difference between express checkout and direct payment in paypal pro? === What is difference between **express checkout** and **direct payment** in **paypal pro**?
2
7,932,672
10/28/2011 17:26:14
356,849
06/02/2010 20:09:19
2,425
32
Css and jQuery: How do I trigger the repositioning of a CSS3-animated element back to where it was before the animation?
http://jsfiddle.net/cD4Gr/4/ Le Code: $j(document).bind('click', function() { $j("#test").css({ bottom:0px }) }); Looking in the inspector, even when the element is at the top of the page, it still says it's bottom value is 0. Maybe I need to play the animation in reverse somehow? or play a different animation? (Using Bottom %, rather than top %)
jquery
css
css3
css-animations
null
null
open
Css and jQuery: How do I trigger the repositioning of a CSS3-animated element back to where it was before the animation? === http://jsfiddle.net/cD4Gr/4/ Le Code: $j(document).bind('click', function() { $j("#test").css({ bottom:0px }) }); Looking in the inspector, even when the element is at the top of the page, it still says it's bottom value is 0. Maybe I need to play the animation in reverse somehow? or play a different animation? (Using Bottom %, rather than top %)
0
6,119,323
05/25/2011 03:47:47
243,755
01/05/2010 08:48:52
477
10
Scala syntax problem
The following code can be compiled def isEven(a:Int)= if (a%2==0) true else false def main(args: Array[String]) { List(1, 10) filter isEven foreach println but if I change to following ( List(1,10) --> List(1 to 10)) def isEven(a:Int)= if (a%2==0) true else false def main(args: Array[String]) { List(1 to 10) filter isEven foreach println } What's difference between List(1,10) and List(1 to 10) ?
scala
null
null
null
null
null
open
Scala syntax problem === The following code can be compiled def isEven(a:Int)= if (a%2==0) true else false def main(args: Array[String]) { List(1, 10) filter isEven foreach println but if I change to following ( List(1,10) --> List(1 to 10)) def isEven(a:Int)= if (a%2==0) true else false def main(args: Array[String]) { List(1 to 10) filter isEven foreach println } What's difference between List(1,10) and List(1 to 10) ?
0
8,585,272
12/21/2011 05:02:33
1,108,983
12/21/2011 01:53:05
1
1
How do I run a .lua file with lua?
I need to run a .lua file with another .lua file. Here is my code: Program = io.read() dofile(program) I type the name of the file that I want to run correctly, but for some reason my compiler says that the file I typed does not exist. (Which it does) Thanks in advance!
file
lua
run
execute
null
null
open
How do I run a .lua file with lua? === I need to run a .lua file with another .lua file. Here is my code: Program = io.read() dofile(program) I type the name of the file that I want to run correctly, but for some reason my compiler says that the file I typed does not exist. (Which it does) Thanks in advance!
0
9,237,916
02/11/2012 04:53:50
848,841
07/17/2011 16:24:21
1
0
creating Div tags on load, html
I am trying to create a product review webpage. The product review has product image,title,description etc in sql database. Now how can i load these datas into a html div tag? and lets assume that for first time it will have 5 div tags(i.e 5 products) and when i click on more it should load another 5 div tags(products) like more in facebook newsfeed. how to do this ?!
javascript
jquery
html
div
null
02/12/2012 08:08:55
not a real question
creating Div tags on load, html === I am trying to create a product review webpage. The product review has product image,title,description etc in sql database. Now how can i load these datas into a html div tag? and lets assume that for first time it will have 5 div tags(i.e 5 products) and when i click on more it should load another 5 div tags(products) like more in facebook newsfeed. how to do this ?!
1
5,627,836
04/11/2011 21:34:08
1,322
08/14/2008 14:11:10
1,207
32
XCode 4 crashes loading mapping model
I have a core data model, which includes two objects with a relationship named "contains" - which now that I'm trying to create a new version of the model I'm realizing is a reserved word (see this [answer][1]. I can change the name of this property in the new model, but the problem is that Xcode 4 crashes trying to deal with that property in the mapping file. If I click on either entity mapping that has the "contains" property, I get a crash - the details contain the following: <pre> Application Specific Information: ProductBuildVersion: 4A304a UNCAUGHT EXCEPTION (NSInvalidArgumentException): Unable to parse the format string "FUNCTION($manager ,'destinationInstancesForSourceRelationshipNamed:sourceInstances:' , 'contains' , $source.contains) == 1" UserInfo: (null) Hints: None </pre> If I manually edit the xcmapping.xml file in vim, find the entries for the "contains" properties, and prefix it with a '#', I can get Xcode to load the file, and show me the mapping, but after fixing the mapping, it won't save the file: I don't get an error, Xcode just hangs. I'm downloading 3.2 now to see if I can at least edit the file there - any workarounds for Xcode 4? I have reported this problem. [1]: http://stackoverflow.com/questions/1651369/core-data-migrating-entities-with-self-referential-properties/1775856#1775856
core-data
apple
null
null
null
05/31/2011 22:17:08
off topic
XCode 4 crashes loading mapping model === I have a core data model, which includes two objects with a relationship named "contains" - which now that I'm trying to create a new version of the model I'm realizing is a reserved word (see this [answer][1]. I can change the name of this property in the new model, but the problem is that Xcode 4 crashes trying to deal with that property in the mapping file. If I click on either entity mapping that has the "contains" property, I get a crash - the details contain the following: <pre> Application Specific Information: ProductBuildVersion: 4A304a UNCAUGHT EXCEPTION (NSInvalidArgumentException): Unable to parse the format string "FUNCTION($manager ,'destinationInstancesForSourceRelationshipNamed:sourceInstances:' , 'contains' , $source.contains) == 1" UserInfo: (null) Hints: None </pre> If I manually edit the xcmapping.xml file in vim, find the entries for the "contains" properties, and prefix it with a '#', I can get Xcode to load the file, and show me the mapping, but after fixing the mapping, it won't save the file: I don't get an error, Xcode just hangs. I'm downloading 3.2 now to see if I can at least edit the file there - any workarounds for Xcode 4? I have reported this problem. [1]: http://stackoverflow.com/questions/1651369/core-data-migrating-entities-with-self-referential-properties/1775856#1775856
2
8,682,984
12/30/2011 19:03:26
889,829
08/11/2011 11:49:57
20
1
Windows Phone 7 show only contacts with phone numbers
Just got a Windows Phone 7, when I put in my google account, the phone pulled down every person I’ve ever emailed and placed them in the “people” hub. I only want people that I have phone numbers for as contacts. With android there was a way to display contacts with phone numbers only, is there a way to do this with windows phone 7?
windows-phone-7
null
null
null
null
12/30/2011 21:56:40
off topic
Windows Phone 7 show only contacts with phone numbers === Just got a Windows Phone 7, when I put in my google account, the phone pulled down every person I’ve ever emailed and placed them in the “people” hub. I only want people that I have phone numbers for as contacts. With android there was a way to display contacts with phone numbers only, is there a way to do this with windows phone 7?
2
3,989,146
10/21/2010 15:31:01
317,487
04/15/2010 12:41:02
54
2
Implementing a security typed variant of Scala - which method is best?
Hio there Scala folks, I'm actually writing my master thesis and I have to implement a security typed language in Scala. So this means I have to add annotations to specify the special permissions levels for the variables and other programming constructs in Scala. The idea to add this comes from Jif (a real security typed language http://www.cs.cornell.edu/jif/) and FlowCaml (http://www.normalesup.org/~simonet/soft/flowcaml/). I still have to check how this languages add their security extensions. I talked to my advisor and he suggested three possibilities how I can implement this feature in Scala: 1. source-to-source compiler (I don't think this is the best solution to write the things from the scratch because I will be busy with the parser and semantic and out of own experience I know that I don't have quite enough time to work on the main stuff) 2. type-checker plugin (I haven't wrote a plugin for compiler and think this just won't work on further versions of Scala because the compiler is still under development) 3. build a library in Scala (syntax are here simply free, so I can easily build something like this in a language I want => think this is like inventing a DSL and I believe that this is the best solution) If you have another idea how to implement please let me know and if you have pros and cons for the methods mentioned above please let me know. I'm convinced that I will learn after this project of to program with pleasure in Scala (I'm familiar with Java and Ruby). Greetings Matthias Guenther
scala
compiler
null
null
null
null
open
Implementing a security typed variant of Scala - which method is best? === Hio there Scala folks, I'm actually writing my master thesis and I have to implement a security typed language in Scala. So this means I have to add annotations to specify the special permissions levels for the variables and other programming constructs in Scala. The idea to add this comes from Jif (a real security typed language http://www.cs.cornell.edu/jif/) and FlowCaml (http://www.normalesup.org/~simonet/soft/flowcaml/). I still have to check how this languages add their security extensions. I talked to my advisor and he suggested three possibilities how I can implement this feature in Scala: 1. source-to-source compiler (I don't think this is the best solution to write the things from the scratch because I will be busy with the parser and semantic and out of own experience I know that I don't have quite enough time to work on the main stuff) 2. type-checker plugin (I haven't wrote a plugin for compiler and think this just won't work on further versions of Scala because the compiler is still under development) 3. build a library in Scala (syntax are here simply free, so I can easily build something like this in a language I want => think this is like inventing a DSL and I believe that this is the best solution) If you have another idea how to implement please let me know and if you have pros and cons for the methods mentioned above please let me know. I'm convinced that I will learn after this project of to program with pleasure in Scala (I'm familiar with Java and Ruby). Greetings Matthias Guenther
0
11,251,206
06/28/2012 19:01:08
791,462
06/09/2011 17:47:23
653
10
Camera Troubles in Mathematica
I'm trying to animate a torus being cut by a plane, so that as the plane enters the torus the part in front of the plane disappears (the idea is to show the cross section). That much I can do, but I can't seem to get the camera to behave. I'd like everything to stay the same size and position, but despite setting `ViewVector`, `ViewAngle`, and `ViewVertical` the scene becomes smaller as the animation progresses. Note that I chose the settings pretty arbitrarily. I am baffled as to why the camera view changes with these three options fixed. Here is the code (I produce the frames in a table, and then export them for the animation). Table[Show[ ContourPlot3D[(1 - Sqrt[x^2 + (y + 1/2)^2])^2 + z^2 - 1/4 == 0, {x, -2, 2}, {y, -2, 2 - 2 t}, {z, -2, 2}, Mesh -> False], (*The torus*) ContourPlot3D[y == 2 - 2 t, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> False, ContourStyle -> {White, Opacity[.5]}], (*The plane*) Axes -> False, Boxed -> True, ViewVector -> {{5 Sqrt[6], 10 Sqrt[6], 5 Sqrt[6]}, {0, 0, 0}}, ViewAngle -> 3 Pi/50, ViewVertical -> {0, 0, 1}], {t, 0, 1, .5}] And here is the result. ![Torus cross sections][1] As you can see, the camera zooms out and seems to rotate slightly. Any idea how to fix this? [1]: http://i.stack.imgur.com/dAmjH.png
mathematica
visualization
null
null
null
06/28/2012 21:32:14
off topic
Camera Troubles in Mathematica === I'm trying to animate a torus being cut by a plane, so that as the plane enters the torus the part in front of the plane disappears (the idea is to show the cross section). That much I can do, but I can't seem to get the camera to behave. I'd like everything to stay the same size and position, but despite setting `ViewVector`, `ViewAngle`, and `ViewVertical` the scene becomes smaller as the animation progresses. Note that I chose the settings pretty arbitrarily. I am baffled as to why the camera view changes with these three options fixed. Here is the code (I produce the frames in a table, and then export them for the animation). Table[Show[ ContourPlot3D[(1 - Sqrt[x^2 + (y + 1/2)^2])^2 + z^2 - 1/4 == 0, {x, -2, 2}, {y, -2, 2 - 2 t}, {z, -2, 2}, Mesh -> False], (*The torus*) ContourPlot3D[y == 2 - 2 t, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> False, ContourStyle -> {White, Opacity[.5]}], (*The plane*) Axes -> False, Boxed -> True, ViewVector -> {{5 Sqrt[6], 10 Sqrt[6], 5 Sqrt[6]}, {0, 0, 0}}, ViewAngle -> 3 Pi/50, ViewVertical -> {0, 0, 1}], {t, 0, 1, .5}] And here is the result. ![Torus cross sections][1] As you can see, the camera zooms out and seems to rotate slightly. Any idea how to fix this? [1]: http://i.stack.imgur.com/dAmjH.png
2
7,690,945
10/07/2011 17:47:59
734,984
05/02/2011 19:19:06
1,201
25
There is a javascript library for creating graphs?
I need some javascript/jquery library to create graphs dynamically. The most I found is only for visualization. I need one where I can add node nodes, remove nodes, trace paths, tc.
javascript
graph
null
null
null
07/16/2012 18:28:14
not constructive
There is a javascript library for creating graphs? === I need some javascript/jquery library to create graphs dynamically. The most I found is only for visualization. I need one where I can add node nodes, remove nodes, trace paths, tc.
4
8,216,463
11/21/2011 18:14:49
1,055,141
11/19/2011 09:38:04
-1
0
401 - Unauthorized Signature Invalid Intuit Partner Platform
When implementing OAuth in Intuit Anywhere, I get 401 Unauthorized (Signature Invalid) error while requesting request token. I am sure that I have implemented my signature part correctly. I verified it with the result of an available tool as well. I have included oauth_callback also in my signature generation apart from other oauth_* parameters. Intuit Anywhere asks for certain URLs like application URL, disconnect URL, manage users URL. What is the significance of these URLs? I am trying to develop a non ui application which would consume IPP's data services. Please help. Thanks in advance.
quickbooks
null
null
null
null
null
open
401 - Unauthorized Signature Invalid Intuit Partner Platform === When implementing OAuth in Intuit Anywhere, I get 401 Unauthorized (Signature Invalid) error while requesting request token. I am sure that I have implemented my signature part correctly. I verified it with the result of an available tool as well. I have included oauth_callback also in my signature generation apart from other oauth_* parameters. Intuit Anywhere asks for certain URLs like application URL, disconnect URL, manage users URL. What is the significance of these URLs? I am trying to develop a non ui application which would consume IPP's data services. Please help. Thanks in advance.
0
8,252,316
11/24/2011 04:45:06
478,597
10/17/2010 15:25:56
11
3
How do you pick neutral fonts for smartphone?
When you should make apps for smartphone on multi-platform - iOS, Android, WP7, ... -, how do you make a decision what fonts will be used, and how to deploy it? I thought using just embed truetype fonts or neutral font things, like in following article : http://www.bluetrainmobile.com/blog/choosing-fonts-for-your-mobile-website, but I don't have an idea which way will be better one. Any suggestion?
android
iphone
windows-phone-7
fonts
smartphone
11/25/2011 07:47:55
off topic
How do you pick neutral fonts for smartphone? === When you should make apps for smartphone on multi-platform - iOS, Android, WP7, ... -, how do you make a decision what fonts will be used, and how to deploy it? I thought using just embed truetype fonts or neutral font things, like in following article : http://www.bluetrainmobile.com/blog/choosing-fonts-for-your-mobile-website, but I don't have an idea which way will be better one. Any suggestion?
2
297,294
11/17/2008 23:04:50
8,027
09/15/2008 14:57:24
783
49
Integrating command-line generated python .coverage files with PyDev
My build environment is configured to compile, run and create coverage file at the command line (using Ned Batchelder coverage.py tool). I'm using Eclipse with PyDev as my editor, but for practical reasons, it's not possible/convenient for me to convert my whole build environment to Eclipse (and thus generate the coverage data directly from the IDE, as it's designed to do) PyDev seems to be using the same coverage tool (or something very similar to it) to generate its coverage information, so I'm guessing there should be some way of integrating my external coverage files into Eclipse/PyDev. Any idea on how to do this?
coverage
python
pydev
eclipse
null
null
open
Integrating command-line generated python .coverage files with PyDev === My build environment is configured to compile, run and create coverage file at the command line (using Ned Batchelder coverage.py tool). I'm using Eclipse with PyDev as my editor, but for practical reasons, it's not possible/convenient for me to convert my whole build environment to Eclipse (and thus generate the coverage data directly from the IDE, as it's designed to do) PyDev seems to be using the same coverage tool (or something very similar to it) to generate its coverage information, so I'm guessing there should be some way of integrating my external coverage files into Eclipse/PyDev. Any idea on how to do this?
0
10,026,538
04/05/2012 10:03:20
1,314,938
04/05/2012 09:55:33
1
0
Which field has better scope in future either sofware development or software testing?
Which field has better scope in future either software development or software testing? i want to know which field is better ....because i m currently working in development field and also doing Software testing Course....so can you guide?
php
null
null
null
null
04/06/2012 10:56:15
not constructive
Which field has better scope in future either sofware development or software testing? === Which field has better scope in future either software development or software testing? i want to know which field is better ....because i m currently working in development field and also doing Software testing Course....so can you guide?
4
7,387,301
09/12/2011 11:43:09
940,462
09/12/2011 11:43:09
1
0
REST Server API in kohana 2.3.4 for Iphone App
Hi Experts I need help on implementing REST Server API in kohana 2.3.4 so that I can fetch POST or GET and return XML to the Iphone APP. Any help will be greatly appreciated. Thanks
iphone
ios
rest
kohana
null
09/12/2011 12:12:19
not a real question
REST Server API in kohana 2.3.4 for Iphone App === Hi Experts I need help on implementing REST Server API in kohana 2.3.4 so that I can fetch POST or GET and return XML to the Iphone APP. Any help will be greatly appreciated. Thanks
1
11,331,893
07/04/2012 15:25:02
756,475
05/16/2011 22:50:00
159
7
"No item exists at https://<internal_url>" after file upload when accessing the site externally
I have created a SharePoint 2010 site that is accessible both internally and externally. I have created alternate access mappings for `https://<internal_url>` (Extranet) and `https://<external_url>` (Internet). Requests, however, only come to the internal_url as there is a reverse proxy which translates the addresses. This setup generally works fine as SharePoint uses relative URLs for most things. However, I'm experience some problematic bits, with the most annoying one being the following error after file upload: No item exists at https://**<internal_path>**/Forms/EditForm.aspx?Mode=Upload&CheckInComment=&ID=5&RootFolder=/<path>&IsDlg=1. It may have been deleted or renamed by another user. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Microsoft SharePoint Foundation. Note that the upload is successful but the popup window shows this error. It's not a critical issue but I know the user base, they are not very technical and we'll be facing constant support calls and lack of confidence in the solution. Obviously, the confirmation tries to open the site at the internal URL (by which it has been requested any way, after the domain name translation at the reverse proxy), which is naturally unavailable externally. I get this error only when Web Client service is started - when it's not in the same popup I get "Internet Explorer Cannot Open the Webpage" (although the logs may show the same error) I'm also getting the same error when creating lists and document libraries Can I make this work properly without messing with the general architecture of the DMZ infrastructure?
sharepoint
sharepoint2010
upload
reverse-proxy
extranet
07/05/2012 15:06:09
off topic
"No item exists at https://<internal_url>" after file upload when accessing the site externally === I have created a SharePoint 2010 site that is accessible both internally and externally. I have created alternate access mappings for `https://<internal_url>` (Extranet) and `https://<external_url>` (Internet). Requests, however, only come to the internal_url as there is a reverse proxy which translates the addresses. This setup generally works fine as SharePoint uses relative URLs for most things. However, I'm experience some problematic bits, with the most annoying one being the following error after file upload: No item exists at https://**<internal_path>**/Forms/EditForm.aspx?Mode=Upload&CheckInComment=&ID=5&RootFolder=/<path>&IsDlg=1. It may have been deleted or renamed by another user. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Microsoft SharePoint Foundation. Note that the upload is successful but the popup window shows this error. It's not a critical issue but I know the user base, they are not very technical and we'll be facing constant support calls and lack of confidence in the solution. Obviously, the confirmation tries to open the site at the internal URL (by which it has been requested any way, after the domain name translation at the reverse proxy), which is naturally unavailable externally. I get this error only when Web Client service is started - when it's not in the same popup I get "Internet Explorer Cannot Open the Webpage" (although the logs may show the same error) I'm also getting the same error when creating lists and document libraries Can I make this work properly without messing with the general architecture of the DMZ infrastructure?
2
1,237,452
08/06/2009 07:39:21
151,596
08/06/2009 07:39:21
1
0
Google App Engine problem
Google App Engine is neither showing my application main HTML page nor any error. I just rolled back my changes still its not showing anything.It was working in the morning Please Guide e how Can I make it working agin.
google-app-engine
null
null
null
null
09/07/2011 17:53:33
not a real question
Google App Engine problem === Google App Engine is neither showing my application main HTML page nor any error. I just rolled back my changes still its not showing anything.It was working in the morning Please Guide e how Can I make it working agin.
1
5,760,717
04/22/2011 22:35:37
295,307
03/17/2010 01:50:46
180
13
Why do you need webservices to access a database from Silverlight?
I am at the moment looking into several options to create a new app which can be accessed using the browser by multiple user in a closed intranet. I thought about using Silverlight for its user-friendliness and its WPF design so close to the rich clients the future users are used to. The project (of course) requires access to a database also within the intranet, hence I browsed the internet to see how data access was handled. I was surprised to see that you apparently _have_ to use web services to interact with data, as mentioned in [this SO post][1] which points [this tutorial][2] (one of many ways to use webservices). Having already created various rich client within an intranet all interacting with database, I was surprised to be forced to use web services. Indeed, I do understand the advantages of the web services; the security it provides, and all the other features of created a good DAL generally in software architecture. However, I can't see why you can't simply create (for example) a library containing the Linq to SQL classes and use this library as reference in the silverlight project to access data directly as you can do with classic rich client application. I understand that by doing that, you store the access data within the connection string of the app, but I can't see why it shouldn't work with a silverlight client. So, two questions: 1. Do we actually _have_ to access data through web services? 2. If so, why is it different from the classic rich client approach? [1]: http://stackoverflow.com/questions/3591025/access-database-using-silverlight [2]: http://msdn.microsoft.com/en-us/library/ee707344%28VS.91%29.aspx
.net
silverlight
web-services
data-access-layer
null
null
open
Why do you need webservices to access a database from Silverlight? === I am at the moment looking into several options to create a new app which can be accessed using the browser by multiple user in a closed intranet. I thought about using Silverlight for its user-friendliness and its WPF design so close to the rich clients the future users are used to. The project (of course) requires access to a database also within the intranet, hence I browsed the internet to see how data access was handled. I was surprised to see that you apparently _have_ to use web services to interact with data, as mentioned in [this SO post][1] which points [this tutorial][2] (one of many ways to use webservices). Having already created various rich client within an intranet all interacting with database, I was surprised to be forced to use web services. Indeed, I do understand the advantages of the web services; the security it provides, and all the other features of created a good DAL generally in software architecture. However, I can't see why you can't simply create (for example) a library containing the Linq to SQL classes and use this library as reference in the silverlight project to access data directly as you can do with classic rich client application. I understand that by doing that, you store the access data within the connection string of the app, but I can't see why it shouldn't work with a silverlight client. So, two questions: 1. Do we actually _have_ to access data through web services? 2. If so, why is it different from the classic rich client approach? [1]: http://stackoverflow.com/questions/3591025/access-database-using-silverlight [2]: http://msdn.microsoft.com/en-us/library/ee707344%28VS.91%29.aspx
0
11,122,224
06/20/2012 14:51:33
1,469,426
06/20/2012 13:43:06
1
0
What happens to Azure Virtual Machine (not VM role) on host failure?
I'm exploring leveraging the new virtual machine (not VM role) capability in Azure. The candidate application will not work (w/o significant rewrork) in a VM server farm to support high availability. So my question is, what happens to the virtual machine on a host server failure? Does the virtual machine restart on a new host? Assuming that it does, what is a ballpark expectation for the restart to occur?
azure
virtual-machine
high-availability
null
null
06/21/2012 14:56:26
off topic
What happens to Azure Virtual Machine (not VM role) on host failure? === I'm exploring leveraging the new virtual machine (not VM role) capability in Azure. The candidate application will not work (w/o significant rewrork) in a VM server farm to support high availability. So my question is, what happens to the virtual machine on a host server failure? Does the virtual machine restart on a new host? Assuming that it does, what is a ballpark expectation for the restart to occur?
2
2,673,069
04/20/2010 06:36:29
234,322
12/18/2009 05:05:53
1,059
6
how to get the 'uri' from request object in django..
is there request.uri ??? thanks
django
uri
null
null
null
null
open
how to get the 'uri' from request object in django.. === is there request.uri ??? thanks
0
7,854,025
10/21/2011 18:58:41
984,352
10/07/2011 16:27:32
8
1
Drupal -- Node Reference, and Entity Reference are great -- I need "Menu Reference"
Is there a Menu reference so I can attach menus to nodes, and render them on the page? Thanks, John
menu
drupal-7
null
null
null
10/22/2011 17:18:54
too localized
Drupal -- Node Reference, and Entity Reference are great -- I need "Menu Reference" === Is there a Menu reference so I can attach menus to nodes, and render them on the page? Thanks, John
3
11,513,992
07/16/2012 23:19:50
1,522,241
07/12/2012 23:36:39
3
0
Imported image do not appear - PHP code
After we import images into import_image folder, they no loner appear on our website. This is how we retrieve them normally: <?=$site_url?>image.php?width=100&amp;height=75&amp;image=<?=$site_url?>import_images/<?php echo $picture_arr[0];?> Please help!
php
null
null
null
null
07/17/2012 07:07:19
not a real question
Imported image do not appear - PHP code === After we import images into import_image folder, they no loner appear on our website. This is how we retrieve them normally: <?=$site_url?>image.php?width=100&amp;height=75&amp;image=<?=$site_url?>import_images/<?php echo $picture_arr[0];?> Please help!
1
5,057,453
02/20/2011 14:00:38
97,767
04/29/2009 15:31:45
634
22
PHP self-hosted photo and video sharing apps?
I march with the first and best Mardi Gras parade of the season in New Orleans, [Krewe du Vieux][1]. [1]: http://en.wikipedia.org/wiki/Krewe_du_Vieux I want to help my Krewe out by hosting and setting up a members only photo-sharing and video sharing app. I can definitely write this if I have to but I am hoping someone has done that for me. Open source is preferred but licensed is ok too. Thanks for any help! JG
php
photo-gallery
video-gallery
null
null
null
open
PHP self-hosted photo and video sharing apps? === I march with the first and best Mardi Gras parade of the season in New Orleans, [Krewe du Vieux][1]. [1]: http://en.wikipedia.org/wiki/Krewe_du_Vieux I want to help my Krewe out by hosting and setting up a members only photo-sharing and video sharing app. I can definitely write this if I have to but I am hoping someone has done that for me. Open source is preferred but licensed is ok too. Thanks for any help! JG
0
8,557,210
12/19/2011 04:48:40
924,378
09/01/2011 22:57:28
94
0
Why are my app's colors changing?
If I take a screenshot of my phone on the computer, my app looks like the picture attached, but when I load it onto my phone, I get an ugly green tint to it. It's a Samsung Infuse which has amazing colors, but for some reason, it doesn't look like it with only my app. What's the problem? ![enter image description here][1] [1]: http://i.stack.imgur.com/U6CBT.png
android
colors
background-color
null
null
12/20/2011 01:26:18
not a real question
Why are my app's colors changing? === If I take a screenshot of my phone on the computer, my app looks like the picture attached, but when I load it onto my phone, I get an ugly green tint to it. It's a Samsung Infuse which has amazing colors, but for some reason, it doesn't look like it with only my app. What's the problem? ![enter image description here][1] [1]: http://i.stack.imgur.com/U6CBT.png
1
2,737,539
04/29/2010 13:12:31
238,134
12/24/2009 08:49:35
1,451
51
Python 3 online interpreter
Does anyone know about an online interpreter like http://codepad.org/ or http://try-python.mired.org/ with Python 3?
python
interpreter
online
null
null
03/12/2012 13:23:08
not constructive
Python 3 online interpreter === Does anyone know about an online interpreter like http://codepad.org/ or http://try-python.mired.org/ with Python 3?
4
2,037,527
01/10/2010 15:58:08
1,724
08/18/2008 10:56:42
160
4
How to get a delphi application (that's running) to do something at a particular time/date
My application sits in the system tray when it's not being used. The user can configure events to occur at particular schedule. For example they may way the task performed mon-fri at 5pm or every wednesday at 3pm or on the 16th of every month at 10am. Assuming my delphi program is always running, it starts at boot-up, what is the best way in delphi to support the triggering of these scheduled events. Obviously a TTimer can be used to schedule events based on elapsed time but they don't seem suited to this problem. Cheers
delphi
null
null
null
null
null
open
How to get a delphi application (that's running) to do something at a particular time/date === My application sits in the system tray when it's not being used. The user can configure events to occur at particular schedule. For example they may way the task performed mon-fri at 5pm or every wednesday at 3pm or on the 16th of every month at 10am. Assuming my delphi program is always running, it starts at boot-up, what is the best way in delphi to support the triggering of these scheduled events. Obviously a TTimer can be used to schedule events based on elapsed time but they don't seem suited to this problem. Cheers
0
9,040,106
01/27/2012 21:09:22
551,878
12/23/2010 00:44:44
157
2
Install ANT (and JAVA) on server
I am trying to install ANT (to build/compile Android apps) on a local Linux (Ubuntu) installation so that I can install it on a live server (work out the kinks first). The following is a set of commands I have run to get to where I am: > wget http://archive.apache.org/dist/ant/ant-current-src.zip > /dest/folder > > unzip ant-current-src.zip > > wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-x64.bin > /dest/folder > > ./jdk-6u25-linux-x64.bin > > (backup PATH :P ) > export JAVA_HOME=jdk1.6.0_25 export > PATH=$PATH:jdk1.6.0_25/bin > wget http://voxel.dl.sourceforge.net/project/junit/junit/4.10/junit-4.10.jar > > cp junit-4.10.jar junit.jar > > rm junit-4.10.jar > > export CLASSPATH=$CLASSPATH:$JUNIT_HOME With the following screenshot showing the output of the terminal: ![enter image description here][1] At this point I'm stumped... ## RESOURCES: ## http://ant.apache.org/manual/index.html -> Installing Apache Ant -> Building Ant [1]: http://i.stack.imgur.com/dN7V6.png
java
android
linux
ant
null
null
open
Install ANT (and JAVA) on server === I am trying to install ANT (to build/compile Android apps) on a local Linux (Ubuntu) installation so that I can install it on a live server (work out the kinks first). The following is a set of commands I have run to get to where I am: > wget http://archive.apache.org/dist/ant/ant-current-src.zip > /dest/folder > > unzip ant-current-src.zip > > wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-x64.bin > /dest/folder > > ./jdk-6u25-linux-x64.bin > > (backup PATH :P ) > export JAVA_HOME=jdk1.6.0_25 export > PATH=$PATH:jdk1.6.0_25/bin > wget http://voxel.dl.sourceforge.net/project/junit/junit/4.10/junit-4.10.jar > > cp junit-4.10.jar junit.jar > > rm junit-4.10.jar > > export CLASSPATH=$CLASSPATH:$JUNIT_HOME With the following screenshot showing the output of the terminal: ![enter image description here][1] At this point I'm stumped... ## RESOURCES: ## http://ant.apache.org/manual/index.html -> Installing Apache Ant -> Building Ant [1]: http://i.stack.imgur.com/dN7V6.png
0