Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 488
Search took 0.03 seconds.
Search: Posts Made By: ciderpunx
Forum: Linux November 29th, 2012, 04:44 PM
Replies: 1
Views: 2,064
Posted By ciderpunx
You can see what processes are running on a...

You can see what processes are running on a UNIX-like system by using the ps command. Type "man ps" to see the manual. I normally use "ps aux".
Forum: BOOK: Ivor Horton's Beginning Java, Java 7 Edition October 25th, 2012, 05:27 PM
Replies: 2
Views: 2,845
Posted By ciderpunx
for(int i = 0; i < coords.length; ++i) { ...

for(int i = 0; i < coords.length; ++i) {
points[i] = new Point(coords[i][0],coords[i][1]);
[code]

I can see where you're getting confused. Remember that coords is an array of pairs of...
Forum: MySQL October 25th, 2012, 05:05 PM
Replies: 3
Views: 2,603
Posted By ciderpunx
SELECT * FROM table WHERE datetime...

SELECT * FROM table WHERE datetime <(UNIX_TIMESTAMP(NOW()) - 24*60*60);

A UNIX timestamp is a count of seconds since 1 Jan 1970 24*60*60 is the number of seconds in 24 hours.

You can also write...
Forum: Linux October 25th, 2012, 04:53 PM
Replies: 2
Views: 1,783
Posted By ciderpunx
The cat data.txt 2> prints the file data.txt to...

The cat data.txt 2> prints the file data.txt to STDOUT and redirects the output from STDERR into the file output.txt

The 2>&1 redirects STDERR to STDOUT after cat has written its STDERR to...
Forum: BOOK: Beginning Regular Expressions October 18th, 2012, 07:20 PM
Replies: 1
Views: 1,877
Posted By ciderpunx
Something along the lines of: ...

Something along the lines of:
m{^ftp://\w+:\w+@[\w\.+]\.\w{2,3}(\.\w{2,3})?(?:/[\w\.]+)+}

But seriously, use a module from http://cpan.org to do this.
Forum: BOOK: Beginning Regular Expressions October 18th, 2012, 07:14 PM
Replies: 3
Views: 1,353
Posted By ciderpunx
3 optional digits

3 optional digits
Forum: BOOK: Beginning Regular Expressions October 18th, 2012, 07:11 PM
Replies: 3
Views: 1,669
Posted By ciderpunx
In perl: /[a-e_]+;/

In perl:

/[a-e_]+;/
Forum: BOOK: Beginning Regular Expressions October 18th, 2012, 07:04 PM
Replies: 1
Views: 2,152
Posted By ciderpunx
There are a few details you don't explain...

There are a few details you don't explain clearly, but I have assumed that your data is line orientated with each line being composed of many pairs of pairs of (co-ordinates?) surrounded by brackets....
Forum: Perl October 18th, 2012, 06:36 PM
Replies: 18
Views: 132,410
Posted By ciderpunx
The following is redundant: #!/usr/bin/perl...

The following is redundant:

#!/usr/bin/perl -w
...
use warnings;

-w /means/ use warnings.

The previous poster means that when you use a \ character befor another it escapes that...
Forum: Perl October 18th, 2012, 06:31 PM
Replies: 1
Views: 1,299
Posted By ciderpunx
Sure, but you'll need to be clearer what you want...

Sure, but you'll need to be clearer what you want to convert them to. For example if you wanted HTML character entities, you could use HTML::Entitiies from the CPAN. But maybe you need some other...
Forum: Java Basics November 14th, 2011, 07:10 PM
Replies: 2
Views: 1,256
Posted By ciderpunx
Well, you need to put stuff in your array,...

Well, you need to put stuff in your array, otherwise you will be pointing at something null!

You can do this (explained inline):


charlie@localhost:~$ cat TestCode.java
class City {
...
Forum: BOOK: Beginning Java 2 November 14th, 2011, 06:43 PM
Replies: 1
Views: 7,129
Posted By ciderpunx
Yes you are using composition, in that you are...

Yes you are using composition, in that you are composing your Student Class with a Professor attribute (and vice versa). Composition is a fancy way of saying has-a . You can read that a Student...
Forum: Perl November 13th, 2011, 10:26 PM
Replies: 1
Views: 2,380
Posted By ciderpunx
Best post on a php forum then.

Best post on a php forum then.
Forum: Perl November 13th, 2011, 10:24 PM
Replies: 3
Views: 6,547
Posted By ciderpunx
Would HTML::Entities...

Would HTML::Entities (http://search.cpan.org/%7Egaas/HTML-Parser-3.69/lib/HTML/Entities.pm) work for you? If not something like:


#!/usr/bin/perl
use warnings;
use strict;
use utf8;
use...
Forum: Other Programming Languages May 29th, 2011, 09:00 AM
Replies: 1
Views: 1,858
Posted By ciderpunx
1) use nmap (http://nmap.org/) 2) that depends...

1) use nmap (http://nmap.org/)
2) that depends on what you mean. perhaps google for exploits (service). You can get a list of port to service mappings on any unix or linux at /etc/services or nmap...
Forum: Perl May 29th, 2011, 08:42 AM
Replies: 1
Views: 2,977
Posted By ciderpunx
There's an entry in the FAQ of WWW::Mechanize is...

There's an entry in the FAQ of WWW::Mechanize is this what you are after?
http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize/FAQ.pod
Forum: Perl May 29th, 2011, 08:37 AM
Replies: 1
Views: 1,343
Posted By ciderpunx
Its storing a serialized version of the object...

Its storing a serialized version of the object for later retrieval. Storable is usually used when you want to store a data structure for later use -- generally called persistence. But freeze and...
Forum: Perl February 21st, 2011, 01:10 PM
Replies: 2
Views: 1,198
Posted By ciderpunx
The condition would be untrue if $numeric was ''...

The condition would be untrue if $numeric was '' or 0 or undef.

If you said :

if() {
print "TRUE\n";
}
else {
print "FALSE\n";
}
Forum: Linux February 21st, 2011, 01:06 PM
Replies: 1
Views: 875
Posted By ciderpunx
$ mount | grep /server/mountpoint

$ mount | grep /server/mountpoint
Forum: BOOK: Beginning HTML, XHTML, CSS, and JavaScript March 6th, 2010, 07:09 AM
Replies: 5
Views: 1,208
Posted By ciderpunx
You mean something like this? <div...

You mean something like this?
<div style="text-align:center;font-size:10pt">

Wouldn't that defeat the purpose of it being navigation?
Forum: Linux March 6th, 2010, 05:54 AM
Replies: 1
Views: 4,001
Posted By ciderpunx
Probably not picking up the EDID from your...

Probably not picking up the EDID from your monitor. This thread may be of use:
http://ubuntuforums.org/showthread.php?t=1038933

Or just google it.
Forum: Linux March 6th, 2010, 05:49 AM
Replies: 1
Views: 1,420
Posted By ciderpunx
http://kernel.org

http://kernel.org
Forum: Linux March 6th, 2010, 05:47 AM
Replies: 8
Views: 4,742
Posted By ciderpunx
Debian! http://www.debian.org/distrib/ ...

Debian! http://www.debian.org/distrib/



http://rute.2038bug.com/index.html.gz

Or just:
http://www.google.com/search?ebooks+linux
Forum: Linux March 6th, 2010, 05:39 AM
Replies: 1
Views: 1,648
Posted By ciderpunx
Have a look at Mono...

Have a look at Mono http://www.mono-project.com/Main_Page
Forum: PHP FAQs July 27th, 2009, 09:57 AM
Replies: 2
Views: 4,222
Posted By ciderpunx
In your main apache config, make sure you've...

In your main apache config, make sure you've loaded mod_rewrite.

Also make sure that you've enabled .htaccess files:


AccessFileName .htaccess
<Directory /var/www/your_dir>
AllowOverride ...
Showing results 1 to 25 of 488

 


All times are GMT -4. The time now is 02:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.