08-13-2018
Fix a change I made
I made a change in either my my User Control Panel or Miscelleneous. I may have switched to a mobile format.
This is what I do NOT want.
Dropbox - NotWhatIWant.png
This is how I would like to returned to.
Dropbox - WhatIWant.png
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone please suggest a script to make the following into one single (continuous) line so that a pattern search can be carried out on the resulting single line.
Note : Sample (may be shorter or longer) and will be contained in a text file
... (6 Replies)
Discussion started by: nmsinghe
6 Replies
2. UNIX for Dummies Questions & Answers
Is there any way in Solaris 9 to monitor changes made to user accounts by root? (0 Replies)
Discussion started by: scriptarg
0 Replies
3. Cybersecurity
Hello, I am a newbie to Unix administration (specifically Solaris 9). I have everything setup properly for auditing but I neglected to realize I needed to start a new logfile each week. Thus the one logfile grew to about 2.5GB before the auditreduce command could no longer process the file.
... (4 Replies)
Discussion started by: jtbates
4 Replies
4. UNIX for Advanced & Expert Users
Thanks
Avklinux (1 Reply)
Discussion started by: avklinux
1 Replies
5. Shell Programming and Scripting
Not sure what happened, this page/code always worked before, no changes were made to the code, only the box was powered down, moved and powered back up, the code seems to still be doing its job but spewing out these errors right on the page.
Again no changes were made.
Warning: strtotime()... (1 Reply)
Discussion started by: ippy98
1 Replies
6. UNIX for Dummies Questions & Answers
hello friends, l was using this command to empty tmp directory
but l made this by mistake :
and l cant reach my sites now.
what l did ???
---------- Post updated 11-13-11 at 12:07 AM ---------- Previous update was 11-12-11 at... (3 Replies)
Discussion started by: rcpkrc
3 Replies
7. AIX
Hi,
I want to know what changes were made to my AIX system in last few weeks/months.
Is there any command that I can use for this?
I am facing a problem wherein my program which are built few weeks back runs fine but if I build the same program now, it doesn't run as expected.
... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
8. What is on Your Mind?
Hi.. Looking for advice / feedback
Work in IT in an operational team, number of years ago, all monitoring was manual, vast checklists for unix checks, checking space, checking application processes, files etc. filling in spreadsheets etc.
I took some basic scripting courses in ksh and... (2 Replies)
Discussion started by: frustrated1
2 Replies
9. What is on Your Mind?
Today I received an email from 'code.activestate.com'.
It was referenced to a Python code snippet I wrote 3 years and 2 months ago.
It was the third party comment at the bottom that was emailed to me...
As I am a pure amateur coder this has really made my day...
Platform Independent... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT PHP
strnatcmp
STRNATCMP(3) 1 STRNATCMP(3)
strnatcmp - String comparisons using a "natural order" algorithm
SYNOPSIS
int strnatcmp (string $str1, string $str2)
DESCRIPTION
This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would, this is described as a
"natural ordering". Note that this comparison is case sensitive.
PARAMETERS
o $str1
- The first string.
o $str2
- The second string.
RETURN VALUES
Similar to other string comparison functions, this one returns < 0 if $str1 is less than $str2; > 0 if $str1 is greater than $str2, and 0
if they are equal.
EXAMPLES
An example of the difference between this algorithm and the regular computer string sorting algorithms (used in strcmp(3)) can be seen
below:
<?php
$arr1 = $arr2 = array("img12.png", "img10.png", "img2.png", "img1.png");
echo "Standard string comparison
";
usort($arr1, "strcmp");
print_r($arr1);
echo "
Natural order string comparison
";
usort($arr2, "strnatcmp");
print_r($arr2);
?>
The above example will output:
Standard string comparison
Array
(
[0] => img1.png
[1] => img10.png
[2] => img12.png
[3] => img2.png
)
Natural order string comparison
Array
(
[0] => img1.png
[1] => img2.png
[2] => img10.png
[3] => img12.png
)
SEE ALSO
preg_match(3), strcasecmp(3), substr(3), stristr(3), strcmp(3), strncmp(3), strncasecmp(3), strnatcasecmp(3), strstr(3), natsort(3), nat-
casesort(3).
PHP Documentation Group STRNATCMP(3)