PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,551,809 |
07/01/2011 18:25:43
| 825,301 |
07/01/2011 17:43:17
| 1 | 0 |
Matrix pattern generation.
|
I am working on java and I have to generate all the possible patterns of M-by-N matrices such that in the same row there should not be more than a single 1, Columns may contain more than a single 1, Taking an example of 3*3 matrix, matrices generated will look like:
1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0
1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 1 0 0
1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 ..
...and so on.
As I have already said that progrom should be flexible that can generate all such possible patterns for nay value of M and N.
Please help me..
Thanks!
|
java
| null | null | null | null |
07/02/2011 07:46:07
|
not a real question
|
Matrix pattern generation.
===
I am working on java and I have to generate all the possible patterns of M-by-N matrices such that in the same row there should not be more than a single 1, Columns may contain more than a single 1, Taking an example of 3*3 matrix, matrices generated will look like:
1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0
1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 1 0 0
1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 ..
...and so on.
As I have already said that progrom should be flexible that can generate all such possible patterns for nay value of M and N.
Please help me..
Thanks!
| 1 |
5,482,040 |
03/30/2011 04:59:37
| 665,604 |
03/18/2011 06:25:43
| 18 | 0 |
How to connect Samsung GT I5510 Android phone to PC's internet?
|
I am using Samsung Galaxy GT I5510 Android phone.And i am using Windows Xp as Desktop operating system.I need to connect the android phone [ *Does not have internet connection* ] to pc's internet [i.e *The PC has internet connection* ].Trying google does not give me good results.Please suggest me a solution.
|
iphone
|
android
|
mobile
|
windows-xp
|
internet
|
03/30/2011 11:27:49
|
off topic
|
How to connect Samsung GT I5510 Android phone to PC's internet?
===
I am using Samsung Galaxy GT I5510 Android phone.And i am using Windows Xp as Desktop operating system.I need to connect the android phone [ *Does not have internet connection* ] to pc's internet [i.e *The PC has internet connection* ].Trying google does not give me good results.Please suggest me a solution.
| 2 |
9,770,315 |
03/19/2012 12:36:51
| 1,153,917 |
01/17/2012 12:43:13
| 1 | 0 |
Using ANYDATA/SQL_VARIANT in FACT table
|
I am designing the schema for fact table, but I am little bit unsure about using the ANYDATA/SQL_VARIANT to store measures. My reason for using this type is to reuse the column for measures of multiple reports based on same CUBE.
What are the pitfalls/brawbacks of using ANYDATA/SQL_VARIANT in terms of performance, scalability, maintainability etc.?
|
database
|
data-warehouse
| null | null | null | null |
open
|
Using ANYDATA/SQL_VARIANT in FACT table
===
I am designing the schema for fact table, but I am little bit unsure about using the ANYDATA/SQL_VARIANT to store measures. My reason for using this type is to reuse the column for measures of multiple reports based on same CUBE.
What are the pitfalls/brawbacks of using ANYDATA/SQL_VARIANT in terms of performance, scalability, maintainability etc.?
| 0 |
6,154,354 |
05/27/2011 15:22:28
| 766,444 |
05/23/2011 17:49:45
| 11 | 0 |
jQuery Plugin - Modal Window
|
I've been trying some jQuery plugins to create modal windows, however, I feel they're all too complex and have way more options than I need for my project - so I figured out I should create my own plugin - mine ended up at 100 lines while most of the existing plugins are at 1000+ lines of code. My code:
[http://www.sourcepod.com/fmgnsf55-4914][1]
However, as a fresh jQuery coder I did encounter a couple issues with my plugin:
1st - if I have multiple anchors to toggle my modal windows all of them will display the content of the first anchor, I think this is because I haven't looped through all the elements with an 'each' loop. However, I couldn't figure out how to do that and still access $(this) aka the current object being clicked.
2nd - I also couldn't figure out how to implement the possibility to add fallbacks on certain events, I would like to control what happens onOpen, onClose and onLoaded - but I'm still unclear on how I would go about adding this ability.
Also, I'm sure - as the fresh jQuery coder I am - my code is far from optimal and probably don't cover all cross browser fixes. Any feedback is HIGHLY appreciated :)
[1]: http://www.sourcepod.com/fmgnsf55-4914
|
jquery
|
jquery-plugins
|
modal-dialog
| null | null |
08/15/2011 17:16:17
|
not a real question
|
jQuery Plugin - Modal Window
===
I've been trying some jQuery plugins to create modal windows, however, I feel they're all too complex and have way more options than I need for my project - so I figured out I should create my own plugin - mine ended up at 100 lines while most of the existing plugins are at 1000+ lines of code. My code:
[http://www.sourcepod.com/fmgnsf55-4914][1]
However, as a fresh jQuery coder I did encounter a couple issues with my plugin:
1st - if I have multiple anchors to toggle my modal windows all of them will display the content of the first anchor, I think this is because I haven't looped through all the elements with an 'each' loop. However, I couldn't figure out how to do that and still access $(this) aka the current object being clicked.
2nd - I also couldn't figure out how to implement the possibility to add fallbacks on certain events, I would like to control what happens onOpen, onClose and onLoaded - but I'm still unclear on how I would go about adding this ability.
Also, I'm sure - as the fresh jQuery coder I am - my code is far from optimal and probably don't cover all cross browser fixes. Any feedback is HIGHLY appreciated :)
[1]: http://www.sourcepod.com/fmgnsf55-4914
| 1 |
9,148,616 |
02/05/2012 10:49:21
| 249,688 |
01/13/2010 10:00:32
| 135 | 0 |
javascript or jquery to add input fields
|
I have a form with 6 input fields that collects departmental sales data ready for adding to SQL2008 database.
I am looking for a script that will total all the fields as they are entered so that the grand total can be checked before the data is submitted.
|
javascript
|
jquery
| null | null | null |
02/05/2012 18:32:55
|
not a real question
|
javascript or jquery to add input fields
===
I have a form with 6 input fields that collects departmental sales data ready for adding to SQL2008 database.
I am looking for a script that will total all the fields as they are entered so that the grand total can be checked before the data is submitted.
| 1 |
4,758,354 |
01/21/2011 11:39:41
| 580,389 |
01/18/2011 18:41:58
| 6 | 0 |
can i use foreach inside an another foreach?
|
can i use foreach inside an another foreach? is it fair?
|
php
| null | null | null | null |
01/21/2011 11:47:07
|
not a real question
|
can i use foreach inside an another foreach?
===
can i use foreach inside an another foreach? is it fair?
| 1 |
7,712,256 |
10/10/2011 11:45:20
| 451,541 |
09/18/2010 18:18:55
| 789 | 33 |
PHP socket_read() only gets the first byte of the stream
|
I'm getting a very weird behavior when using socket_read() in linux.
I'm using socket_read with a 2048 buffer limit.
While on my windows system it gets the whole response, on my Linux server it just gets the first byte of the response.
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (!socket_connect($sock, 'my-server.dyndns.org', 8888)) {
die('no connect');
}
$req = 'request';
socket_write($sock, $req);
if (false !== ($buf = socket_read($sock, 2048)) {
echo $buf; // This only contains the first byte of the response.
}
socket_close($sock);
If I call socket_read() again it gets the rest of the string:
// This works:
while((false !== ($buf = socket_read($sock, 2048)))) {
echo "Read ".strlen($buf)." bytes from socket_read().\n";
if ($buf == "") break;
$b .= $buf;
sleep(1);
}
/* Output:
*
* Read 1 bytes from socket_read().
* Read 307 bytes from socket_read().
* Read 0 bytes from socket_read().
* Done.
*/
If I wait for 2 seconds before calling socket_read(), I also get a valid response:
// This also works:
sleep(2);
if (false !== ($buf = socket_read($sock, 2048)) {
echo $buf; // all 308 bytes are read correctly.
}
Shouldn't socket_read() wait for the buffer to get full, or for the end of string?
What am I doing wrong?
|
php
|
linux
|
sockets
| null | null | null |
open
|
PHP socket_read() only gets the first byte of the stream
===
I'm getting a very weird behavior when using socket_read() in linux.
I'm using socket_read with a 2048 buffer limit.
While on my windows system it gets the whole response, on my Linux server it just gets the first byte of the response.
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (!socket_connect($sock, 'my-server.dyndns.org', 8888)) {
die('no connect');
}
$req = 'request';
socket_write($sock, $req);
if (false !== ($buf = socket_read($sock, 2048)) {
echo $buf; // This only contains the first byte of the response.
}
socket_close($sock);
If I call socket_read() again it gets the rest of the string:
// This works:
while((false !== ($buf = socket_read($sock, 2048)))) {
echo "Read ".strlen($buf)." bytes from socket_read().\n";
if ($buf == "") break;
$b .= $buf;
sleep(1);
}
/* Output:
*
* Read 1 bytes from socket_read().
* Read 307 bytes from socket_read().
* Read 0 bytes from socket_read().
* Done.
*/
If I wait for 2 seconds before calling socket_read(), I also get a valid response:
// This also works:
sleep(2);
if (false !== ($buf = socket_read($sock, 2048)) {
echo $buf; // all 308 bytes are read correctly.
}
Shouldn't socket_read() wait for the buffer to get full, or for the end of string?
What am I doing wrong?
| 0 |
10,279,786 |
04/23/2012 11:38:21
| 1,351,205 |
04/23/2012 11:33:13
| 1 | 0 |
DataMatrix barcode reader in java
|
I am looking for jar which will read Datamatrix barcode from Pdf using Java Code? Can anyone help me out in this.
Thank You.
|
java
| null | null | null | null |
04/25/2012 11:26:42
|
not constructive
|
DataMatrix barcode reader in java
===
I am looking for jar which will read Datamatrix barcode from Pdf using Java Code? Can anyone help me out in this.
Thank You.
| 4 |
9,538,256 |
03/02/2012 18:09:51
| 891,092 |
08/12/2011 03:44:56
| 1 | 0 |
Can I distribute my software (without source code) which uses a couple of components under GPLv3 and LGPL 2.1?
|
Lets say I have developed a desktop application which is making use of two components, a TextField and Editor - the TextField under LGPL 2.1 and the Editor under GPLv3. No modifications were done in the libraries themselves - simply linking binaries and using them. Under such circumstances am I free to distribute my application in the web without disclosing the source code of my application? If I have to disclose, which portion do I need to? I want the users to freely download and use the application but protect the source code of my application. Is this possible(if yes, under which license)??
My recent research tells me this should not be a problem as stated here:
http://stackoverflow.com/questions/1394623/can-i-dynamically-call-a-lgpl-gpl-software-in-my-closed-source-application
With all the legal twists it gets all confusing. The legal documents are lengthy and the more one reads the deeper one goes :P
Please hit back and let me know how we could stay on the safe side.
Thanks!
|
licensing
|
lgpl
|
gplv3
| null | null | null |
open
|
Can I distribute my software (without source code) which uses a couple of components under GPLv3 and LGPL 2.1?
===
Lets say I have developed a desktop application which is making use of two components, a TextField and Editor - the TextField under LGPL 2.1 and the Editor under GPLv3. No modifications were done in the libraries themselves - simply linking binaries and using them. Under such circumstances am I free to distribute my application in the web without disclosing the source code of my application? If I have to disclose, which portion do I need to? I want the users to freely download and use the application but protect the source code of my application. Is this possible(if yes, under which license)??
My recent research tells me this should not be a problem as stated here:
http://stackoverflow.com/questions/1394623/can-i-dynamically-call-a-lgpl-gpl-software-in-my-closed-source-application
With all the legal twists it gets all confusing. The legal documents are lengthy and the more one reads the deeper one goes :P
Please hit back and let me know how we could stay on the safe side.
Thanks!
| 0 |
10,110,223 |
04/11/2012 16:39:00
| 815,708 |
06/25/2011 21:55:19
| 136 | 2 |
there's got to be a way to make this PHP faster
|
I'm working on a little mobile app version of www.sciencedaily.com. Just a little side project.
I'm using RSS_PHP to grab the XML feeds, and the code I have (which works great) looks like this before the DOCTYPE:
require_once '_/rss_php.php';
$featuredRSS = new rss_php;
$healthMedRSS = new rss_php;
$mindBrainRSS = new rss_php;
$plantsAnimalsRSS = new rss_php;
$earthClimateRSS = new rss_php;
$spaceTimeRSS = new rss_php;
$matterEnergyRSS = new rss_php;
$compMathRSS = new rss_php;
$archaeoRSS = new rss_php;
$featuredRSS->load('http://www.sciencedaily.com/rss/top_news/top_science.xml');
$healthMedRSS->load('http://www.sciencedaily.com/rss/health_medicine.xml');
$mindBrainRSS->load('http://www.sciencedaily.com/rss/mind_brain.xml');
$plantsAnimalsRSS->load('http://www.sciencedaily.com/rss/plants_animals.xml');
$earthClimateRSS->load('http://www.sciencedaily.com/rss/earth_climate.xml');
$spaceTimeRSS->load('http://www.sciencedaily.com/rss/space_time.xml');
$matterEnergyRSS->load('http://www.sciencedaily.com/rss/matter_energy.xml');
$compMathRSS->load('http://www.sciencedaily.com/rss/computers_math.xml');
$archaeoRSS->load('http://www.sciencedaily.com/rss/fossils_ruins.xml');
$featuredItems = $featuredRSS->getItems();
$healthMedItems = $healthMedRSS->getItems();
$mindBrainItems = $mindBrainRSS->getItems();
$plantsAnimalsItems = $plantsAnimalsRSS->getItems();
$earthClimateItems = $earthClimateRSS->getItems();
$spaceTimeItems = $spaceTimeRSS->getItems();
$matterEnergyItems = $matterEnergyRSS->getItems();
$compMathItems = $compMathRSS->getItems();
$archaeoItems = $archaeoRSS->getItems();
Then, in the content, I'm echoing out results by using classic stuff like
foreach($items as $item) {
echo $item['title'];
}
etc...
Like I said, everything works really well. But it's *slow* as hell. I know there's going to be a limit to the speed of the app, as it has to grab the feeds, but there's no caching ability with RSS_PHP like there is with SimplePie.
Any ideas on improving the speed? Maybe loading the Featured stuff first then everything else?
Thanks in advance!!
|
php
|
html
|
performance
|
mobile
|
rss
|
04/12/2012 02:57:37
|
not a real question
|
there's got to be a way to make this PHP faster
===
I'm working on a little mobile app version of www.sciencedaily.com. Just a little side project.
I'm using RSS_PHP to grab the XML feeds, and the code I have (which works great) looks like this before the DOCTYPE:
require_once '_/rss_php.php';
$featuredRSS = new rss_php;
$healthMedRSS = new rss_php;
$mindBrainRSS = new rss_php;
$plantsAnimalsRSS = new rss_php;
$earthClimateRSS = new rss_php;
$spaceTimeRSS = new rss_php;
$matterEnergyRSS = new rss_php;
$compMathRSS = new rss_php;
$archaeoRSS = new rss_php;
$featuredRSS->load('http://www.sciencedaily.com/rss/top_news/top_science.xml');
$healthMedRSS->load('http://www.sciencedaily.com/rss/health_medicine.xml');
$mindBrainRSS->load('http://www.sciencedaily.com/rss/mind_brain.xml');
$plantsAnimalsRSS->load('http://www.sciencedaily.com/rss/plants_animals.xml');
$earthClimateRSS->load('http://www.sciencedaily.com/rss/earth_climate.xml');
$spaceTimeRSS->load('http://www.sciencedaily.com/rss/space_time.xml');
$matterEnergyRSS->load('http://www.sciencedaily.com/rss/matter_energy.xml');
$compMathRSS->load('http://www.sciencedaily.com/rss/computers_math.xml');
$archaeoRSS->load('http://www.sciencedaily.com/rss/fossils_ruins.xml');
$featuredItems = $featuredRSS->getItems();
$healthMedItems = $healthMedRSS->getItems();
$mindBrainItems = $mindBrainRSS->getItems();
$plantsAnimalsItems = $plantsAnimalsRSS->getItems();
$earthClimateItems = $earthClimateRSS->getItems();
$spaceTimeItems = $spaceTimeRSS->getItems();
$matterEnergyItems = $matterEnergyRSS->getItems();
$compMathItems = $compMathRSS->getItems();
$archaeoItems = $archaeoRSS->getItems();
Then, in the content, I'm echoing out results by using classic stuff like
foreach($items as $item) {
echo $item['title'];
}
etc...
Like I said, everything works really well. But it's *slow* as hell. I know there's going to be a limit to the speed of the app, as it has to grab the feeds, but there's no caching ability with RSS_PHP like there is with SimplePie.
Any ideas on improving the speed? Maybe loading the Featured stuff first then everything else?
Thanks in advance!!
| 1 |
5,668,145 |
04/14/2011 18:51:35
| 697,684 |
09/25/2010 01:27:01
| 709 | 1 |
code sanitization question.
|
I was wondering is it safe not to sanitize the admin submitted data but all other users submitted data should be sanitized?
|
sanitization
| null | null | null | null | null |
open
|
code sanitization question.
===
I was wondering is it safe not to sanitize the admin submitted data but all other users submitted data should be sanitized?
| 0 |
1,809,906 |
11/27/2009 17:37:28
| 11,236 |
09/16/2008 06:29:28
| 3,231 | 70 |
Choosing an email sending service
|
I'm going to send a lot of (legitimate, not spam) emails, and would like to use an external service provider for this purpose (help track bounce rate, "marked as spam" emails, etc...).
We really need a reliable solution, that would have:
- Very low percentage of lost emails
- No mysterious delays from time of sending to the time the mail is received
- Good bulk API and a high throughput
- Good cost/email is also a factor, though I'd prefer a quality solution over a cheap one.
Which service would you use? What are the benefits of yours chosen solution?
|
email
| null | null | null | null | null |
open
|
Choosing an email sending service
===
I'm going to send a lot of (legitimate, not spam) emails, and would like to use an external service provider for this purpose (help track bounce rate, "marked as spam" emails, etc...).
We really need a reliable solution, that would have:
- Very low percentage of lost emails
- No mysterious delays from time of sending to the time the mail is received
- Good bulk API and a high throughput
- Good cost/email is also a factor, though I'd prefer a quality solution over a cheap one.
Which service would you use? What are the benefits of yours chosen solution?
| 0 |
7,280,049 |
09/02/2011 06:45:45
| 924,761 |
09/02/2011 06:45:45
| 1 | 0 |
Best way to find the Coordinates of a Point on a Line-Segment a specified Distance Away from another Point
|
Image of the problem at:
<http://img38.imageshack.us/img38/8219/graphcd.png>
In my code I have 4 points: Q,R,S,T.
I know the following
Coordinates for R,T, and S
That segment RT < RQ < RS
I need to figure out the coordinates of Q
I already know point Q can be found on the line segment TS. However I need to get the coordinates for Q and I need it to be a relatively efficient calculation.
I have several solutions for this problem but they are all so convoluted and long I know I must be doing something wrong. I feel certain there must a simple elegant way to solve this. The best solution would be one that minimizes the number of more intensive calculations but that also isn't ridiculously long.
|
math
|
optimization
|
language-agnostic
|
computational-geometry
| null |
09/02/2011 15:19:04
|
off topic
|
Best way to find the Coordinates of a Point on a Line-Segment a specified Distance Away from another Point
===
Image of the problem at:
<http://img38.imageshack.us/img38/8219/graphcd.png>
In my code I have 4 points: Q,R,S,T.
I know the following
Coordinates for R,T, and S
That segment RT < RQ < RS
I need to figure out the coordinates of Q
I already know point Q can be found on the line segment TS. However I need to get the coordinates for Q and I need it to be a relatively efficient calculation.
I have several solutions for this problem but they are all so convoluted and long I know I must be doing something wrong. I feel certain there must a simple elegant way to solve this. The best solution would be one that minimizes the number of more intensive calculations but that also isn't ridiculously long.
| 2 |
10,077,764 |
04/09/2012 18:19:15
| 1,224,128 |
02/21/2012 18:52:43
| 6 | 0 |
Conditional positioning of elements
|
I've got a javascript image slider, and when each navigation element is selected to move the slider, a pointer image is re positioned underneath it. I'm changing the pointer positioning onclick. However, now I need to make the slider automatic, and thus need to change the pointer with the carousel. My thoughts are using a conditional statement - when image 1 is at x position, move pointer to y position. Would something like this work? And how would I piece it together?
|
javascript
|
carousel
|
conditional-statements
| null | null |
04/09/2012 19:29:11
|
not a real question
|
Conditional positioning of elements
===
I've got a javascript image slider, and when each navigation element is selected to move the slider, a pointer image is re positioned underneath it. I'm changing the pointer positioning onclick. However, now I need to make the slider automatic, and thus need to change the pointer with the carousel. My thoughts are using a conditional statement - when image 1 is at x position, move pointer to y position. Would something like this work? And how would I piece it together?
| 1 |
3,624,307 |
09/02/2010 06:31:58
| 135,862 |
07/09/2009 19:17:38
| 16 | 1 |
Maximized Window Restores to Full Screen
|
Using `CWnd::ShowWindow(SW_SHOWMAXIMIZED)` maximizes my app window as expected.
However, when clicking the restore button on the app (or double clicking the title-bar), the restored size is the same size as the maximized window, which is confusing for the user.
Using this alternative code has the same problem:
WINDOWPLACEMENT wndpl;
GetWindowPlacement(&wndpl);
wndpl.showCmd = SW_SHOWMAXIMIZED;
SetWindowPlacement(&wndpl);
How can I keep the default un-maximized size when restoring.
|
mfc
|
maximize
|
cwnd
|
maximize-window
|
showwindow
| null |
open
|
Maximized Window Restores to Full Screen
===
Using `CWnd::ShowWindow(SW_SHOWMAXIMIZED)` maximizes my app window as expected.
However, when clicking the restore button on the app (or double clicking the title-bar), the restored size is the same size as the maximized window, which is confusing for the user.
Using this alternative code has the same problem:
WINDOWPLACEMENT wndpl;
GetWindowPlacement(&wndpl);
wndpl.showCmd = SW_SHOWMAXIMIZED;
SetWindowPlacement(&wndpl);
How can I keep the default un-maximized size when restoring.
| 0 |
10,146,974 |
04/13/2012 19:17:07
| 1,286,528 |
03/22/2012 17:03:09
| 48 | 0 |
Bash - extract info from table according to specific characteristics
|
My data table looks like that:
chr4 124097568 124098568 337
chr4 159597106 159598106 1000
chr4 159597106 159598106 1000
chr4 164361532 164362532 455
chr4 164361532 164362532 74
chr4 164361532 164362532 2
chr4 170360150 170361150 0
I want to: Extract unique rows - if data in col#2 & col#3 is the same -> just the highest value (col#4) row should be extracted. If #2,#3 & #4 are identical just one of the rows should be extracted.
Preferred output is:
chr4 124097568 124098568 337
chr4 159597106 159598106 1000
chr4 164361532 164362532 455
chr4 170360150 170361150 0
If something is not clear I'll try to explain it more (cause I really need to solve this problem now).
|
bash
|
table
| null | null | null | null |
open
|
Bash - extract info from table according to specific characteristics
===
My data table looks like that:
chr4 124097568 124098568 337
chr4 159597106 159598106 1000
chr4 159597106 159598106 1000
chr4 164361532 164362532 455
chr4 164361532 164362532 74
chr4 164361532 164362532 2
chr4 170360150 170361150 0
I want to: Extract unique rows - if data in col#2 & col#3 is the same -> just the highest value (col#4) row should be extracted. If #2,#3 & #4 are identical just one of the rows should be extracted.
Preferred output is:
chr4 124097568 124098568 337
chr4 159597106 159598106 1000
chr4 164361532 164362532 455
chr4 170360150 170361150 0
If something is not clear I'll try to explain it more (cause I really need to solve this problem now).
| 0 |
910,836 |
05/26/2009 13:58:45
| 40,070 |
11/23/2008 13:15:45
| 166 | 3 |
How some developers move from one platform to another?
|
I have noticed some developers picking up new skills and moving from one platform to the other? How do they do it? How do they justify for the lack of experience in the said platform they get the job?
Is it based on relevance to their previous experience? do they get certified in the target platform and work at a junior level accepting a pay cut? is it simpler if you are into contracting/consulting? Or is it simply a matter of projecting the resume correctly?
|
jobs
|
platform
| null | null | null |
05/01/2012 15:17:23
|
not constructive
|
How some developers move from one platform to another?
===
I have noticed some developers picking up new skills and moving from one platform to the other? How do they do it? How do they justify for the lack of experience in the said platform they get the job?
Is it based on relevance to their previous experience? do they get certified in the target platform and work at a junior level accepting a pay cut? is it simpler if you are into contracting/consulting? Or is it simply a matter of projecting the resume correctly?
| 4 |
1,207,043 |
07/30/2009 14:38:24
| 67,015 |
02/16/2009 15:58:55
| 145 | 9 |
multi plattform languages on the rise (desktop)?
|
I am currently working in a .Net project but from university I have also a good background in Java. Recently I am thinking **if multi plattform languages (like Java, or VM based like Scala) arent on the rise, also for the desktop area?**
Lets have a look at Suns WORA *write once, run anywhere* principle, which had been rephrased to *write once, TEST everywhere* because in the past especially desktop applications were/are still a Windows domain. But the last years there were quite some changes like
- Linux has improved hugely in driver support and usabilty
- Mac OS is getting even more popular
- native look & feel thanks to SWT/JFace for Java
- Rich Client Frameworks (RCP and Netbeans) that save a lot of time and provide rich experience
So, creating applications targeted on multi plattforms should be a reasonable way to go. For example, why should a small/mid-sized company pay a lot of money for windows/mac when it can use Linux (honestly, when you are not a gamer you dont need windows ;) ). And of couse then those companies would prefer software that runs on their machines (maybe the CEO a has MAC because he can afford it but needs the same apps.) Eclipse RCP can provide for example and then it really is WORA.
I like working on C# right now, but in 1-2 years when I want to have my own little company I will use Linux and the development will probably focus on what I've just written. **I just wanted to know what others are thinking (maybe I change my mind).**
Please dont start a war on Linux vs. Windows vs Mac (I use the first two). Its only about if multi-plattform is a good way for the future, or if you gain more by the advantages of a single plattform (special features).
|
untagged
| null | null | null | null |
07/30/2009 19:53:56
|
not constructive
|
multi plattform languages on the rise (desktop)?
===
I am currently working in a .Net project but from university I have also a good background in Java. Recently I am thinking **if multi plattform languages (like Java, or VM based like Scala) arent on the rise, also for the desktop area?**
Lets have a look at Suns WORA *write once, run anywhere* principle, which had been rephrased to *write once, TEST everywhere* because in the past especially desktop applications were/are still a Windows domain. But the last years there were quite some changes like
- Linux has improved hugely in driver support and usabilty
- Mac OS is getting even more popular
- native look & feel thanks to SWT/JFace for Java
- Rich Client Frameworks (RCP and Netbeans) that save a lot of time and provide rich experience
So, creating applications targeted on multi plattforms should be a reasonable way to go. For example, why should a small/mid-sized company pay a lot of money for windows/mac when it can use Linux (honestly, when you are not a gamer you dont need windows ;) ). And of couse then those companies would prefer software that runs on their machines (maybe the CEO a has MAC because he can afford it but needs the same apps.) Eclipse RCP can provide for example and then it really is WORA.
I like working on C# right now, but in 1-2 years when I want to have my own little company I will use Linux and the development will probably focus on what I've just written. **I just wanted to know what others are thinking (maybe I change my mind).**
Please dont start a war on Linux vs. Windows vs Mac (I use the first two). Its only about if multi-plattform is a good way for the future, or if you gain more by the advantages of a single plattform (special features).
| 4 |
6,705,788 |
07/15/2011 10:40:56
| 365,899 |
06/13/2010 22:29:31
| 32 | 0 |
SQL Server to CSV to Wordpress - is it possible?
|
I have a custom made CMS system with a relatively small number (~1000) of articles inside my SQL Server database.
I want to migrate the whole site to Wordpress. Is it possible and if so, then how, to migrate the data (one table - Article) from SQL Server to a CSV file and then import it into Wordpress?
Thanks!
|
asp.net
|
sql-server
|
wordpress
|
csv
| null | null |
open
|
SQL Server to CSV to Wordpress - is it possible?
===
I have a custom made CMS system with a relatively small number (~1000) of articles inside my SQL Server database.
I want to migrate the whole site to Wordpress. Is it possible and if so, then how, to migrate the data (one table - Article) from SQL Server to a CSV file and then import it into Wordpress?
Thanks!
| 0 |
8,723,666 |
01/04/2012 07:55:23
| 1,129,424 |
01/04/2012 07:44:47
| 1 | 0 |
Old Application fan page migration to a new
|
Someone know where can i contact facebook to migrate my old facebook fan page to a new one with all my user.
Because i think i m outside the processus.
I have creted a new page with the same name as my app and add to catégorie "the Product/App"
But when i m on my canvas page and i click on "become fan" buton i don t go to my fan page.
And when i m on my new fan when i click on "Go app" there is no problem i go to my app.
Please someone can help me quickly because i need to do this migration successfully before 1 february.
|
facebook
|
migration
|
page
|
facebook-like
|
fan
|
01/24/2012 18:42:44
|
off topic
|
Old Application fan page migration to a new
===
Someone know where can i contact facebook to migrate my old facebook fan page to a new one with all my user.
Because i think i m outside the processus.
I have creted a new page with the same name as my app and add to catégorie "the Product/App"
But when i m on my canvas page and i click on "become fan" buton i don t go to my fan page.
And when i m on my new fan when i click on "Go app" there is no problem i go to my app.
Please someone can help me quickly because i need to do this migration successfully before 1 february.
| 2 |
11,615,255 |
07/23/2012 15:06:54
| 922,343 |
08/31/2011 19:46:09
| 68 | 1 |
Building a Minimal RHEL Live Blu-Ray
|
**Here's what I want to do:**
I have hard drive dump files that I want to burn onto a bootable live Linux disc. The disc would boot to a command line and run a script to copy the dump down to a hard drive in the machine. I don't need a desktop environment. I don't need a lot of unnecisary utilities. Pretty much all my "restore" script will need is utilities for mounting, partitioning the hard drive, copying files, and seting up netork interfaces... all pretty basic stuff.
**So here's a summary of what I need**
- I want a live bootable disc.
- It needs to be a Blu-Ray disc (the dump files are very large and won't fit on a DVD. But if someone has a tutorial that includes everything but this one element, I'm sure I can figure out the rest)
- I want just a command line and basic utilities
- It needs to be RHEL (exact version isn't as important, but 5.4 is what I'm shooting for)
- I'm looking for a *procedure*, not a ready-made product. I need to be able to reproduce this often with different dump files.
**My Problems:**
A lot of the information I've found online so far has had pretty much one of three problems:
1. *Uses some other distro.* By itself, this is not a big problem, as most things are transferrable, but usually it's this plus one of the two below
2. *Uses 3rd party tools.* I really can't use any non-standard 3rd party tools. Anything I'd have to go out and download would force me to go through a lot of red tape and it's not really something I want to do. I'm looking for a procedure that just uses built-in stuff.
2. *Not minimal.* There are a lot of tutorials out there for a full "Desktop" live OS, which is not what I need. I just need a command line and basic functionality, and I'm not experienced enough to strip out the stuff I don't need. It's much easier to start with a base, find out I'm missing a package I need, add it to the installation, and re-burn the CD.
I have found one path that looks promising... It involves using something called [livecd-creator][1] which as far as I can tell, looks like somthing that I can use without any hassle. It seems to do what I'd need, but relys on kickstart configuration files, which aren't something I'm too familliar with. If someone out there can whip up a kickstart configuration file that does what I'm looking for, I'm sure I can figure out how to use livecd-creator. Maybe that's a start?
So, as I've said, I've done a lot of searching so far and haven't found exactly what I'm looking for. I'm hoping someone out there can either (a) Point me to an existing tutorial and note what I need to do to account for differences, or (b) create something new for me. If anyone can, I'd greatly appreciatiate it. And like I said above, I'm sure I can figure out the Blu-Ray aspect of it, if someone has a tutorial that covers everything else that I'm looking for.
Hopefully I've been specific enough to avoid any wild goose chases. I see a lot of the same links posted in response to quesitons like mine. I'm hoping if I'm specific about exactly what I'm looking for, I'll get more specific responses. Fingers crossed.
Thanks in advance everybody...
[1]: http://linux.die.net/man/8/livecd-creator
|
linux
|
live
|
redhat
|
rhel
|
bootable
|
07/25/2012 00:28:15
|
off topic
|
Building a Minimal RHEL Live Blu-Ray
===
**Here's what I want to do:**
I have hard drive dump files that I want to burn onto a bootable live Linux disc. The disc would boot to a command line and run a script to copy the dump down to a hard drive in the machine. I don't need a desktop environment. I don't need a lot of unnecisary utilities. Pretty much all my "restore" script will need is utilities for mounting, partitioning the hard drive, copying files, and seting up netork interfaces... all pretty basic stuff.
**So here's a summary of what I need**
- I want a live bootable disc.
- It needs to be a Blu-Ray disc (the dump files are very large and won't fit on a DVD. But if someone has a tutorial that includes everything but this one element, I'm sure I can figure out the rest)
- I want just a command line and basic utilities
- It needs to be RHEL (exact version isn't as important, but 5.4 is what I'm shooting for)
- I'm looking for a *procedure*, not a ready-made product. I need to be able to reproduce this often with different dump files.
**My Problems:**
A lot of the information I've found online so far has had pretty much one of three problems:
1. *Uses some other distro.* By itself, this is not a big problem, as most things are transferrable, but usually it's this plus one of the two below
2. *Uses 3rd party tools.* I really can't use any non-standard 3rd party tools. Anything I'd have to go out and download would force me to go through a lot of red tape and it's not really something I want to do. I'm looking for a procedure that just uses built-in stuff.
2. *Not minimal.* There are a lot of tutorials out there for a full "Desktop" live OS, which is not what I need. I just need a command line and basic functionality, and I'm not experienced enough to strip out the stuff I don't need. It's much easier to start with a base, find out I'm missing a package I need, add it to the installation, and re-burn the CD.
I have found one path that looks promising... It involves using something called [livecd-creator][1] which as far as I can tell, looks like somthing that I can use without any hassle. It seems to do what I'd need, but relys on kickstart configuration files, which aren't something I'm too familliar with. If someone out there can whip up a kickstart configuration file that does what I'm looking for, I'm sure I can figure out how to use livecd-creator. Maybe that's a start?
So, as I've said, I've done a lot of searching so far and haven't found exactly what I'm looking for. I'm hoping someone out there can either (a) Point me to an existing tutorial and note what I need to do to account for differences, or (b) create something new for me. If anyone can, I'd greatly appreciatiate it. And like I said above, I'm sure I can figure out the Blu-Ray aspect of it, if someone has a tutorial that covers everything else that I'm looking for.
Hopefully I've been specific enough to avoid any wild goose chases. I see a lot of the same links posted in response to quesitons like mine. I'm hoping if I'm specific about exactly what I'm looking for, I'll get more specific responses. Fingers crossed.
Thanks in advance everybody...
[1]: http://linux.die.net/man/8/livecd-creator
| 2 |
2,949,422 |
06/01/2010 11:45:01
| 190,301 |
10/15/2009 02:08:02
| 148 | 36 |
What Kind of Knowledge is Necessary For a Permon Who Does Not Have IT Background?
|
One of my colleagues joined our company, which by the way is a internet company, months ago as an on-line marketing specialist. He majored English in his college and has never deeply touched IT before.
<p>He says that to be a good on-line marketing specialist he needs to lean some basic IT skills in order to deliver superb work. <p>According to him, things like Search Engine Optimization, monitoring competitors' web sites, design some functionality on web site and so on require IT entree-level knowledge. And he asks me what kind knowledge is helpful for him to do his job.
<p>I am stunted by his question. It is easy enough to answer, things like HTML, CSS, even Photo-shop are required in some job descriptions. Also, I believe some basic understanding of dynamic web site, static web site is helpful to him.
<p>On the other hand, as a techie I still feel my answer is awkward.
<p>What is your opinion on this?
<p>Always lot of thanks to you guys on SO.
|
html
|
seo
|
marketing
| null | null |
06/01/2010 12:05:09
|
off topic
|
What Kind of Knowledge is Necessary For a Permon Who Does Not Have IT Background?
===
One of my colleagues joined our company, which by the way is a internet company, months ago as an on-line marketing specialist. He majored English in his college and has never deeply touched IT before.
<p>He says that to be a good on-line marketing specialist he needs to lean some basic IT skills in order to deliver superb work. <p>According to him, things like Search Engine Optimization, monitoring competitors' web sites, design some functionality on web site and so on require IT entree-level knowledge. And he asks me what kind knowledge is helpful for him to do his job.
<p>I am stunted by his question. It is easy enough to answer, things like HTML, CSS, even Photo-shop are required in some job descriptions. Also, I believe some basic understanding of dynamic web site, static web site is helpful to him.
<p>On the other hand, as a techie I still feel my answer is awkward.
<p>What is your opinion on this?
<p>Always lot of thanks to you guys on SO.
| 2 |
11,652,519 |
07/25/2012 14:51:49
| 1,285,948 |
03/22/2012 12:52:55
| 111 | 7 |
generate xml using xercerc
|
i am attempting to generate xml similar to the below using xerces, however i can not find a suitable example to follow, can anyone with experience in this area please advise. Thanks in advance!
<ad xsi:noNamespaceSchemaLocation="smaato_ad_v0.9.xsd" modelVersion="0.9">
<richmediaAd>
<content>
<script>yadda...yadda... richmedia content ...yadda</script>
</content>
<width>728</width>
<height>90</height>
<beacons>
<beacon>http://mysite.com/beacons/mybeacon1</beacon>
<beacon>http://mysite.com/beacons/mybeacon2</beacon>
</beacons></richmediaAd>
</ad>
|
c++
|
xerces
|
xerces-c
| null | null |
07/26/2012 18:43:11
|
not a real question
|
generate xml using xercerc
===
i am attempting to generate xml similar to the below using xerces, however i can not find a suitable example to follow, can anyone with experience in this area please advise. Thanks in advance!
<ad xsi:noNamespaceSchemaLocation="smaato_ad_v0.9.xsd" modelVersion="0.9">
<richmediaAd>
<content>
<script>yadda...yadda... richmedia content ...yadda</script>
</content>
<width>728</width>
<height>90</height>
<beacons>
<beacon>http://mysite.com/beacons/mybeacon1</beacon>
<beacon>http://mysite.com/beacons/mybeacon2</beacon>
</beacons></richmediaAd>
</ad>
| 1 |
8,102,841 |
11/12/2011 05:53:53
| 1,042,846 |
11/12/2011 05:44:25
| 1 | 0 |
is it possible to open a report from c# program in edit/run mode
|
I wanna show my reports in reportviewer control in visual studio and open them in edit/run mode in report builder by clicking a button
I dont know how to open report builder from my program
I have a report server
thanks any help
|
c#
|
report
|
builder
| null | null | null |
open
|
is it possible to open a report from c# program in edit/run mode
===
I wanna show my reports in reportviewer control in visual studio and open them in edit/run mode in report builder by clicking a button
I dont know how to open report builder from my program
I have a report server
thanks any help
| 0 |
8,734,623 |
01/04/2012 21:55:36
| 1,130,849 |
01/04/2012 21:26:27
| 1 | 0 |
Trying to use java.util.logging with Eclipse Console through custom Handler results in ClassNotFoundException
|
I'm using some third party library that makes heavy use of java.util.Logging. Now i want to output the Logging stuff to a new eclipse console view.
Therefore i wrote my own logging-handler that directly hooks up to an eclipse console:
public class EclipseConsoleHandler extends StreamHandler
{
public EclipseConsoleHandler()
{
super(findConsole("Server Console").newOutputStream(), new SmartFormatter());
}
private static final MessageConsole findConsole(String name)
{
ConsolePlugin plugin = ConsolePlugin.getDefault();
IConsoleManager conMan = plugin.getConsoleManager();
IConsole[] existing = conMan.getConsoles();
for (int i = 0; i < existing.length; i++)
if (name.equals(existing[i].getName()))
return (MessageConsole)existing [i];
// no console found, so create a new one
MessageConsole console = new MessageConsole(name, null);
conMan.addConsoles(new IConsole[] { console });
return console;
}
}
Now comes the tricky part. We need to configure the java.util.logging framework to use the above handler. In my eclipse plugin-activator i did the following:
String logConfig = "handlers = de.d3fact.server.ui.log.EclipseConsoleHandler";
LogManager.getLogManager().readConfiguration(new ByteArrayInputStream(logConfig.getBytes()));
Logger.getLogger().severe("Test");
And this didn't work. During the last call where i try to log the String "Test" the java.util.logging framework tries to load the EclipseConsoleHandler through an URLClassLoader. This doesn't work. And results in a ClassNotFoundException.
My assumption is now, that i have to write my own URLClassLoader and hook it up to the Eclipse PluginClassLoader. Is that correct? I couldn't find anything or anyone on the web that/how did this before, though i think it is relative obvious to bring both frameworks together.
Would be nice if anyone could point me into the right direction...
|
eclipse
|
console
|
java.util.logging
| null | null | null |
open
|
Trying to use java.util.logging with Eclipse Console through custom Handler results in ClassNotFoundException
===
I'm using some third party library that makes heavy use of java.util.Logging. Now i want to output the Logging stuff to a new eclipse console view.
Therefore i wrote my own logging-handler that directly hooks up to an eclipse console:
public class EclipseConsoleHandler extends StreamHandler
{
public EclipseConsoleHandler()
{
super(findConsole("Server Console").newOutputStream(), new SmartFormatter());
}
private static final MessageConsole findConsole(String name)
{
ConsolePlugin plugin = ConsolePlugin.getDefault();
IConsoleManager conMan = plugin.getConsoleManager();
IConsole[] existing = conMan.getConsoles();
for (int i = 0; i < existing.length; i++)
if (name.equals(existing[i].getName()))
return (MessageConsole)existing [i];
// no console found, so create a new one
MessageConsole console = new MessageConsole(name, null);
conMan.addConsoles(new IConsole[] { console });
return console;
}
}
Now comes the tricky part. We need to configure the java.util.logging framework to use the above handler. In my eclipse plugin-activator i did the following:
String logConfig = "handlers = de.d3fact.server.ui.log.EclipseConsoleHandler";
LogManager.getLogManager().readConfiguration(new ByteArrayInputStream(logConfig.getBytes()));
Logger.getLogger().severe("Test");
And this didn't work. During the last call where i try to log the String "Test" the java.util.logging framework tries to load the EclipseConsoleHandler through an URLClassLoader. This doesn't work. And results in a ClassNotFoundException.
My assumption is now, that i have to write my own URLClassLoader and hook it up to the Eclipse PluginClassLoader. Is that correct? I couldn't find anything or anyone on the web that/how did this before, though i think it is relative obvious to bring both frameworks together.
Would be nice if anyone could point me into the right direction...
| 0 |
8,940,109 |
01/20/2012 10:40:34
| 499,560 |
11/07/2010 00:12:33
| 584 | 2 |
Why are Reference Counting GCs Stigmatised?
|
I once read somewhere about a common thought amongst idealistic yet 'lazy' programmers trying their hand at implementing programming languages. It was as follows:-
'I know, I'll do an easy-to-implement and quick-to-write reference counting GCer, and then re-implement it as a real GCer when I get the time.'
Naturally, this reimplementation never occurs.
However, I question why such a reimplementation is needed. Why are mark-and-sweep collectors of the incremental and concurrent variety seen as superior to the allegedly antiquated approach taken by languages like Perl 5 and Python? (Yes, I'm aware Python augments this approach with a mark-and-sweep collector.)
Circular references is the first topic to come up under such discussion. Yes, it can be a pain (see recursive coderefs in Perl, and fix to it involving multiple assignments and reference weakening.) Yes it's not as elegant when a coder has to constantly monitor for references of that ilk.
Is the alternative any better though? We can discuss fine-grained implementation details for eternity, but the fact is, most mark-and-sweep GC implementations have the following problems:-
- Non deterministic destruction of resources, leading to code that's hard to reason about and too verbose (see IDispose in .NET or the try/finally replacements in many other languages.)
- Additional complexity with different categories of garbage, for short-lived, long-lived, and everything in-between, with such complexity seemingly required for reasonable performance.
- Either another thread is required, or the execution of the program needs to be periodically halted to perform the collection.
Are the downfalls of mark-and-sweep justifiable to fix the issues of reference counting which are mitigatable with weak references?
|
memory
|
garbage-collection
|
reference
|
reference-counting
|
mark-and-sweep
|
01/20/2012 16:10:26
|
not constructive
|
Why are Reference Counting GCs Stigmatised?
===
I once read somewhere about a common thought amongst idealistic yet 'lazy' programmers trying their hand at implementing programming languages. It was as follows:-
'I know, I'll do an easy-to-implement and quick-to-write reference counting GCer, and then re-implement it as a real GCer when I get the time.'
Naturally, this reimplementation never occurs.
However, I question why such a reimplementation is needed. Why are mark-and-sweep collectors of the incremental and concurrent variety seen as superior to the allegedly antiquated approach taken by languages like Perl 5 and Python? (Yes, I'm aware Python augments this approach with a mark-and-sweep collector.)
Circular references is the first topic to come up under such discussion. Yes, it can be a pain (see recursive coderefs in Perl, and fix to it involving multiple assignments and reference weakening.) Yes it's not as elegant when a coder has to constantly monitor for references of that ilk.
Is the alternative any better though? We can discuss fine-grained implementation details for eternity, but the fact is, most mark-and-sweep GC implementations have the following problems:-
- Non deterministic destruction of resources, leading to code that's hard to reason about and too verbose (see IDispose in .NET or the try/finally replacements in many other languages.)
- Additional complexity with different categories of garbage, for short-lived, long-lived, and everything in-between, with such complexity seemingly required for reasonable performance.
- Either another thread is required, or the execution of the program needs to be periodically halted to perform the collection.
Are the downfalls of mark-and-sweep justifiable to fix the issues of reference counting which are mitigatable with weak references?
| 4 |
6,742,372 |
07/19/2011 04:41:04
| 570,779 |
01/11/2011 04:34:25
| 4 | 0 |
How to remove set of special caracters (see attachment)
|
This caracters is special I can not put in code because the forum not support it. Here is how it looks in code format: [32;1m
The cube (first caracter) is arrow to left in file (see links above).
Here is the picture of caracter how it look.See the file: http://www.dodaj.rs/f/2u/ar/3B1Q7J4Q/sample.jpg
And here is attachement of file it consist what I want to remove: http://hotfile.com/dl/124448134/58e08a0/File.log.html
Here is the complete file:
[32;1m/var/log/daemon.log file is rotated1...[0m
[32;1m/var/log/daemon.log file is rotated2...[0m
[37;1m/var/log/daemon.log file is rotated3...[0m
[35;1m/var/log/daemon.log file is rotated3...[0m
[33;1mhello[0m
[33;1mthis is sample[0m
[33;1mwhats up?[0m
What I want is to delete everything of unnecessary caracters and output to be:
/var/log/daemon.log file is rotated1...
/var/log/daemon.log file is rotated2...
/var/log/daemon.log file is rotated3...
/var/log/daemon.log file is rotated3...
hello
this is sample
whats up?
[1]: http://i.stack.imgur.com/jfDIZ.jpg
I tried to delete special caracters with sed like:
cat File.log | sed 's/[!@#\$%^&*()]//g' | sed -e 's/37;1m//g' > output.log
but it do nothing.
Can someone please write me that code that make what I need?
Thx.
EDIT: After posting the post arrow can not see on forum...
|
sed
|
awk
|
grep
| null | null | null |
open
|
How to remove set of special caracters (see attachment)
===
This caracters is special I can not put in code because the forum not support it. Here is how it looks in code format: [32;1m
The cube (first caracter) is arrow to left in file (see links above).
Here is the picture of caracter how it look.See the file: http://www.dodaj.rs/f/2u/ar/3B1Q7J4Q/sample.jpg
And here is attachement of file it consist what I want to remove: http://hotfile.com/dl/124448134/58e08a0/File.log.html
Here is the complete file:
[32;1m/var/log/daemon.log file is rotated1...[0m
[32;1m/var/log/daemon.log file is rotated2...[0m
[37;1m/var/log/daemon.log file is rotated3...[0m
[35;1m/var/log/daemon.log file is rotated3...[0m
[33;1mhello[0m
[33;1mthis is sample[0m
[33;1mwhats up?[0m
What I want is to delete everything of unnecessary caracters and output to be:
/var/log/daemon.log file is rotated1...
/var/log/daemon.log file is rotated2...
/var/log/daemon.log file is rotated3...
/var/log/daemon.log file is rotated3...
hello
this is sample
whats up?
[1]: http://i.stack.imgur.com/jfDIZ.jpg
I tried to delete special caracters with sed like:
cat File.log | sed 's/[!@#\$%^&*()]//g' | sed -e 's/37;1m//g' > output.log
but it do nothing.
Can someone please write me that code that make what I need?
Thx.
EDIT: After posting the post arrow can not see on forum...
| 0 |
1,208,938 |
07/30/2009 19:51:03
| 125,449 |
06/18/2009 22:56:28
| 114 | 9 |
Update Multiple Rows Mysql from php -- Slight Twist
|
I asked a similar question yesterday, but now I have a slight twist. Since I already gave credit to an answer, I've decided to create a new question.
Here's what I'm trying to do: Select an arbitrary number of rows, but *placing a limit on the number of selected rows of one field.*
$query = "SELECT test_id, field1, field2 FROM tablename WHERE field1 = 'string' LIMIT 5"
So here's the problem: I want a max of one result from each 'test_id', so if a row is selected with test_id 1, then it will skip over any other possible results with test_id 1.
Any ideas?
Thanks,
Michael
|
mysql
|
query
| null | null | null | null |
open
|
Update Multiple Rows Mysql from php -- Slight Twist
===
I asked a similar question yesterday, but now I have a slight twist. Since I already gave credit to an answer, I've decided to create a new question.
Here's what I'm trying to do: Select an arbitrary number of rows, but *placing a limit on the number of selected rows of one field.*
$query = "SELECT test_id, field1, field2 FROM tablename WHERE field1 = 'string' LIMIT 5"
So here's the problem: I want a max of one result from each 'test_id', so if a row is selected with test_id 1, then it will skip over any other possible results with test_id 1.
Any ideas?
Thanks,
Michael
| 0 |
5,629,209 |
04/12/2011 00:52:37
| 299,491 |
03/23/2010 00:04:24
| 73 | 10 |
How to replace OpenExeConfiguration in a web context (asp.net mvc 1)
|
OK so we have something that is currently using OpenExeConfiguration for reading a config file, however this doesn't work when running in the web context.
I've tried a variety of different ways of opening the web.config programmatically but I can't seem to get it to read the correct web.config file. In case it matters I am currently debugging it in VS 2008.
1. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.HttpContext.Current.Request.ApplicationPath);
2. config = ConfigurationManager.OpenMappedExeConfiguration(new ExeConfigurationFileMap { ExeConfigFilename = "web.config" }, ConfigurationUserLevel.None);
3. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
4. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
5. System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath);
It either opens up the wrong config file (either the machine config, or the VS /IDE/Web.config) or complains about the error:
{System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'. ---> System.InvalidOperationException: Failed to map the path '/'.
Thanks!
|
asp.net
|
asp.net-mvc
|
c#-3.0
| null | null | null |
open
|
How to replace OpenExeConfiguration in a web context (asp.net mvc 1)
===
OK so we have something that is currently using OpenExeConfiguration for reading a config file, however this doesn't work when running in the web context.
I've tried a variety of different ways of opening the web.config programmatically but I can't seem to get it to read the correct web.config file. In case it matters I am currently debugging it in VS 2008.
1. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.HttpContext.Current.Request.ApplicationPath);
2. config = ConfigurationManager.OpenMappedExeConfiguration(new ExeConfigurationFileMap { ExeConfigFilename = "web.config" }, ConfigurationUserLevel.None);
3. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
4. config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
5. System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath);
It either opens up the wrong config file (either the machine config, or the VS /IDE/Web.config) or complains about the error:
{System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'. ---> System.InvalidOperationException: Failed to map the path '/'.
Thanks!
| 0 |
6,798,256 |
07/23/2011 04:37:54
| 835,042 |
07/08/2011 08:56:25
| 9 | 1 |
PHP Date function is not working correctly.
|
I am using a date function echo date ('Y'); which results in the following error message.
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier
Is this anything to do with my php.ini page? What change I need to make in php.ini in order to make this code working?
|
php
|
date
| null | null | null |
07/25/2011 01:30:52
|
not a real question
|
PHP Date function is not working correctly.
===
I am using a date function echo date ('Y'); which results in the following error message.
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier
Is this anything to do with my php.ini page? What change I need to make in php.ini in order to make this code working?
| 1 |
5,005,673 |
02/15/2011 15:32:23
| 616,199 |
02/14/2011 12:47:09
| 3 | 0 |
C++: follow-up question on reading from an external file using getline(). How to get a subset of the file data?
|
I need to read in numbers from an external file and store them in a vector of ints. I can do this now thanks to Howard Hinnant and wilhelmtell, who patiently helped figure out why my coding wasn't working yesterday.
I have been trying to figure out how to incorporate an additional feature into the code, but I have exhausted my knowledge of streams and would appreciate some advice.
I want to be able to deal with files that have many sets of data. Is it possible to extract only certain pieces of the file into a vector? I want to end up with several vectors that contain data from different parts of the file. I have searched online, but have not seen any mention of this.
Here is the code plus an example of a file (let's call it "test") that I want to get data from.
//Test
vectorOne // Identifier for subset of data for one vector
'1' '2' '3'
vectorTwo // Identifier for subset of data for another vector
'1' '2' '3'
vectorThree // Identifier for subset of data for another vector
'1' '2' '3'
// Code:
The '\'' character is the line delimiter. Everything is ignored up to the first ' and then everything until the next ' is part of a number. This continue until the logic fails (end of file). How can I get it to stop at the end of a data block instead?
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <iterator>
int main()
{
std::string line;
const std::string fileName = "test.dat";
std::ifstream theStream( fileName.c_str() );
if( ! theStream )
std::cerr << "Error opening file test.dat\n";
std::vector<int> numbers; // This code is written for one vector only. There would be three vectors for the example file I provided above; one for the vectorOne data in the file, and so on.
while (true)
{
// get first '
std::getline(theStream, line, '\'');
// read until second '
std::getline(theStream, line, '\'');
std::istringstream myStream( line );
int i;
myStream >> i;
if (myStream.fail())
break;
numbers.push_back(i);
}
std::copy(numbers.begin(), numbers.end(),
std::ostream_iterator<int>(std::cout, "\n"));
}
|
c++
|
stream
|
getline
| null | null | null |
open
|
C++: follow-up question on reading from an external file using getline(). How to get a subset of the file data?
===
I need to read in numbers from an external file and store them in a vector of ints. I can do this now thanks to Howard Hinnant and wilhelmtell, who patiently helped figure out why my coding wasn't working yesterday.
I have been trying to figure out how to incorporate an additional feature into the code, but I have exhausted my knowledge of streams and would appreciate some advice.
I want to be able to deal with files that have many sets of data. Is it possible to extract only certain pieces of the file into a vector? I want to end up with several vectors that contain data from different parts of the file. I have searched online, but have not seen any mention of this.
Here is the code plus an example of a file (let's call it "test") that I want to get data from.
//Test
vectorOne // Identifier for subset of data for one vector
'1' '2' '3'
vectorTwo // Identifier for subset of data for another vector
'1' '2' '3'
vectorThree // Identifier for subset of data for another vector
'1' '2' '3'
// Code:
The '\'' character is the line delimiter. Everything is ignored up to the first ' and then everything until the next ' is part of a number. This continue until the logic fails (end of file). How can I get it to stop at the end of a data block instead?
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <iterator>
int main()
{
std::string line;
const std::string fileName = "test.dat";
std::ifstream theStream( fileName.c_str() );
if( ! theStream )
std::cerr << "Error opening file test.dat\n";
std::vector<int> numbers; // This code is written for one vector only. There would be three vectors for the example file I provided above; one for the vectorOne data in the file, and so on.
while (true)
{
// get first '
std::getline(theStream, line, '\'');
// read until second '
std::getline(theStream, line, '\'');
std::istringstream myStream( line );
int i;
myStream >> i;
if (myStream.fail())
break;
numbers.push_back(i);
}
std::copy(numbers.begin(), numbers.end(),
std::ostream_iterator<int>(std::cout, "\n"));
}
| 0 |
7,711,839 |
10/10/2011 11:02:05
| 979,431 |
10/04/2011 22:41:45
| 6 | 0 |
what it means to extend a superclass and make a subclass
|
Does that mean
1. I am making the existing methods of the super class more powerful
or
2. I am adding additional methods to the superclass? in other words, increase the number of methods? rather than making the existing functions of superclass more powerful?
So far, I thought the answer was mostly #1. but is that wrong?
Thanks
|
java
| null | null | null | null |
10/10/2011 14:01:16
|
not constructive
|
what it means to extend a superclass and make a subclass
===
Does that mean
1. I am making the existing methods of the super class more powerful
or
2. I am adding additional methods to the superclass? in other words, increase the number of methods? rather than making the existing functions of superclass more powerful?
So far, I thought the answer was mostly #1. but is that wrong?
Thanks
| 4 |
8,132,165 |
11/15/2011 06:04:59
| 1,046,915 |
11/15/2011 05:58:44
| 1 | 0 |
HTTP RESPONSE HEADER INFO
|
I m new in dot net development .I want HTTP header response which contains all header info
containing Users info also So please help me for that.
|
c#
|
asp.net
| null | null | null |
11/15/2011 12:51:46
|
not a real question
|
HTTP RESPONSE HEADER INFO
===
I m new in dot net development .I want HTTP header response which contains all header info
containing Users info also So please help me for that.
| 1 |
3,591,491 |
08/28/2010 16:23:21
| 433,772 |
08/28/2010 15:17:45
| 1 | 0 |
Wix properties not being persisted from a WXI (<Control>) to a WXS (<InstallExecuteSequence>)
|
I hope you can help me with the following WIX issue:
In my main.wxs, I initialize "MYPROPERTY" that then in ui.wxi, I put up a dialog box with a checkbox (that is checked/enabled from the MYPROPERTY that I've setup in the .wxs). I can verify that by unchecking the checkbox, it does flip the value because I enable/disable the "Next" button depending on the MYPROPERTY value - I have more than one checkbox BTW.
The problem is that if I uncheck the checkbox in the UI when running the .msi produced, the Custom Action is ran no matter if the checkbox is checked or unchecked (as if the "MYPROPERTY" is always 1, see the condition in <Custom>). How do I make the checkbox that sets the MYPROPERTY value to actually persist to the the Custom Action?
Any help is appreciated. Thanks.
MAIN.WXS:
<Property Id='MYPROPERTY'>1</Property>
<?include ./ui.wxi ?>
...
<InstallExecuteSequence>
<Custom Action="MyCustomAction" After="InstallFiles">
(NOT Installed) AND (MYPROPERTY = 1)
</Custom>
...
ui.wxi:
<UI Id='xxx'>
...
<Dialog
Id="Choose"
Title="My Setup">
<Control
Id="MyCheckBox"
Type="CheckBox"
CheckBoxValue="1"
Property="MYPROPERTY"
/>
...
|
wix
|
wix3
| null | null | null | null |
open
|
Wix properties not being persisted from a WXI (<Control>) to a WXS (<InstallExecuteSequence>)
===
I hope you can help me with the following WIX issue:
In my main.wxs, I initialize "MYPROPERTY" that then in ui.wxi, I put up a dialog box with a checkbox (that is checked/enabled from the MYPROPERTY that I've setup in the .wxs). I can verify that by unchecking the checkbox, it does flip the value because I enable/disable the "Next" button depending on the MYPROPERTY value - I have more than one checkbox BTW.
The problem is that if I uncheck the checkbox in the UI when running the .msi produced, the Custom Action is ran no matter if the checkbox is checked or unchecked (as if the "MYPROPERTY" is always 1, see the condition in <Custom>). How do I make the checkbox that sets the MYPROPERTY value to actually persist to the the Custom Action?
Any help is appreciated. Thanks.
MAIN.WXS:
<Property Id='MYPROPERTY'>1</Property>
<?include ./ui.wxi ?>
...
<InstallExecuteSequence>
<Custom Action="MyCustomAction" After="InstallFiles">
(NOT Installed) AND (MYPROPERTY = 1)
</Custom>
...
ui.wxi:
<UI Id='xxx'>
...
<Dialog
Id="Choose"
Title="My Setup">
<Control
Id="MyCheckBox"
Type="CheckBox"
CheckBoxValue="1"
Property="MYPROPERTY"
/>
...
| 0 |
2,955,649 |
06/02/2010 07:13:03
| 281,092 |
02/25/2010 09:32:57
| 45 | 2 |
CF - MenuItem selection in MainMenu
|
Again i wonder how can i highlight selected item in my MainMenu form.
Every time i select an item only the first item is highlighted (always the same).
I found "checked" property on MenuItem that would generaly work, but the first item remains highlighted.
Can some one please direct me to the right solution?
thanx
|
compact-framework
|
menuitem
|
selecteditem
| null | null | null |
open
|
CF - MenuItem selection in MainMenu
===
Again i wonder how can i highlight selected item in my MainMenu form.
Every time i select an item only the first item is highlighted (always the same).
I found "checked" property on MenuItem that would generaly work, but the first item remains highlighted.
Can some one please direct me to the right solution?
thanx
| 0 |
6,465,690 |
06/24/2011 09:07:26
| 810,216 |
06/22/2011 11:14:36
| 6 | 0 |
which is the best IDE in MAC OS for coding in C++ using OpenCV library ?
|
which is the best IDE in MAC OS for coding in C++ using OpenCV library: MACINTOSH Programmer Workshop or wide studio or xcode ?
|
c++
|
osx
|
visual-c++
|
opencv
| null |
06/24/2011 09:34:38
|
not constructive
|
which is the best IDE in MAC OS for coding in C++ using OpenCV library ?
===
which is the best IDE in MAC OS for coding in C++ using OpenCV library: MACINTOSH Programmer Workshop or wide studio or xcode ?
| 4 |
9,985,985 |
04/03/2012 01:28:07
| 605,960 |
02/07/2011 05:18:32
| 301 | 15 |
Issue with Facebook OG / Game
|
I've got a game, when a user "solves" a "word" it should call the OG req.
Here's the call:
curl -F 'access_token=abc' \
-F 'tw=theword_solved_goes_here' \
-F 'word=https://drawabble.com/og/word.php' \
-F 'scrape=true' \
'https://graph.facebook.com/me/drawabble:solve'
And the object's url is - https://drawabble.com/og/word.php?&tw=theword_solved_goes_here
and the page script looks like this (word.php)
<?
if( $_GET['fb_action_ids'] ){
header("Location: http://drawabble.com");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# drawabble: http://ogp.me/ns/fb/drawabble#">
<meta property="fb:app_id" content="360199164024147" />
<meta property="og:type" content="drawabble:word" />
<meta property="og:title" content="<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
<meta property="og:url" content="https://drawabble.com/og/word.php?tw=<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
<meta property="og:description" content="Solved on http://drawabble.com" />
<meta property="og:image" content="https://drawabble.com/drawabble.png" />
<meta property="drawabble:tw" content="<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
</html>
The error is {"error":{"type":"Exception","message":"Object at URL 'https:\/\/drawabble.com\/og\/word.php?tw=' of type 'drawabble:word' is invalid because a required property 'og:title' of type 'string' was not provided."}}
So I'm assuming the tag's are not catching the posted or _get urls... can't figure out why.
Any help is appreciated!
|
facebook
|
facebook-graph-api
|
opengraph
|
facebook-opengraph
| null | null |
open
|
Issue with Facebook OG / Game
===
I've got a game, when a user "solves" a "word" it should call the OG req.
Here's the call:
curl -F 'access_token=abc' \
-F 'tw=theword_solved_goes_here' \
-F 'word=https://drawabble.com/og/word.php' \
-F 'scrape=true' \
'https://graph.facebook.com/me/drawabble:solve'
And the object's url is - https://drawabble.com/og/word.php?&tw=theword_solved_goes_here
and the page script looks like this (word.php)
<?
if( $_GET['fb_action_ids'] ){
header("Location: http://drawabble.com");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# drawabble: http://ogp.me/ns/fb/drawabble#">
<meta property="fb:app_id" content="360199164024147" />
<meta property="og:type" content="drawabble:word" />
<meta property="og:title" content="<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
<meta property="og:url" content="https://drawabble.com/og/word.php?tw=<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
<meta property="og:description" content="Solved on http://drawabble.com" />
<meta property="og:image" content="https://drawabble.com/drawabble.png" />
<meta property="drawabble:tw" content="<?=($_GET['tw'])? $_GET['tw'] : $_POST['tw']?>" />
</html>
The error is {"error":{"type":"Exception","message":"Object at URL 'https:\/\/drawabble.com\/og\/word.php?tw=' of type 'drawabble:word' is invalid because a required property 'og:title' of type 'string' was not provided."}}
So I'm assuming the tag's are not catching the posted or _get urls... can't figure out why.
Any help is appreciated!
| 0 |
10,739,110 |
05/24/2012 14:07:41
| 401,432 |
07/25/2010 08:40:36
| 503 | 4 |
Implement stack in c
|
I want to make stack which work with dynamic memory allocation, but I need to know about which it is more efficient : <br>
to have an initial size like 10 for example , and then double if I need more. <br>
or I can have an initial size = 1 and for every new input adding one place . !?!
<br>
int *tmp = malloc(sizeof(int) * 2 * dm->capacity); \* dm->capacity = 10 *\
int *tmp = malloc(sizeof(int));
|
c
|
malloc
| null | null | null | null |
open
|
Implement stack in c
===
I want to make stack which work with dynamic memory allocation, but I need to know about which it is more efficient : <br>
to have an initial size like 10 for example , and then double if I need more. <br>
or I can have an initial size = 1 and for every new input adding one place . !?!
<br>
int *tmp = malloc(sizeof(int) * 2 * dm->capacity); \* dm->capacity = 10 *\
int *tmp = malloc(sizeof(int));
| 0 |
625,042 |
03/09/2009 04:43:51
| 23,253 |
09/28/2008 19:31:49
| 41 | 4 |
What will be the upgrade path to Python 3.x for Google App Engine Applications?
|
Is the transition to Python 3.x for Google App Engine likely to be difficult?
I know Google App Engine requires the use of at least Python 2.5.
Is it possible to use Python 3.0 already on Google App Engine?
|
python
|
google-app-engine
| null | null | null | null |
open
|
What will be the upgrade path to Python 3.x for Google App Engine Applications?
===
Is the transition to Python 3.x for Google App Engine likely to be difficult?
I know Google App Engine requires the use of at least Python 2.5.
Is it possible to use Python 3.0 already on Google App Engine?
| 0 |
8,294,149 |
11/28/2011 09:59:40
| 1,069,082 |
11/28/2011 09:54:51
| 1 | 0 |
Window of pages to add App to won't refresh when "See More..." is clicked
|
When I go to add my App to one of the pages I manage, I get an error message in the pop-up window that lists all available pages when I scroll down to have more loaded. RIght now, my list stops at the G's, and at the end of that list, there is a See More link. When clicked, I get the following error:
Oops! Something went wrong. We're working on getting it fixed as soon as we can.
So I can't get to more pages in my list. In this case, I need to install the app in to a page that begins with K, and another with P.
|
facebook
|
application
|
add
| null | null |
11/28/2011 16:25:27
|
not a real question
|
Window of pages to add App to won't refresh when "See More..." is clicked
===
When I go to add my App to one of the pages I manage, I get an error message in the pop-up window that lists all available pages when I scroll down to have more loaded. RIght now, my list stops at the G's, and at the end of that list, there is a See More link. When clicked, I get the following error:
Oops! Something went wrong. We're working on getting it fixed as soon as we can.
So I can't get to more pages in my list. In this case, I need to install the app in to a page that begins with K, and another with P.
| 1 |
6,239,499 |
06/04/2011 21:25:03
| 732,948 |
05/01/2011 02:53:49
| 43 | 0 |
Does everything go inside a class?
|
I have another rudimentary question. I somewhat recall hearing that everything in C++ goes inside a class. Then I hear that classes shouldn't be used where possible. So my question goes: When do you make classes and when do you not? (an example or two would be cool)
And a random side-question: When is it appropriate to put 2 classes in one header? Or does it matter?
|
c++
| null | null | null | null |
06/04/2011 21:50:33
|
not constructive
|
Does everything go inside a class?
===
I have another rudimentary question. I somewhat recall hearing that everything in C++ goes inside a class. Then I hear that classes shouldn't be used where possible. So my question goes: When do you make classes and when do you not? (an example or two would be cool)
And a random side-question: When is it appropriate to put 2 classes in one header? Or does it matter?
| 4 |
5,449,794 |
03/27/2011 14:18:57
| 678,988 |
03/27/2011 14:12:42
| 1 | 0 |
problem getting my program to work
|
1.....i'm pretty new to this site....anyway i'm havein a novice problem with my program here....i want it to print a list of cities in both ascending and descending order, so far i'm only getting the descending part implemented!....please help!...below is my code attatched....thankz alot!....god bless......
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
int main(void) {
int i, j, ch, sort=0;
printf("HOW WOULD YOU LIKE TO SORT?\n\nASCENDING\n\nDESCENDING\n\n");
ch=getc(stdin);
if(toupper(ch)=='A'&&tolower(ch)=='a') sort=1;
if(sort==1) printf("\nSORT ASCENDING...\n");
else printf("\nSORT DESCENDING...\n");
printf("\nHOW MANY CITIES WOULD YOU LIKE? : - \n");
scanf("%d",&i);
char NAMES[i][20];
j=0;
while(j<i) {
printf("ENTER NAME ");
scanf("%s",NAMES[j]);
j++;
}
char swapNAME[20];
int r,k;
printf("THE ORIGINAL LIST WAS :\n");
for(r=0;r<i;r++) printf("%s\n",NAMES[r]);
for(r=0;r<i-1;r++) {
for(k=r+1;k<i;k++) {
if(strcmp(NAMES[k],NAMES[r])>0) {
strcpy(swapNAME,NAMES[r]);
strcpy(NAMES[r],NAMES[k]);
strcpy(NAMES[k],swapNAME);
}
}
}
printf("\n THE SORTED LIST IS NOW : \n");
for(r=0;r<i;r++) printf("%s\n",NAMES[r]);
getc(stdin);
system("pause");
return 0;
}
please any efforts made will greatly be appreciated aganin thankz
|
c
| null | null | null | null | null |
open
|
problem getting my program to work
===
1.....i'm pretty new to this site....anyway i'm havein a novice problem with my program here....i want it to print a list of cities in both ascending and descending order, so far i'm only getting the descending part implemented!....please help!...below is my code attatched....thankz alot!....god bless......
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
int main(void) {
int i, j, ch, sort=0;
printf("HOW WOULD YOU LIKE TO SORT?\n\nASCENDING\n\nDESCENDING\n\n");
ch=getc(stdin);
if(toupper(ch)=='A'&&tolower(ch)=='a') sort=1;
if(sort==1) printf("\nSORT ASCENDING...\n");
else printf("\nSORT DESCENDING...\n");
printf("\nHOW MANY CITIES WOULD YOU LIKE? : - \n");
scanf("%d",&i);
char NAMES[i][20];
j=0;
while(j<i) {
printf("ENTER NAME ");
scanf("%s",NAMES[j]);
j++;
}
char swapNAME[20];
int r,k;
printf("THE ORIGINAL LIST WAS :\n");
for(r=0;r<i;r++) printf("%s\n",NAMES[r]);
for(r=0;r<i-1;r++) {
for(k=r+1;k<i;k++) {
if(strcmp(NAMES[k],NAMES[r])>0) {
strcpy(swapNAME,NAMES[r]);
strcpy(NAMES[r],NAMES[k]);
strcpy(NAMES[k],swapNAME);
}
}
}
printf("\n THE SORTED LIST IS NOW : \n");
for(r=0;r<i;r++) printf("%s\n",NAMES[r]);
getc(stdin);
system("pause");
return 0;
}
please any efforts made will greatly be appreciated aganin thankz
| 0 |
1,167,531 |
07/22/2009 19:13:00
| 83,819 |
09/16/2008 07:07:10
| 1,265 | 93 |
How to promote/advertise your web app/site on the web?
|
What is the best way to advertise a web application or site on the web, **specifically paid advertisement**, but if there are any great free ones, those are welcome as well. Please refrain from mentioning meta tag's and technical SEO related site modifications.
**Google ad-words** is one way we all know about. But I'm looking for other suggestions that have worked well for you or someone you know.
Since this is subjective, I have marked it a community wiki.
|
advertisement
|
web-applications
| null | null | null |
03/25/2012 11:10:41
|
off topic
|
How to promote/advertise your web app/site on the web?
===
What is the best way to advertise a web application or site on the web, **specifically paid advertisement**, but if there are any great free ones, those are welcome as well. Please refrain from mentioning meta tag's and technical SEO related site modifications.
**Google ad-words** is one way we all know about. But I'm looking for other suggestions that have worked well for you or someone you know.
Since this is subjective, I have marked it a community wiki.
| 2 |
8,787,831 |
01/09/2012 11:39:56
| 1,121,019 |
12/29/2011 11:14:39
| 6 | 0 |
how to copy contents from different environemnts ( Ubuntu to Windows )
|
Present i am having windows machine (Ubuntu 11.04) with oracle virtual box , ( I have opened a web site through browser in that and now want to copy contents to windows machine .
But the issue is that i am not able to paste any kind of browser text content from Ubuntu environment to windows environment.
Please help
|
linux
|
ubuntu
| null | null | null |
01/09/2012 14:03:32
|
off topic
|
how to copy contents from different environemnts ( Ubuntu to Windows )
===
Present i am having windows machine (Ubuntu 11.04) with oracle virtual box , ( I have opened a web site through browser in that and now want to copy contents to windows machine .
But the issue is that i am not able to paste any kind of browser text content from Ubuntu environment to windows environment.
Please help
| 2 |
3,572,731 |
08/26/2010 07:02:14
| 431,539 |
08/26/2010 07:02:14
| 1 | 0 |
Resolving a view that is outside the application container
|
I'm building a Java Spring app, and I'm working around a few constraints in the production environment, due to the fact that content is being published from a CMS. I have my images, js, css and jsp views residing in a static folder. I'm running a Tomcat app server, and i've set up Virtual directory mappings in the server.xml to map the images, css and js, which is working:
<Context debug="1" docBase="/home/content/images" path="/images" reloadable="true"/>
<Context debug="1" docBase="/home/content/css" path="/css" reloadable="true"/>
<Context debug="1" docBase="/home/content/js" path="/js" reloadable="true"/>
<Context debug="1" docBase="/home/content/view" path="/view" reloadable="true"/>
I've run into a problem resolving my jsp views, though. I'm using a Spring URIBasedViewResolver, configured as below:
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/view/"/>
<property name="suffix" value=".jsp"/>
</bean>
The views aren't being found and I am getting 404 errors. Is it possible to resolve views outside the container? All of the examples and tutorials I can find have the views located within the /WEB-INF folder.
Thanks in advance!
Kate
|
spring
|
view
|
directory
|
virtual
|
resolver
| null |
open
|
Resolving a view that is outside the application container
===
I'm building a Java Spring app, and I'm working around a few constraints in the production environment, due to the fact that content is being published from a CMS. I have my images, js, css and jsp views residing in a static folder. I'm running a Tomcat app server, and i've set up Virtual directory mappings in the server.xml to map the images, css and js, which is working:
<Context debug="1" docBase="/home/content/images" path="/images" reloadable="true"/>
<Context debug="1" docBase="/home/content/css" path="/css" reloadable="true"/>
<Context debug="1" docBase="/home/content/js" path="/js" reloadable="true"/>
<Context debug="1" docBase="/home/content/view" path="/view" reloadable="true"/>
I've run into a problem resolving my jsp views, though. I'm using a Spring URIBasedViewResolver, configured as below:
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/view/"/>
<property name="suffix" value=".jsp"/>
</bean>
The views aren't being found and I am getting 404 errors. Is it possible to resolve views outside the container? All of the examples and tutorials I can find have the views located within the /WEB-INF folder.
Thanks in advance!
Kate
| 0 |
4,933,729 |
02/08/2011 13:40:07
| 518,287 |
11/24/2010 03:21:29
| 1,122 | 106 |
How are weak arrays used?
|
Question says it all. I have a data structure I can't Marshal because of a weak hashtable .. wondering if I can get rid of it :)
|
ocaml
| null | null | null | null | null |
open
|
How are weak arrays used?
===
Question says it all. I have a data structure I can't Marshal because of a weak hashtable .. wondering if I can get rid of it :)
| 0 |
3,681,121 |
09/09/2010 22:50:22
| 95,309 |
04/24/2009 05:36:29
| 665 | 26 |
Tool to generate ER diagram in Chen's notation
|
I'm looking for some sort of database diagram tool, that can generate a ER diagram for a database in Chen's notation. I would much prefer a tool that can generate the diagram from a existing structure, if such thing is possible.
For some reason most tools available today doesn't seem to support Chen's notation.
|
database
|
diagram
| null | null | null | null |
open
|
Tool to generate ER diagram in Chen's notation
===
I'm looking for some sort of database diagram tool, that can generate a ER diagram for a database in Chen's notation. I would much prefer a tool that can generate the diagram from a existing structure, if such thing is possible.
For some reason most tools available today doesn't seem to support Chen's notation.
| 0 |
10,563,177 |
05/12/2012 11:09:08
| 1,319,195 |
04/07/2012 14:37:22
| 59 | 0 |
java check values
|
I am trying to search if char from alpabet array is equal to the textCharArray's element. And if so do some math: char number from alphabet to add to arrayList value. But I getting an error:
**java.lang.ArrayIndexOutOfBoundsException**
The problem should be in for cicles. But I don't know how to fix it corectly.
The
Code:
outputText.setText("");
inputTextString = inputText.getText().toString().replace(" ", ""); //panaikinami tarpa
char[] textCharArray = inputTextString.toCharArray(); //seka paverciama char masyvu
int l = textCharArray.length;
char[] alphabet = {'A','B','C','D','E','F','G','H','I','K','L','M','N','O','P','Q','R','S','T','V','X','Y','Z'};
int alpLenght = alphabet.length;
System.out.println(alpLenght);
stringKey = inputKey.getText().toString();
int k = Integer.parseInt(stringKey);
List<Integer>keyList = new ArrayList<Integer>();
while(k > 0){
keyList.add(k%10);
k = k /10;
}
Collections.reverse(keyList);
int j = 0;
int temp;
for(int i = 0; i <= l; i++){
for(int ii = 0; ii < alpLenght; i++){
if(j < keyList.size()){
if(textCharArray[i] == alphabet[ii]){
temp = ii + keyList.get(j);
System.out.println("Uzkoduotas: " + temp);
}
j++;
}
else {
j = 0;
if(textCharArray[i] == alphabet[ii]){
temp = ii + keyList.get(j);
System.out.println("Uzkoduotas: " + temp);
}
}
j++;
}
|
java
|
android
|
arraylist
| null | null |
05/12/2012 19:00:15
|
too localized
|
java check values
===
I am trying to search if char from alpabet array is equal to the textCharArray's element. And if so do some math: char number from alphabet to add to arrayList value. But I getting an error:
**java.lang.ArrayIndexOutOfBoundsException**
The problem should be in for cicles. But I don't know how to fix it corectly.
The
Code:
outputText.setText("");
inputTextString = inputText.getText().toString().replace(" ", ""); //panaikinami tarpa
char[] textCharArray = inputTextString.toCharArray(); //seka paverciama char masyvu
int l = textCharArray.length;
char[] alphabet = {'A','B','C','D','E','F','G','H','I','K','L','M','N','O','P','Q','R','S','T','V','X','Y','Z'};
int alpLenght = alphabet.length;
System.out.println(alpLenght);
stringKey = inputKey.getText().toString();
int k = Integer.parseInt(stringKey);
List<Integer>keyList = new ArrayList<Integer>();
while(k > 0){
keyList.add(k%10);
k = k /10;
}
Collections.reverse(keyList);
int j = 0;
int temp;
for(int i = 0; i <= l; i++){
for(int ii = 0; ii < alpLenght; i++){
if(j < keyList.size()){
if(textCharArray[i] == alphabet[ii]){
temp = ii + keyList.get(j);
System.out.println("Uzkoduotas: " + temp);
}
j++;
}
else {
j = 0;
if(textCharArray[i] == alphabet[ii]){
temp = ii + keyList.get(j);
System.out.println("Uzkoduotas: " + temp);
}
}
j++;
}
| 3 |
11,312,122 |
07/03/2012 13:35:23
| 486,578 |
10/25/2010 15:03:02
| 2,973 | 5 |
How to put to .xib file cuctom class which inherits UIImageView
|
I have copied class from net which inherits UIImageView. How to put that class on .xib file ?
|
ios
|
ios5
|
xcode4.2
| null | null | null |
open
|
How to put to .xib file cuctom class which inherits UIImageView
===
I have copied class from net which inherits UIImageView. How to put that class on .xib file ?
| 0 |
7,488,957 |
09/20/2011 17:07:42
| 738,811 |
05/04/2011 21:07:06
| 296 | 3 |
Content of stack before main function
|
There is such program to print everything before main function starting from specific string:
#include <iostream>
#include <locale>
#include <unistd.h>
int main(int argc, char* argv[], char* env[]) {
char tekst[] = "HERE_IS_START";
for (int i = 0; i < argc; i++) {
std::cout << "argv[" << i << "]" << argv[i] << " " << std::hex <<
(int) argv[i] << " " << &argv[i] << std::endl;
}
int z = 0;
for (char** env_ = env; *env_ != 0; env_++) {
std::cout << "env[" << z++ << "]" << *env_ << " " << std::hex <<
(int) *env << " " << &(*env_) << std::endl;
}
int row = 16;
char* wsk = tekst;
for (int i = 0;; i++) {
if (i + 1 < 10)std::cout << 0;
if (i + 1 < 100)std::cout << 0;
std::cout << std::dec << (i + 1) << " 0x" << std::hex << (int) wsk << " ";
for (int j = 0; j < row; j++) {
if ((unsigned int) (unsigned char) (wsk[j]) < 16)
std::cout << 0;
std::cout << (unsigned int) (unsigned char) (wsk[j]) <<
" " << std::flush;
}
for (int j = 0; j < row; j++) {
if (isprint((char) (wsk[j])))
std::cout << (char) (wsk[j]);
else
std::cout << '?';
}
std::cout << std::endl;
wsk = wsk + row;
}
return 0;
}
This program first prints arguments from command line, with pointers to these arguments, addresses of these pointers and addresses of arguments. Then similar thing is done for environment variables (however there is a small bug). After that, there is printed all content of stack starting from buffer "tekst" to beginning of stack, and then program crashes. Content of stack is printed as lines: number of line, address in memory, 16 consecutive bytes in hexadecimal form, 16 consecutive bytes in character form. One of outputs:
ubuntu@ubuntu:~/Desktop$ ./main first_arg second_arg third_arg
argv[0]./main bfd445d1 0xbfd441f4
argv[1]first_arg bfd445d8 0xbfd441f8
argv[2]second_arg bfd445e2 0xbfd441fc
argv[3]third_arg bfd445ed 0xbfd44200
env[0]ORBIT_SOCKETDIR=/tmp/orbit-ubuntu bfd445f7 0xbfd44208
env[1]SSH_AGENT_PID=4294 bfd445f7 0xbfd4420c
env[2]TERM=xterm bfd445f7 0xbfd44210
env[3]SHELL=/bin/bash bfd445f7 0xbfd44214
env[4]XDG_SESSION_COOKIE=b16da184017a223e33dfbc7700000025-1316532826.4763-1998941864 bfd445f7 0xbfd44218
env[5]WINDOWID=60817444 bfd445f7 0xbfd4421c
env[6]GNOME_KEYRING_CONTROL=/tmp/keyring-PF9cWq bfd445f7 0xbfd44220
env[7]GTK_MODULES=canberra-gtk-module bfd445f7 0xbfd44224
env[8]USER=ubuntu bfd445f7 0xbfd44228
env[9]LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: bfd445f7 0xbfd4422c
env[a]SSH_AUTH_SOCK=/tmp/keyring-PF9cWq/ssh bfd445f7 0xbfd44230
env[b]SESSION_MANAGER=local/ubuntu:@/tmp/.ICE-unix/4253,unix/ubuntu:/tmp/.ICE-unix/4253 bfd445f7 0xbfd44234
env[c]USERNAME=ubuntu bfd445f7 0xbfd44238
env[d]DEFAULTS_PATH=/usr/share/gconf/gnome.default.path bfd445f7 0xbfd4423c
env[e]XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg bfd445f7 0xbfd44240
env[f]PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games bfd445f7 0xbfd44244
env[10]DESKTOP_SESSION=gnome bfd445f7 0xbfd44248
env[11]PWD=/home/ubuntu/Desktop bfd445f7 0xbfd4424c
env[12]GDM_KEYBOARD_LAYOUT=us bfd445f7 0xbfd44250
env[13]LANG=en_US.UTF-8 bfd445f7 0xbfd44254
env[14]GDM_LANG=en_US.UTF-8 bfd445f7 0xbfd44258
env[15]MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path bfd445f7 0xbfd4425c
env[16]UBUNTU_MENUPROXY=libappmenu.so bfd445f7 0xbfd44260
env[17]COMPIZ_CONFIG_PROFILE=ubuntu bfd445f7 0xbfd44264
env[18]GDMSESSION=gnome bfd445f7 0xbfd44268
env[19]SHLVL=1 bfd445f7 0xbfd4426c
env[1a]HOME=/home/ubuntu bfd445f7 0xbfd44270
env[1b]LANGUAGE=en_US:en bfd445f7 0xbfd44274
env[1c]GNOME_DESKTOP_SESSION_ID=this-is-deprecated bfd445f7 0xbfd44278
env[1d]LOGNAME=ubuntu bfd445f7 0xbfd4427c
env[1e]XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/ bfd445f7 0xbfd44280
env[1f]DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DTbn1HNZFU,guid=3b2a0c2f55352a2d70678ffc000000a3 bfd445f7 0xbfd44284
env[20]LESSOPEN=| /usr/bin/lesspipe %s bfd445f7 0xbfd44288
env[21]WINDOWPATH=7 bfd445f7 0xbfd4428c
env[22]DISPLAY=:0.0 bfd445f7 0xbfd44290
env[23]LESSCLOSE=/usr/bin/lesspipe %s %s bfd445f7 0xbfd44294
env[24]RUNNING_UNDER_GDM=yes bfd445f7 0xbfd44298
env[25]COLORTERM=gnome-terminal bfd445f7 0xbfd4429c
env[26]XAUTHORITY=/var/run/gdm/auth-for-ubuntu-Za0Xwx/database bfd445f7 0xbfd442a0
env[27]_=./main bfd445f7 0xbfd442a4
env[28]OLDPWD=/home/ubuntu bfd445f7 0xbfd442a8
001 0xbfd4411e 48 45 52 45 5f 49 53 5f 53 54 41 52 54 00 00 f0 HERE_IS_START???
002 0xbfd4412e fc e2 35 ad 28 00 f4 7f 3b 00 00 00 00 00 00 00 ??5?(???;???????
003 0xbfd4413e 00 00 60 8d 04 08 00 00 00 00 c8 41 d4 bf 37 1e ??`????????A??7?
004 0xbfd4414e 27 00 04 00 00 00 f4 41 d4 bf 08 42 d4 bf 14 44 '??????A???B???D
005 0xbfd4415e 85 00 ff ff ff ff f4 9f b7 00 f4 84 04 08 01 00 ????????????????
006 0xbfd4416e 00 00 b0 41 d4 bf 31 aa b6 00 d0 aa b7 00 30 86 ???A??1???????0?
007 0xbfd4417e 8c b7 01 00 00 00 f4 7f 3b 00 00 00 00 00 00 00 ????????;???????
008 0xbfd4418e 00 00 c8 41 d4 bf c1 93 97 8b be ca 2e 6d 00 00 ???A????????.m??
009 0xbfd4419e 00 00 00 00 00 00 00 00 00 00 04 00 00 00 60 87 ??????????????`?
010 0xbfd441ae 04 08 00 00 00 00 40 0c b7 00 5b 1d 27 00 f4 9f ??????@???[?'???
011 0xbfd441be b7 00 04 00 00 00 60 87 04 08 00 00 00 00 81 87 ??????`?????????
012 0xbfd441ce 04 08 14 88 04 08 04 00 00 00 f4 41 d4 bf 60 8d ???????????A??`?
013 0xbfd441de 04 08 c0 8d 04 08 50 ba b6 00 ec 41 d4 bf 18 a9 ??????P????A????
014 0xbfd441ee b7 00 04 00 00 00 d1 45 d4 bf d8 45 d4 bf e2 45 ???????E???E???E
015 0xbfd441fe d4 bf ed 45 d4 bf 00 00 00 00 f7 45 d4 bf 19 46 ???E???????E???F
016 0xbfd4420e d4 bf 2c 46 d4 bf 37 46 d4 bf 47 46 d4 bf 96 46 ??,F??7F??GF???F
017 0xbfd4421e d4 bf a8 46 d4 bf d2 46 d4 bf f2 46 d4 bf fe 46 ???F???F???F???F
018 0xbfd4422e d4 bf ee 4b d4 bf 14 4c d4 bf 66 4c d4 bf 76 4c ???K???L??fL??vL
019 0xbfd4423e d4 bf a8 4c d4 bf d4 4c d4 bf 21 4d d4 bf 37 4d ???L???L??!M??7M
020 0xbfd4424e d4 bf 50 4d d4 bf 67 4d d4 bf 78 4d d4 bf 8d 4d ??PM??gM??xM???M
021 0xbfd4425e d4 bf c2 4d d4 bf e1 4d d4 bf fe 4d d4 bf 0f 4e ???M???M???M???N
022 0xbfd4426e d4 bf 17 4e d4 bf 29 4e d4 bf 3b 4e d4 bf 67 4e ???N??)N??;N??gN
023 0xbfd4427e d4 bf 76 4e d4 bf b3 4e d4 bf 15 4f d4 bf 35 4f ??vN???N???O??5O
024 0xbfd4428e d4 bf 42 4f d4 bf 4f 4f d4 bf 71 4f d4 bf 87 4f ??BO??OO??qO???O
025 0xbfd4429e d4 bf a0 4f d4 bf d8 4f d4 bf e1 4f d4 bf 00 00 ???O???O???O????
026 0xbfd442ae 00 00 20 00 00 00 14 44 85 00 21 00 00 00 00 40 ?? ????D??!????@
027 0xbfd442be 85 00 10 00 00 00 bf f3 8b 07 06 00 00 00 00 10 ????????????????
028 0xbfd442ce 00 00 11 00 00 00 64 00 00 00 03 00 00 00 34 80 ??????d???????4?
029 0xbfd442de 04 08 04 00 00 00 20 00 00 00 05 00 00 00 09 00 ?????? ?????????
030 0xbfd442ee 00 00 07 00 00 00 00 d0 b5 00 08 00 00 00 00 00 ????????????????
031 0xbfd442fe 00 00 09 00 00 00 60 87 04 08 0b 00 00 00 e7 03 ??????`?????????
032 0xbfd4430e 00 00 0c 00 00 00 e7 03 00 00 0d 00 00 00 e7 03 ????????????????
033 0xbfd4431e 00 00 0e 00 00 00 e7 03 00 00 17 00 00 00 00 00 ????????????????
034 0xbfd4432e 00 00 19 00 00 00 5b 43 d4 bf 1f 00 00 00 f5 4f ??????[C???????O
035 0xbfd4433e d4 bf 0f 00 00 00 6b 43 d4 bf 00 00 00 00 00 00 ??????kC????????
036 0xbfd4434e 00 00 00 00 00 00 00 00 00 00 00 00 00 f0 fc e2 ????????????????
037 0xbfd4435e 43 99 8a 11 5f 85 d2 1d 7b 09 fc 02 c6 69 36 38 C???_???{????i68
038 0xbfd4436e 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6???????????????
039 0xbfd4437e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
040 0xbfd4438e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
041 0xbfd4439e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
042 0xbfd443ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
043 0xbfd443be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
044 0xbfd443ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
045 0xbfd443de 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
046 0xbfd443ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
047 0xbfd443fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
048 0xbfd4440e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
049 0xbfd4441e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
050 0xbfd4442e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
051 0xbfd4443e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
052 0xbfd4444e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
053 0xbfd4445e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
054 0xbfd4446e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
055 0xbfd4447e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
056 0xbfd4448e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
057 0xbfd4449e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
058 0xbfd444ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
059 0xbfd444be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
060 0xbfd444ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
061 0xbfd444de 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
062 0xbfd444ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
063 0xbfd444fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
064 0xbfd4450e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
065 0xbfd4451e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
066 0xbfd4452e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
067 0xbfd4453e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
068 0xbfd4454e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
069 0xbfd4455e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
070 0xbfd4456e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
071 0xbfd4457e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
072 0xbfd4458e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
073 0xbfd4459e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
074 0xbfd445ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
075 0xbfd445be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
076 0xbfd445ce 00 00 00 2e 2f 6d 61 69 6e 00 66 69 72 73 74 5f ???./main?first_
077 0xbfd445de 61 72 67 00 73 65 63 6f 6e 64 5f 61 72 67 00 74 arg?second_arg?t
078 0xbfd445ee 68 69 72 64 5f 61 72 67 00 4f 52 42 49 54 5f 53 hird_arg?ORBIT_S
079 0xbfd445fe 4f 43 4b 45 54 44 49 52 3d 2f 74 6d 70 2f 6f 72 OCKETDIR=/tmp/or
080 0xbfd4460e 62 69 74 2d 75 62 75 6e 74 75 00 53 53 48 5f 41 bit-ubuntu?SSH_A
081 0xbfd4461e 47 45 4e 54 5f 50 49 44 3d 34 32 39 34 00 54 45 GENT_PID=4294?TE
082 0xbfd4462e 52 4d 3d 78 74 65 72 6d 00 53 48 45 4c 4c 3d 2f RM=xterm?SHELL=/
083 0xbfd4463e 62 69 6e 2f 62 61 73 68 00 58 44 47 5f 53 45 53 bin/bash?XDG_SES
084 0xbfd4464e 53 49 4f 4e 5f 43 4f 4f 4b 49 45 3d 62 31 36 64 SION_COOKIE=b16d
085 0xbfd4465e 61 31 38 34 30 31 37 61 32 32 33 65 33 33 64 66 a184017a223e33df
086 0xbfd4466e 62 63 37 37 30 30 30 30 30 30 32 35 2d 31 33 31 bc7700000025-131
087 0xbfd4467e 36 35 33 32 38 32 36 2e 34 37 36 33 2d 31 39 39 6532826.4763-199
088 0xbfd4468e 38 39 34 31 38 36 34 00 57 49 4e 44 4f 57 49 44 8941864?WINDOWID
089 0xbfd4469e 3d 36 30 38 31 37 34 34 34 00 47 4e 4f 4d 45 5f =60817444?GNOME_
090 0xbfd446ae 4b 45 59 52 49 4e 47 5f 43 4f 4e 54 52 4f 4c 3d KEYRING_CONTROL=
091 0xbfd446be 2f 74 6d 70 2f 6b 65 79 72 69 6e 67 2d 50 46 39 /tmp/keyring-PF9
092 0xbfd446ce 63 57 71 00 47 54 4b 5f 4d 4f 44 55 4c 45 53 3d cWq?GTK_MODULES=
093 0xbfd446de 63 61 6e 62 65 72 72 61 2d 67 74 6b 2d 6d 6f 64 canberra-gtk-mod
094 0xbfd446ee 75 6c 65 00 55 53 45 52 3d 75 62 75 6e 74 75 00 ule?USER=ubuntu?
095 0xbfd446fe 4c 53 5f 43 4f 4c 4f 52 53 3d 72 73 3d 30 3a 64 LS_COLORS=rs=0:d
096 0xbfd4470e 69 3d 30 31 3b 33 34 3a 6c 6e 3d 30 31 3b 33 36 i=01;34:ln=01;36
097 0xbfd4471e 3a 6d 68 3d 30 30 3a 70 69 3d 34 30 3b 33 33 3a :mh=00:pi=40;33:
098 0xbfd4472e 73 6f 3d 30 31 3b 33 35 3a 64 6f 3d 30 31 3b 33 so=01;35:do=01;3
099 0xbfd4473e 35 3a 62 64 3d 34 30 3b 33 33 3b 30 31 3a 63 64 5:bd=40;33;01:cd
100 0xbfd4474e 3d 34 30 3b 33 33 3b 30 31 3a 6f 72 3d 34 30 3b =40;33;01:or=40;
101 0xbfd4475e 33 31 3b 30 31 3a 73 75 3d 33 37 3b 34 31 3a 73 31;01:su=37;41:s
102 0xbfd4476e 67 3d 33 30 3b 34 33 3a 63 61 3d 33 30 3b 34 31 g=30;43:ca=30;41
103 0xbfd4477e 3a 74 77 3d 33 30 3b 34 32 3a 6f 77 3d 33 34 3b :tw=30;42:ow=34;
104 0xbfd4478e 34 32 3a 73 74 3d 33 37 3b 34 34 3a 65 78 3d 30 42:st=37;44:ex=0
105 0xbfd4479e 31 3b 33 32 3a 2a 2e 74 61 72 3d 30 31 3b 33 31 1;32:*.tar=01;31
106 0xbfd447ae 3a 2a 2e 74 67 7a 3d 30 31 3b 33 31 3a 2a 2e 61 :*.tgz=01;31:*.a
107 0xbfd447be 72 6a 3d 30 31 3b 33 31 3a 2a 2e 74 61 7a 3d 30 rj=01;31:*.taz=0
108 0xbfd447ce 31 3b 33 31 3a 2a 2e 6c 7a 68 3d 30 31 3b 33 31 1;31:*.lzh=01;31
109 0xbfd447de 3a 2a 2e 6c 7a 6d 61 3d 30 31 3b 33 31 3a 2a 2e :*.lzma=01;31:*.
110 0xbfd447ee 74 6c 7a 3d 30 31 3b 33 31 3a 2a 2e 74 78 7a 3d tlz=01;31:*.txz=
111 0xbfd447fe 30 31 3b 33 31 3a 2a 2e 7a 69 70 3d 30 31 3b 33 01;31:*.zip=01;3
112 0xbfd4480e 31 3a 2a 2e 7a 3d 30 31 3b 33 31 3a 2a 2e 5a 3d 1:*.z=01;31:*.Z=
113 0xbfd4481e 30 31 3b 33 31 3a 2a 2e 64 7a 3d 30 31 3b 33 31 01;31:*.dz=01;31
114 0xbfd4482e 3a 2a 2e 67 7a 3d 30 31 3b 33 31 3a 2a 2e 6c 7a :*.gz=01;31:*.lz
115 0xbfd4483e 3d 30 31 3b 33 31 3a 2a 2e 78 7a 3d 30 31 3b 33 =01;31:*.xz=01;3
116 0xbfd4484e 31 3a 2a 2e 62 7a 32 3d 30 31 3b 33 31 3a 2a 2e 1:*.bz2=01;31:*.
117 0xbfd4485e 62 7a 3d 30 31 3b 33 31 3a 2a 2e 74 62 7a 3d 30 bz=01;31:*.tbz=0
118 0xbfd4486e 31 3b 33 31 3a 2a 2e 74 62 7a 32 3d 30 31 3b 33 1;31:*.tbz2=01;3
119 0xbfd4487e 31 3a 2a 2e 74 7a 3d 30 31 3b 33 31 3a 2a 2e 64 1:*.tz=01;31:*.d
120 0xbfd4488e 65 62 3d 30 31 3b 33 31 3a 2a 2e 72 70 6d 3d 30 eb=01;31:*.rpm=0
121 0xbfd4489e 31 3b 33 31 3a 2a 2e 6a 61 72 3d 30 31 3b 33 31 1;31:*.jar=01;31
122 0xbfd448ae 3a 2a 2e 72 61 72 3d 30 31 3b 33 31 3a 2a 2e 61 :*.rar=01;31:*.a
123 0xbfd448be 63 65 3d 30 31 3b 33 31 3a 2a 2e 7a 6f 6f 3d 30 ce=01;31:*.zoo=0
124 0xbfd448ce 31 3b 33 31 3a 2a 2e 63 70 69 6f 3d 30 31 3b 33 1;31:*.cpio=01;3
125 0xbfd448de 31 3a 2a 2e 37 7a 3d 30 31 3b 33 31 3a 2a 2e 72 1:*.7z=01;31:*.r
126 0xbfd448ee 7a 3d 30 31 3b 33 31 3a 2a 2e 6a 70 67 3d 30 31 z=01;31:*.jpg=01
127 0xbfd448fe 3b 33 35 3a 2a 2e 6a 70 65 67 3d 30 31 3b 33 35 ;35:*.jpeg=01;35
128 0xbfd4490e 3a 2a 2e 67 69 66 3d 30 31 3b 33 35 3a 2a 2e 62 :*.gif=01;35:*.b
129 0xbfd4491e 6d 70 3d 30 31 3b 33 35 3a 2a 2e 70 62 6d 3d 30 mp=01;35:*.pbm=0
130 0xbfd4492e 31 3b 33 35 3a 2a 2e 70 67 6d 3d 30 31 3b 33 35 1;35:*.pgm=01;35
131 0xbfd4493e 3a 2a 2e 70 70 6d 3d 30 31 3b 33 35 3a 2a 2e 74 :*.ppm=01;35:*.t
132 0xbfd4494e 67 61 3d 30 31 3b 33 35 3a 2a 2e 78 62 6d 3d 30 ga=01;35:*.xbm=0
133 0xbfd4495e 31 3b 33 35 3a 2a 2e 78 70 6d 3d 30 31 3b 33 35 1;35:*.xpm=01;35
134 0xbfd4496e 3a 2a 2e 74 69 66 3d 30 31 3b 33 35 3a 2a 2e 74 :*.tif=01;35:*.t
135 0xbfd4497e 69 66 66 3d 30 31 3b 33 35 3a 2a 2e 70 6e 67 3d iff=01;35:*.png=
136 0xbfd4498e 30 31 3b 33 35 3a 2a 2e 73 76 67 3d 30 31 3b 33 01;35:*.svg=01;3
137 0xbfd4499e 35 3a 2a 2e 73 76 67 7a 3d 30 31 3b 33 35 3a 2a 5:*.svgz=01;35:*
138 0xbfd449ae 2e 6d 6e 67 3d 30 31 3b 33 35 3a 2a 2e 70 63 78 .mng=01;35:*.pcx
139 0xbfd449be 3d 30 31 3b 33 35 3a 2a 2e 6d 6f 76 3d 30 31 3b =01;35:*.mov=01;
140 0xbfd449ce 33 35 3a 2a 2e 6d 70 67 3d 30 31 3b 33 35 3a 2a 35:*.mpg=01;35:*
141 0xbfd449de 2e 6d 70 65 67 3d 30 31 3b 33 35 3a 2a 2e 6d 32 .mpeg=01;35:*.m2
142 0xbfd449ee 76 3d 30 31 3b 33 35 3a 2a 2e 6d 6b 76 3d 30 31 v=01;35:*.mkv=01
143 0xbfd449fe 3b 33 35 3a 2a 2e 6f 67 6d 3d 30 31 3b 33 35 3a ;35:*.ogm=01;35:
144 0xbfd44a0e 2a 2e 6d 70 34 3d 30 31 3b 33 35 3a 2a 2e 6d 34 *.mp4=01;35:*.m4
145 0xbfd44a1e 76 3d 30 31 3b 33 35 3a 2a 2e 6d 70 34 76 3d 30 v=01;35:*.mp4v=0
146 0xbfd44a2e 31 3b 33 35 3a 2a 2e 76 6f 62 3d 30 31 3b 33 35 1;35:*.vob=01;35
147 0xbfd44a3e 3a 2a 2e 71 74 3d 30 31 3b 33 35 3a 2a 2e 6e 75 :*.qt=01;35:*.nu
148 0xbfd44a4e 76 3d 30 31 3b 33 35 3a 2a 2e 77 6d 76 3d 30 31 v=01;35:*.wmv=01
149 0xbfd44a5e 3b 33 35 3a 2a 2e 61 73 66 3d 30 31 3b 33 35 3a ;35:*.asf=01;35:
150 0xbfd44a6e 2a 2e 72 6d 3d 30 31 3b 33 35 3a 2a 2e 72 6d 76 *.rm=01;35:*.rmv
151 0xbfd44a7e 62 3d 30 31 3b 33 35 3a 2a 2e 66 6c 63 3d 30 31 b=01;35:*.flc=01
152 0xbfd44a8e 3b 33 35 3a 2a 2e 61 76 69 3d 30 31 3b 33 35 3a ;35:*.avi=01;35:
153 0xbfd44a9e 2a 2e 66 6c 69 3d 30 31 3b 33 35 3a 2a 2e 66 6c *.fli=01;35:*.fl
154 0xbfd44aae 76 3d 30 31 3b 33 35 3a 2a 2e 67 6c 3d 30 31 3b v=01;35:*.gl=01;
155 0xbfd44abe 33 35 3a 2a 2e 64 6c 3d 30 31 3b 33 35 3a 2a 2e 35:*.dl=01;35:*.
156 0xbfd44ace 78 63 66 3d 30 31 3b 33 35 3a 2a 2e 78 77 64 3d xcf=01;35:*.xwd=
157 0xbfd44ade 30 31 3b 33 35 3a 2a 2e 79 75 76 3d 30 31 3b 33 01;35:*.yuv=01;3
158 0xbfd44aee 35 3a 2a 2e 63 67 6d 3d 30 31 3b 33 35 3a 2a 2e 5:*.cgm=01;35:*.
159 0xbfd44afe 65 6d 66 3d 30 31 3b 33 35 3a 2a 2e 61 78 76 3d emf=01;35:*.axv=
160 0xbfd44b0e 30 31 3b 33 35 3a 2a 2e 61 6e 78 3d 30 31 3b 33 01;35:*.anx=01;3
161 0xbfd44b1e 35 3a 2a 2e 6f 67 76 3d 30 31 3b 33 35 3a 2a 2e 5:*.ogv=01;35:*.
162 0xbfd44b2e 6f 67 78 3d 30 31 3b 33 35 3a 2a 2e 61 61 63 3d ogx=01;35:*.aac=
163 0xbfd44b3e 30 30 3b 33 36 3a 2a 2e 61 75 3d 30 30 3b 33 36 00;36:*.au=00;36
164 0xbfd44b4e 3a 2a 2e 66 6c 61 63 3d 30 30 3b 33 36 3a 2a 2e :*.flac=00;36:*.
165 0xbfd44b5e 6d 69 64 3d 30 30 3b 33 36 3a 2a 2e 6d 69 64 69 mid=00;36:*.midi
166 0xbfd44b6e 3d 30 30 3b 33 36 3a 2a 2e 6d 6b 61 3d 30 30 3b =00;36:*.mka=00;
167 0xbfd44b7e 33 36 3a 2a 2e 6d 70 33 3d 30 30 3b 33 36 3a 2a 36:*.mp3=00;36:*
168 0xbfd44b8e 2e 6d 70 63 3d 30 30 3b 33 36 3a 2a 2e 6f 67 67 .mpc=00;36:*.ogg
169 0xbfd44b9e 3d 30 30 3b 33 36 3a 2a 2e 72 61 3d 30 30 3b 33 =00;36:*.ra=00;3
170 0xbfd44bae 36 3a 2a 2e 77 61 76 3d 30 30 3b 33 36 3a 2a 2e 6:*.wav=00;36:*.
171 0xbfd44bbe 61 78 61 3d 30 30 3b 33 36 3a 2a 2e 6f 67 61 3d axa=00;36:*.oga=
172 0xbfd44bce 30 30 3b 33 36 3a 2a 2e 73 70 78 3d 30 30 3b 33 00;36:*.spx=00;3
173 0xbfd44bde 36 3a 2a 2e 78 73 70 66 3d 30 30 3b 33 36 3a 00 6:*.xspf=00;36:?
174 0xbfd44bee 53 53 48 5f 41 55 54 48 5f 53 4f 43 4b 3d 2f 74 SSH_AUTH_SOCK=/t
175 0xbfd44bfe 6d 70 2f 6b 65 79 72 69 6e 67 2d 50 46 39 63 57 mp/keyring-PF9cW
176 0xbfd44c0e 71 2f 73 73 68 00 53 45 53 53 49 4f 4e 5f 4d 41 q/ssh?SESSION_MA
177 0xbfd44c1e 4e 41 47 45 52 3d 6c 6f 63 61 6c 2f 75 62 75 6e NAGER=local/ubun
178 0xbfd44c2e 74 75 3a 40 2f 74 6d 70 2f 2e 49 43 45 2d 75 6e tu:@/tmp/.ICE-un
179 0xbfd44c3e 69 78 2f 34 32 35 33 2c 75 6e 69 78 2f 75 62 75 ix/4253,unix/ubu
180 0xbfd44c4e 6e 74 75 3a 2f 74 6d 70 2f 2e 49 43 45 2d 75 6e ntu:/tmp/.ICE-un
181 0xbfd44c5e 69 78 2f 34 32 35 33 00 55 53 45 52 4e 41 4d 45 ix/4253?USERNAME
182 0xbfd44c6e 3d 75 62 75 6e 74 75 00 44 45 46 41 55 4c 54 53 =ubuntu?DEFAULTS
183 0xbfd44c7e 5f 50 41 54 48 3d 2f 75 73 72 2f 73 68 61 72 65 _PATH=/usr/share
184 0xbfd44c8e 2f 67 63 6f 6e 66 2f 67 6e 6f 6d 65 2e 64 65 66 /gconf/gnome.def
185 0xbfd44c9e 61 75 6c 74 2e 70 61 74 68 00 58 44 47 5f 43 4f ault.path?XDG_CO
186 0xbfd44cae 4e 46 49 47 5f 44 49 52 53 3d 2f 65 74 63 2f 78 NFIG_DIRS=/etc/x
187 0xbfd44cbe 64 67 2f 78 64 67 2d 67 6e 6f 6d 65 3a 2f 65 74 dg/xdg-gnome:/et
188 0xbfd44cce 63 2f 78 64 67 00 50 41 54 48 3d 2f 75 73 72 2f c/xdg?PATH=/usr/
189 0xbfd44cde 6c 6f 63 61 6c 2f 73 62 69 6e 3a 2f 75 73 72 2f local/sbin:/usr/
190 0xbfd44cee 6c 6f 63 61 6c 2f 62 69 6e 3a 2f 75 73 72 2f 73 local/bin:/usr/s
191 0xbfd44cfe 62 69 6e 3a 2f 75 73 72 2f 62 69 6e 3a 2f 73 62 bin:/usr/bin:/sb
192 0xbfd44d0e 69 6e 3a 2f 62 69 6e 3a 2f 75 73 72 2f 67 61 6d in:/bin:/usr/gam
193 0xbfd44d1e 65 73 00 44 45 53 4b 54 4f 50 5f 53 45 53 53 49 es?DESKTOP_SESSI
194 0xbfd44d2e 4f 4e 3d 67 6e 6f 6d 65 00 50 57 44 3d 2f 68 6f ON=gnome?PWD=/ho
195 0xbfd44d3e 6d 65 2f 75 62 75 6e 74 75 2f 44 65 73 6b 74 6f me/ubuntu/Deskto
196 0xbfd44d4e 70 00 47 44 4d 5f 4b 45 59 42 4f 41 52 44 5f 4c p?GDM_KEYBOARD_L
197 0xbfd44d5e 41 59 4f 55 54 3d 75 73 00 4c 41 4e 47 3d 65 6e AYOUT=us?LANG=en
198 0xbfd44d6e 5f 55 53 2e 55 54 46 2d 38 00 47 44 4d 5f 4c 41 _US.UTF-8?GDM_LA
199 0xbfd44d7e 4e 47 3d 65 6e 5f 55 53 2e 55 54 46 2d 38 00 4d NG=en_US.UTF-8?M
200 0xbfd44d8e 41 4e 44 41 54 4f 52 59 5f 50 41 54 48 3d 2f 75 ANDATORY_PATH=/u
201 0xbfd44d9e 73 72 2f 73 68 61 72 65 2f 67 63 6f 6e 66 2f 67 sr/share/gconf/g
202 0xbfd44dae 6e 6f 6d 65 2e 6d 61 6e 64 61 74 6f 72 79 2e 70 nome.mandatory.p
203 0xbfd44dbe 61 74 68 00 55 42 55 4e 54 55 5f 4d 45 4e 55 50 ath?UBUNTU_MENUP
204 0xbfd44dce 52 4f 58 59 3d 6c 69 62 61 70 70 6d 65 6e 75 2e ROXY=libappmenu.
205 0xbfd44dde 73 6f 00 43 4f 4d 50 49 5a 5f 43 4f 4e 46 49 47 so?COMPIZ_CONFIG
206 0xbfd44dee 5f 50 52 4f 46 49 4c 45 3d 75 62 75 6e 74 75 00 _PROFILE=ubuntu?
207 0xbfd44dfe 47 44 4d 53 45 53 53 49 4f 4e 3d 67 6e 6f 6d 65 GDMSESSION=gnome
208 0xbfd44e0e 00 53 48 4c 56 4c 3d 31 00 48 4f 4d 45 3d 2f 68 ?SHLVL=1?HOME=/h
209 0xbfd44e1e 6f 6d 65 2f 75 62 75 6e 74 75 00 4c 41 4e 47 55 ome/ubuntu?LANGU
210 0xbfd44e2e 41 47 45 3d 65 6e 5f 55 53 3a 65 6e 00 47 4e 4f AGE=en_US:en?GNO
211 0xbfd44e3e 4d 45 5f 44 45 53 4b 54 4f 50 5f 53 45 53 53 49 ME_DESKTOP_SESSI
212 0xbfd44e4e 4f 4e 5f 49 44 3d 74 68 69 73 2d 69 73 2d 64 65 ON_ID=this-is-de
213 0xbfd44e5e 70 72 65 63 61 74 65 64 00 4c 4f 47 4e 41 4d 45 precated?LOGNAME
214 0xbfd44e6e 3d 75 62 75 6e 74 75 00 58 44 47 5f 44 41 54 41 =ubuntu?XDG_DATA
215 0xbfd44e7e 5f 44 49 52 53 3d 2f 75 73 72 2f 73 68 61 72 65 _DIRS=/usr/share
216 0xbfd44e8e 2f 67 6e 6f 6d 65 3a 2f 75 73 72 2f 6c 6f 63 61 /gnome:/usr/loca
217 0xbfd44e9e 6c 2f 73 68 61 72 65 2f 3a 2f 75 73 72 2f 73 68 l/share/:/usr/sh
218 0xbfd44eae 61 72 65 2f 00 44 42 55 53 5f 53 45 53 53 49 4f are/?DBUS_SESSIO
219 0xbfd44ebe 4e 5f 42 55 53 5f 41 44 44 52 45 53 53 3d 75 6e N_BUS_ADDRESS=un
220 0xbfd44ece 69 78 3a 61 62 73 74 72 61 63 74 3d 2f 74 6d 70 ix:abstract=/tmp
221 0xbfd44ede 2f 64 62 75 73 2d 44 54 62 6e 31 48 4e 5a 46 55 /dbus-DTbn1HNZFU
222 0xbfd44eee 2c 67 75 69 64 3d 33 62 32 61 30 63 32 66 35 35 ,guid=3b2a0c2f55
223 0xbfd44efe 33 35 32 61 32 64 37 30 36 37 38 66 66 63 30 30 352a2d70678ffc00
224 0xbfd44f0e 30 30 30 30 61 33 00 4c 45 53 53 4f 50 45 4e 3d 0000a3?LESSOPEN=
225 0xbfd44f1e 7c 20 2f 75 73 72 2f 62 69 6e 2f 6c 65 73 73 70 | /usr/bin/lessp
226 0xbfd44f2e 69 70 65 20 25 73 00 57 49 4e 44 4f 57 50 41 54 ipe %s?WINDOWPAT
227 0xbfd44f3e 48 3d 37 00 44 49 53 50 4c 41 59 3d 3a 30 2e 30 H=7?DISPLAY=:0.0
228 0xbfd44f4e 00 4c 45 53 53 43 4c 4f 53 45 3d 2f 75 73 72 2f ?LESSCLOSE=/usr/
229 0xbfd44f5e 62 69 6e 2f 6c 65 73 73 70 69 70 65 20 25 73 20 bin/lesspipe %s
230 0xbfd44f6e 25 73 00 52 55 4e 4e 49 4e 47 5f 55 4e 44 45 52 %s?RUNNING_UNDER
231 0xbfd44f7e 5f 47 44 4d 3d 79 65 73 00 43 4f 4c 4f 52 54 45 _GDM=yes?COLORTE
232 0xbfd44f8e 52 4d 3d 67 6e 6f 6d 65 2d 74 65 72 6d 69 6e 61 RM=gnome-termina
233 0xbfd44f9e 6c 00 58 41 55 54 48 4f 52 49 54 59 3d 2f 76 61 l?XAUTHORITY=/va
234 0xbfd44fae 72 2f 72 75 6e 2f 67 64 6d 2f 61 75 74 68 2d 66 r/run/gdm/auth-f
235 0xbfd44fbe 6f 72 2d 75 62 75 6e 74 75 2d 5a 61 30 58 77 78 or-ubuntu-Za0Xwx
236 0xbfd44fce 2f 64 61 74 61 62 61 73 65 00 5f 3d 2e 2f 6d 61 /database?_=./ma
237 0xbfd44fde 69 6e 00 4f 4c 44 50 57 44 3d 2f 68 6f 6d 65 2f in?OLDPWD=/home/
238 0xbfd44fee 75 62 75 6e 74 75 00 2e 2f 6d 61 69 6e 00 00 00 ubuntu?./main???
239 0xbfd44ffe 00 00 Segmentation fault (core dumped)
At the moment, I have figured out following things (starting from line 001):
- 001 buffer tekst
- 014 argc
- 014-015 pointers to argv[i]
- 015 4x null byte
- 015-025 pointers to env[i]
- 025-026 4x null byte
- 038-076 many 0 bytes
- 076-078 strings of command line arguments
- 078-238 strings of environments variables
- 238 name of program
- 238-239 4x null byte
There are two questions:
- What is the other content of stack?
- What are used these multiple zeroes between lines 038 and 076 for?
Program was compiled in Ubuntu 11.04.
|
c++
|
ubuntu
| null | null | null |
09/21/2011 06:34:41
|
too localized
|
Content of stack before main function
===
There is such program to print everything before main function starting from specific string:
#include <iostream>
#include <locale>
#include <unistd.h>
int main(int argc, char* argv[], char* env[]) {
char tekst[] = "HERE_IS_START";
for (int i = 0; i < argc; i++) {
std::cout << "argv[" << i << "]" << argv[i] << " " << std::hex <<
(int) argv[i] << " " << &argv[i] << std::endl;
}
int z = 0;
for (char** env_ = env; *env_ != 0; env_++) {
std::cout << "env[" << z++ << "]" << *env_ << " " << std::hex <<
(int) *env << " " << &(*env_) << std::endl;
}
int row = 16;
char* wsk = tekst;
for (int i = 0;; i++) {
if (i + 1 < 10)std::cout << 0;
if (i + 1 < 100)std::cout << 0;
std::cout << std::dec << (i + 1) << " 0x" << std::hex << (int) wsk << " ";
for (int j = 0; j < row; j++) {
if ((unsigned int) (unsigned char) (wsk[j]) < 16)
std::cout << 0;
std::cout << (unsigned int) (unsigned char) (wsk[j]) <<
" " << std::flush;
}
for (int j = 0; j < row; j++) {
if (isprint((char) (wsk[j])))
std::cout << (char) (wsk[j]);
else
std::cout << '?';
}
std::cout << std::endl;
wsk = wsk + row;
}
return 0;
}
This program first prints arguments from command line, with pointers to these arguments, addresses of these pointers and addresses of arguments. Then similar thing is done for environment variables (however there is a small bug). After that, there is printed all content of stack starting from buffer "tekst" to beginning of stack, and then program crashes. Content of stack is printed as lines: number of line, address in memory, 16 consecutive bytes in hexadecimal form, 16 consecutive bytes in character form. One of outputs:
ubuntu@ubuntu:~/Desktop$ ./main first_arg second_arg third_arg
argv[0]./main bfd445d1 0xbfd441f4
argv[1]first_arg bfd445d8 0xbfd441f8
argv[2]second_arg bfd445e2 0xbfd441fc
argv[3]third_arg bfd445ed 0xbfd44200
env[0]ORBIT_SOCKETDIR=/tmp/orbit-ubuntu bfd445f7 0xbfd44208
env[1]SSH_AGENT_PID=4294 bfd445f7 0xbfd4420c
env[2]TERM=xterm bfd445f7 0xbfd44210
env[3]SHELL=/bin/bash bfd445f7 0xbfd44214
env[4]XDG_SESSION_COOKIE=b16da184017a223e33dfbc7700000025-1316532826.4763-1998941864 bfd445f7 0xbfd44218
env[5]WINDOWID=60817444 bfd445f7 0xbfd4421c
env[6]GNOME_KEYRING_CONTROL=/tmp/keyring-PF9cWq bfd445f7 0xbfd44220
env[7]GTK_MODULES=canberra-gtk-module bfd445f7 0xbfd44224
env[8]USER=ubuntu bfd445f7 0xbfd44228
env[9]LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: bfd445f7 0xbfd4422c
env[a]SSH_AUTH_SOCK=/tmp/keyring-PF9cWq/ssh bfd445f7 0xbfd44230
env[b]SESSION_MANAGER=local/ubuntu:@/tmp/.ICE-unix/4253,unix/ubuntu:/tmp/.ICE-unix/4253 bfd445f7 0xbfd44234
env[c]USERNAME=ubuntu bfd445f7 0xbfd44238
env[d]DEFAULTS_PATH=/usr/share/gconf/gnome.default.path bfd445f7 0xbfd4423c
env[e]XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg bfd445f7 0xbfd44240
env[f]PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games bfd445f7 0xbfd44244
env[10]DESKTOP_SESSION=gnome bfd445f7 0xbfd44248
env[11]PWD=/home/ubuntu/Desktop bfd445f7 0xbfd4424c
env[12]GDM_KEYBOARD_LAYOUT=us bfd445f7 0xbfd44250
env[13]LANG=en_US.UTF-8 bfd445f7 0xbfd44254
env[14]GDM_LANG=en_US.UTF-8 bfd445f7 0xbfd44258
env[15]MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path bfd445f7 0xbfd4425c
env[16]UBUNTU_MENUPROXY=libappmenu.so bfd445f7 0xbfd44260
env[17]COMPIZ_CONFIG_PROFILE=ubuntu bfd445f7 0xbfd44264
env[18]GDMSESSION=gnome bfd445f7 0xbfd44268
env[19]SHLVL=1 bfd445f7 0xbfd4426c
env[1a]HOME=/home/ubuntu bfd445f7 0xbfd44270
env[1b]LANGUAGE=en_US:en bfd445f7 0xbfd44274
env[1c]GNOME_DESKTOP_SESSION_ID=this-is-deprecated bfd445f7 0xbfd44278
env[1d]LOGNAME=ubuntu bfd445f7 0xbfd4427c
env[1e]XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/ bfd445f7 0xbfd44280
env[1f]DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DTbn1HNZFU,guid=3b2a0c2f55352a2d70678ffc000000a3 bfd445f7 0xbfd44284
env[20]LESSOPEN=| /usr/bin/lesspipe %s bfd445f7 0xbfd44288
env[21]WINDOWPATH=7 bfd445f7 0xbfd4428c
env[22]DISPLAY=:0.0 bfd445f7 0xbfd44290
env[23]LESSCLOSE=/usr/bin/lesspipe %s %s bfd445f7 0xbfd44294
env[24]RUNNING_UNDER_GDM=yes bfd445f7 0xbfd44298
env[25]COLORTERM=gnome-terminal bfd445f7 0xbfd4429c
env[26]XAUTHORITY=/var/run/gdm/auth-for-ubuntu-Za0Xwx/database bfd445f7 0xbfd442a0
env[27]_=./main bfd445f7 0xbfd442a4
env[28]OLDPWD=/home/ubuntu bfd445f7 0xbfd442a8
001 0xbfd4411e 48 45 52 45 5f 49 53 5f 53 54 41 52 54 00 00 f0 HERE_IS_START???
002 0xbfd4412e fc e2 35 ad 28 00 f4 7f 3b 00 00 00 00 00 00 00 ??5?(???;???????
003 0xbfd4413e 00 00 60 8d 04 08 00 00 00 00 c8 41 d4 bf 37 1e ??`????????A??7?
004 0xbfd4414e 27 00 04 00 00 00 f4 41 d4 bf 08 42 d4 bf 14 44 '??????A???B???D
005 0xbfd4415e 85 00 ff ff ff ff f4 9f b7 00 f4 84 04 08 01 00 ????????????????
006 0xbfd4416e 00 00 b0 41 d4 bf 31 aa b6 00 d0 aa b7 00 30 86 ???A??1???????0?
007 0xbfd4417e 8c b7 01 00 00 00 f4 7f 3b 00 00 00 00 00 00 00 ????????;???????
008 0xbfd4418e 00 00 c8 41 d4 bf c1 93 97 8b be ca 2e 6d 00 00 ???A????????.m??
009 0xbfd4419e 00 00 00 00 00 00 00 00 00 00 04 00 00 00 60 87 ??????????????`?
010 0xbfd441ae 04 08 00 00 00 00 40 0c b7 00 5b 1d 27 00 f4 9f ??????@???[?'???
011 0xbfd441be b7 00 04 00 00 00 60 87 04 08 00 00 00 00 81 87 ??????`?????????
012 0xbfd441ce 04 08 14 88 04 08 04 00 00 00 f4 41 d4 bf 60 8d ???????????A??`?
013 0xbfd441de 04 08 c0 8d 04 08 50 ba b6 00 ec 41 d4 bf 18 a9 ??????P????A????
014 0xbfd441ee b7 00 04 00 00 00 d1 45 d4 bf d8 45 d4 bf e2 45 ???????E???E???E
015 0xbfd441fe d4 bf ed 45 d4 bf 00 00 00 00 f7 45 d4 bf 19 46 ???E???????E???F
016 0xbfd4420e d4 bf 2c 46 d4 bf 37 46 d4 bf 47 46 d4 bf 96 46 ??,F??7F??GF???F
017 0xbfd4421e d4 bf a8 46 d4 bf d2 46 d4 bf f2 46 d4 bf fe 46 ???F???F???F???F
018 0xbfd4422e d4 bf ee 4b d4 bf 14 4c d4 bf 66 4c d4 bf 76 4c ???K???L??fL??vL
019 0xbfd4423e d4 bf a8 4c d4 bf d4 4c d4 bf 21 4d d4 bf 37 4d ???L???L??!M??7M
020 0xbfd4424e d4 bf 50 4d d4 bf 67 4d d4 bf 78 4d d4 bf 8d 4d ??PM??gM??xM???M
021 0xbfd4425e d4 bf c2 4d d4 bf e1 4d d4 bf fe 4d d4 bf 0f 4e ???M???M???M???N
022 0xbfd4426e d4 bf 17 4e d4 bf 29 4e d4 bf 3b 4e d4 bf 67 4e ???N??)N??;N??gN
023 0xbfd4427e d4 bf 76 4e d4 bf b3 4e d4 bf 15 4f d4 bf 35 4f ??vN???N???O??5O
024 0xbfd4428e d4 bf 42 4f d4 bf 4f 4f d4 bf 71 4f d4 bf 87 4f ??BO??OO??qO???O
025 0xbfd4429e d4 bf a0 4f d4 bf d8 4f d4 bf e1 4f d4 bf 00 00 ???O???O???O????
026 0xbfd442ae 00 00 20 00 00 00 14 44 85 00 21 00 00 00 00 40 ?? ????D??!????@
027 0xbfd442be 85 00 10 00 00 00 bf f3 8b 07 06 00 00 00 00 10 ????????????????
028 0xbfd442ce 00 00 11 00 00 00 64 00 00 00 03 00 00 00 34 80 ??????d???????4?
029 0xbfd442de 04 08 04 00 00 00 20 00 00 00 05 00 00 00 09 00 ?????? ?????????
030 0xbfd442ee 00 00 07 00 00 00 00 d0 b5 00 08 00 00 00 00 00 ????????????????
031 0xbfd442fe 00 00 09 00 00 00 60 87 04 08 0b 00 00 00 e7 03 ??????`?????????
032 0xbfd4430e 00 00 0c 00 00 00 e7 03 00 00 0d 00 00 00 e7 03 ????????????????
033 0xbfd4431e 00 00 0e 00 00 00 e7 03 00 00 17 00 00 00 00 00 ????????????????
034 0xbfd4432e 00 00 19 00 00 00 5b 43 d4 bf 1f 00 00 00 f5 4f ??????[C???????O
035 0xbfd4433e d4 bf 0f 00 00 00 6b 43 d4 bf 00 00 00 00 00 00 ??????kC????????
036 0xbfd4434e 00 00 00 00 00 00 00 00 00 00 00 00 00 f0 fc e2 ????????????????
037 0xbfd4435e 43 99 8a 11 5f 85 d2 1d 7b 09 fc 02 c6 69 36 38 C???_???{????i68
038 0xbfd4436e 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6???????????????
039 0xbfd4437e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
040 0xbfd4438e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
041 0xbfd4439e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
042 0xbfd443ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
043 0xbfd443be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
044 0xbfd443ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
045 0xbfd443de 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
046 0xbfd443ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
047 0xbfd443fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
048 0xbfd4440e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
049 0xbfd4441e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
050 0xbfd4442e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
051 0xbfd4443e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
052 0xbfd4444e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
053 0xbfd4445e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
054 0xbfd4446e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
055 0xbfd4447e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
056 0xbfd4448e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
057 0xbfd4449e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
058 0xbfd444ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
059 0xbfd444be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
060 0xbfd444ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
061 0xbfd444de 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
062 0xbfd444ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
063 0xbfd444fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
064 0xbfd4450e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
065 0xbfd4451e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
066 0xbfd4452e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
067 0xbfd4453e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
068 0xbfd4454e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
069 0xbfd4455e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
070 0xbfd4456e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
071 0xbfd4457e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
072 0xbfd4458e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
073 0xbfd4459e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
074 0xbfd445ae 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
075 0xbfd445be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ????????????????
076 0xbfd445ce 00 00 00 2e 2f 6d 61 69 6e 00 66 69 72 73 74 5f ???./main?first_
077 0xbfd445de 61 72 67 00 73 65 63 6f 6e 64 5f 61 72 67 00 74 arg?second_arg?t
078 0xbfd445ee 68 69 72 64 5f 61 72 67 00 4f 52 42 49 54 5f 53 hird_arg?ORBIT_S
079 0xbfd445fe 4f 43 4b 45 54 44 49 52 3d 2f 74 6d 70 2f 6f 72 OCKETDIR=/tmp/or
080 0xbfd4460e 62 69 74 2d 75 62 75 6e 74 75 00 53 53 48 5f 41 bit-ubuntu?SSH_A
081 0xbfd4461e 47 45 4e 54 5f 50 49 44 3d 34 32 39 34 00 54 45 GENT_PID=4294?TE
082 0xbfd4462e 52 4d 3d 78 74 65 72 6d 00 53 48 45 4c 4c 3d 2f RM=xterm?SHELL=/
083 0xbfd4463e 62 69 6e 2f 62 61 73 68 00 58 44 47 5f 53 45 53 bin/bash?XDG_SES
084 0xbfd4464e 53 49 4f 4e 5f 43 4f 4f 4b 49 45 3d 62 31 36 64 SION_COOKIE=b16d
085 0xbfd4465e 61 31 38 34 30 31 37 61 32 32 33 65 33 33 64 66 a184017a223e33df
086 0xbfd4466e 62 63 37 37 30 30 30 30 30 30 32 35 2d 31 33 31 bc7700000025-131
087 0xbfd4467e 36 35 33 32 38 32 36 2e 34 37 36 33 2d 31 39 39 6532826.4763-199
088 0xbfd4468e 38 39 34 31 38 36 34 00 57 49 4e 44 4f 57 49 44 8941864?WINDOWID
089 0xbfd4469e 3d 36 30 38 31 37 34 34 34 00 47 4e 4f 4d 45 5f =60817444?GNOME_
090 0xbfd446ae 4b 45 59 52 49 4e 47 5f 43 4f 4e 54 52 4f 4c 3d KEYRING_CONTROL=
091 0xbfd446be 2f 74 6d 70 2f 6b 65 79 72 69 6e 67 2d 50 46 39 /tmp/keyring-PF9
092 0xbfd446ce 63 57 71 00 47 54 4b 5f 4d 4f 44 55 4c 45 53 3d cWq?GTK_MODULES=
093 0xbfd446de 63 61 6e 62 65 72 72 61 2d 67 74 6b 2d 6d 6f 64 canberra-gtk-mod
094 0xbfd446ee 75 6c 65 00 55 53 45 52 3d 75 62 75 6e 74 75 00 ule?USER=ubuntu?
095 0xbfd446fe 4c 53 5f 43 4f 4c 4f 52 53 3d 72 73 3d 30 3a 64 LS_COLORS=rs=0:d
096 0xbfd4470e 69 3d 30 31 3b 33 34 3a 6c 6e 3d 30 31 3b 33 36 i=01;34:ln=01;36
097 0xbfd4471e 3a 6d 68 3d 30 30 3a 70 69 3d 34 30 3b 33 33 3a :mh=00:pi=40;33:
098 0xbfd4472e 73 6f 3d 30 31 3b 33 35 3a 64 6f 3d 30 31 3b 33 so=01;35:do=01;3
099 0xbfd4473e 35 3a 62 64 3d 34 30 3b 33 33 3b 30 31 3a 63 64 5:bd=40;33;01:cd
100 0xbfd4474e 3d 34 30 3b 33 33 3b 30 31 3a 6f 72 3d 34 30 3b =40;33;01:or=40;
101 0xbfd4475e 33 31 3b 30 31 3a 73 75 3d 33 37 3b 34 31 3a 73 31;01:su=37;41:s
102 0xbfd4476e 67 3d 33 30 3b 34 33 3a 63 61 3d 33 30 3b 34 31 g=30;43:ca=30;41
103 0xbfd4477e 3a 74 77 3d 33 30 3b 34 32 3a 6f 77 3d 33 34 3b :tw=30;42:ow=34;
104 0xbfd4478e 34 32 3a 73 74 3d 33 37 3b 34 34 3a 65 78 3d 30 42:st=37;44:ex=0
105 0xbfd4479e 31 3b 33 32 3a 2a 2e 74 61 72 3d 30 31 3b 33 31 1;32:*.tar=01;31
106 0xbfd447ae 3a 2a 2e 74 67 7a 3d 30 31 3b 33 31 3a 2a 2e 61 :*.tgz=01;31:*.a
107 0xbfd447be 72 6a 3d 30 31 3b 33 31 3a 2a 2e 74 61 7a 3d 30 rj=01;31:*.taz=0
108 0xbfd447ce 31 3b 33 31 3a 2a 2e 6c 7a 68 3d 30 31 3b 33 31 1;31:*.lzh=01;31
109 0xbfd447de 3a 2a 2e 6c 7a 6d 61 3d 30 31 3b 33 31 3a 2a 2e :*.lzma=01;31:*.
110 0xbfd447ee 74 6c 7a 3d 30 31 3b 33 31 3a 2a 2e 74 78 7a 3d tlz=01;31:*.txz=
111 0xbfd447fe 30 31 3b 33 31 3a 2a 2e 7a 69 70 3d 30 31 3b 33 01;31:*.zip=01;3
112 0xbfd4480e 31 3a 2a 2e 7a 3d 30 31 3b 33 31 3a 2a 2e 5a 3d 1:*.z=01;31:*.Z=
113 0xbfd4481e 30 31 3b 33 31 3a 2a 2e 64 7a 3d 30 31 3b 33 31 01;31:*.dz=01;31
114 0xbfd4482e 3a 2a 2e 67 7a 3d 30 31 3b 33 31 3a 2a 2e 6c 7a :*.gz=01;31:*.lz
115 0xbfd4483e 3d 30 31 3b 33 31 3a 2a 2e 78 7a 3d 30 31 3b 33 =01;31:*.xz=01;3
116 0xbfd4484e 31 3a 2a 2e 62 7a 32 3d 30 31 3b 33 31 3a 2a 2e 1:*.bz2=01;31:*.
117 0xbfd4485e 62 7a 3d 30 31 3b 33 31 3a 2a 2e 74 62 7a 3d 30 bz=01;31:*.tbz=0
118 0xbfd4486e 31 3b 33 31 3a 2a 2e 74 62 7a 32 3d 30 31 3b 33 1;31:*.tbz2=01;3
119 0xbfd4487e 31 3a 2a 2e 74 7a 3d 30 31 3b 33 31 3a 2a 2e 64 1:*.tz=01;31:*.d
120 0xbfd4488e 65 62 3d 30 31 3b 33 31 3a 2a 2e 72 70 6d 3d 30 eb=01;31:*.rpm=0
121 0xbfd4489e 31 3b 33 31 3a 2a 2e 6a 61 72 3d 30 31 3b 33 31 1;31:*.jar=01;31
122 0xbfd448ae 3a 2a 2e 72 61 72 3d 30 31 3b 33 31 3a 2a 2e 61 :*.rar=01;31:*.a
123 0xbfd448be 63 65 3d 30 31 3b 33 31 3a 2a 2e 7a 6f 6f 3d 30 ce=01;31:*.zoo=0
124 0xbfd448ce 31 3b 33 31 3a 2a 2e 63 70 69 6f 3d 30 31 3b 33 1;31:*.cpio=01;3
125 0xbfd448de 31 3a 2a 2e 37 7a 3d 30 31 3b 33 31 3a 2a 2e 72 1:*.7z=01;31:*.r
126 0xbfd448ee 7a 3d 30 31 3b 33 31 3a 2a 2e 6a 70 67 3d 30 31 z=01;31:*.jpg=01
127 0xbfd448fe 3b 33 35 3a 2a 2e 6a 70 65 67 3d 30 31 3b 33 35 ;35:*.jpeg=01;35
128 0xbfd4490e 3a 2a 2e 67 69 66 3d 30 31 3b 33 35 3a 2a 2e 62 :*.gif=01;35:*.b
129 0xbfd4491e 6d 70 3d 30 31 3b 33 35 3a 2a 2e 70 62 6d 3d 30 mp=01;35:*.pbm=0
130 0xbfd4492e 31 3b 33 35 3a 2a 2e 70 67 6d 3d 30 31 3b 33 35 1;35:*.pgm=01;35
131 0xbfd4493e 3a 2a 2e 70 70 6d 3d 30 31 3b 33 35 3a 2a 2e 74 :*.ppm=01;35:*.t
132 0xbfd4494e 67 61 3d 30 31 3b 33 35 3a 2a 2e 78 62 6d 3d 30 ga=01;35:*.xbm=0
133 0xbfd4495e 31 3b 33 35 3a 2a 2e 78 70 6d 3d 30 31 3b 33 35 1;35:*.xpm=01;35
134 0xbfd4496e 3a 2a 2e 74 69 66 3d 30 31 3b 33 35 3a 2a 2e 74 :*.tif=01;35:*.t
135 0xbfd4497e 69 66 66 3d 30 31 3b 33 35 3a 2a 2e 70 6e 67 3d iff=01;35:*.png=
136 0xbfd4498e 30 31 3b 33 35 3a 2a 2e 73 76 67 3d 30 31 3b 33 01;35:*.svg=01;3
137 0xbfd4499e 35 3a 2a 2e 73 76 67 7a 3d 30 31 3b 33 35 3a 2a 5:*.svgz=01;35:*
138 0xbfd449ae 2e 6d 6e 67 3d 30 31 3b 33 35 3a 2a 2e 70 63 78 .mng=01;35:*.pcx
139 0xbfd449be 3d 30 31 3b 33 35 3a 2a 2e 6d 6f 76 3d 30 31 3b =01;35:*.mov=01;
140 0xbfd449ce 33 35 3a 2a 2e 6d 70 67 3d 30 31 3b 33 35 3a 2a 35:*.mpg=01;35:*
141 0xbfd449de 2e 6d 70 65 67 3d 30 31 3b 33 35 3a 2a 2e 6d 32 .mpeg=01;35:*.m2
142 0xbfd449ee 76 3d 30 31 3b 33 35 3a 2a 2e 6d 6b 76 3d 30 31 v=01;35:*.mkv=01
143 0xbfd449fe 3b 33 35 3a 2a 2e 6f 67 6d 3d 30 31 3b 33 35 3a ;35:*.ogm=01;35:
144 0xbfd44a0e 2a 2e 6d 70 34 3d 30 31 3b 33 35 3a 2a 2e 6d 34 *.mp4=01;35:*.m4
145 0xbfd44a1e 76 3d 30 31 3b 33 35 3a 2a 2e 6d 70 34 76 3d 30 v=01;35:*.mp4v=0
146 0xbfd44a2e 31 3b 33 35 3a 2a 2e 76 6f 62 3d 30 31 3b 33 35 1;35:*.vob=01;35
147 0xbfd44a3e 3a 2a 2e 71 74 3d 30 31 3b 33 35 3a 2a 2e 6e 75 :*.qt=01;35:*.nu
148 0xbfd44a4e 76 3d 30 31 3b 33 35 3a 2a 2e 77 6d 76 3d 30 31 v=01;35:*.wmv=01
149 0xbfd44a5e 3b 33 35 3a 2a 2e 61 73 66 3d 30 31 3b 33 35 3a ;35:*.asf=01;35:
150 0xbfd44a6e 2a 2e 72 6d 3d 30 31 3b 33 35 3a 2a 2e 72 6d 76 *.rm=01;35:*.rmv
151 0xbfd44a7e 62 3d 30 31 3b 33 35 3a 2a 2e 66 6c 63 3d 30 31 b=01;35:*.flc=01
152 0xbfd44a8e 3b 33 35 3a 2a 2e 61 76 69 3d 30 31 3b 33 35 3a ;35:*.avi=01;35:
153 0xbfd44a9e 2a 2e 66 6c 69 3d 30 31 3b 33 35 3a 2a 2e 66 6c *.fli=01;35:*.fl
154 0xbfd44aae 76 3d 30 31 3b 33 35 3a 2a 2e 67 6c 3d 30 31 3b v=01;35:*.gl=01;
155 0xbfd44abe 33 35 3a 2a 2e 64 6c 3d 30 31 3b 33 35 3a 2a 2e 35:*.dl=01;35:*.
156 0xbfd44ace 78 63 66 3d 30 31 3b 33 35 3a 2a 2e 78 77 64 3d xcf=01;35:*.xwd=
157 0xbfd44ade 30 31 3b 33 35 3a 2a 2e 79 75 76 3d 30 31 3b 33 01;35:*.yuv=01;3
158 0xbfd44aee 35 3a 2a 2e 63 67 6d 3d 30 31 3b 33 35 3a 2a 2e 5:*.cgm=01;35:*.
159 0xbfd44afe 65 6d 66 3d 30 31 3b 33 35 3a 2a 2e 61 78 76 3d emf=01;35:*.axv=
160 0xbfd44b0e 30 31 3b 33 35 3a 2a 2e 61 6e 78 3d 30 31 3b 33 01;35:*.anx=01;3
161 0xbfd44b1e 35 3a 2a 2e 6f 67 76 3d 30 31 3b 33 35 3a 2a 2e 5:*.ogv=01;35:*.
162 0xbfd44b2e 6f 67 78 3d 30 31 3b 33 35 3a 2a 2e 61 61 63 3d ogx=01;35:*.aac=
163 0xbfd44b3e 30 30 3b 33 36 3a 2a 2e 61 75 3d 30 30 3b 33 36 00;36:*.au=00;36
164 0xbfd44b4e 3a 2a 2e 66 6c 61 63 3d 30 30 3b 33 36 3a 2a 2e :*.flac=00;36:*.
165 0xbfd44b5e 6d 69 64 3d 30 30 3b 33 36 3a 2a 2e 6d 69 64 69 mid=00;36:*.midi
166 0xbfd44b6e 3d 30 30 3b 33 36 3a 2a 2e 6d 6b 61 3d 30 30 3b =00;36:*.mka=00;
167 0xbfd44b7e 33 36 3a 2a 2e 6d 70 33 3d 30 30 3b 33 36 3a 2a 36:*.mp3=00;36:*
168 0xbfd44b8e 2e 6d 70 63 3d 30 30 3b 33 36 3a 2a 2e 6f 67 67 .mpc=00;36:*.ogg
169 0xbfd44b9e 3d 30 30 3b 33 36 3a 2a 2e 72 61 3d 30 30 3b 33 =00;36:*.ra=00;3
170 0xbfd44bae 36 3a 2a 2e 77 61 76 3d 30 30 3b 33 36 3a 2a 2e 6:*.wav=00;36:*.
171 0xbfd44bbe 61 78 61 3d 30 30 3b 33 36 3a 2a 2e 6f 67 61 3d axa=00;36:*.oga=
172 0xbfd44bce 30 30 3b 33 36 3a 2a 2e 73 70 78 3d 30 30 3b 33 00;36:*.spx=00;3
173 0xbfd44bde 36 3a 2a 2e 78 73 70 66 3d 30 30 3b 33 36 3a 00 6:*.xspf=00;36:?
174 0xbfd44bee 53 53 48 5f 41 55 54 48 5f 53 4f 43 4b 3d 2f 74 SSH_AUTH_SOCK=/t
175 0xbfd44bfe 6d 70 2f 6b 65 79 72 69 6e 67 2d 50 46 39 63 57 mp/keyring-PF9cW
176 0xbfd44c0e 71 2f 73 73 68 00 53 45 53 53 49 4f 4e 5f 4d 41 q/ssh?SESSION_MA
177 0xbfd44c1e 4e 41 47 45 52 3d 6c 6f 63 61 6c 2f 75 62 75 6e NAGER=local/ubun
178 0xbfd44c2e 74 75 3a 40 2f 74 6d 70 2f 2e 49 43 45 2d 75 6e tu:@/tmp/.ICE-un
179 0xbfd44c3e 69 78 2f 34 32 35 33 2c 75 6e 69 78 2f 75 62 75 ix/4253,unix/ubu
180 0xbfd44c4e 6e 74 75 3a 2f 74 6d 70 2f 2e 49 43 45 2d 75 6e ntu:/tmp/.ICE-un
181 0xbfd44c5e 69 78 2f 34 32 35 33 00 55 53 45 52 4e 41 4d 45 ix/4253?USERNAME
182 0xbfd44c6e 3d 75 62 75 6e 74 75 00 44 45 46 41 55 4c 54 53 =ubuntu?DEFAULTS
183 0xbfd44c7e 5f 50 41 54 48 3d 2f 75 73 72 2f 73 68 61 72 65 _PATH=/usr/share
184 0xbfd44c8e 2f 67 63 6f 6e 66 2f 67 6e 6f 6d 65 2e 64 65 66 /gconf/gnome.def
185 0xbfd44c9e 61 75 6c 74 2e 70 61 74 68 00 58 44 47 5f 43 4f ault.path?XDG_CO
186 0xbfd44cae 4e 46 49 47 5f 44 49 52 53 3d 2f 65 74 63 2f 78 NFIG_DIRS=/etc/x
187 0xbfd44cbe 64 67 2f 78 64 67 2d 67 6e 6f 6d 65 3a 2f 65 74 dg/xdg-gnome:/et
188 0xbfd44cce 63 2f 78 64 67 00 50 41 54 48 3d 2f 75 73 72 2f c/xdg?PATH=/usr/
189 0xbfd44cde 6c 6f 63 61 6c 2f 73 62 69 6e 3a 2f 75 73 72 2f local/sbin:/usr/
190 0xbfd44cee 6c 6f 63 61 6c 2f 62 69 6e 3a 2f 75 73 72 2f 73 local/bin:/usr/s
191 0xbfd44cfe 62 69 6e 3a 2f 75 73 72 2f 62 69 6e 3a 2f 73 62 bin:/usr/bin:/sb
192 0xbfd44d0e 69 6e 3a 2f 62 69 6e 3a 2f 75 73 72 2f 67 61 6d in:/bin:/usr/gam
193 0xbfd44d1e 65 73 00 44 45 53 4b 54 4f 50 5f 53 45 53 53 49 es?DESKTOP_SESSI
194 0xbfd44d2e 4f 4e 3d 67 6e 6f 6d 65 00 50 57 44 3d 2f 68 6f ON=gnome?PWD=/ho
195 0xbfd44d3e 6d 65 2f 75 62 75 6e 74 75 2f 44 65 73 6b 74 6f me/ubuntu/Deskto
196 0xbfd44d4e 70 00 47 44 4d 5f 4b 45 59 42 4f 41 52 44 5f 4c p?GDM_KEYBOARD_L
197 0xbfd44d5e 41 59 4f 55 54 3d 75 73 00 4c 41 4e 47 3d 65 6e AYOUT=us?LANG=en
198 0xbfd44d6e 5f 55 53 2e 55 54 46 2d 38 00 47 44 4d 5f 4c 41 _US.UTF-8?GDM_LA
199 0xbfd44d7e 4e 47 3d 65 6e 5f 55 53 2e 55 54 46 2d 38 00 4d NG=en_US.UTF-8?M
200 0xbfd44d8e 41 4e 44 41 54 4f 52 59 5f 50 41 54 48 3d 2f 75 ANDATORY_PATH=/u
201 0xbfd44d9e 73 72 2f 73 68 61 72 65 2f 67 63 6f 6e 66 2f 67 sr/share/gconf/g
202 0xbfd44dae 6e 6f 6d 65 2e 6d 61 6e 64 61 74 6f 72 79 2e 70 nome.mandatory.p
203 0xbfd44dbe 61 74 68 00 55 42 55 4e 54 55 5f 4d 45 4e 55 50 ath?UBUNTU_MENUP
204 0xbfd44dce 52 4f 58 59 3d 6c 69 62 61 70 70 6d 65 6e 75 2e ROXY=libappmenu.
205 0xbfd44dde 73 6f 00 43 4f 4d 50 49 5a 5f 43 4f 4e 46 49 47 so?COMPIZ_CONFIG
206 0xbfd44dee 5f 50 52 4f 46 49 4c 45 3d 75 62 75 6e 74 75 00 _PROFILE=ubuntu?
207 0xbfd44dfe 47 44 4d 53 45 53 53 49 4f 4e 3d 67 6e 6f 6d 65 GDMSESSION=gnome
208 0xbfd44e0e 00 53 48 4c 56 4c 3d 31 00 48 4f 4d 45 3d 2f 68 ?SHLVL=1?HOME=/h
209 0xbfd44e1e 6f 6d 65 2f 75 62 75 6e 74 75 00 4c 41 4e 47 55 ome/ubuntu?LANGU
210 0xbfd44e2e 41 47 45 3d 65 6e 5f 55 53 3a 65 6e 00 47 4e 4f AGE=en_US:en?GNO
211 0xbfd44e3e 4d 45 5f 44 45 53 4b 54 4f 50 5f 53 45 53 53 49 ME_DESKTOP_SESSI
212 0xbfd44e4e 4f 4e 5f 49 44 3d 74 68 69 73 2d 69 73 2d 64 65 ON_ID=this-is-de
213 0xbfd44e5e 70 72 65 63 61 74 65 64 00 4c 4f 47 4e 41 4d 45 precated?LOGNAME
214 0xbfd44e6e 3d 75 62 75 6e 74 75 00 58 44 47 5f 44 41 54 41 =ubuntu?XDG_DATA
215 0xbfd44e7e 5f 44 49 52 53 3d 2f 75 73 72 2f 73 68 61 72 65 _DIRS=/usr/share
216 0xbfd44e8e 2f 67 6e 6f 6d 65 3a 2f 75 73 72 2f 6c 6f 63 61 /gnome:/usr/loca
217 0xbfd44e9e 6c 2f 73 68 61 72 65 2f 3a 2f 75 73 72 2f 73 68 l/share/:/usr/sh
218 0xbfd44eae 61 72 65 2f 00 44 42 55 53 5f 53 45 53 53 49 4f are/?DBUS_SESSIO
219 0xbfd44ebe 4e 5f 42 55 53 5f 41 44 44 52 45 53 53 3d 75 6e N_BUS_ADDRESS=un
220 0xbfd44ece 69 78 3a 61 62 73 74 72 61 63 74 3d 2f 74 6d 70 ix:abstract=/tmp
221 0xbfd44ede 2f 64 62 75 73 2d 44 54 62 6e 31 48 4e 5a 46 55 /dbus-DTbn1HNZFU
222 0xbfd44eee 2c 67 75 69 64 3d 33 62 32 61 30 63 32 66 35 35 ,guid=3b2a0c2f55
223 0xbfd44efe 33 35 32 61 32 64 37 30 36 37 38 66 66 63 30 30 352a2d70678ffc00
224 0xbfd44f0e 30 30 30 30 61 33 00 4c 45 53 53 4f 50 45 4e 3d 0000a3?LESSOPEN=
225 0xbfd44f1e 7c 20 2f 75 73 72 2f 62 69 6e 2f 6c 65 73 73 70 | /usr/bin/lessp
226 0xbfd44f2e 69 70 65 20 25 73 00 57 49 4e 44 4f 57 50 41 54 ipe %s?WINDOWPAT
227 0xbfd44f3e 48 3d 37 00 44 49 53 50 4c 41 59 3d 3a 30 2e 30 H=7?DISPLAY=:0.0
228 0xbfd44f4e 00 4c 45 53 53 43 4c 4f 53 45 3d 2f 75 73 72 2f ?LESSCLOSE=/usr/
229 0xbfd44f5e 62 69 6e 2f 6c 65 73 73 70 69 70 65 20 25 73 20 bin/lesspipe %s
230 0xbfd44f6e 25 73 00 52 55 4e 4e 49 4e 47 5f 55 4e 44 45 52 %s?RUNNING_UNDER
231 0xbfd44f7e 5f 47 44 4d 3d 79 65 73 00 43 4f 4c 4f 52 54 45 _GDM=yes?COLORTE
232 0xbfd44f8e 52 4d 3d 67 6e 6f 6d 65 2d 74 65 72 6d 69 6e 61 RM=gnome-termina
233 0xbfd44f9e 6c 00 58 41 55 54 48 4f 52 49 54 59 3d 2f 76 61 l?XAUTHORITY=/va
234 0xbfd44fae 72 2f 72 75 6e 2f 67 64 6d 2f 61 75 74 68 2d 66 r/run/gdm/auth-f
235 0xbfd44fbe 6f 72 2d 75 62 75 6e 74 75 2d 5a 61 30 58 77 78 or-ubuntu-Za0Xwx
236 0xbfd44fce 2f 64 61 74 61 62 61 73 65 00 5f 3d 2e 2f 6d 61 /database?_=./ma
237 0xbfd44fde 69 6e 00 4f 4c 44 50 57 44 3d 2f 68 6f 6d 65 2f in?OLDPWD=/home/
238 0xbfd44fee 75 62 75 6e 74 75 00 2e 2f 6d 61 69 6e 00 00 00 ubuntu?./main???
239 0xbfd44ffe 00 00 Segmentation fault (core dumped)
At the moment, I have figured out following things (starting from line 001):
- 001 buffer tekst
- 014 argc
- 014-015 pointers to argv[i]
- 015 4x null byte
- 015-025 pointers to env[i]
- 025-026 4x null byte
- 038-076 many 0 bytes
- 076-078 strings of command line arguments
- 078-238 strings of environments variables
- 238 name of program
- 238-239 4x null byte
There are two questions:
- What is the other content of stack?
- What are used these multiple zeroes between lines 038 and 076 for?
Program was compiled in Ubuntu 11.04.
| 3 |
8,791,000 |
01/09/2012 15:43:26
| 838,650 |
07/11/2011 10:06:57
| 11 | 0 |
Finger Painting in Android
|
Dear All,
I am working on an application for Android Tablet "Kindle Fire", which includes painting through onTouch event. I need to paint with a colour as I move my finger on the screen. This is working fine in the general emulators, whereas in the higher resolutions ie., for the Tablets i facing a problem of paint delay. I see that the painting activity is starting with a few seconds delay. I am having a delay of around 2-3 seconds after moving my finger.
Please help me with any piece of code which will perfectly work for the Tablet resolution (1024X768) as soon as possible.
Thanks & Regards
|
android
|
events
|
touch
|
painting
| null |
03/01/2012 13:42:41
|
not a real question
|
Finger Painting in Android
===
Dear All,
I am working on an application for Android Tablet "Kindle Fire", which includes painting through onTouch event. I need to paint with a colour as I move my finger on the screen. This is working fine in the general emulators, whereas in the higher resolutions ie., for the Tablets i facing a problem of paint delay. I see that the painting activity is starting with a few seconds delay. I am having a delay of around 2-3 seconds after moving my finger.
Please help me with any piece of code which will perfectly work for the Tablet resolution (1024X768) as soon as possible.
Thanks & Regards
| 1 |
10,051,980 |
04/07/2012 05:10:18
| 1,114,910 |
12/24/2011 22:01:57
| 53 | 0 |
Want to edit a php code
|
I have this code here
<?php echo '<a href="'.$regionLink.'">'.$region->title.'</a>';?>
How can I add this code to < a >
onmouseout="tooltip.hide();"
Can somebody help? Thanks
|
php
|
javascript
|
jquery
|
joomla
| null |
04/07/2012 05:25:18
|
too localized
|
Want to edit a php code
===
I have this code here
<?php echo '<a href="'.$regionLink.'">'.$region->title.'</a>';?>
How can I add this code to < a >
onmouseout="tooltip.hide();"
Can somebody help? Thanks
| 3 |
11,540,788 |
07/18/2012 11:56:11
| 1,527,987 |
07/16/2012 05:41:09
| 11 | 0 |
Suggestions for a large database application
|
We are looking at developing a web based application - which would have a very large database which would be queried quite often and that data would be computed and displayed on the front-end. Its basically any analytics app. Needed your suggestions on the following (our expertise is on open source):
1. What's the recommended database for an ever growing and a large dataset? Of course, it would also depend on the server infrastructure - but from the database point of view, which would you recommend and why?
2. On the programming language - in terms of development time and scalability - what would you recommend? RoR, PHP (CakePHP, etc), anything else?
3. Anything else that we need to know of when developing such data heavy applications?
Insights on these would be much appreciated
Thank you
|
php
|
web-applications
| null | null | null |
07/19/2012 03:02:08
|
not constructive
|
Suggestions for a large database application
===
We are looking at developing a web based application - which would have a very large database which would be queried quite often and that data would be computed and displayed on the front-end. Its basically any analytics app. Needed your suggestions on the following (our expertise is on open source):
1. What's the recommended database for an ever growing and a large dataset? Of course, it would also depend on the server infrastructure - but from the database point of view, which would you recommend and why?
2. On the programming language - in terms of development time and scalability - what would you recommend? RoR, PHP (CakePHP, etc), anything else?
3. Anything else that we need to know of when developing such data heavy applications?
Insights on these would be much appreciated
Thank you
| 4 |
9,723,142 |
03/15/2012 15:41:35
| 138,938 |
07/15/2009 19:32:05
| 119 | 9 |
What fundamentals will I miss if I learn Entity Framework from Code First and DbContext books?
|
I'm learning the Entity Framework by working through Julie Lerman's books. I've started on Code First first, and will work through DbContext next. After I finish those, I will work through Programming Entity Framework.
Which chapters of Programming Entity Framework should I focus on to make sure I get the fundamentals? Which parts should I just skim over? Or do I really need to start with Programming EF and then move on to the others?
|
asp.net
|
asp.net-mvc
|
entity-framework
| null | null |
03/16/2012 04:05:34
|
not constructive
|
What fundamentals will I miss if I learn Entity Framework from Code First and DbContext books?
===
I'm learning the Entity Framework by working through Julie Lerman's books. I've started on Code First first, and will work through DbContext next. After I finish those, I will work through Programming Entity Framework.
Which chapters of Programming Entity Framework should I focus on to make sure I get the fundamentals? Which parts should I just skim over? Or do I really need to start with Programming EF and then move on to the others?
| 4 |
8,574,500 |
12/20/2011 11:09:43
| 1,046,882 |
11/15/2011 05:22:05
| 1 | 0 |
How can I write a Chat client in javascript?
|
I want to write a simple chat client in Javascript that will use little AJAX. I googled, but all chat clients use ajax heavily.Then I will integrate it with my Java based CMS.
|
javascript
| null | null | null | null |
12/20/2011 11:19:31
|
not a real question
|
How can I write a Chat client in javascript?
===
I want to write a simple chat client in Javascript that will use little AJAX. I googled, but all chat clients use ajax heavily.Then I will integrate it with my Java based CMS.
| 1 |
10,449,251 |
05/04/2012 12:56:59
| 523,921 |
11/29/2010 12:55:01
| 94 | 8 |
How to dynamicly databind the itemsource of WPF Toolkit chart to a public property?
|
How can you dynamicly update the datasource of an WPF ToolKit chartcontrol? In the following example I update the TextBlock.Text property succesfully with {Binding SomeText} and setting the DataContext of the MainWindow to the property Input. (Please see the code below)
TextBlock.Text is binded to Input.SomeText and the Chart is suppose to use Input.ValueList as a datasource.
The chart remains empty though. I can fill it once with placing
lineChart.DataContext = Input.ValueList;
in the Main Window constructor and set the binding in XAML to ItemsSource="{Binding}". I want to update the chart during the run of the application.
I have the following XAML:
<chartingToolkit:Chart Name="lineChart">
<chartingToolkit:LineSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding ValueList}">
</chartingToolkit:LineSeries>
</chartingToolkit:Chart>
<Button Width="100" Height="24" Content="More" Name="Button1" />
<TextBlock Name="TextBlock1" Text="{Binding SomeText}" />
With code:
class MainWindow
{
public DeviceInput Input;
public MainWindow()
{
InitializeComponent();
Input = new DeviceInput();
DataContext = Input;
Input.SomeText = "Lorem ipsum.";
}
private void Button1_Click(System.Object sender, System.Windows.RoutedEventArgs e)
{
Input.AddValues();
}
}
public class DeviceInput : INotifyPropertyChanged
{
private string _SomeText;
public string SomeText {
get { return _SomeText; }
set {
_SomeText = value;
OnPropertyChanged("SomeText");
}
}
public List<KeyValuePair<string, int>> ValueList;
public DeviceInput()
{
ValueList = (new List<KeyValuePair<string, int>>());
AddValues();
}
public void AddValues()
{
//add values
SomeText = "Items: " + ValueList.Count.ToString();
OnPropertyChanged("ValueList");
}
public event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged;
private void OnPropertyChanged(String info)
{
if (PropertyChanged != null) {
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
}
I update SomeText with the count of the ValueList and you can see it rising as it should, however the Chart remains the same.
|
.net
|
wpf
|
charts
| null | null | null |
open
|
How to dynamicly databind the itemsource of WPF Toolkit chart to a public property?
===
How can you dynamicly update the datasource of an WPF ToolKit chartcontrol? In the following example I update the TextBlock.Text property succesfully with {Binding SomeText} and setting the DataContext of the MainWindow to the property Input. (Please see the code below)
TextBlock.Text is binded to Input.SomeText and the Chart is suppose to use Input.ValueList as a datasource.
The chart remains empty though. I can fill it once with placing
lineChart.DataContext = Input.ValueList;
in the Main Window constructor and set the binding in XAML to ItemsSource="{Binding}". I want to update the chart during the run of the application.
I have the following XAML:
<chartingToolkit:Chart Name="lineChart">
<chartingToolkit:LineSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding ValueList}">
</chartingToolkit:LineSeries>
</chartingToolkit:Chart>
<Button Width="100" Height="24" Content="More" Name="Button1" />
<TextBlock Name="TextBlock1" Text="{Binding SomeText}" />
With code:
class MainWindow
{
public DeviceInput Input;
public MainWindow()
{
InitializeComponent();
Input = new DeviceInput();
DataContext = Input;
Input.SomeText = "Lorem ipsum.";
}
private void Button1_Click(System.Object sender, System.Windows.RoutedEventArgs e)
{
Input.AddValues();
}
}
public class DeviceInput : INotifyPropertyChanged
{
private string _SomeText;
public string SomeText {
get { return _SomeText; }
set {
_SomeText = value;
OnPropertyChanged("SomeText");
}
}
public List<KeyValuePair<string, int>> ValueList;
public DeviceInput()
{
ValueList = (new List<KeyValuePair<string, int>>());
AddValues();
}
public void AddValues()
{
//add values
SomeText = "Items: " + ValueList.Count.ToString();
OnPropertyChanged("ValueList");
}
public event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged;
private void OnPropertyChanged(String info)
{
if (PropertyChanged != null) {
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
}
I update SomeText with the count of the ValueList and you can see it rising as it should, however the Chart remains the same.
| 0 |
11,097,475 |
06/19/2012 08:43:37
| 1,019,076 |
10/28/2011 20:28:28
| 32 | 0 |
650MB of bandwidth on a relatively low traffic site?
|
I have a VPS (Linux) with a few sites on it. Most of the sites are just HTML/CSS, but I do have 1 Wordpress site which gets about 100 visitors/day (a caching plugin is installed).
I have been having some problems with a PHP Fatal Error (out of memory) on it and have been trying to find out why. I allocated 128M memory to WP in the wp-config file a few months ago but I still get the PHP out of memory errors every so often.
When I look at my bandwidth on this account it seems pretty high to me on certain days...

Why would my bandwidth spike like that (traffic levels stay the same)? How can I find out the culprit? My server is unmanaged, so my host isn't of much help. Does this bandwidth spike have something to do with the PHP fatal errors I have been getting?
Thanks for all the help, I am still learning :D
|
php
|
wordpress
|
memory
|
memory-management
|
bandwidth
|
06/19/2012 10:23:55
|
not constructive
|
650MB of bandwidth on a relatively low traffic site?
===
I have a VPS (Linux) with a few sites on it. Most of the sites are just HTML/CSS, but I do have 1 Wordpress site which gets about 100 visitors/day (a caching plugin is installed).
I have been having some problems with a PHP Fatal Error (out of memory) on it and have been trying to find out why. I allocated 128M memory to WP in the wp-config file a few months ago but I still get the PHP out of memory errors every so often.
When I look at my bandwidth on this account it seems pretty high to me on certain days...

Why would my bandwidth spike like that (traffic levels stay the same)? How can I find out the culprit? My server is unmanaged, so my host isn't of much help. Does this bandwidth spike have something to do with the PHP fatal errors I have been getting?
Thanks for all the help, I am still learning :D
| 4 |
8,475,257 |
12/12/2011 13:43:42
| 831,679 |
07/06/2011 13:32:33
| 30 | 1 |
iPhone, Using tableview in existing view based project
|
I want to add table view in my view based application, which has a single delegate and some other controllers for different views. Now I want to add a table view with in which on selecting a row a new table view will be opened and in the second tableview selecting a row will show the details related to that row.
Please tell me how can I achieve that, if there is any tutorial related to this then please suggest.
As I have found the tutorials are navigation based. I want as I described above.
|
iphone
|
objective-c
|
ios
| null | null |
12/12/2011 20:26:12
|
not a real question
|
iPhone, Using tableview in existing view based project
===
I want to add table view in my view based application, which has a single delegate and some other controllers for different views. Now I want to add a table view with in which on selecting a row a new table view will be opened and in the second tableview selecting a row will show the details related to that row.
Please tell me how can I achieve that, if there is any tutorial related to this then please suggest.
As I have found the tutorials are navigation based. I want as I described above.
| 1 |
9,798,638 |
03/21/2012 04:34:56
| 1,282,489 |
03/21/2012 04:21:59
| 1 | 0 |
PYTHON HELP PLEASE!! TypeError: coercing to Unicode: need string or buffer, list found
|
this is the error im getting when executing my code could someone plz explain what this means??? please!! i am new to python have been using it only a few weeks for a class project but finding myself lost.
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 62, in <module>
mail("[email protected]","python test","payload from python test",results)
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 42, in mail
part.set_payload(open(attach, 'rb').read())
TypeError: coercing to Unicode: need string or buffer, list found
|
python
|
compiler-errors
|
python-2.7
| null | null | null |
open
|
PYTHON HELP PLEASE!! TypeError: coercing to Unicode: need string or buffer, list found
===
this is the error im getting when executing my code could someone plz explain what this means??? please!! i am new to python have been using it only a few weeks for a class project but finding myself lost.
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 62, in <module>
mail("[email protected]","python test","payload from python test",results)
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 42, in mail
part.set_payload(open(attach, 'rb').read())
TypeError: coercing to Unicode: need string or buffer, list found
| 0 |
4,378,037 |
12/07/2010 14:59:03
| 16,989 |
09/17/2008 23:43:12
| 2,006 | 66 |
Crystal Reports Crosstab Suppress subtotals when there is one row
|
I am using a crosstab in crystal reports that has 3 grouping levels this can create a lot of subtotals across the rows. Often the subtotal row is useless if there is only one row it is summing from. Is it possible to supress subtotals where there is only one row of data? Leaving the useful subtotals (I know I can suppress the lot).
Illustration below this is how I currently have it:
![Current CrossTab][1]
This is how I would like it to be:
![Wanted CrossTab][2]
Notice the sub totals for the Middle Grouping B and T have been removed leaving just C as it has two distinct rows below it. To me that looks much cleared and I would be surprised if this can't be achieved.
[1]: http://i.stack.imgur.com/VzThB.png
[2]: http://i.stack.imgur.com/NYxgE.png
|
crystal-reports
|
crosstab
| null | null | null | null |
open
|
Crystal Reports Crosstab Suppress subtotals when there is one row
===
I am using a crosstab in crystal reports that has 3 grouping levels this can create a lot of subtotals across the rows. Often the subtotal row is useless if there is only one row it is summing from. Is it possible to supress subtotals where there is only one row of data? Leaving the useful subtotals (I know I can suppress the lot).
Illustration below this is how I currently have it:
![Current CrossTab][1]
This is how I would like it to be:
![Wanted CrossTab][2]
Notice the sub totals for the Middle Grouping B and T have been removed leaving just C as it has two distinct rows below it. To me that looks much cleared and I would be surprised if this can't be achieved.
[1]: http://i.stack.imgur.com/VzThB.png
[2]: http://i.stack.imgur.com/NYxgE.png
| 0 |
8,329,023 |
11/30/2011 16:05:35
| 374,430 |
06/23/2010 16:16:40
| 3 | 0 |
handle toolbar actions on eclipse plugin
|
i'm writing a plugin for eclipse. my problem is: i wrote a class MyEditor extends MultiPageEditorPart to edit my files, and a class MyContributor extends MultiPageEditorActionBarContributor to add actions to the toolbar.
so far i can see the buttons on the toolbar added by MyContributore.contributeToolbar() but they are always deactivated, even when i select some editparts in my editor.
i can get it working with "normal" editors (i.e. extending EditorPart), but i don't know why it doesn't work for multi page editor.
thanks in advance
|
java
|
eclipse
|
plugins
| null | null | null |
open
|
handle toolbar actions on eclipse plugin
===
i'm writing a plugin for eclipse. my problem is: i wrote a class MyEditor extends MultiPageEditorPart to edit my files, and a class MyContributor extends MultiPageEditorActionBarContributor to add actions to the toolbar.
so far i can see the buttons on the toolbar added by MyContributore.contributeToolbar() but they are always deactivated, even when i select some editparts in my editor.
i can get it working with "normal" editors (i.e. extending EditorPart), but i don't know why it doesn't work for multi page editor.
thanks in advance
| 0 |
7,055,548 |
08/14/2011 07:15:02
| 594,161 |
01/28/2011 17:16:57
| 662 | 3 |
UISearchBar With Core Data?
|
I'm trying to hook up my UISearchBar with core data but have had no luck.
I'm using this tutorial as a template but can't get it working with a NSFetchedResultsController.
Does anyone have some sample code they could share? The initial table is a static table that is always the same, only when user searches does the FRC need to work.
http://www.iphonesdkarticles.com/2009/01/uitableview-searching-table-view.html
|
iphone
|
objective-c
|
core-data
|
nsarray
|
nsfetchedresultscontrolle
| null |
open
|
UISearchBar With Core Data?
===
I'm trying to hook up my UISearchBar with core data but have had no luck.
I'm using this tutorial as a template but can't get it working with a NSFetchedResultsController.
Does anyone have some sample code they could share? The initial table is a static table that is always the same, only when user searches does the FRC need to work.
http://www.iphonesdkarticles.com/2009/01/uitableview-searching-table-view.html
| 0 |
9,240,225 |
02/11/2012 12:30:13
| 1,101,208 |
12/16/2011 04:06:21
| 163 | 7 |
ajax on click update form content
|
This is my form.
![enter image description here][1]
[1]: http://i.stack.imgur.com/nnU1S.png
If i click the status content like `progress` or `dsgs` a textfield should appear. If i type text in it and click outside or press enter the old content should updated with the new one. I need it to be done with ajax and php. I am a beginner in php and ajax. Any reference or how can i do this?
This is my code for add status
$insert_task = "INSERT INTO `tbl_task` (`intProjectid`,`intUserid`,`dtDate`,`dtFinishdate`,`varIssue`,`varStatus`,`varNeedhelp` )VALUES ('".$id."','".$userid."','".$dtdate."','".$dtfinish."','".$issue."','".$status."','".$help."');";
$insert_query=mysql_query($insert_task);
|
php
|
ajax
| null | null | null | null |
open
|
ajax on click update form content
===
This is my form.
![enter image description here][1]
[1]: http://i.stack.imgur.com/nnU1S.png
If i click the status content like `progress` or `dsgs` a textfield should appear. If i type text in it and click outside or press enter the old content should updated with the new one. I need it to be done with ajax and php. I am a beginner in php and ajax. Any reference or how can i do this?
This is my code for add status
$insert_task = "INSERT INTO `tbl_task` (`intProjectid`,`intUserid`,`dtDate`,`dtFinishdate`,`varIssue`,`varStatus`,`varNeedhelp` )VALUES ('".$id."','".$userid."','".$dtdate."','".$dtfinish."','".$issue."','".$status."','".$help."');";
$insert_query=mysql_query($insert_task);
| 0 |
1,892,098 |
12/12/2009 02:52:46
| 193,558 |
10/21/2009 04:36:21
| 56 | 11 |
Any success stories/words of wisdom from people who have moved web applications into Continuous Integration?
|
I'm pre-emptively marking this a community wiki because, well, it is.
I'm interested in hearing from people who have real life **success stories** in moving to continuous integration for a web application. In particular, I'm most interested in the following:
* What tools did you use for aggregation of reporting (e.g. Hudson)?
* What code did your application consist of (e.g. just a JavaScript API, mix of server side code + client side code, etc.)
* What tools did you use for performing Unit Testing?
* What tools did your QA use for performing functional, smoke, etc. testing?
* What cultural obstacles did you have to overcome, if you had to overcome anything, to move to CI?
As for me, I'm in the middle of what will be a successful integration, but there has been a cost to this integration (I actually cried at one point late at night). The reason: I'm artificially constrained by my environment, and I'm additionally trying to do things in my constrained environment that no one has done.
But never fear, there's no crying in programming (most of the time) and here's my own answers to my questions:
* Hudson is my CI master tool. Development is happening on Mac, Windows and Linux, but the CI builds are all happening on Linux.
* I'm responsible for a pure JavaScript API, plus a tiny bit of PHP.
* I'm using YUI Test 3 for unit testing, pushed through Selenium Remote Control running in a headless environment on a Linux box.
* QA is using Selenium with all tests written in Java Selenese.
* Cultural obstacles: This was interesting. People just don't understand testing JavaScript. For example, here's a response from a meeting, "No really, I need a browser to run my unit tests in. Why would I ever run my tests outside of a browser?" Or, "Come on, developers need to run these unit tests, too. Why do I have to package _everything_ up and treat everything in such a formal way?"
|
continuous-integration
|
web-applications
| null | null | null | null |
open
|
Any success stories/words of wisdom from people who have moved web applications into Continuous Integration?
===
I'm pre-emptively marking this a community wiki because, well, it is.
I'm interested in hearing from people who have real life **success stories** in moving to continuous integration for a web application. In particular, I'm most interested in the following:
* What tools did you use for aggregation of reporting (e.g. Hudson)?
* What code did your application consist of (e.g. just a JavaScript API, mix of server side code + client side code, etc.)
* What tools did you use for performing Unit Testing?
* What tools did your QA use for performing functional, smoke, etc. testing?
* What cultural obstacles did you have to overcome, if you had to overcome anything, to move to CI?
As for me, I'm in the middle of what will be a successful integration, but there has been a cost to this integration (I actually cried at one point late at night). The reason: I'm artificially constrained by my environment, and I'm additionally trying to do things in my constrained environment that no one has done.
But never fear, there's no crying in programming (most of the time) and here's my own answers to my questions:
* Hudson is my CI master tool. Development is happening on Mac, Windows and Linux, but the CI builds are all happening on Linux.
* I'm responsible for a pure JavaScript API, plus a tiny bit of PHP.
* I'm using YUI Test 3 for unit testing, pushed through Selenium Remote Control running in a headless environment on a Linux box.
* QA is using Selenium with all tests written in Java Selenese.
* Cultural obstacles: This was interesting. People just don't understand testing JavaScript. For example, here's a response from a meeting, "No really, I need a browser to run my unit tests in. Why would I ever run my tests outside of a browser?" Or, "Come on, developers need to run these unit tests, too. Why do I have to package _everything_ up and treat everything in such a formal way?"
| 0 |
11,505,404 |
07/16/2012 13:29:15
| 1,333,106 |
04/14/2012 09:30:57
| 24 | 0 |
How can I check any of radio button is not selected
|
I want to check whether any of radio button is not checked.How can I do it?
$(document).ready(function(){
$('#delete_btn').click(function(){ as answer
if ( !($("RadioGroup1").is(':checked')) )// THis line is not wirking..I need the code for this line
{
}else{
//message
}
|
php
|
javascript
|
jquery
| null | null |
07/17/2012 10:46:20
|
too localized
|
How can I check any of radio button is not selected
===
I want to check whether any of radio button is not checked.How can I do it?
$(document).ready(function(){
$('#delete_btn').click(function(){ as answer
if ( !($("RadioGroup1").is(':checked')) )// THis line is not wirking..I need the code for this line
{
}else{
//message
}
| 3 |
11,438,880 |
07/11/2012 18:17:59
| 1,480,692 |
06/25/2012 17:42:53
| 1 | 0 |
Tools for JS and CSS file concatenating
|
I recently started working with a large code base with many (15-20) js requests per page. I'm tasked with optimization and performance improvement of these sites.
I've been using tools like Google's PageSpeed and Yahoo's YSlow in conjunction with WebPageTest.org's tests to determine a baseline speed of the site and area of improvement. I'm curious if there are some standard or best-practice solutions for concatenation and minification of JS and CSS files.
I watched: http://www.youtube.com/watch?v=30_AIEhar-I and the first 20 minutes were really good at hammering mod_pagespeed as a good target.
I'm currently considering mod_pagespeed with a YUI compressor and perhaps a sprite generator on top of it all.
What are some good tools that I may have missed or things that I should be concerned about with my current build?
|
javascript
|
css
|
concatenation
|
minify
| null | null |
open
|
Tools for JS and CSS file concatenating
===
I recently started working with a large code base with many (15-20) js requests per page. I'm tasked with optimization and performance improvement of these sites.
I've been using tools like Google's PageSpeed and Yahoo's YSlow in conjunction with WebPageTest.org's tests to determine a baseline speed of the site and area of improvement. I'm curious if there are some standard or best-practice solutions for concatenation and minification of JS and CSS files.
I watched: http://www.youtube.com/watch?v=30_AIEhar-I and the first 20 minutes were really good at hammering mod_pagespeed as a good target.
I'm currently considering mod_pagespeed with a YUI compressor and perhaps a sprite generator on top of it all.
What are some good tools that I may have missed or things that I should be concerned about with my current build?
| 0 |
3,996,027 |
10/22/2010 10:43:33
| 370,306 |
06/18/2010 13:05:27
| 37 | 6 |
Error in PHP code
|
The error: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in PSubscriptionFile.php on line 90; I think that public static _fromJSON should be public static function _fromJSON ,but that give Fatal error: Declaration of PSubscriptionFile::__construct() must be compatible with that of PuSHSubscriptionInterface::__construct() in PSubscriptionFile.php on line 9
The files:http://github.com/bobdia/PuSHSubscriber
I don't understand how to fix the error.Thanks!
|
php
| null | null | null | null | null |
open
|
Error in PHP code
===
The error: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in PSubscriptionFile.php on line 90; I think that public static _fromJSON should be public static function _fromJSON ,but that give Fatal error: Declaration of PSubscriptionFile::__construct() must be compatible with that of PuSHSubscriptionInterface::__construct() in PSubscriptionFile.php on line 9
The files:http://github.com/bobdia/PuSHSubscriber
I don't understand how to fix the error.Thanks!
| 0 |
206,154 |
10/15/2008 19:50:07
| 28,360 |
10/15/2008 19:46:31
| 1 | 0 |
What's the best soap client library for Python, and where is the documentation for it?
|
I've never used SOAPs before and I'm sorta new to Python. I'm doing this to get myself acquainted with both technologies. I've installed [SOAPlib][1] and I've tried to read their [Client][2] documentation, but I don't understand it too well. Is there anything else I can look into which is more suited for being a SOAP Client library for python?
Thanks in advance for the help :)
[1]: http://trac.optio.webfactional.com/wiki/soaplib
[2]: http://trac.optio.webfactional.com/wiki/Client
|
soap
|
python
|
soap-client
| null | null |
03/14/2012 01:57:13
|
not constructive
|
What's the best soap client library for Python, and where is the documentation for it?
===
I've never used SOAPs before and I'm sorta new to Python. I'm doing this to get myself acquainted with both technologies. I've installed [SOAPlib][1] and I've tried to read their [Client][2] documentation, but I don't understand it too well. Is there anything else I can look into which is more suited for being a SOAP Client library for python?
Thanks in advance for the help :)
[1]: http://trac.optio.webfactional.com/wiki/soaplib
[2]: http://trac.optio.webfactional.com/wiki/Client
| 4 |
7,927,114 |
10/28/2011 08:57:42
| 118,460 |
06/06/2009 08:05:20
| 2,103 | 81 |
Conditional REPLACE or DELETE in one query
|
I have three tables `objects`, (primary key `object_ID`) `flags` (primary key `flag_ID`) and `object_flags` (cross-tabel between `objects` and `flags` with some extra info).
I have a query returning _all_ flags, and a one or zero if a given object has a certain flag:
SELECT
f.*,
of.*,
of.objectID IS NOT NULL AS object_has_flag,
FROM
flags f
LEFT JOIN object_flags of
ON (f.flag_ID = of.flag_ID) AND (of.object_ID = :objectID);
In the application (which is written in Delphi), all rows are loaded in a component. The user can assign flags by clicking check boxes in a table, modifying the data.
Suppose one line is edited. Depending on the value of `object_has_flag`, the following things have to be done:
* If `object_has_flag` was true and still is true, an `UPDATE` should be done on the relevant row in `objects_flags`.
* If `object_has_flag` was false but is now true, and `INSERT` should be done
* If `object_has_flag` was true, but is now false, the row should be deleted
Of course, the first two cases can be combined by using `REPLACE`, but is there a way to combine all three cases in one query?
|
mysql
|
query
|
replace
|
conditional
| null | null |
open
|
Conditional REPLACE or DELETE in one query
===
I have three tables `objects`, (primary key `object_ID`) `flags` (primary key `flag_ID`) and `object_flags` (cross-tabel between `objects` and `flags` with some extra info).
I have a query returning _all_ flags, and a one or zero if a given object has a certain flag:
SELECT
f.*,
of.*,
of.objectID IS NOT NULL AS object_has_flag,
FROM
flags f
LEFT JOIN object_flags of
ON (f.flag_ID = of.flag_ID) AND (of.object_ID = :objectID);
In the application (which is written in Delphi), all rows are loaded in a component. The user can assign flags by clicking check boxes in a table, modifying the data.
Suppose one line is edited. Depending on the value of `object_has_flag`, the following things have to be done:
* If `object_has_flag` was true and still is true, an `UPDATE` should be done on the relevant row in `objects_flags`.
* If `object_has_flag` was false but is now true, and `INSERT` should be done
* If `object_has_flag` was true, but is now false, the row should be deleted
Of course, the first two cases can be combined by using `REPLACE`, but is there a way to combine all three cases in one query?
| 0 |
7,255,745 |
08/31/2011 10:36:12
| 480,231 |
04/04/2010 17:00:00
| 259 | 8 |
Problem with getting last inserted ID from database - asp.net
|
I am trying to add data to the User table (after registration). Immediately after user data is added to the user table I wan't to create row with userID in 'profile' table (1:1) and that's why I use transactions here. But the problem is I can't get UserId of the user after insert (@@Identity) when code comes to 'ExecuteScalar()' line exception that I receive is `"Object reference not set to an instance of an object."`
string sqlAddUser = string.Format("insert into tbl_users ([UserName],[Email],[Password],[PasswordSalt],[CreatedDate],[IsActivated],[IsLockedOut],[LastLoginDate],[LastLockedOutDate], [NewEmailKey]) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}', '{9}')",
user.UserName, user.Email, user.Password, user.PasswordSalt, user.CreatedDate, user.IsActivated, user.IsLockedOut, user.LastLockedOutDate, user.LastLoginDate, user.NewEmailKey);
SqlCommand cmdAddUser = new SqlCommand(sqlAddUser, conn, transaction);
int result = cmdAddUser.ExecuteNonQuery();
SqlCommand cmdGetLastIdentity = new SqlCommand("SELECT @@IDENTITY", conn, transaction);
int i = (int)cmdGetLastIdentity.ExecuteScalar();
string sqlAddUserProfile = string.Format("insert into tbl_profile (UserId) values ({0})", i);
SqlCommand cmdAddUserProfile = new SqlCommand(sqlAddUserProfile, conn, transaction);
cmdAddUserProfile.ExecuteNonQuery();
transaction.Commit();
return GetUser(username);
}
catch (Exception ex)
{
transaction.Rollback();
}
|
c#
|
asp.net
|
sql-server
|
database
|
transactions
| null |
open
|
Problem with getting last inserted ID from database - asp.net
===
I am trying to add data to the User table (after registration). Immediately after user data is added to the user table I wan't to create row with userID in 'profile' table (1:1) and that's why I use transactions here. But the problem is I can't get UserId of the user after insert (@@Identity) when code comes to 'ExecuteScalar()' line exception that I receive is `"Object reference not set to an instance of an object."`
string sqlAddUser = string.Format("insert into tbl_users ([UserName],[Email],[Password],[PasswordSalt],[CreatedDate],[IsActivated],[IsLockedOut],[LastLoginDate],[LastLockedOutDate], [NewEmailKey]) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}', '{9}')",
user.UserName, user.Email, user.Password, user.PasswordSalt, user.CreatedDate, user.IsActivated, user.IsLockedOut, user.LastLockedOutDate, user.LastLoginDate, user.NewEmailKey);
SqlCommand cmdAddUser = new SqlCommand(sqlAddUser, conn, transaction);
int result = cmdAddUser.ExecuteNonQuery();
SqlCommand cmdGetLastIdentity = new SqlCommand("SELECT @@IDENTITY", conn, transaction);
int i = (int)cmdGetLastIdentity.ExecuteScalar();
string sqlAddUserProfile = string.Format("insert into tbl_profile (UserId) values ({0})", i);
SqlCommand cmdAddUserProfile = new SqlCommand(sqlAddUserProfile, conn, transaction);
cmdAddUserProfile.ExecuteNonQuery();
transaction.Commit();
return GetUser(username);
}
catch (Exception ex)
{
transaction.Rollback();
}
| 0 |
9,614,348 |
03/08/2012 07:43:30
| 1,089,841 |
12/09/2011 13:58:13
| 4 | 1 |
How to move to another activity when a button inside the listview is clicked
|
How to go to another activity when a button inside the listview is clicked
I have a customlist which im inflating it in getview and im also made the buttons clickable but how to move to another acivity when button pressed..
|
android
|
listview
|
onclick
|
baseadapter
| null | null |
open
|
How to move to another activity when a button inside the listview is clicked
===
How to go to another activity when a button inside the listview is clicked
I have a customlist which im inflating it in getview and im also made the buttons clickable but how to move to another acivity when button pressed..
| 0 |
10,733,578 |
05/24/2012 08:12:38
| 1,248,913 |
03/05/2012 02:14:54
| 1 | 0 |
C# WebBrowser Component
|
Does anyone here know that which is the best webBrowser component that supports the latest HTML5/CSS3 feature? especially new syntax like webkit-gradient-radial or gradient-radial?
I have tried "Awesomemium", "Open Webkit Sharp", "Webkit.Net", but none of these fulfilled.
|
c#
|
html5
|
css3
|
webbrowser-control
| null |
06/22/2012 14:57:09
|
not constructive
|
C# WebBrowser Component
===
Does anyone here know that which is the best webBrowser component that supports the latest HTML5/CSS3 feature? especially new syntax like webkit-gradient-radial or gradient-radial?
I have tried "Awesomemium", "Open Webkit Sharp", "Webkit.Net", but none of these fulfilled.
| 4 |
1,817,631 |
11/30/2009 02:50:47
| 153,283 |
08/09/2009 12:38:03
| 22 | 0 |
Iteraring one dimension array as two dimension array
|
I have,
int[10] oneDim = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, index = 0;
as shown [here][1], we create the the two dimensional one from the origin. But how do I iterate my `oneDim` inside `for (index = 0; index < 10; index++)` so that I could get my **column index** and **row index** *there* without creating a new one.
I want it looks like this while printing it's indexes to a two dimensional array **(2x5)**:
0,0
0,1
1,0
1,1
2,0
2,1
3,0
3,1
4,0
4,1
I think the issue is getting the **column index** and **row index** without creating the two dimensional one. Don't you?
[1]: http://stackoverflow.com/questions/664927/how-to-convert-a-unidimensional-array-to-a-bidimensional-array-java
|
java
|
arrays
| null | null | null | null |
open
|
Iteraring one dimension array as two dimension array
===
I have,
int[10] oneDim = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, index = 0;
as shown [here][1], we create the the two dimensional one from the origin. But how do I iterate my `oneDim` inside `for (index = 0; index < 10; index++)` so that I could get my **column index** and **row index** *there* without creating a new one.
I want it looks like this while printing it's indexes to a two dimensional array **(2x5)**:
0,0
0,1
1,0
1,1
2,0
2,1
3,0
3,1
4,0
4,1
I think the issue is getting the **column index** and **row index** without creating the two dimensional one. Don't you?
[1]: http://stackoverflow.com/questions/664927/how-to-convert-a-unidimensional-array-to-a-bidimensional-array-java
| 0 |
5,974,057 |
05/12/2011 06:21:07
| 743,127 |
05/07/2011 14:56:49
| 3 | 0 |
php date manipulation
|
I am designing a software for leave management in php.I actually need a simple function in php which takes a given date as parameter(i.e any date) and no of days to be added to it as the parameter and returns the resultant date.
The function should accept date in 'YYYY-MM-DD' format and also return resulting date in same mentioned format.
I need help.Any help will be highly appreciated in this regard.
|
php
| null | null | null | null |
05/12/2011 21:04:12
|
not a real question
|
php date manipulation
===
I am designing a software for leave management in php.I actually need a simple function in php which takes a given date as parameter(i.e any date) and no of days to be added to it as the parameter and returns the resultant date.
The function should accept date in 'YYYY-MM-DD' format and also return resulting date in same mentioned format.
I need help.Any help will be highly appreciated in this regard.
| 1 |
11,371,101 |
07/06/2012 23:59:37
| 1,109,847 |
12/21/2011 12:33:12
| 345 | 20 |
Cannot disable a date_select
|
I'm trying to disable a date_select in rails 3.1.3
Here is the line of code
<%= f.date_select "mydate", :value=>d.data,:disbled=>true %>
I tried
<%= f.date_select "mydate", {:value=>d.data,:disbled=>true} %>
too.
But no luck.
Someone know where is the problem.
Thank you ppl.
|
ruby-on-rails
|
ruby
|
ruby-on-rails-3.1
| null | null |
07/07/2012 03:11:08
|
too localized
|
Cannot disable a date_select
===
I'm trying to disable a date_select in rails 3.1.3
Here is the line of code
<%= f.date_select "mydate", :value=>d.data,:disbled=>true %>
I tried
<%= f.date_select "mydate", {:value=>d.data,:disbled=>true} %>
too.
But no luck.
Someone know where is the problem.
Thank you ppl.
| 3 |
3,379,123 |
07/31/2010 17:32:57
| 185,973 |
10/07/2009 21:21:56
| 201 | 9 |
My site has been tagged as Malware by Chrome! What now??
|
I'm completing the development of a site I didn't build (I designed it, but another has built it so far) and recently when I visit the site in Chrome I get a "Malware Detected!" Warning box.
See for yourself: http://kenbrook.org/
I have no clue how or what this is from, or how to deal with it. In troubleshooting another isssue with this site (CSS related) a user in another stackoverflow question mentioned an insight about that malware problem: http://stackoverflow.com/questions/3325478/when-using-the-firefox-webdeveloper-toolbar-to-edit-css-why-do-some-image-disapp/3373080#3373080
I'm not even sure what that script is on the site for?! Can anyone give me any insight about this issue and how I should begin to resolve it? I'm responsible for it now, so "Go back to the original developer and get him to work it out" is not an option.
In case you'd rather not visit the site, here's the warning text that Chrome is giving me:
> Warning: Visiting this site may harm your computer!
The website at kenbrook.org contains elements from the site www.spiritek.co.jp, which appears to host malware – software that can hurt your computer or otherwise operate without your consent. Just visiting a site that contains malware can infect your computer.
For detailed information about the problems with these elements, visit the Google Safe Browsing diagnostic page for www.spiritek.co.jp.
Learn more about how to protect yourself from harmful software online.
I understand that visiting this site may harm my computer.
|
javascript
|
malware
|
malware-detection
| null | null |
07/31/2010 17:47:44
|
off topic
|
My site has been tagged as Malware by Chrome! What now??
===
I'm completing the development of a site I didn't build (I designed it, but another has built it so far) and recently when I visit the site in Chrome I get a "Malware Detected!" Warning box.
See for yourself: http://kenbrook.org/
I have no clue how or what this is from, or how to deal with it. In troubleshooting another isssue with this site (CSS related) a user in another stackoverflow question mentioned an insight about that malware problem: http://stackoverflow.com/questions/3325478/when-using-the-firefox-webdeveloper-toolbar-to-edit-css-why-do-some-image-disapp/3373080#3373080
I'm not even sure what that script is on the site for?! Can anyone give me any insight about this issue and how I should begin to resolve it? I'm responsible for it now, so "Go back to the original developer and get him to work it out" is not an option.
In case you'd rather not visit the site, here's the warning text that Chrome is giving me:
> Warning: Visiting this site may harm your computer!
The website at kenbrook.org contains elements from the site www.spiritek.co.jp, which appears to host malware – software that can hurt your computer or otherwise operate without your consent. Just visiting a site that contains malware can infect your computer.
For detailed information about the problems with these elements, visit the Google Safe Browsing diagnostic page for www.spiritek.co.jp.
Learn more about how to protect yourself from harmful software online.
I understand that visiting this site may harm my computer.
| 2 |
6,752,187 |
07/19/2011 18:28:43
| 852,623 |
07/19/2011 18:28:43
| 1 | 0 |
Checking whether Atmega32 is dead.
|
I know this may not be the correct place to post this, but how do I know if a certain chip is dead? My friend has this Atmega32 and he seems to have connected it to 9V battery for a minute maybe.. He's unsure about it, but I think the chip is damaged, So, is there any way to check if that is the case?
|
embedded
|
atmega
| null | null | null |
07/21/2011 01:39:07
|
off topic
|
Checking whether Atmega32 is dead.
===
I know this may not be the correct place to post this, but how do I know if a certain chip is dead? My friend has this Atmega32 and he seems to have connected it to 9V battery for a minute maybe.. He's unsure about it, but I think the chip is damaged, So, is there any way to check if that is the case?
| 2 |
11,429,192 |
07/11/2012 09:07:42
| 1,503,496 |
07/05/2012 09:20:24
| 6 | 0 |
XML parsing and retrieving data into a combobox
|
There are many examples on the net talking about nsxmlparsing , but they aren't so clear.
I can't create an application that parses data. please can you give me a link for a good tutorial ? I am a beginner , I know how to implement the delegate methods but i don't know how to call an xml file and parse it.
Besides , when I parse these data,I would like to retieve data and display them in a combobox?
Is there a good tutorial please ( developping mac applications) ?
|
objective-c
|
cocoa
|
nsxmlparser
|
nscombobox
| null |
07/16/2012 11:10:47
|
not a real question
|
XML parsing and retrieving data into a combobox
===
There are many examples on the net talking about nsxmlparsing , but they aren't so clear.
I can't create an application that parses data. please can you give me a link for a good tutorial ? I am a beginner , I know how to implement the delegate methods but i don't know how to call an xml file and parse it.
Besides , when I parse these data,I would like to retieve data and display them in a combobox?
Is there a good tutorial please ( developping mac applications) ?
| 1 |
124,652 |
09/24/2008 00:06:20
| 3,508 |
08/28/2008 18:37:07
| 278 | 13 |
Should I learn/play with Perl 6?
|
Perl 6 has been under development for over 8 years now, and (as ever) there seems to be no end in sight. However, it has had a reasonable implementation for some time, Pugs, and even has multiple implementations now.
When I last took a look at Perl 6 a few years ago, it seemed to me that there were lots of interesting ideas, but that everything was either changing or unspecified. As a result, I ended up picking up Haskell instead -- having been inspired by Pugs.
My current favorite languages are Perl (5) and Haskell, and I would only be doing this for side projects of my own. Is it worth playing around with Perl 6 now, or will I still be hitting a moving target that's also sometimes broken? Are the new ideas and syntaxes truly exciting?
|
perl
|
perl6
|
pugs
| null | null |
11/06/2011 19:43:41
|
not constructive
|
Should I learn/play with Perl 6?
===
Perl 6 has been under development for over 8 years now, and (as ever) there seems to be no end in sight. However, it has had a reasonable implementation for some time, Pugs, and even has multiple implementations now.
When I last took a look at Perl 6 a few years ago, it seemed to me that there were lots of interesting ideas, but that everything was either changing or unspecified. As a result, I ended up picking up Haskell instead -- having been inspired by Pugs.
My current favorite languages are Perl (5) and Haskell, and I would only be doing this for side projects of my own. Is it worth playing around with Perl 6 now, or will I still be hitting a moving target that's also sometimes broken? Are the new ideas and syntaxes truly exciting?
| 4 |
9,259,477 |
02/13/2012 11:12:12
| 1,159,293 |
01/19/2012 19:23:10
| 26 | 0 |
The best way to use Foreign Keys(FK)
|
I am just a newbie to the beautiful Yii framework. I was just going through the documents and one doubt came to my mind.I want to know is it good to define Foreign Keys(FK) in the database when we are creating a database or is it good to declare a foreign key inside an application's code.Any suggestions and comments are welcome.
|
mysql
|
database
|
yii
|
relational-database
| null |
02/14/2012 15:00:43
|
not constructive
|
The best way to use Foreign Keys(FK)
===
I am just a newbie to the beautiful Yii framework. I was just going through the documents and one doubt came to my mind.I want to know is it good to define Foreign Keys(FK) in the database when we are creating a database or is it good to declare a foreign key inside an application's code.Any suggestions and comments are welcome.
| 4 |
11,114,150 |
06/20/2012 06:43:27
| 980,841 |
10/05/2011 17:09:45
| 160 | 10 |
Cleaning up Database entries
|
On an App v1.0 I gave the user the possibility to add data on a database, only an attribute at a time.
As examaple lets say that the user can add a person name and his/her surname. Later on, let´s say he/she adds the age. The database would look like this:
![enter image description here][1]
(where the attibute ´Name´ is unique)
I´m going to update the code so that before saving another attribute (say ´alias´), it will chech whether the name has already been used. If it is, it will add the alias in the same entry and if not, it will create a new one.
What I´d also like to do is to clean up the database. In this example it would merge entries #1 and #2, to get something like:
![enter image description here][2]
(former entry #2 would be deleted).
I seem to remember that there was an automatic way to do that, but I´m not sure if I´ve immagined it or it was somewhere else such as MS Access because I cannot find it again.
So, is there a way to do that automatically or should I explore a programatically approach?
[1]: http://i.stack.imgur.com/zdqyo.png
[2]: http://i.stack.imgur.com/uachS.png
|
ios
|
xcode
|
core-data
|
nsmanagedobjectcontext
| null | null |
open
|
Cleaning up Database entries
===
On an App v1.0 I gave the user the possibility to add data on a database, only an attribute at a time.
As examaple lets say that the user can add a person name and his/her surname. Later on, let´s say he/she adds the age. The database would look like this:
![enter image description here][1]
(where the attibute ´Name´ is unique)
I´m going to update the code so that before saving another attribute (say ´alias´), it will chech whether the name has already been used. If it is, it will add the alias in the same entry and if not, it will create a new one.
What I´d also like to do is to clean up the database. In this example it would merge entries #1 and #2, to get something like:
![enter image description here][2]
(former entry #2 would be deleted).
I seem to remember that there was an automatic way to do that, but I´m not sure if I´ve immagined it or it was somewhere else such as MS Access because I cannot find it again.
So, is there a way to do that automatically or should I explore a programatically approach?
[1]: http://i.stack.imgur.com/zdqyo.png
[2]: http://i.stack.imgur.com/uachS.png
| 0 |
11,023,123 |
06/13/2012 20:52:42
| 253,401 |
01/18/2010 17:44:35
| 64 | 4 |
What is the best way to display an XML file content in a high traffic sharepoint Internet site
|
Our public facing sharepoint internet site has high traffic (about 7 million visits per month)
I have an XML file about 200k in a sharepoint document library, this file changes infrequently. But its content must be shown on homepage.
Currently I am reading this file and putting it in cache with a file dependency. Users see the cached XML until the file changes.
Is my solution acceptable or could you give me better ideas.
|
xml
|
sharepoint
|
caching
|
document
| null |
06/18/2012 03:38:15
|
off topic
|
What is the best way to display an XML file content in a high traffic sharepoint Internet site
===
Our public facing sharepoint internet site has high traffic (about 7 million visits per month)
I have an XML file about 200k in a sharepoint document library, this file changes infrequently. But its content must be shown on homepage.
Currently I am reading this file and putting it in cache with a file dependency. Users see the cached XML until the file changes.
Is my solution acceptable or could you give me better ideas.
| 2 |
3,587,593 |
08/27/2010 19:40:31
| 105,570 |
05/12/2009 18:49:17
| 15,560 | 467 |
If I have three separate values that could all fit into 32 bits, does it make sense to use a uint to store them?
|
What I mean is, say I have a `struct` to represent some data and it looks like this:
struct LilStruct
{
public readonly short A;
public readonly byte B;
public readonly byte C;
public LilStruct(short a, byte b, byte c)
{
A = a;
B = b;
C = c;
}
}
A `short` and two `byte` values could all fit into 32 bits. What I'm wondering is (for alignment purposes, performance, whatever) if it would actually make sense to store this data in the following format instead:
struct LilStruct
{
private readonly uint _value;
public LilStruct(short a, byte b, byte c)
{
_value = ((uint)a << 16) | ((uint)b << 8) | (uint)c;
}
public int A
{
get { return (int)(_value >> 16); }
}
public int B
{
get { return (int)(_value >> 8) & 0x000000FF; }
}
public int C
{
get { return (int)(_value & 0x000000FF); }
}
}
Is this pointless? What would be the benefits/drawbacks?
|
.net
|
struct
|
performance
|
alignment
|
data-formats
| null |
open
|
If I have three separate values that could all fit into 32 bits, does it make sense to use a uint to store them?
===
What I mean is, say I have a `struct` to represent some data and it looks like this:
struct LilStruct
{
public readonly short A;
public readonly byte B;
public readonly byte C;
public LilStruct(short a, byte b, byte c)
{
A = a;
B = b;
C = c;
}
}
A `short` and two `byte` values could all fit into 32 bits. What I'm wondering is (for alignment purposes, performance, whatever) if it would actually make sense to store this data in the following format instead:
struct LilStruct
{
private readonly uint _value;
public LilStruct(short a, byte b, byte c)
{
_value = ((uint)a << 16) | ((uint)b << 8) | (uint)c;
}
public int A
{
get { return (int)(_value >> 16); }
}
public int B
{
get { return (int)(_value >> 8) & 0x000000FF; }
}
public int C
{
get { return (int)(_value & 0x000000FF); }
}
}
Is this pointless? What would be the benefits/drawbacks?
| 0 |
1,759,314 |
11/18/2009 21:48:03
| 86,731 |
04/03/2009 13:16:39
| 139 | 4 |
What are the best iPython tutorials?
|
I've been using iPython for a few months and I'm always learning new features.
It seems that many of the features are hidden.
What tutorials would you recommend to learn more iPython features?
|
python
|
ipython
| null | null | null |
08/01/2012 02:35:38
|
off topic
|
What are the best iPython tutorials?
===
I've been using iPython for a few months and I'm always learning new features.
It seems that many of the features are hidden.
What tutorials would you recommend to learn more iPython features?
| 2 |
381,020 |
12/19/2008 13:52:38
| 15,906 |
09/17/2008 13:26:52
| 2,256 | 170 |
Team Foudnation Server Source Control Structure
|
I have been working on standardizing the source control structure for our Team Foundation Server rollout for the new year. I have started by using the <a href="http://www.codeplex.com/BranchingGuidance">Microsoft Team Foundation Server Branching Guidance</a> documentation available on CodePlex.
I was hoping to get some feedback and answers to a few of the specific questions I have about the proposed structure. When it comes to structuring source control in TFS, I have learned that there are so many "standards" to choose from that there is not really a standard.
First, I will outline and describe the decisions and usage.
$/
{Team Project}/
{Subproject}/
Development/
Trunk/
Source/
Tests/
Branches/
{Branch Name}/
Source/
Tests/
Integration/
Production/
Releases/
{Release Version}/
Source/
Tests/
Branches/
{Branch Name}/
Source/
Tests/
The general logic is that a Team Project can contain either a single logical project (where there would be no `{Subproject}` entry) or multiple related projects in the form of a product or tool suite. The three major containers are called `Development`, `Integration`, and `Production`.
Within the `Development` container's Trunk, there are provisions for both the projects which make up the product in the `Source` folder, with corresponding unit tests available in the `Tests` folder. A majority of minor development would occur in the trunk, with branching available through the `Trunk` folder's sibling `Branches` folder, which acts as a branching container. One or more solution files would live within the `Trunk`, allowing for branches at that level to capture the solution, source, and unit tests.
The `Integration` container, often called "main" in non-TFS implementation, is solely used to integrate Changesets from `Development` to create a stable and testable build. It is initially created as a branch from the `Development` container once a testable product has been attained. The builds from this container will be used for our testing environment and load testing environment. We choose to include load testing with testable builds so that we can monitor for changes in performance, being able to rapidly isolate Changesets that may have contributed to any irregularities.
`Production` is used to produce pre-production and production quality builds. It is initially created as a branch from the `Integration` container once a stable build has been recommended for release. Within the `Releases` folder, a "branch by release" structure is followed, providing snapshotting and isolation in a single place. (For example, when `Release 1.1` is ready for a pre-production build, the stable `Integration` container is branched into a new `Release 1.1` folder in the `Production/Releases` structure. Subsequent RCs and RTWs/RTMs are promoted into this folder, as well.) A branching structure is also present, as seen in the `Branches` container. This allows for "hotfixes", usually a revision marker (Major.Minor.Revision). The branch is created from the current release and merged back into the new revision marker - like `Release 1.1.1`. The Changeset would be reverse integrated to the `Development` container's `Trunk` upon acceptance.
We feel that this structure is a fair balance between robustness and complexity. But there are a few nagging questions that I can not logically fit into the model. They are:
**Team Build** - The `Development` and `Integration` containers will initially start out as being nightly builds, eventually moving to Continuous Integration (CI). The Production container will be manually built.
- Where should the build definitions live?
**Documentation Generation** - We use Sandcastle to generate documentation. Specifically, we also use <a href="http://www.codeplex.com/SHFB">Sandcastle Help File Builder</a> to manage the output. This produces a project file in a format specific to SFHB.
- Should generated documentation be stored in the source control structure?
- Should documentation be generated for each container, or does it only posses value for pre-production and production quality builds?
- Where should the SHFB-specific files live? My initial inkling is to put it as a peer to the `Source` and `Tests` folders.
I will update the structure as I get answers to the questions to provide a clearer picture. I also welcome any other comments related to potential changes. If I have any other questions, I will make sure to modify this post.
|
tfs
|
team-project
|
version-control
| null | null | null |
open
|
Team Foudnation Server Source Control Structure
===
I have been working on standardizing the source control structure for our Team Foundation Server rollout for the new year. I have started by using the <a href="http://www.codeplex.com/BranchingGuidance">Microsoft Team Foundation Server Branching Guidance</a> documentation available on CodePlex.
I was hoping to get some feedback and answers to a few of the specific questions I have about the proposed structure. When it comes to structuring source control in TFS, I have learned that there are so many "standards" to choose from that there is not really a standard.
First, I will outline and describe the decisions and usage.
$/
{Team Project}/
{Subproject}/
Development/
Trunk/
Source/
Tests/
Branches/
{Branch Name}/
Source/
Tests/
Integration/
Production/
Releases/
{Release Version}/
Source/
Tests/
Branches/
{Branch Name}/
Source/
Tests/
The general logic is that a Team Project can contain either a single logical project (where there would be no `{Subproject}` entry) or multiple related projects in the form of a product or tool suite. The three major containers are called `Development`, `Integration`, and `Production`.
Within the `Development` container's Trunk, there are provisions for both the projects which make up the product in the `Source` folder, with corresponding unit tests available in the `Tests` folder. A majority of minor development would occur in the trunk, with branching available through the `Trunk` folder's sibling `Branches` folder, which acts as a branching container. One or more solution files would live within the `Trunk`, allowing for branches at that level to capture the solution, source, and unit tests.
The `Integration` container, often called "main" in non-TFS implementation, is solely used to integrate Changesets from `Development` to create a stable and testable build. It is initially created as a branch from the `Development` container once a testable product has been attained. The builds from this container will be used for our testing environment and load testing environment. We choose to include load testing with testable builds so that we can monitor for changes in performance, being able to rapidly isolate Changesets that may have contributed to any irregularities.
`Production` is used to produce pre-production and production quality builds. It is initially created as a branch from the `Integration` container once a stable build has been recommended for release. Within the `Releases` folder, a "branch by release" structure is followed, providing snapshotting and isolation in a single place. (For example, when `Release 1.1` is ready for a pre-production build, the stable `Integration` container is branched into a new `Release 1.1` folder in the `Production/Releases` structure. Subsequent RCs and RTWs/RTMs are promoted into this folder, as well.) A branching structure is also present, as seen in the `Branches` container. This allows for "hotfixes", usually a revision marker (Major.Minor.Revision). The branch is created from the current release and merged back into the new revision marker - like `Release 1.1.1`. The Changeset would be reverse integrated to the `Development` container's `Trunk` upon acceptance.
We feel that this structure is a fair balance between robustness and complexity. But there are a few nagging questions that I can not logically fit into the model. They are:
**Team Build** - The `Development` and `Integration` containers will initially start out as being nightly builds, eventually moving to Continuous Integration (CI). The Production container will be manually built.
- Where should the build definitions live?
**Documentation Generation** - We use Sandcastle to generate documentation. Specifically, we also use <a href="http://www.codeplex.com/SHFB">Sandcastle Help File Builder</a> to manage the output. This produces a project file in a format specific to SFHB.
- Should generated documentation be stored in the source control structure?
- Should documentation be generated for each container, or does it only posses value for pre-production and production quality builds?
- Where should the SHFB-specific files live? My initial inkling is to put it as a peer to the `Source` and `Tests` folders.
I will update the structure as I get answers to the questions to provide a clearer picture. I also welcome any other comments related to potential changes. If I have any other questions, I will make sure to modify this post.
| 0 |
10,444,432 |
05/04/2012 07:19:16
| 1,334,029 |
04/15/2012 02:39:04
| 8 | 1 |
Simple Animation in DirectX 10
|
I am a beginner in DirectX. I would like to know how to implement some animation like moving a persons hand, etc in directX 10. I have googled this question and have found out you need use stuff like bone, character animation. But, I haven't found anything which explains it properly.
I have gone through some question in stackoverflow and other forums but, I am not able to understand how to implement animation.
Also, I have gone through the Skinning10 sample in DirectX SDK. I'm not able to understand what is done there.
Could someone please help me?
|
animation
|
directx
| null | null | null | null |
open
|
Simple Animation in DirectX 10
===
I am a beginner in DirectX. I would like to know how to implement some animation like moving a persons hand, etc in directX 10. I have googled this question and have found out you need use stuff like bone, character animation. But, I haven't found anything which explains it properly.
I have gone through some question in stackoverflow and other forums but, I am not able to understand how to implement animation.
Also, I have gone through the Skinning10 sample in DirectX SDK. I'm not able to understand what is done there.
Could someone please help me?
| 0 |
5,534,254 |
04/04/2011 03:17:33
| 606,904 |
02/07/2011 18:18:52
| 15 | 0 |
Access Google Calendar data for multiple users via Android client
|
My Android app will allow users to form groups with their friends and compare their Google calendar data finding common free times with each other. I will be accessing calendars and doing comparisons on a server hosted on GAE, not the client.
Can the users give permission to allow access of a read only version of their calendar data at any given time? Do I even need permission to access this data?
The goal I want to achieve is: for any member m of group G, m can compare calendar data with all other members of G, at any given time.
Suggestions and ideas welcome :)
|
android
|
google-app-engine
|
authentication
|
google-calendar
| null | null |
open
|
Access Google Calendar data for multiple users via Android client
===
My Android app will allow users to form groups with their friends and compare their Google calendar data finding common free times with each other. I will be accessing calendars and doing comparisons on a server hosted on GAE, not the client.
Can the users give permission to allow access of a read only version of their calendar data at any given time? Do I even need permission to access this data?
The goal I want to achieve is: for any member m of group G, m can compare calendar data with all other members of G, at any given time.
Suggestions and ideas welcome :)
| 0 |
6,154,396 |
05/27/2011 15:25:37
| 680,268 |
03/28/2011 13:14:30
| 388 | 31 |
How to remove service application from Add/Remove Programs if it is no longer listed as a service?
|
I had a windows installer install a service I created. I tested on my dev machine rather than a test machine. The application files no longer exist and the service does not show up in the list of Windows Services under Admin Tools. I am trying to remove the entry from the Add/Remove programs. I set the installer up with a custom action of uninstalling the service when the uninstaller is run.
Even with manually copying the files to the expected location and manually adding the service in to the list of services, the uninstaller fails. I can't manage to remove it from the list of add remove programs. How can I remove it from the list?
|
windows
|
windows-services
|
windows-xp
|
windows-installer
|
uninstall
| null |
open
|
How to remove service application from Add/Remove Programs if it is no longer listed as a service?
===
I had a windows installer install a service I created. I tested on my dev machine rather than a test machine. The application files no longer exist and the service does not show up in the list of Windows Services under Admin Tools. I am trying to remove the entry from the Add/Remove programs. I set the installer up with a custom action of uninstalling the service when the uninstaller is run.
Even with manually copying the files to the expected location and manually adding the service in to the list of services, the uninstaller fails. I can't manage to remove it from the list of add remove programs. How can I remove it from the list?
| 0 |
10,260,620 |
04/21/2012 16:00:47
| 1,341,809 |
04/18/2012 15:26:50
| 1 | 0 |
discovering near people
|
I've seen some apps that are capable to discover other people that have the same app.
These capability to discover apps that are around, is very interesting.
Some of you have develop apps like thes? I would like some advices.
|
java
|
android
|
mobile
|
android-intent
| null |
04/23/2012 02:46:33
|
not a real question
|
discovering near people
===
I've seen some apps that are capable to discover other people that have the same app.
These capability to discover apps that are around, is very interesting.
Some of you have develop apps like thes? I would like some advices.
| 1 |
9,998,859 |
04/03/2012 18:06:50
| 974,876 |
10/01/2011 21:02:20
| 51 | 0 |
how can i develop a blogging application in asp.net mvc?
|
i want to develop the blog application which is described in the book "ASP.NET MVC Framework Unleashed", the book is in asp.net mvc 1 , if i was to develop the same application using the razor engine and following the material in the same book, would i run into problems?
also is there any other material that is related to developing blogs using asp.net mvc?
|
c#
|
asp.net-mvc
| null | null | null |
07/26/2012 17:32:42
|
not constructive
|
how can i develop a blogging application in asp.net mvc?
===
i want to develop the blog application which is described in the book "ASP.NET MVC Framework Unleashed", the book is in asp.net mvc 1 , if i was to develop the same application using the razor engine and following the material in the same book, would i run into problems?
also is there any other material that is related to developing blogs using asp.net mvc?
| 4 |
6,409,698 |
06/20/2011 10:12:35
| 205,546 |
11/07/2009 11:54:00
| 428 | 31 |
Safe to authenticate with ASP.NET MVC 3 site from Windows application ?
|
I have a basic ASP.NET MVC 3 site using Forms authentication, which will be internet-facing.
I also want to implement a Windows application, purely for intranet usage, which will allow users to maintain various aspects of the ASP.NET user database (it has additional tables and fields beyond the stock schema).
My initial thoughts are that I could do this by having various actions in my controller classes, into which I could pass a dedicated username/password and then within each action method validate those credentials using Membership.ValidateUser() .
I realise I could use mixed-mode authentication with Windows authentication for the intranet part but this seems to me like a lot of unnecessary faffing since the intranet users won't be using a browser to do this.
The Windows application will running on the corporate intranet and will be accessing those MVC 3 actions on the website via internal HTTP requests using this dedicated username/password in the query string.
Question: Is this safe enough?
|
security
|
asp.net-mvc-3
| null | null | null | null |
open
|
Safe to authenticate with ASP.NET MVC 3 site from Windows application ?
===
I have a basic ASP.NET MVC 3 site using Forms authentication, which will be internet-facing.
I also want to implement a Windows application, purely for intranet usage, which will allow users to maintain various aspects of the ASP.NET user database (it has additional tables and fields beyond the stock schema).
My initial thoughts are that I could do this by having various actions in my controller classes, into which I could pass a dedicated username/password and then within each action method validate those credentials using Membership.ValidateUser() .
I realise I could use mixed-mode authentication with Windows authentication for the intranet part but this seems to me like a lot of unnecessary faffing since the intranet users won't be using a browser to do this.
The Windows application will running on the corporate intranet and will be accessing those MVC 3 actions on the website via internal HTTP requests using this dedicated username/password in the query string.
Question: Is this safe enough?
| 0 |
7,541,714 |
09/24/2011 20:27:45
| 467,379 |
10/05/2010 22:29:03
| 634 | 42 |
Some questions on .vimrc and vim configuration
|
Generally on a unix system, there is a global `vimrc` file in the directory `/etc` or `/etc/vim`. You can also have a `.vimrc` file in your home directory that can customize your vi session.
Is it possible to have a `.vimrc` elsewhere in your directory tree so you can use different vi properties in different directories? This would be convenient because the editor properties that help you edit Python most quickly are different from those for editing, say, HTML.
This sort of thing does not seem to work be default on my mac or linux lappies. Is there a way to make it happen?
|
vim
|
vimrc
|
vi
| null | null | null |
open
|
Some questions on .vimrc and vim configuration
===
Generally on a unix system, there is a global `vimrc` file in the directory `/etc` or `/etc/vim`. You can also have a `.vimrc` file in your home directory that can customize your vi session.
Is it possible to have a `.vimrc` elsewhere in your directory tree so you can use different vi properties in different directories? This would be convenient because the editor properties that help you edit Python most quickly are different from those for editing, say, HTML.
This sort of thing does not seem to work be default on my mac or linux lappies. Is there a way to make it happen?
| 0 |
10,294,688 |
04/24/2012 08:53:40
| 683,518 |
03/30/2011 07:59:45
| 141 | 0 |
Is there any way to find the list of Oracle DB installed in a UNIX server?
|
I know there are Oracle DB installed in my UNIX server, is there any way to get those db names?
I'm using Sun OS.
|
oracle
|
unix
|
sunos
| null | null |
04/25/2012 02:30:19
|
off topic
|
Is there any way to find the list of Oracle DB installed in a UNIX server?
===
I know there are Oracle DB installed in my UNIX server, is there any way to get those db names?
I'm using Sun OS.
| 2 |
6,002,094 |
05/14/2011 13:23:28
| 753,643 |
05/14/2011 13:23:28
| 1 | 0 |
C# .NET (WinForm) - MainForm divied on Menu (left) and Content (Right, child form)
|
Have been long time without workin on winform's (now i'm an asp.net developer), but these time i need an application to use myself, so i start working this morning and problems have appeared (as every project start...lol).
Okay, let's see how can i explain it (bad english):
I was thinking on have a MainForm, dividing it on two sides: left side (about 20% of the width of the screen) wich will contain a MENU (menustrip?), and the rest, will be the side of the 'child form'.
The idea, is that clicking on one of the elements of the menu (remember, left side of the mainform), it will create and instance a form, and SHOW it in the content side (right side).
There will be ONLY one form at the same time on the content side (right), but i probably will need the ShowDialog property to create a new one, separately of the main form.
The problem:
I don't know wich control should i use, in the mainform, to place a 'contentplaceholder' (asp.net like), on the right side of the mainform, so i can dinamycally load/unload the form by clicking in the elements of the menu.
I know how to open a new dialog (form.ShowDialog, etc...), but i don't remember if that's possible or not.
In advance, thanks a lot for your time.
|
c#
|
asp.net
|
winforms
|
menu
| null | null |
open
|
C# .NET (WinForm) - MainForm divied on Menu (left) and Content (Right, child form)
===
Have been long time without workin on winform's (now i'm an asp.net developer), but these time i need an application to use myself, so i start working this morning and problems have appeared (as every project start...lol).
Okay, let's see how can i explain it (bad english):
I was thinking on have a MainForm, dividing it on two sides: left side (about 20% of the width of the screen) wich will contain a MENU (menustrip?), and the rest, will be the side of the 'child form'.
The idea, is that clicking on one of the elements of the menu (remember, left side of the mainform), it will create and instance a form, and SHOW it in the content side (right side).
There will be ONLY one form at the same time on the content side (right), but i probably will need the ShowDialog property to create a new one, separately of the main form.
The problem:
I don't know wich control should i use, in the mainform, to place a 'contentplaceholder' (asp.net like), on the right side of the mainform, so i can dinamycally load/unload the form by clicking in the elements of the menu.
I know how to open a new dialog (form.ShowDialog, etc...), but i don't remember if that's possible or not.
In advance, thanks a lot for your time.
| 0 |
4,959,253 |
02/10/2011 15:45:41
| 611,641 |
01/01/2011 21:18:05
| 1 | 0 |
Converting SQL Server varBinary data into string C#.
|
I need help figuring out how to convert data that comes in from a **SQL Server** table column that is set as **varBinary(max)** into a string in order to display it in a label.
This is in **C#** and I'm using a **DataReader**.
I can pull the data in using:
var BinaryString = reader[1];
i know that this column holds text that was previously convert to binary.
|
c#
|
sql-server
|
string
|
binary
|
type-conversion
| null |
open
|
Converting SQL Server varBinary data into string C#.
===
I need help figuring out how to convert data that comes in from a **SQL Server** table column that is set as **varBinary(max)** into a string in order to display it in a label.
This is in **C#** and I'm using a **DataReader**.
I can pull the data in using:
var BinaryString = reader[1];
i know that this column holds text that was previously convert to binary.
| 0 |
5,991,900 |
05/13/2011 12:33:59
| 571,409 |
01/11/2011 14:48:47
| 26 | 0 |
Tagging an old commit of a submodule with git
|
I have a git project (repo1) including a single submodule (repo2).
What I would like to achieve is to *tag* my project using an older commit of my submodule (like HEAD - 3).
I tried with a checkout of the submodule to the commit I want, but checkout is *wrong* since, committing in my project won't track the proper revision.
I tried resetting my submodule to the commit I want, commit the project, and then pulling the submodule and committing the project, which is also wrong because:
$ git submodule update
fatal: reference is not a tree: 2c3d1a5936aa9469ecc1442cd4b101e1bbd3aada
Unable to checkout '2c3d1a5936aa9469ecc1442cd4b101e1bbd3aada' in submodule path 'repo2'
What would be the best -- as well as nicest -- procedure ?
|
git-submodules
|
git-tag
| null | null | null | null |
open
|
Tagging an old commit of a submodule with git
===
I have a git project (repo1) including a single submodule (repo2).
What I would like to achieve is to *tag* my project using an older commit of my submodule (like HEAD - 3).
I tried with a checkout of the submodule to the commit I want, but checkout is *wrong* since, committing in my project won't track the proper revision.
I tried resetting my submodule to the commit I want, commit the project, and then pulling the submodule and committing the project, which is also wrong because:
$ git submodule update
fatal: reference is not a tree: 2c3d1a5936aa9469ecc1442cd4b101e1bbd3aada
Unable to checkout '2c3d1a5936aa9469ecc1442cd4b101e1bbd3aada' in submodule path 'repo2'
What would be the best -- as well as nicest -- procedure ?
| 0 |
6,167,939 |
05/29/2011 13:17:35
| 568,852 |
01/09/2011 15:05:30
| 1 | 0 |
ASPX URL is broken & Streaming WebService
|
I'm attempting to create a streaming webservice, unfortunally i even lack its concept overall. My idea is to have a method which will return to me a string with the value of the URL to the streaming page.
I've tried many different ways to do this, but no one of them worked; I tried using DownloadString, even writting the raw URL, but i always had errors so i found one way to just make it happen:
[WebMethod]
public string WatchMedia(string title)
{
Global.Media = title;
Streaming str = new Streaming(); //Streaming.aspx
return str.GetURL();
}
Okay so, in my aspx.cs i included this:
internal string GetURL()
{
return HttpContext.Current.Request.Url.AbsoluteUri.ToString();
}
Don't really ask me about the 'internal', i'm so tired of trying different ways to get this to work that i just go along with that VS builds for me.
That does give me the URL i thought i wanted, BUT, it doesn't work, why? Because it says, give or take (directly translated):
The request format is not recognized for the unexpectedly terminated URL in /WatchMedia
WatchMedia is the name of my method as seen above.
Now, beside's hoping someone can give me a straight answer as to what ridiculous sin am i hurting my self with here, i'd like to know if this is the way for a streaming webservice to work? I can't seem to find any real information about video streaming webservices over the www, not even Google will tell me!
|
asp.net
|
web-services
|
url
|
request
|
webmethod
| null |
open
|
ASPX URL is broken & Streaming WebService
===
I'm attempting to create a streaming webservice, unfortunally i even lack its concept overall. My idea is to have a method which will return to me a string with the value of the URL to the streaming page.
I've tried many different ways to do this, but no one of them worked; I tried using DownloadString, even writting the raw URL, but i always had errors so i found one way to just make it happen:
[WebMethod]
public string WatchMedia(string title)
{
Global.Media = title;
Streaming str = new Streaming(); //Streaming.aspx
return str.GetURL();
}
Okay so, in my aspx.cs i included this:
internal string GetURL()
{
return HttpContext.Current.Request.Url.AbsoluteUri.ToString();
}
Don't really ask me about the 'internal', i'm so tired of trying different ways to get this to work that i just go along with that VS builds for me.
That does give me the URL i thought i wanted, BUT, it doesn't work, why? Because it says, give or take (directly translated):
The request format is not recognized for the unexpectedly terminated URL in /WatchMedia
WatchMedia is the name of my method as seen above.
Now, beside's hoping someone can give me a straight answer as to what ridiculous sin am i hurting my self with here, i'd like to know if this is the way for a streaming webservice to work? I can't seem to find any real information about video streaming webservices over the www, not even Google will tell me!
| 0 |
8,026,798 |
11/06/2011 11:50:51
| 371,181 |
06/19/2010 18:49:25
| 3,562 | 360 |
what is the relationship between MSAcess and MSExcel?
|
I'm a MySQL user. I've never used either MSAccess or MSExcel, though Excel got installed the other day as part of MSOffice.
A customer asks me to incorporate MSAccess in his project. Is Excel an upgrade from Access? Or are they totally diff products? I see that I can download Access, but is it even supported anymore?
Cust gave me his database as a .mdb file, which Excel seems to know nothing about.
What's my next step in getting this database file running on my XP machine?
Thanks, everybody!
|
ms-access
|
msexcel
|
.mdb
| null | null |
11/06/2011 20:01:05
|
not constructive
|
what is the relationship between MSAcess and MSExcel?
===
I'm a MySQL user. I've never used either MSAccess or MSExcel, though Excel got installed the other day as part of MSOffice.
A customer asks me to incorporate MSAccess in his project. Is Excel an upgrade from Access? Or are they totally diff products? I see that I can download Access, but is it even supported anymore?
Cust gave me his database as a .mdb file, which Excel seems to know nothing about.
What's my next step in getting this database file running on my XP machine?
Thanks, everybody!
| 4 |
6,407,037 |
06/20/2011 05:12:02
| 772,561 |
05/27/2011 06:37:56
| 1 | 0 |
Master Shell and Child shell in SWT/
|
I am new to SWT.
I want to design a Menu bar shell, when selecting a Menu item, corresponding menu
shell should appear with the Same menu bar.
What I need in .NET, there is a Master Form, we can add child form to it.
LikeWise I want to Add Menu in the master shell and add child shells to that master shell.
|
swt
| null | null | null | null |
07/02/2011 19:13:08
|
not a real question
|
Master Shell and Child shell in SWT/
===
I am new to SWT.
I want to design a Menu bar shell, when selecting a Menu item, corresponding menu
shell should appear with the Same menu bar.
What I need in .NET, there is a Master Form, we can add child form to it.
LikeWise I want to Add Menu in the master shell and add child shells to that master shell.
| 1 |
7,823,165 |
10/19/2011 14:47:44
| 750,613 |
05/12/2011 13:17:52
| 2,396 | 185 |
Android multiple ImageView moving on touch
|
Here below is my xml File nname is main.xml
------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@+id/imageView" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/icon"
android:scaleType="matrix">
</ImageView>
<ImageView android:id="@+id/imageView1" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/bg_sound"
android:scaleType="matrix"></ImageView>
</FrameLayout>
------------------------------------------------------------------
And My Java File is below
----------------------------------------------------------------
import android.app.Activity;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.FloatMath;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
public class Test1Activity extends Activity implements OnTouchListener {
private static final String TAG = "Touch";
// These matrices will be used to move and zoom image
Matrix matrix = new Matrix();
Matrix savedMatrix = new Matrix();
// We can be in one of these 3 states
// Remember some things for zooming
PointF start = new PointF();
PointF mid = new PointF();
float oldDist = 1f;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView view = (ImageView) findViewById(R.id.imageView);
view.setOnTouchListener(this);
ImageView view1 = (ImageView) findViewById(R.id.imageView1);
view1.setOnTouchListener(this);
}
@Override
public boolean onTouch(View v, MotionEvent event) {
ImageView view = (ImageView) v;
// Dump touch event to log
// Handle touch events here...
switch (event.getAction() & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN:
savedMatrix.set(matrix);
start.set(event.getX(), event.getY());
break;
case MotionEvent.ACTION_UP:
savedMatrix.set(matrix);
//matrix.postRotate(90);
break;
case MotionEvent.ACTION_MOVE:
// ...
matrix.set(savedMatrix);
matrix.postTranslate(event.getX() - start.x, event.getY()
- start.y);
break;
}
view.setImageMatrix(matrix);
view.invalidate();
return true; // indicate event was handled
}
}
-----------------------------------------------------------------
I am able to achieve move on touch but as there are 2 imageviews added only latest added imageviews is movable.
I guess problem is layout_width="fill_parent" which causes only front imageview to be recognized on touch. and If I am using layout_width="wrap_content" than imageview only moves in that image sized area and being invisible.
How to resolve this problem ?
Thanks,
|
android
|
imageview
| null | null | null | null |
open
|
Android multiple ImageView moving on touch
===
Here below is my xml File nname is main.xml
------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@+id/imageView" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/icon"
android:scaleType="matrix">
</ImageView>
<ImageView android:id="@+id/imageView1" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/bg_sound"
android:scaleType="matrix"></ImageView>
</FrameLayout>
------------------------------------------------------------------
And My Java File is below
----------------------------------------------------------------
import android.app.Activity;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.FloatMath;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
public class Test1Activity extends Activity implements OnTouchListener {
private static final String TAG = "Touch";
// These matrices will be used to move and zoom image
Matrix matrix = new Matrix();
Matrix savedMatrix = new Matrix();
// We can be in one of these 3 states
// Remember some things for zooming
PointF start = new PointF();
PointF mid = new PointF();
float oldDist = 1f;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView view = (ImageView) findViewById(R.id.imageView);
view.setOnTouchListener(this);
ImageView view1 = (ImageView) findViewById(R.id.imageView1);
view1.setOnTouchListener(this);
}
@Override
public boolean onTouch(View v, MotionEvent event) {
ImageView view = (ImageView) v;
// Dump touch event to log
// Handle touch events here...
switch (event.getAction() & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN:
savedMatrix.set(matrix);
start.set(event.getX(), event.getY());
break;
case MotionEvent.ACTION_UP:
savedMatrix.set(matrix);
//matrix.postRotate(90);
break;
case MotionEvent.ACTION_MOVE:
// ...
matrix.set(savedMatrix);
matrix.postTranslate(event.getX() - start.x, event.getY()
- start.y);
break;
}
view.setImageMatrix(matrix);
view.invalidate();
return true; // indicate event was handled
}
}
-----------------------------------------------------------------
I am able to achieve move on touch but as there are 2 imageviews added only latest added imageviews is movable.
I guess problem is layout_width="fill_parent" which causes only front imageview to be recognized on touch. and If I am using layout_width="wrap_content" than imageview only moves in that image sized area and being invisible.
How to resolve this problem ?
Thanks,
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.