Category: Uncategorized

  • How to Monitor Docker Container Logs

    How to Monitor Docker Container Logs

    Docker automatically aggregates container standard output and mistake streams (stdout/stderr) into log feeds which are retained by the Docker daemon. You can quickly keep track of logs to comprehend whats going on in your containers.
    The logs contain the output you d see in your terminal when connected to a container in interactive mode (- it). If the foreground procedure in your container really discharges some output, logs will only be offered. You need to make sure your containers log errors to stderr so Docker commands are able to expose them.
    You can view container logs at any time during a containers lifecycle. When a containers running, you can stream logs in realtime. For stopped containers, you can access all the logs caught prior to the termination.
    Watching Container Logs
    To view container logs, use the docker logs command:
    docker logs my-container
    Change my-container with the name or ID of the container you wish to examine. You can utilize docker ps -a to get the IDs and names of your containers.

    The logs command prints the containers entire log output to your terminal. If you d like to keep streaming new logs, add the– follow flag to the command.
    Personalizing Whats Displayed
    The docker logs command supports a number of flags that let you change its output:

    ” log-driver”: “systemd”.

    The logs command prints the containers entire log output to your terminal. Docker gathers and stores container logs using one of a number of logging motorists. Sometimes you may have intricate logging requirements that docker logs alone cant please. The logging container, frequently called a “sidecar”, reads short-term log files which your application containers develop in a shared Docker volume. The sidecar handles the aggregation of these logs into a format which can be published to a log monitoring service.

    Lots of logging drivers included their own configuration options. These are set using the– log-opts container flag, or log-opts in daemon.json. Heres an example relevant to the default json-file chauffeur. It instructs Docker to rotate log files once theyre bigger than 8MB. Just five files will be kept at any time.
    docker run.
    docker run– log-driver json-file– log-opts max-size= 8M– log-opts max-file= 5.
    / etc/docker/daemon. json.

    Motorist Delivery Modes.
    Logs can be provided in either obstructing or non-blocking modes. Logs from the container will be sent out to the motorist right away. The application will wait until the log compose is total.
    When in non-blocking mode, Docker writes logs to an in-memory buffer. The container doesnt need to wait for the logging chauffeur to complete its compose. This can significantly enhance performance on active makers with sluggish storage.
    The tradeoff with non-blocking mode is the possibility of lost logs. When logs are given off more rapidly than the motorist can process them, this can take place. The in-memory buffer might be filled, triggering cached logs to be cleared prior to theyve been handed to the driver.
    You can make it possible for non-blocking delivery by setting the mode logging choice, either with– log-opts or daemon.json. You can set the size of the in-memory log buffer with the max-buffer-size choice. Setting this high reduces the danger of lost logs, offered youve got enough RAM readily available.
    docker run– log-opt mode= non-blocking– log-opt max-buffer-size= 8M my-image: latest.
    Logging Best Practices.
    Your containers need to deal with Dockers logging system anywhere possible. Giving off logs to stdout and stderr enables Docker and other tools to aggregate them in a standardised method.
    Log output does not need to include timestamps. Dockers logging chauffeurs will automatically tape-record the time at which an event occurred.
    Often you may have complicated logging requirements that docker logs alone cant please. You might require to implement your own logging service within your container if thats the case. You can keep logs straight on the filesystem, utilizing a Docker volume, or call an external API service.
    Some stacks require a devoted logging container that sits along with your application containers. The logging container, typically called a “sidecar”, checks out short-lived log files which your application containers develop in a shared Docker volume. The sidecar deals with the aggregation of these logs into a format which can be submitted to a log tracking service.
    This approach can be beneficial for more complex releases, although its more difficult to setup and scale. It usually leaves you without the immediate benefit of Dockers integrated log commands.
    Summary.
    Docker has flexible log tracking capabilities supplied by a suite of logging drivers. Each container can utilize an unique logging motorist, letting you save logs in a format proper to each apps requirements.
    Logs include anything given off by a containers basic output streams. You can utilize echo, print, console.log() or your programming languages comparable to include lines to the docker logs output. Logs are retained up until your container is deleted with docker rm.

    — tail– Fetch a provided variety of lines from the log.– tail 10 will display the last ten lines logged by the container.
    — timestamps– Display complete timestamps at the start of each log line.
    — until and– considering that– These flags let you bring lines logged throughout a particular time duration. Either pass a complete timestamp (2021-04-30T20:00:00 Z) or a friendly relative time (e.g. 1h = 1 hour ago).
    — information– This is an unique flag which adds extra details to the log output, based upon the options passed to the logging driver. Well look at logging drivers in the next section. Normal worths showed with– information include container labels and environment variables.

    You can combine these flags to get logs in the format you need. The up until, because and tail flags wont take effect if youre utilizing follow to constantly stream log data.
    Docker Logging Drivers
    Docker collects and stores container logs utilizing among a number of logging chauffeurs. You can set the active logging driver on a per-container basis. Docker uses the json-file chauffeur when no logging chauffeur is specified.
    This motorist shops container logs in a JSON file. This format is relatively human-readable and can be readily consumed by third-party tools. If youre not going to access log files straight, changing to the local chauffeur will conserve you some storage space. It uses a custom log storage format.
    Other integrated log chauffeurs include syslog (write to the syslog daemon working on your device), journald (use a running journald instance) and fluentd (to use a fluentd daemon). Chauffeurs are also readily available for Amazon CloudWatch, Google Cloud Platform, Event Tracing for Windows and other log tracking solutions.
    Docker supports third-party logging chauffeurs via plugins. Youll then be able to reference it as a logging motorist as plugin-name.
    Defining a Logging Driver
    You can define the logging driver for a container by passing the– log-driver flag to docker run:
    docker run– log-driver systemd my-image: newest.
    You can alter the default logging driver worldwide by upgrading your Docker daemon configuration. Set the log-driver secret to the name of a logging chauffeur.

  • How to Save an Email as a PDF in Gmail

    How to Save an Email as a PDF in Gmail

    Whichs it! The PDF that you saved will appear in the location that you defined. Repeat this procedure as typically as you d like to print other e-mails to PDF format.
    RELATED: What Is a PDF File (and How Do I Open One)?

    Your email will now be conserved as a PDF file in the folder that you defined. Really simple. You can virtually “print” as many e-mails as you d like this method.
    How to Save an Email as a PDF on Mac.
    Like with Windows, you can likewise use your browsers built-in PDF printer to conserve emails in the Gmail web customer as PDF files on your Mac. To do so, open the Gmail website in your favorite web internet browser and log in to your account.
    Next, pick the email that you want to save as a PDF. In the e-mail window, click the three-dots menu in the top-right corner and select “Print.”.
    Suggestion: If you click “Print” and see a pop-up blocker message in Firefox, click “Preferences” at the top of the Gmail window and choose “Allow pop-ups for mail.google.com.” Click “Print” again.

    In the conserve window that appears, get in a file name for your PDF in package at the top. Pick a folder to save your PDF in and click “Save.” (The save window in Safari looks a bit various from the one shown listed below, but the options in the window are the very same.).

    If youre using Safari, click the drop-down menu that says “PDF” at the bottom of the print window and select “Save as PDF.”.

    Given that almost all web browsers include assistance for printing, you can utilize Chrome, Edge, or Firefox to print your e-mails to PDF. Your e-mail will now be saved as a PDF file in the folder that you defined. On the print window, choose “Save as PDF” from the “Destination” drop-down menu. In the save window that appears, get in a file name for your PDF in the box at the top. The PDF that you saved will appear in the place that you specified.

    If you d like to conserve an email from Gmail for offline usage, every contemporary web browser makes it simple to essentially “print” an email to a PDF file. Heres how to do it on Windows and Mac.

    In the “Print” window, click the drop-down menu beside “Destination” and choose “Save as PDF.” If essential, configure other options like design and margins.
    When youre prepared, click “Save” to start making your PDF.

    How This Works
    Both Windows and Mac consist of a built-in PDF printer. Any files that you send for printing to this virtual printer are converted into PDF format, which is a portable format that protects document formatting. These files wont be printed on physical paper unless you choose to print the PDF file from a real printer later.
    RELATED: What Is a PDF File (and How Do I Open One)?
    How to Save an Email as a PDF on Windows
    Since almost all web browsers consist of support for printing, you can use Chrome, Edge, or Firefox to print your emails to PDF. To get started, open your preferred browser and visit the Gmail site. Then, log in to your Gmail account if you havent currently done so.
    Next, open the email that you wish to conserve as a PDF. In your email window, click the three-dots menu in the top-right corner and choose “Print.”.

    After a minute, youll see the save dialog window. In this window, enter your PDFs name in the “File Name” field, choose a folder to conserve your PDF in, and hit “Save.”.

    On the print window, choose “Save as PDF” from the “Destination” drop-down menu. Adjust other settings if you d like. Then click “Save.”.

  • Apple Pay in Israel now live with all banks, but not all cards

    Apple Pay in Israel now live with all banks, but not all cards

    The global rollout of Apples mobile wallet service continues, together with extra functionality within existing markets. The Express Transit feature is especially hassle-free when travelling on public transportation systems, as it needs no confirmation– simply hold your phone or Apple Watch close to the pad.
    Photo by Blake Wisz on Unsplash.
    FTC: We utilize income making auto affiliate links. More.
    Take a look at 9to5Mac on YouTube for more Apple news:.

    The Verifier brings the report.

    Apple today introduced the payment service on Apple Pay mobile in Israel. The launch indicates that consumers of all banks and credit card companies in Israel will now be able to add the credit card or direct debit card to.the service on the iPhone, Apple Watch and Mac computer systems.
    Please note: Not all credit cards are supported by the service, so if you were unable to include the card according to the instructions, please contact the charge card company or bank that provided you the card.

    The international rollout of Apples mobile wallet service continues, along with additional functionality within existing markets. The Express Transit feature is particularly convenient when taking a trip on public transport systems, as it needs no verification– simply hold your phone or Apple Watch close to the pad. The latest service to get this was San Franciscos Clipper card last month.

    We heard last month that today would see the launch of Apple Pay in Israel, which has now been verified. A local report states that Apple Pay is supported by all bank and credit card business in the country, though not for all cards …

    Contactless payments are commonly supported in Israel, making Apple Pay a practical payment alternative. The nation is set to get near-universal assistance quickly, thanks to a federal government effort making contactless support a legal requirement for many business.

    As we reported in February, Israel has been seeing a significant growth of upgraded payment systems throughout the nation in current months to manage EMV and NFC deals like Apple Pay. Starting on July 31, a lot of all companies in Israel will need to use EMV terminals, which work with payment platforms like Apple Pay.

  • Apple’s Advanced Manufacturing Fund awards $410M to II-VI, supporting 700 US jobs

    Apple’s Advanced Manufacturing Fund awards $410M to II-VI, supporting 700 US jobs

    Apples Advanced Production Fund has offered a further $410M to optical tech business II-VI (previously called Finisar), following an initial advance of $390M back in 2017. The business makes the vertical cavity lasers used in the TrueDepth cam system for Face ID.
    Apple states that the payment will assist to support more than 700 tasks across 4 US states …

    Background
    The Advanced Manufacturing Fund was first revealed back in 2017.

    Another significant beneficiary has been iPhone glassmaker Corning.
    The relocation was a creative piece of PR by Apple. It broaches “granting” these amounts as if they were grants or financial investments to various United States companies, when the truth is that they are mostly advance payments to Apple suppliers, designed to allow the companies to get ready research and production capability to meet the iPhone makers needs. One advantage of the payments for Apple is to lock up unique manufacturing abilities for the companys own requirements.
    Thats not to state that the cash doesnt serve a helpful more comprehensive function. It does indeed help US business to do more organization with Apple, and does support tasks as a result– its just not the largesse that the statements might indicate. A noteworthy exception was a $10M investment in COVID-19 test company COPAN Diagnostics back in February.
    Apples Advanced Manufacturing Fund most current
    Apple states that the newest advance will speed up delivery of future components for iPhone.

    Apple today revealed a brand-new $410 million award from its Advanced Manufacturing Fund for II-VI, a leading producer of optical technology. Todays award constructs on an initial $390 million granted from Apples Advanced Manufacturing Fund in 2017. The expansion of the companys enduring relationship with II-VI will produce extra capacity and accelerate shipment of future parts for iPhone, with 700 jobs in Sherman, Texas; Warren, New Jersey; Easton, Pennsylvania; and Champaign, Illinois.
    II-VI produces vertical-cavity surface-emitting lasers (VCSELs) that help power Face ID, Memoji, Animoji, and Portrait mode selfies. Apple also deals with II-VI to manufacture lasers utilized in the LiDAR Scanner– innovation that helps deliver much faster, more practical enhanced truth experiences and improves autofocus in low-light scenes in images and videos […]” The collaboration between Apple and II-VI sets the stage for a new age of advancement innovations that we think will allow a large variety of applications that will benefit our world for years to come,” stated Dr. Vincent Mattera Jr., II-VIs CEO. “We are exceptionally grateful for Apples support which has actually permitted us to expand our production capacity and scale our operations across the US.”

    Apple CEO Tim Cook explained that Apple is starting a $1 billion fund to promote sophisticated production jobs in the United States. Apple has actually apparently currently picked the business in which it will invest, but wont reveal that until a later date this month.
    Prepare discussed that by investing $1 billion in advanced American production, Apple can cause a “ripple in the pond” and promote job creation. Advanced manufacturing tasks remain in high need in the United States and its an area where Apple has an extreme focus. Apple hopes that its $1 billion base financial investment will speed up job production and development.

    Apple also reiterated last months commitment to invest $430B to create 20,000 brand-new United States jobs over the next five years.
    FTC: We use income making vehicle affiliate links. More.
    Take a look at 9to5Mac on YouTube for more Apple news:

    It talks of “granting” these amounts as if they were grants or financial investments to various United States business, when the reality is that they are mainly advance payments to Apple providers, developed to enable the companies to tailor up research study and production capacity to fulfill the iPhone makers needs. One advantage of the payments for Apple is to lock up unique manufacturing abilities for the businesss own needs.
    It does certainly assist United States business to do more organization with Apple, and does support tasks as a result– its simply not the largesse that the statements may suggest. Apple today announced a new $410 million award from its Advanced Manufacturing Fund for II-VI, a leading manufacturer of optical technology. Todays award constructs on an initial $390 million awarded from Apples Advanced Manufacturing Fund in 2017.

  • WhatsApp Pay is now live in Brazil for iPhone and Android users

    WhatsApp Pay is now live in Brazil for iPhone and Android users

    WhatsApp Pay gotten regulatory approval to introduce in Brazil at the end of March, after being postponed due to anti-competitive issues. Just now, however, has the function began to roll out to Brazilian users.

    This feature is only available for choose individuals in Brazil and will gradually roll out to more WhatsApp users in the coming weeks. WhatsApp Pay does not have fees for moving money, just like Apple Cash, however it has transfer limitations. For example, a user can send up to $184 (R$ 1,000) per deal and can send and receive approximately $920 (R$ 5,000) each month.
    To access this function, the WhatsApp Pay user needs to have a MasterCard or Visa debit card in the following banks: Banco do Brazil, Banco Inter, Bradesco, Itaú, Mercado Pago, Next, Nubank, Sicredi, or Woop Sicredi. When it comes to now, credit cards arent working.
    Once this function is readily available to you, just follow these steps:

    In a conversation, tap on the +. button
    Insert the value of the transaction
    Press “Pay” and insert your Facebook Pay PIN

    As for now, WhatsApp Pay is just available in India and Brazil. Users must have a contact number in these 2 countries to make this function work. While Apple Pay just released in another nation today, Facebooks payment method is still in the early days of broadening.
    FTC: We use income earning automobile affiliate links. More.
    Inspect out 9to5Mac on YouTube for more Apple news:

    WhatsApp Pay doesnt have fees for moving money, much like Apple Cash, but it has transfer limits. As for now, WhatsApp Pay is only readily available in India and Brazil. While Apple Pay just launched in another country today, Facebooks payment technique is still in the early days of expanding.

  • Signal Shares the Instagram Ads Facebook Doesn’t Want You to See

    Signal Shares the Instagram Ads Facebook Doesn’t Want You to See

    Encrypted messaging app Signal has actually had a series of Instagram advertisements obstructed from the social networks platform, after it attempted to reveal users how much information the Facebook-owned business collects about them and how its utilized to press targeted ads.
    In a blog post, Signal explained how it produced the advertisements to show users why they were seeing them, merely by stating in advance the information that the marketing platform relies on to perform its targeting.
    ” We developed a multi-variant targeted ad designed to reveal you the personal information that Facebook gathers about you and sells access to,” stated Signal. “The advertisement would simply display some of the information collected about the viewer which the advertising platform uses. Facebook was not into that idea.”
    The starkly transparent advertisements utilized Signal branding and included the users expert role, education, interests, hobbies, place, and relationship status, amongst other personal data points pruned from their interaction with the platform. Unsurprisingly, the ads never ever made it to Instagram users feeds and Signals advertisement represent the platform was summarily disabled.

    ” Facebook is more than willing to sell visibility into individualss lives, unless its to inform people about how their information is being utilized. Being transparent about how ads use individualss data is apparently adequate to get prohibited; in Facebooks world, the only acceptable usage is to conceal what youre doing from your audience.”
    In recent months, Signal has actually delighted in a rise in account sign-ups following a bungled personal privacy policy upgrade by competing service WhatsApp, which caused a user exodus from the Facebook-owned platform.
    The privacy-focused chat app has also been promoted by prominent Signal users like Tesla CEO Elon Musk and Edward Snowden, which has just contributed to mainstream interest in the service.

  • Apple ‘Likely’ to Overtake HP as Leading All-in-One PC Vendor

    Apple ‘Likely’ to Overtake HP as Leading All-in-One PC Vendor

    Apples brand-new 24-inch iMac variety could help it overtake HP as the leading all-in-one (AIO) computer brand name vendor, according to market sources pointed out by DigiTimes.
    The forecast is based upon proof suggesting that more economical all-in-one PC brand names are being affected much harder by the global chip scarcity as providers prioritize their shipments to support more premium items in the AIO market.
    The sources pointed out that high-end AIO PCs such as the iMac are just seeing limited impact from component shortages, however entry-level to mid-range items priced in between NT$ 15,000 (US$ 536.51) and NT$ 30,000 have been hit much harder. Several ODMs have currently stopped their production for many AIO PCs because of element scarcity, but iMac production remains untouched, the sources stated.
    Apple is selling three all-new built-to-order iMac tiers, priced at $1,299, $1,499, and $1,699. All tiers can be found in numerous color alternatives and consist of Apple silicon M1 processors, solid-state storage, 8GB of RAM, and 2 Thunderbolt/USB 4 ports. Pre-ordered iMacs start delivering from May 21.
    According to Digitimes Research, HP was the biggest AIO PC brand name in the fourth quarter of 2020, delivering 925,000 units, followed by Apple with 860,000 systems, and Lenovo with 731,000 systems. However, Apples deliveries are estimated to have actually gone beyond HP in the first quarter of 2021.
    That said, total Apple says it expects to be affected by the chip shortages, and predicts a consecutive decline of roughly $3 to $4 billion profits in the third-quarter of 2021 due to iPad and Mac supply restrictions. Apple says a combination of the shortages and a really high level of demand for both iPad and Mac is expected to impact revenue in the second half of 2021.

  • BYU Study Suggests Night Shift Mode Doesn’t Help iPhone Users Sleep

    BYU Study Suggests Night Shift Mode Doesn’t Help iPhone Users Sleep

    A brand-new research study looking at the results of low-light functions on smartphone users sleeping routines recommends that functions like Apples Night Shift mode do not really enhance sleep at all.
    Presented in iOS 9, Night Shift is designed to reduce the amount of blue light that an iOS gadget puts out throughout the evening hours. The function utilizes the clock and geolocation of an iPhone or iPad to identify when its sunset, and immediately moves the colors of the screen to warmer colors, returning the display to its routine settings in the early morning.
    Now discovered on many smart devices in some form, Night Shift is based on studies that have actually demonstrated that blue light can adversely affect sleep by altering the bodys circadian rhythm. Nevertheless, the results of a brand-new research study from BYU released in Sleep Health have undermined that facility.
    To check the theory, BYU psychology teacher Chad Jensen and researchers from the Cincinnati Childrens Hospital Medical Center compared the sleep results of people in 3 classifications: those who utilized their phone in the evening with the Night Shift function turned on, those who used their phone at night without Night Shift, and those who did not utilize a smart device before bed at all.
    ” In the entire sample, there were no differences across the three groups,” Jensen said. “Night Shift is not remarkable to utilizing your phone without Night Shift or perhaps using no phone at all.”
    The study included 167 adults in between the ages of 18 to 24 who said they use a mobile phone daily. The participants were asked to invest at least 8 hours in bed, during which they used an accelerometer on their wrist to record their sleep activity.
    Individuals who were assigned to utilize their mobile phone likewise had an app installed to monitor their phone use. The app determined sleep outcomes that included overall sleep period, sleep quality, wake after sleep beginning and the time it took to fall asleep.
    In the second part of the research study, the scientists split the sample in 2 groups– one consisting of individuals who balanced about seven hours of sleep, and another that included those who slept less than six hours each night.
    The group that got seven hours of sleep saw a minor distinction in sleep quality based on phone use, while those who didnt use a phone before bed experienced better sleep quality compared to both those with normal phone use and those utilizing Night Shift. Within the six-hour group, which had the least amount of sleep, there were no distinctions in sleep outcomes based on whether the participants used Night Shift or not.
    The outcomes suggest that blue light is just one aspect that creates difficulty falling or staying asleep, and its important not to mark down the affect of physical interactions like texting, scrolling and publishing on sleep outcomes.
    ” While there is a great deal of proof suggesting that blue light increases awareness and makes it more difficult to fall asleep, it is necessary to think of what portion of that stimulation is light emission versus other cognitive and mental stimulations,” said Jensen.
    Because its debut on iOS, Night Shift has been consisted of in macOS since Sierra. Mac users can make it possible for or disable the feature utilizing the Night Shift tab in System Preferences -> > Display.
    ( Via BYU Communications.).

  • Apple Awards $410 Million to Face ID and LiDAR Scanner Supplier II-VI

    Apple Awards $410 Million to Face ID and LiDAR Scanner Supplier II-VI

    Apple today revealed it has granted $410 million from its Advanced Manufacturing Fund to Pennsylvania-based II-VI, a manufacturer of optical technology.
    The funds will assist produce additional capacity and accelerate shipment of future iPhone parts, supporting more than 700 tasks in Sherman, Texas; Warren, New Jersey; Easton, Pennsylvania; and Champaign, Illinois, according to Apple.
    II-VI makes vertical-cavity surface-emitting lasers (VCSELs) that help power Face ID, along with lasers for the LiDAR Scanner:
    II-VI makes vertical-cavity surface-emitting lasers (VCSELs) that assist power Face ID, Memoji, Animoji, and Portrait mode selfies. Apple also deals with II-VI to make lasers used in the LiDAR Scanner– innovation that assists deliver faster, more realistic augmented truth experiences and enhances autofocus in low-light scenes in videos and pictures.
    ” We established Apples Advanced Manufacturing Fund to support American businesses developing next-generation innovation and the tasks of tomorrow,” stated Apple COO Jeff Williams. “II-VI shares our dedication to push the borders of innovation and were happy to be extending our interact throughout the country.”
    Apples Advanced Manufacturing Fund currently granted $390 million to optical supplier Finisar in 2017, which business has since been obtained by II-VI.