Anaconda lib duplicates of libonedal_core - duplicates

I'm looking through my Anaconda folders noticing what seem to be many duplicates. All these dupes are modified at the same time, all seem to have a version convention. They are not symlinks.
In ~/opt/anaconda3/lib and ~/opt/anaconda3/pkgs/dal-2021.5.0-hecd8cb5_782/lib
Are these in fact dupes? If yes, what's the safest way to remove the dupes? I've already run conda clean -ap and

These files are very likely symbolic links (softlinks) to a single file. It would be better to examine such files with a ls -lh command from a shell, rather than through a GUI. For example, if I look at libmamba* in my base environment, I see
$ ls -lh ~/miniconda3/lib/libmamba*
-rwxrwxr-x 2 mfansler staff 3.2M Aug 23 16:32 libmamba.2.0.0.dylib
lrwxr-xr-x 1 mfansler staff 20B Sep 29 17:05 libmamba.2.dylib -> libmamba.2.0.0.dylib
lrwxr-xr-x 1 mfansler staff 20B Sep 29 17:05 libmamba.dylib -> libmamba.2.0.0.dylib
where the arrows (->) represent symbolic links. Also notice how those are only 20 bytes.

Related

openshift UID permissions for files different on deployment than pod 3.11

curious if anyone can explain this one to me, I'm using ocp 3.11 and NFS as the persistence for my containers...
if I run the container as a Deployment I end up with what looks like the correct permissions (e.g. arbitrary UID):
drwx------. 20 1000060000 nfsnobody 4096 Nov 5 10:29 alpha
however, if I run the same container as a simple pod I end up with the USER as owning the files:
drwxr-x---. 3 26 26 41 Nov 5 11:29 lastone
i would have thought the pod would write with the same UID as the deployment above. I'm probably missing something simple here and any suggestions would be appreciated.

403 Forbidden - Mac Local Host

I am attempting to set up an AMP stack in order to do some basic web design with HTML 5, PHP, CSS, Apache, etc. I have done this on a PC but I am having trouble setting it up on my new Mac. I am trying to follow these steps (http://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/) but at the end of the first set of instructions I can't get the files to show and am getting a 403 error. Can someone please point me in the right direction or give me a good resource. Thank you.
Here is my current permissions on the file:
total 16
-rw-r--r-- 1 root wheel 96 Jan 10 13:39 Guest.conf
-rw-r--r-- 1 root wheel 132 Jan 20 15:52 username.conf
The way I found easiest was to do the following:
cd /filepath/to/thing/you/want; php -S localhost:8000
and then visit localhost:8000 on your computer.
Hoped this helps, as this is my first answer on StackOverflow.

Error 403 wont load any files in project folders

Can someone please explain with clear step by step instructions to a noobie, why is my console giving me these errors for some of my files on a project? I usually get them for external style sheets sometimes images and external .js documents.
Makes no sense to me.
Console shows Error: 403 Forbidden for each of them...
My noobie intuition says something is not right with my permissions for my sites directory or something among these lines. I dont know how to check
If you are using a LAMP stack for web server then you can face that problem.
First check the permission of all the files in the subsequent directory -
Let say that these are four external js in your html file like as :-
<script src="/js/file1.js"></script>
<script src="/js/file2.js"></script>
<script src="/js/file3.js"></script>
<script src="/js/file4.js"></script>
and you are getting errors for file1.js and file2.js then goto the js directory and check their permissions :-
user#host js $ ls -la
total 188
drwxrwxr-x 2 user user 4096 Jul 19 01:51 .
drwxrwxr-x 6 user user 4096 Jul 19 01:39 ..
-rw-rw-r-- 1 user user 55258 Feb 13 2014 file1.js
-rwxrw-r-- 1 user user 55258 Feb 13 2014 file2.js
-rwxrw-r-- 1 user user 55258 Feb 13 2014 file3.js
-rw-rw-r-- 1 user user 55258 Feb 13 2014 file4.js
-rw-rw-r-- 1 user user 29110 Feb 13 2014 bootstrap.min.js
If required change their permission with chmod and chown command.

Sublime Text 2 does not work from the command line after installing OS X Mavericks

After installing OS X Mavericks, I noticed I can no longer launch Sublime Text 2 from the command line by typing 'subl'. I looked online at the Sublime Text docs and in Stack Overflow and created a symbolic link here:
Christophers-MacBook-Pro-2:bin christopherspears$ pwd
/usr/local/bin
Christophers-MacBook-Pro-2:bin christopherspears$ ll
lrwxr-xr-x 1 christopherspears staff 62 Mar 6 15:24 subl# -> /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
I then looked in my .bash_profile file:
Christophers-MacBook-Pro-2:~ christopherspears$ cat .bash_profile
export PATH="/usr/local/bin:$PATH"
# Set your default text editor
export EDITOR=subl
Seems like /usr/local/bin is in $PATH:
Christophers-MacBook-Pro-2:~ christopherspears$ echo $PATH
/usr/local/share/python:/Users/christopherspears/.rbenv/bin:/usr/local/heroku/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
Not sure what the issue is.
I uninstalled Sublime Text 2 from Mac OS X and installed Sublime Text 3 (just wanted to check out the beta). Then I created a link in my home directory (/Users/christopherspears/bin):
Christophers-MacBook-Pro-2:bin christopherspears$ la
total 8
drwxr-xr-x 3 christopherspears staff 102 Mar 7 18:41 ./
drwxr-xr-x+ 57 christopherspears staff 1938 Mar 7 19:00 ../
lrwxr-xr-x 1 christopherspears staff 62 Mar 7 18:41 subl# -> /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
Had to create the 'bin' directory myself. Added the following to my .bash_profile:
# Set your default text editor
export EDITOR='subl -w'
export PATH="$HOME/bin:$PATH"

Mercurial track changes of a line

I am curious if there is a possibility to see the changes of a file, in an automatic way that have occurred to a line using Mercurial...
Concrete case: at some time in the past, a few months ago a line in our code (file: MainWindow.cpp line number 219) was changed by someone, and noone remembers when and what was there before, we just know that the stuff we have now is not working :( and we would like to see why (and most importantly when) that change is there. Browsing manually through the thousands of commits is not an option :(
Thx.
Yes, you can use hg annotate and default output of annotate will show you revision, when sting was changed last time
hg ann functions.php
0: <?php
0:
0: if ( ! isset( $content_width ) ) $content_width = 550;
0:
3: add_theme_support('automatic-feed-links');
6: add_theme_support('custom-background');
...
(first column is revision number). With -d option you can add date of revision to output
hg ann -d -n functions.php
0 Sat Aug 06 01:13:35 2011 +0600: <?php
0 Sat Aug 06 01:13:35 2011 +0600:
0 Sat Aug 06 01:13:35 2011 +0600: if ( ! isset( $content_width ) ) $content_width = 550;
0 Sat Aug 06 01:13:35 2011 +0600:
3 Wed Dec 14 04:01:33 2011 +0600: add_theme_support('automatic-feed-links');
6 Sun Jun 24 15:20:24 2012 +0600: add_theme_support('custom-background');
With revision number (only) you can see file at the state of this revision: hg cat -r N <filename>
But if you want to see all history of changes of string in question (and you have some current or historical content, not only number), you can use hg grep
Try:
hg annotate MainWindow.cpp
It's similar to svn blame, and displays all lines of the file with the number of revision when it changed.