LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2015, 03:33 AM   #61
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097

Yes, but cute-bartender-40d.24.36-x86_64-1.txz has a better output in interoperability with libjackdaniels, libcola, libjosecuervo, libgrenadine, and libbeer, and is able to function as a dynamic interpreter for libbacardi and libbeefeater which have some incompatibilities with other barlibs from time to time. We have noticed the output of the mixed-drink binary is cleaner and the instances of error:hangover in drinks.log are fewer, plus the new cute-bartender package is able to output instance::adiosmotherfucker, instance::jackncoke, instance::longislandiceatea, and instance::happiness has increased dramatically. Plus it works better in the new bar-shell system quite high stability.

This one didn't have any injection patches. This version was created as such. Pure vanilla code baby.

Last edited by ReaperX7; 03-19-2015 at 03:36 AM.
 
4 members found this post helpful.
Old 03-19-2015, 06:32 AM   #62
bartgymnast
Member
 
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368

Rep: Reputation: 165Reputation: 165
my cute-bartender files where overwritten by a package called: pretty-wife-1.0-x86_64-1.txz a few years ago
 
3 members found this post helpful.
Old 03-19-2015, 07:09 AM   #63
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Congratulations on your successful uptake of pretty-wife-1.0-x86_64-1.txz! The benefits are great, although there is potential for spawning of child processes, that can be resource hungry with significant loss of system idle time.
Also, some users who have experienced failure with pretty-wife-1.0-x86_64-1.txz have reported a rocky upgrade path to pretty-wife-2.0-x86_64-1.txz and beyond.
 
1 members found this post helpful.
Old 03-19-2015, 10:25 AM   #64
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by allend View Post
Congratulations on your successful uptake of pretty-wife-1.0-x86_64-1.txz! The benefits are great, although there is potential for spawning of child processes, that can be resource hungry with significant loss of system idle time.
Also, some users who have experienced failure with pretty-wife-1.0-x86_64-1.txz have reported a rocky upgrade path to pretty-wife-2.0-x86_64-1.txz and beyond.
About squirted orange juice out my nose allend... LOL

Just be advised pretty-wife-1.0-x86_64-1.txz will seek to gain control of life-1.0-noarch-1.txz as PID1. Just be aware to scan pretty-wife-1.0 for mother-in-law-1.0 also in the package which could have malware like behaviors.

Last edited by ReaperX7; 03-19-2015 at 10:30 AM.
 
1 members found this post helpful.
Old 03-20-2015, 06:05 AM   #65
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
where there be a thread "must be included in next slackware version" ?
Cannot find.
Strange, slackware installation does not include acpi util, not iotop, nor also very useful ncdu...
 
Old 03-20-2015, 06:34 AM   #66
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,061

Rep: Reputation: Disabled
Quote:
Originally Posted by WiseDraco View Post
Strange, slackware installation does not include acpi util, not iotop, nor also very useful ncdu...
All these are available @ http://slackbuilds.org.
 
Old 03-20-2015, 07:22 AM   #67
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by WiseDraco View Post
where there be a thread "must be included in next slackware version" ?
Cannot find.
Here: http://www.linuxquestions.org/questi...ad-4175526322/
 
1 members found this post helpful.
Old 03-20-2015, 02:06 PM   #68
rmarquet
LQ Newbie
 
Registered: Dec 2010
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 5
You guys are cracking me up.

The new server hardware is up and running, just have to get some stuff working, as always. Thanks for the help and laughs.
 
2 members found this post helpful.
Old 03-20-2015, 05:36 PM   #69
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Having fun is part of the Slackware way. If we didn't joke around, it just wouldn't be LQ or Slackware now would it? Laughter fills the soul with joy and light, just like Slackware lights the way of learning with joy.
 
1 members found this post helpful.
Old 03-20-2015, 08:24 PM   #70
rmarquet
LQ Newbie
 
Registered: Dec 2010
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 5
This isn't Slackware related but I figure asking a bunch of Slackware people is most likely to work...

