Unix Zip A File

0 views
Skip to first unread message

Kensel Whiteman

unread,
Aug 3, 2024, 11:31:14 AM8/3/24
to rablageta

The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC. Therefore, the unix time stamp is merely the number of seconds between a particular date and the Unix Epoch. It should also be pointed out (thanks to the comments from visitors to this site) that this point in time technically does not change no matter where you are located on the globe. This is very useful to computer systems for tracking and sorting dated information in dynamic and distributed applications both online and client side.

On this date the Unix Time Stamp will cease to work due to a 32-bit overflow. Before this moment millions of applications will need to either adopt a new convention for time stamps or be migrated to 64-bit systems which will buy the time stamp a "bit" more time.

The unix module is part of the unix library which is a separate library that happens to be distributed along the compiler package. You need to tell dune that your executable depends on the unix library by adding

It is an issue with the way that the unix library is packaged: the interface files for the library are located in the same folder that the interface files for the standard library. Thus, the language server can see the interfaces of the modules of the library even if you did not add it explicitly the library and the missing dependency only manifests itself during linking.

I'm pulling some data from an API into Retool using a REST API Resource, and then using a Query JSON with SQL resource to search it. One of the fields is a unix timecode eg. 1620531567 and none of the normal SQL functions to turn that into a normal date seem to be working. I know alaSQL is used for this, I just can't figure it out. I'm a bit of n00b, be gentle

This has been very helpful for working with tables. What if I have a chart that I am trying to change to a "normal" date format? My x axis values are defined as formatDataAsObject(getCharges.data.data)['created']. If I try to add the moment change here it errors out and if I just format the x axis as a date, the values are all from the 1970s.

I do know that moment sometimes gets weird when inside a map function inside double Curleys, so we may need to try different iterations of this using JavaScript Date or maybe a separate JavaScript transformer.

I've tried moment(Math.floor(self)).format('lll') but Moment still returns "Invalid date". For the dashboard I am building in Retool I don't need nanosecond precision, so truncating the UNIX timestamp at the decimal place will work for me.

I find SAS connect to be the best enviroment for SAS development, especially if you use the old text editor(not EE, EG or SAS studio). You get both the power of full SAS on your power workstation but a direct bi-directional persistent connection to a full SAS running on the sever(no VM or EG on server).

I have about 60 editor tasks, 20 or so on my 5 button mouse, all available command line or function keys. These tasks like list the lat 40 obs of last created dataset, have both local or server actions lst for loacal dataset and lstr if dataset remote.

The first and the second depends on aliases defined in the host file of your windows desktop (I'm assuming you are trying to connect from a windows workstation). So, if your not sure what it's this about, use the third form.

I checked and unfortunatley in SAS UNIX I dont have SAS/CONNECT. However, what if I just want to connect to unix to get a file over to windows? Kind of like an FTP over, then do I still need to have both systems have SAS/CONNECT? I am not wanting to run SAS command in UNIX via PC SAS.

Also in other posts they state that I have to have SAS/Connect in both the windows environemtn and UNIX environment for the CONNECT to work. I worked and I dont have SAS/CONNECT in the UNIX environment. However, if I want to just get a file from UNIX and bring it over to Windows (be the file be an excel, txt or sas permanent dataset) do I still need to have SAS/CONNECT in both environments? I would think not, especially if the above code works, right?

What kind of data do you have on your UNIX computer ? --> I have different data in UNIX computer, from .dat files to excel files (that were FTPd from windows) and sas permanent data sets. Is it a UNIX SAS server ? --> I dont belive it is a UNIX SAS server but will have to check again.

SAS/Connect allows communication between two SAS servers (your remote server and your local "PC SAS" server). Using SAS connect when exchanging SAS files has the advantage that SAS will convert the SAS files to the native representation of the host you're using.

When downloading SAS files from a SAS Unix to a SAS Windows environment via sFTP then you get files which are no more in the native representation of the host system and there are some limitations to it.

I extract data from a database and part of this is a "start time" for a process. The main problem with this is that it is in UNIX format so therefore returns a 10 digit number, I know that the formula for converting this to actual date and time is as follows

I had noticed January 4, 1904 popping out a number of times and I thought that it was some formatting or calculation error that I had made, this only added to my confusion why I couldn't get this date conversion to work.

I think it should be enough if you remove unix zero time from JMP's datetime as both are in seconds. Hopefully you don't have to touch time zones (The Problem with Time & Timezones - Computerphile (youtube.com))

something likeTime Zone Conversion.

The video in @jthi 's post shows higher orders of he issue, but even for a "simple" conversion from UTC to German summer/winter time a JSL function could save a lot of time.

This is a simplified diagram of unix history. There are numerous derivative systems not listed in this chart, maybe 10 times more! In the recent past, many electronic companies had their own unix releases.This diagram is only the tip of an iceberg, with a penguin on it ;-).

Warning:it seems that Adobe Readerhas some problems reading the large plotter version of the Unix History chart,but happily you can use another PDF viewerfor this task. By the way, if you are on macOS, just use Safari :-)

The goal is that UNIX and Windows clients can put, edit and delete data on the volume. From a Linux client I can mount the NFS share and put data on the share. From a Windows client I can only do that from within a user context that is member of the local administrators group of the vserver. Do I need to map the Windows user to a UNIX user on the vserver for this to work? How can I link permissions to the local vserver unix server? The information I have found in the documentation center only provides an example for a mapping where Windows and UNIX accounts have the same name, however this is not the case in my situation here. Any help/tips would be greatly appreciated.

The unix user you want to map it to can be local or from ldap/nis server based on where that user exist or you have to create. As for the permissions, you are mapping the windows user to a unix user that has already premission to that folder/file based on its bits (per example: 775 owner, group or others).

thank you for the helpful reply. I still have one question, with local user you mean a local user on the vserver I guess? Can I set the permission bits in ONTAP or do I have to do that from a UNIX client?

I have a Nextcloud running on an Ubuntu Server 20.04. Before the Redis installation it was working perfectly, but since i configured the unix socket redis is using, the nextcloud crashes on every visit.

[Mon Dec 13 06:48:14.900434 2021] [php:error] [pid 43062] [client 143.224.1.1:56115] PHP Fatal error: Uncaught OCP\HintException: [0]: Memcache \OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 89

Nextcloud web server is running as wwwrun or www-data etc. Therefore you have to make sure that the relevant user is allowed to access the socket. This can be done, e.g. by adding the user to the redis group.
Please use the search function of this forum to find more details. This question has already been asked and answered multiple times in the past.

Im having similar issue with a memory card. can you walk me through this? I'm a photographer shooting with a Canon 1DC camera. I was working from my macbook air (running Yosemite) to transfer photos from a 64gb CF Promaster memory card to a 2tb western digital external hard drive (like i always do) and one of the files wouldn't transfer. The computer froze when I attempted to open that file and I eventually shut the computer down. When I turned the computer back on and put the card back into the reader the folder that had the file that wouldn't open was suddenly a Unix file. There was another folder on the card that had images in it and was perfectly fine. Can you help me to turn the unix file back into a folder and recover the files?

NTFS is a Windows format. In order for OSX to use the external drive it must be formated for Mac or FAT32. Where did you get the drive? How did you get your data onto the drive? When you reformat the drive your data will be erased.

I have the paragon ntfs for Mac. The external drive was used before in windows and the folders contain backup data, I can not format it without getting access to the folders that have been converted to unix executable file

c80f0f1006
Reply all
Reply to author
Forward
0 new messages