I use an old intrusion detection program called fcheck that appears to be unsupported. It's a perl program, but I'm not a perl programmer. Unfortunately I'm getting this warning:

Quote:
Use of assignment to $[ is deprecated at /usr/local/sbin/fcheck line 638.
What did that assignment do?

Here's the top of the function that does it; the offending code is in the second line of code within the function:

Quote:
###############################################################################
# $x=&ctime($y); #
# This support routine will return the converted time to human readable format#
# Basically, I'm trying to get away from any functions that may not be in any #
# very minimal PERL distribution. #
###############################################################################
sub ctime
{
local($time) = @_;
local($[) = 0;
local($sec, $min, $hour, $mday, $mon, $year, $wday);

@WeekDay = ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
@Month = ('Jan','Feb','Mar','Apr','May','Jun',
'Jul','Aug','Sep','Oct','Nov','Dec');

($sec, $min, $hour, $mday, $mon, $year, $wday) = ($TZ) ? gmtime($time) : localtime($time);
Thanks! I'm sure I could figure it out if I spent the time on it, but someone who is fluent in perl can probably look at it and tell me in a few seconds...
 
Old 03-20-2015, 09:46 PM   #71
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Deprecated means it's using an older function command, path, or library that is still around, but isn't exactly optimal to use. It doesn't mean it still isn't useful on some level however.
 
Old 03-21-2015, 08:09 AM   #72
rmarquet
LQ Newbie
 
Registered: Dec 2010
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by ReaperX7 View Post
Deprecated means it's using an older function command, path, or library that is still around, but isn't exactly optimal to use. It doesn't mean it still isn't useful on some level however.
I know. My question is, as someone who doesn't know perl, what was that line of code doing so that I can rewrite it to avoid the warning message? I've programmed in a number of languages, but I haven't seen a construct like that before. I know I can surpress warning too, but I'd rather fix the code.

Thanks.
 
Old 03-21-2015, 09:33 AM   #73
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
I know no Perl whatsoever, but I can google. Add this as the second line of /usr/local/sbin/fcheck
Code:
no warnings 'deprecated';
References: http://perldoc.perl.org/perl5120delt...arn-by-default ; http://perldoc.perl.org/perldiag.html ; http://perldoc.perl.org/perlvar.html#%24[

(As a learning point, btw, threadjacking is a suboptimal way of getting answers (even when it's your own thread that you're threadjacking). New question => new thread)
 
Old 03-21-2015, 09:51 AM   #74
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by rmarquet View Post
This isn't Slackware related but I figure asking a bunch of Slackware people is most likely to work...

I'm sure I could figure it out if I spent the time on it, but someone who is fluent in perl can probably look at it and tell me in a few seconds...
Code:
$[
The index of the first element in an array, and of the first character in a substring. Default is 0, but you could theoretically set it to 1 to make Perl behave more like awk (or Fortran) when subscripting and when evaluating the index() and substr() functions. (Mnemonic: [ begins subscripts.)
As of release 5 of Perl, assignment to $[ is treated as a compiler directive, and cannot influence the behavior of any other file. Its use is highly discouraged.
From the looks of it, that whole line "local($[) = 0;" could be omitted because the default is already zero.
 
Old 03-21-2015, 10:58 AM   #75
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
I believe $[ is one of those things that you used to set just to be sure of no nasty surprises, much like setting IFS in shell-scripts. $[ used to have global scope within the perl file so you couldn't rely on it being set to a default value on entry to your routine. Later they changed it to local scope, and then I guess just decided it better to deprecate its use completely (presumably because it confused people).


I always liked the pascal approach of doing arrays, where you define each array with an explicit index range such as [1..10] rather than having a fixed 0 or 1 base for all arrays. Seems the $[ perl feature was something in between the two.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware Linux version of Tux and Slackware Linux Phear the Penguin Logos phys Slackware 5 01-26-2013 02:51 PM
slackware startx starts the wrong version, i didn't even know i had another version edman007 Linux - Software 3 05-16-2004 07:38 PM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration