2012.12.12 18:01 RoflJoe Full-Length Music Albums on YouTube
2009.09.24 06:25 learn programming
2013.03.22 22:15 Kung Fu on YouTube
2024.05.14 20:02 CG-07 "Torch is not able to use GPU"
venv "D:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.9.3 Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 Traceback (most recent call last): File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, inmain() File "D:\Stable Diffusion\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "D:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 386, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check Press any key to continue . . .
u/echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= --skip-torch-cuda-test to COMMANDLINE_ARGS call webui.batbut after that I got the following error
venv "D:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.9.3 Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 Installing clip Installing open_clip Installing requirements Launching Web UI with arguments: --skip-torch-cuda-test to COMMANDLINE_ARGS D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\__init__.py:740: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:108.) return torch._C._cuda_getDeviceCount() if nvml_count < 0 else nvml_count no module 'xformers'. Processing without... no module 'xformers'. Processing without... usage: launch.py [-h] [--update-all-extensions] [--skip-python-version-check] [--skip-torch-cuda-test] [--reinstall-xformers] [--reinstall-torch] [--update-check] [--test-server] [--log-startup] [--skip-prepare-environment] [--skip-install] [--dump-sysinfo] [--loglevel LOGLEVEL] [--do-not-download-clip] [--data-dir DATA_DIR] [--config CONFIG] [--ckpt CKPT] [--ckpt-dir CKPT_DIR] [--vae-dir VAE_DIR] [--gfpgan-dir GFPGAN_DIR] [--gfpgan-model GFPGAN_MODEL] [--no-half] [--no-half-vae] [--no-progressbar-hiding] [--max-batch-count MAX_BATCH_COUNT] [--embeddings-dir EMBEDDINGS_DIR] [--textual-inversion-templates-dir TEXTUAL_INVERSION_TEMPLATES_DIR] [--hypernetwork-dir HYPERNETWORK_DIR] [--localizations-dir LOCALIZATIONS_DIR] [--allow-code] [--medvram] [--medvram-sdxl] [--lowvram] [--lowram] [--always-batch-cond-uncond] [--unload-gfpgan] [--precision {full,autocast}] [--upcast-sampling] [--share] [--ngrok NGROK] [--ngrok-region NGROK_REGION] [--ngrok-options NGROK_OPTIONS] [--enable-insecure-extension-access] [--codeformer-models-path CODEFORMER_MODELS_PATH] [--gfpgan-models-path GFPGAN_MODELS_PATH] [--esrgan-models-path ESRGAN_MODELS_PATH] [--bsrgan-models-path BSRGAN_MODELS_PATH] [--realesrgan-models-path REALESRGAN_MODELS_PATH] [--dat-models-path DAT_MODELS_PATH] [--clip-models-path CLIP_MODELS_PATH] [--xformers] [--force-enable-xformers] [--xformers-flash-attention] [--deepdanbooru] [--opt-split-attention] [--opt-sub-quad-attention] [--sub-quad-q-chunk-size SUB_QUAD_Q_CHUNK_SIZE] [--sub-quad-kv-chunk-size SUB_QUAD_KV_CHUNK_SIZE] [--sub-quad-chunk-threshold SUB_QUAD_CHUNK_THRESHOLD] [--opt-split-attention-invokeai] [--opt-split-attention-v1] [--opt-sdp-attention] [--opt-sdp-no-mem-attention] [--disable-opt-split-attention] [--disable-nan-check] [--use-cpu USE_CPU [USE_CPU ...]] [--use-ipex] [--disable-model-loading-ram-optimization] [--listen] [--port PORT] [--show-negative-prompt] [--ui-config-file UI_CONFIG_FILE] [--hide-ui-dir-config] [--freeze-settings] [--freeze-settings-in-sections FREEZE_SETTINGS_IN_SECTIONS] [--freeze-specific-settings FREEZE_SPECIFIC_SETTINGS] [--ui-settings-file UI_SETTINGS_FILE] [--gradio-debug] [--gradio-auth GRADIO_AUTH] [--gradio-auth-path GRADIO_AUTH_PATH] [--gradio-img2img-tool GRADIO_IMG2IMG_TOOL] [--gradio-inpaint-tool GRADIO_INPAINT_TOOL] [--gradio-allowed-path GRADIO_ALLOWED_PATH] [--opt-channelslast] [--styles-file STYLES_FILE] [--autolaunch] [--theme THEME] [--use-textbox-seed] [--disable-console-progressbars] [--enable-console-prompts] [--vae-path VAE_PATH] [--disable-safe-unpickle] [--api] [--api-auth API_AUTH] [--api-log] [--nowebui] [--ui-debug-mode] [--device-id DEVICE_ID] [--administrator] [--cors-allow-origins CORS_ALLOW_ORIGINS] [--cors-allow-origins-regex CORS_ALLOW_ORIGINS_REGEX] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE] [--disable-tls-verify] [--server-name SERVER_NAME] [--gradio-queue] [--no-gradio-queue] [--skip-version-check] [--no-hashing] [--no-download-sd-model] [--subpath SUBPATH] [--add-stop-route] [--api-server-stop] [--timeout-keep-alive TIMEOUT_KEEP_ALIVE] [--disable-all-extensions] [--disable-extra-extensions] [--skip-load-model-at-start] [--unix-filenames-sanitization] [--filenames-max-length FILENAMES_MAX_LENGTH] [--no-prompt-history] [--ldsr-models-path LDSR_MODELS_PATH] [--lora-dir LORA_DIR] [--lyco-dir-backcompat LYCO_DIR_BACKCOMPAT] [--scunet-models-path SCUNET_MODELS_PATH] [--swinir-models-path SWINIR_MODELS_PATH] launch.py: error: unrecognized arguments: to COMMANDLINE_ARGS Press any key to continue . . .02.- I also tried the following method but it didn't work:
2024.05.14 20:01 Only_Gold_1054 Crowdsourcing Alternative Commodity Market Data - Seeking Feedback
2024.05.14 19:58 THCrunkadelic "ERROR: Exception in ASGI application" while trying to move model after successful finetuning (AllTalk)
2024.05.14 19:43 Both-Delivery8225 URL filtering is slowwwwwwwww
2024.05.14 19:43 IdodoHaHatih Youtube Video- Two Steps From Hell - Immortal (Cinematic)(Edit by EpicMusicVideos) URL in post Video from 2015
2024.05.14 19:31 diamondsw Weird macOS DNS problem
sudo dns-sd -Q wiki.REDACTED Password: DATE: ---Tue 14 May 2024--- 10:15:35.555 ...STARTING... Timestamp A/R Flags IF Name Type Class Rdata 10:15:35.558 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150 10:15:49.708 Rmv 0 0 wiki.REDACTED. Addr IN 10.0.1.150 10:15:49.720 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150 10:16:50.849 Rmv 0 0 wiki.REDACTED. Addr IN 10.0.1.150 10:16:50.855 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150 10:52:28.893 Rmv 0 0 wiki.REDACTED. Addr IN 10.0.1.150 10:52:28.909 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150 10:59:27.633 Rmv 0 0 wiki.REDACTED. Addr IN 10.0.1.150 10:59:27.643 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150 10:59:32.106 Rmv 0 0 wiki.REDACTED. Addr IN 10.0.1.150 10:59:32.118 Add 2 0 wiki.REDACTED. Addr IN 10.0.1.150Flapping domain:
sudo dns-sd -Q manga.REDACTED Password: DATE: ---Tue 14 May 2024--- 10:15:26.980 ...STARTING... Timestamp A/R Flags IF Name Type Class Rdata 10:15:26.980 Add 40000002 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:15:49.720 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:16:02.047 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:16:03.540 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:16:50.855 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:17:03.282 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:17:04.952 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:17:04.955 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:52:28.908 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:52:41.260 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:52:42.961 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:52:42.963 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:20.051 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:27.633 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:27.643 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:59:32.118 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:44.436 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:59:45.985 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:45.987 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:58.532 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 10:59:59.901 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 10:59:59.903 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 11:22:54.263 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 11:23:06.658 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 11:23:08.337 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150 11:23:08.341 Add 2 0 manga.REDACTED. Addr IN 10.0.1.150 11:23:45.637 Add 2 0 manga.REDACTED. Addr IN 0.0.0.0 No Such Record 11:23:47.173 Rmv 0 0 manga.REDACTED. Addr IN 10.0.1.150The temporary fix:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderThis beats the hell out of me, as I cannot fathom why one entry works perfectly and another does not. I even changed that hostname and the weirdness followed the host, which makes even less sense.
2024.05.14 18:47 Apprehensive_One2266 Lost my job today to an agency
2024.05.14 18:47 Then_Marionberry_259 MAY 13, 2024 STGO.TO STEPPE GOLD ANNOUNCES MAILING AND FILING OF ANNUAL GENERAL AND SPECIAL MEETING MATERIALS IN CONNECTION WITH PROPOSED TRANSACTION WITH BOROO GOLD AND BOROO SINGAPORE
https://preview.redd.it/ag74dcxj8f0d1.png?width=3500&format=png&auto=webp&s=7e4bc77da737c24a4d51fd2f8cdbd9db8254d299 submitted by Then_Marionberry_259 to Treaty_Creek [link] [comments] Ulaanbaatar, Mongolia--(Newsfile Corp. - May 13, 2024) - Steppe Gold Ltd. (TSX: STGO) (OTCQX: STPGF) (FSE: 2J9) ("Steppe Gold") is pleased to announce that it has filed with the applicable Canadian securities regulatory authorities the management information circular dated May 8, 2024 and related meeting materials of Steppe Gold (the "Meeting Materials") for use at the annual general and special meeting (the "Meeting") of Steppe Gold shareholders (the "Shareholders") to be held in connection with the proposed transaction with Boroo Gold LLC ("Boroo Gold") and Boroo Pte Ltd. ("Boroo Singapore"), or one of its affiliates, as previously announced on April 11, 2024 (the "Transaction"). Steppe Gold has also mailed copies of the Meeting Materials to Shareholders entitled to vote on the Transaction at the Meeting. At the Meeting, Shareholders will be asked to consider and, if deemed advisable, to approve the Transaction. If the Transaction is completed: (i) Steppe Gold will acquire all of the issued and outstanding shares of Boroo Gold in return for the issuance of that number of common shares in the capital of Steppe Gold ("Common Shares") that would result in Boroo Singapore, directly or indirectly, holding 55.9% of the issued and outstanding Common Shares (calculated on a fully diluted basis); and (ii) Boroo Singapore will acquire the Tres Cruces Oxide Project (the "Tres Cruces Project") by purchasing all of the issued and outstanding shares of two of Steppe Gold's indirect, wholly-owned subsidiaries for aggregate cash consideration of approximately CAD$12 million. THE STEPPE GOLD BOARD OF DIRECTORS HAS UNANIMOUSLY DETERMINED THAT THE TRANSACTION IS IN THE BEST INTERESTS OF STEPPE GOLD AND UNANIMOUSLY RECOMMENDS THAT SHAREHOLDERS VOTE IN FAVOUR OF THE TRANSACTION. Benefits of the Transaction The Transaction is expected to provide meaningful benefits to Shareholders, including:
The Meeting is scheduled to be held at the Shangri-La Hotel, 19 Olympic Street, Sukhbaatar District-1, Ulaanbaatar 14241 Mongolia on June 24, 2024 at 10:00 a.m. (ULAT). Shareholders may vote in person at the Meeting or by proxy. Shareholders that are unable to attend the Meeting, or any adjourned or postponed Meeting in person, are requested to date, sign and return the form of proxy for use at the Meeting. The deadline for receipt of proxies for the Meeting is 10:00 a.m. (ULAT) on June 20, 2024. Shareholders are advised to carefully read the Meeting Materials and then vote in person at the Meeting or by proxy. The Meeting Materials are available under the Company's profile on SEDAR+ at www.sedarplus.ca. Only Shareholders of record as at the close of business on May 6, 2024 are eligible to vote at the Meeting. About Steppe Gold Steppe Gold is Mongolia's premier precious metals company and 100% owner of the ATO gold mine and the Uudam Khundii project in Mongolia. About Boroo Gold Established in 1997, Boroo Gold is a leading gold producer in Mongolia with over 50,000 tons per day mining fleet, 5,500 tons per day mill and carbon-in-leach circuit gold processing plant, 3,000,000 tons per annum heap leach and carbon-in-columns plant and an approximate workforce of over 400 people. Boroo Gold operates the Boroo mine in Selenge province, as well as owning and operating the adjacent Ulaanbulag mine in Mongolia. Cautionary Statement on Forward-Looking Information This news release includes certain statements that constitute "forward-looking statements" and "forward-looking information" within the meaning of applicable securities laws (collectively, "forward-looking statements"). These include statements regarding Steppe Gold's intent, or the beliefs or current expectations for Steppe Gold's growth, production and valuation post-closing of the Transaction; future market conditions for metals; timing of the Meeting; and expected benefits to Shareholders as a result of the Transaction. When used in this news release, words such as "expected", "scheduled" and similar expressions are intended to identify these forward-looking statements as well as phrases or statements that certain actions, events or results "will", or "would" occur or the negative connotation of such terms. As well, forward-looking statements may relate to Steppe Gold's future outlook and anticipated events, such as the consummation and timing of the Transaction; the satisfaction of the conditions precedent to each of the Transaction; the anticipated benefits of the Transaction; the potential for value creation to Shareholders; the anticipated timing of the closing of the Transaction; the timing and anticipated receipt of required Shareholder, court and regulatory approvals for the Transaction; anticipated gold production of Boroo Gold and combined gold production of Steppe Gold; the anticipated cash flow of Steppe Gold; potential liquidity from the sale of the Tres Cruces Project; and discussion of future plans, projections, objectives, estimates and forecasts and the timing related thereto. These forward-looking statements involve numerous risks and uncertainties, including those relating to: required shareholder, regulatory and stock exchange approvals; approvals from applicable Mongolian authorities; exercise of any termination rights under the share exchange agreement dated April 11, 2024 between Steppe Gold, Boroo Singapore and Centerra Netherlands BVBA (the "Share Exchange Agreement") or the separate definitive share purchase agreements (the "Share Purchase Agreements"), each between one of Steppe Gold's wholly-owned subsidiaries, on the one hand, and Boroo Singapore or one of its affiliates, on the other hand, each dated April 11, 2024; meeting other conditions precedent to each of the Share Exchange Agreement and the Share Purchase Agreements; material adverse effects on the business, properties and assets of Steppe Gold or Boroo Gold; discrepancies between actual and estimated production and test results, mineral reserves and resources and metallurgical recoveries; and such other risk factors detailed from time to time in Steppe Gold's public disclosure documents, including, without limitation, those risks identified in Steppe Gold's annual information form for the year ended December 31, 2023, which is available on SEDAR+ at www.sedarplus.ca. Forward-looking statements are based on information available at the time those statements are made and/or management's good faith belief as of that time with respect to future events and are subject to risks and uncertainties that could cause actual performance or results to differ materially from those expressed in or suggested by such forward-looking statements. Forward-looking statements speak only as of the date those statements are made. Except as required by applicable law, Steppe Gold assumes no obligation to update or to publicly announce the results of any change to any forward-looking statement contained or incorporated by reference herein to reflect actual results, future events or developments, changes in assumptions or changes in other factors affecting the forward-looking statements. If Steppe Gold updates any one or more forward-looking statements, no inference should be drawn that the company will make additional updates with respect to those or other forward-looking statements. All forward-looking statements contained in this news release are expressly qualified in their entirety by this cautionary statement. Contact Information Steppe Gold Bataa Tumur-Ochir, Chairman and Chief Executive Officer Jeremy South, Senior Vice President and Chief Financial Officer Elisa Tagarvaa, Investor Relations Manager ([elisa@steppegold.com](mailto:elisa@steppegold.com)) Shangri-La office, Suite 1201, Olympic Street 19A, Sukhbaatar District 1, Ulaanbaatar 14241, Mongolia Tel: +976 7732 1914 To view the source version of this press release, please visit https://www.newsfilecorp.com/release/209078 https://preview.redd.it/hh1g8p1k8f0d1.png?width=4000&format=png&auto=webp&s=a6235f0cde46ed27e5902c3c5847f335d59fca52
|
2024.05.14 18:26 Kindly_Ice1745 RFPs for Renaissance Commerce Park
2024.05.14 18:15 gingernut02 Responsive Embed issues in React
import Spline from "@splinetool/react-spline"; import React from "react"; import styled from "styled-components"; import "./styles/App.css"; export default function ComputerHero() { return (App.css:); } const Wrapper = styled.div` font-family: "Bebas Neue", sans-serif; font-weight: 400; font-style: normal; margin: 0 auto; `;
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap"); #root { height: 100%; background: #ddc7ba; } body { margin: 0 auto; } App { background: #ddc7ba; } @media (min-width: 700px) and (max-width: 1920px) { canvas { height: 100%; } } @media (min-width: 600px) { canvas { height: 100vh; } }
2024.05.14 17:59 Then_Marionberry_259 MAY 14, 2024 MAG.TO MAG SILVER REPORTS FIRST QUARTER FINANCIAL RESULTS
https://preview.redd.it/w3wbxgjzze0d1.png?width=3500&format=png&auto=webp&s=c343619687a11525804d04f755c495d975b2050d submitted by Then_Marionberry_259 to Treaty_Creek [link] [comments] VANCOUVER, British Columbia, May 14, 2024 (GLOBE NEWSWIRE) -- MAG Silver Corp. (TSX / NYSE American: MAG) (“MAG”, or the “Company”) announces the Company’s unaudited consolidated financial results for the three months ended March 31, 2024 (“Q1 2024”). For details of the unaudited condensed interim consolidated financial statements of the Company for the three months ended March 31, 2024 (“Q1 2024 Financial Statements”) and management’s discussion and analysis for the three months ended March 31, 2024 (“Q1 2024 MD&A”), please see the Company’s filings on the System for Electronic Document Analysis and Retrieval Plus (“SEDAR+”) at ( www.sedarplus.ca ) or on the Electronic Data Gathering, Analysis, and Retrieval (“EDGAR”) at ( www.sec.gov ). All amounts herein are reported in $000s of United States dollars (“US$”) unless otherwise specified (C$ refers to Canadian dollars). KEY HIGHLIGHTS (on a 100% basis unless otherwise noted)
1 Adjusted EBITDA, total cash costs, cash cost per ounce, all-in sustaining costs, all-in sustaining cost per ounce and free cash flow are non-IFRS measures, please see below ‘ Non-IFRS Measures ’ section and section 12 of the Q1 2024 MD&A for a detailed reconciliation of these measures to the Q1 2024 Financial Statements. 2 Equivalent silver head grade and equivalent silver production have been calculated using the following price assumptions to translate gold, lead and zinc to “equivalent” silver head grade and “equivalent” silver production: $23/oz silver, $1,950/oz gold, $0.95/lb lead and $1.15/lb zinc. 3 Equivalent silver ounces sold have been calculated using realized price assumptions to translate gold, lead and zinc to “equivalent” silver ounces sold (metal quantity, multiplied by metal price, divided by silver price). Q1 2024 realized prices of $23.73/oz silver, $2,112.27/oz gold, $0.92/lb lead and $1.08/lb zinc. CORPORATE
4 Information contained in or otherwise accessible through the Company’s website, including the 2022 sustainability report and MAG Silver 2022 ESG Data Table, do not form part of this News Release and are not incorporated into this News Release by reference. EXPLORATION
https://preview.redd.it/qdr6asmzze0d1.png?width=720&format=png&auto=webp&s=aaedd0020755eaf3404201557cc9623acc995125 JUANICIPIO RESULTS All results of Juanicipio in this section are on a 100% basis, unless otherwise noted. Operating Performance The following table and subsequent discussion provide a summary of the operating performance of Juanicipio for the three months ended March 31, 2024 and 2023, unless otherwise noted. https://preview.redd.it/9txq8snzze0d1.png?width=720&format=png&auto=webp&s=0089cf57573e8834bdb641cf9e055619e6f6c5b2 (1) Equivalent silver head grades have been calculated using the following price assumptions to translate gold, lead and zinc to “equivalent” silver head grade: $23/oz silver, $1,950/oz gold, $0.95/lb lead and $1.15/lb zinc (Q1 2023: $21.85/oz silver, $1,775/oz gold, $0.915/lb lead and $1.30/lb zinc). (2) Equivalent silver payable ounces have been calculated using realized price assumptions to translate gold, lead and zinc to “equivalent” silver payable ounces (metal quantity, multiplied by metal price, divided by silver price). Q1 2024 realized prices of $23.73/oz silver, $2,112.27/oz gold, $0.92/lb lead and $1.08/lb zinc (Q1 2023 realized prices of $22.93/oz silver, $1,959.50/oz gold, $0.94/lb lead and $1.43/lb zinc). During the three months ended March 31, 2024 a total of 325,081 tonnes of ore were mined. This represents an increase of 45% over Q1 2023. Increases in mined tonnages at Juanicipio have been driven by the operational ramp up of the mine towards steady state targets. During the three months ended March 31, 2024 a total of 325,683 tonnes of ore were processed through the Juanicipio plant; no ore was processed at the nearby Fresnillo and Saucito processing plants (100% owned by Fresnillo). This represents an increase of 47% over Q1 2023. The increase in milled tonnage has been driven by the Juanicipio mill commissioning and operational ramp up to nameplate capacity over the course of 2023. The silver head grade and equivalent silver head grade for the ore processed in the three months ended March 31, 2024 was 476 g/t and 713 g/t, respectively (three months ended March 31, 2023: 363 g/t and 530 g/t, respectively). Head grades in Q1 2023 were lower as low-grade commissioning stockpiles were processed through the Juanicipio plant. Silver metallurgical recovery during Q1 2024 was 89.1% (Q1 2023: 87.0%) reflecting ongoing optimizations in the processing plant. The following table provides a summary of the total cash costs 5 and all-in sustaining costs 5 (“AISC”) of Juanicipio for the three months ended March 31, 2024, and 2023. https://preview.redd.it/riqz1yozze0d1.png?width=720&format=png&auto=webp&s=c5f2edde6bc789d2d379ca3a910beaa1cb262bde ________________________ 5 Total cash costs, cash cost per ounce, cash cost per equivalent ounce, all-in sustaining costs, all-in sustaining cost per ounce, and all-in sustaining cost per equivalent ounce are non-IFRS measures, please see the “ Non-IFRS Measures ” section below and section 12 of the Q1 2024 MD&A for a detailed reconciliation of these measures to the Q1 2024 Financial Statements. Equivalent silver ounces sold have been calculated using realized price assumptions to translate gold, lead and zinc to “equivalent” silver ounces sold (metal quantity, multiplied by metal price, divided by silver price). Q1 2024 realized prices of $23.73/oz silver, $2,112.27/oz gold, $0.92/lb lead and $1.08/lb zinc (Q1 2023: $22.93/oz silver, $1,959.50/oz gold, $0.94/lb lead and $1.43/lb zinc). Financial Results The following table presents excerpts of the financial results of Juanicipio for the three months ended March 31, 2024 and 2023. https://preview.redd.it/4zym5dqzze0d1.png?width=720&format=png&auto=webp&s=d25c91cabc7f6c6b35ff61acacc0160f3dfac2e7 Sales increased by $72,207 during the three months ended March 31, 2024, mainly due to 179% higher metal volumes and 2% higher realized metal prices. Offsetting higher sales was higher production cost ($9,409) which was driven by higher sales and operational ramp-up in mining and processing, including $3,545 in inventory movements, and higher depreciation ($14,083) as the Juanicipio mill achieved commercial production and commenced depreciating the processing facility and associated equipment in June 2023. Operating margin increased by 21% to 52%, mainly due to operational leverage and the lower reliance on the nearby Fresnillo and Saucito processing facilities. Other expenses increased by $2,159 mainly as a result of higher extraordinary mining and other duties ($872) in relation to higher precious metal revenues from the sale of concentrates and higher consulting and administrative expenses ($2,690) as an operator services agreement became effective upon initiation of commercial production (the “Operator Services Agreement”), offset by lower exchange losses and other costs ($1,566). Taxes increased by $20,980 impacted by higher taxable profits generated during Q1 2024, and non-cash deferred tax credits related to the commencement of use of plant and equipment in Q1 2023. Ore Processed at Juanicipio Plant (100% basis) https://preview.redd.it/koajybrzze0d1.png?width=720&format=png&auto=webp&s=caf1b70c53c47d371b9cebd743877fcd4ae59ba3 (1) The underground mine was considered readied for its intended use on January 1, 2022, whereas the Juanicipio processing facility started commissioning and ramp-up activities in January 2023, achieving commercial production status on June 1, 2023. (2) Includes toll milling costs from processing mineralized material at the Saucito and Fresnillo plants for Q1 2023. Sales and treatment charges are recorded on a provisional basis and are adjusted based on final assay and pricing adjustments in accordance with the offtake contracts. MAG FINANCIAL RESULTS – THREE MONTHS ENDED MARCH 31, 2024 As at March 31, 2024, MAG had working capital of $72,833 (December 31, 2023: $67,262) including cash of $74,683 (December 31, 2023: $68,707) and no long-term debt. As well, as at March 31, 2024, Juanicipio had working capital of $107,088 including cash of $30,991 (MAG’s attributable share is 44%). The Company’s net income for the three months ended March 31, 2024 amounted to $14,895 (March 31, 2023: $4,713) or $0.14/share (March 31, 2023: $0.05/share). MAG recorded its 44% income from equity accounted investment in Juanicipio of $19,244 (March 31, 2023: $7,919) which included MAG’s 44% share of net income from operations as well as loan interest earned on loans advanced to Juanicipio (see above for MAG’s share of income from its equity accounted investment in Juanicipio). https://preview.redd.it/5bneimszze0d1.png?width=720&format=png&auto=webp&s=323d988dbd92cf6ca4e815fff071c8ec7f45ee00 NON-IFRS MEASURES The following table provides a reconciliation of cash cost per silver ounce of Juanicipio to production cost of Juanicipio on a 100% basis (the nearest IFRS measure) as presented in the notes to the Q1 2024 Financial Statements. https://preview.redd.it/0jhh2stzze0d1.png?width=720&format=png&auto=webp&s=c97634763bd00967ddd878bc09b8e069687fae68 (1) As Q3 2023 represented the first full quarter of commercial production, information presented for total cash costs together with their associated per unit values are not directly comparable. (2) By-product revenues relates to the sale of other metals namely gold, lead, and zinc. (3) Equivalent silver payable ounces have been calculated using realized prices to translate gold, lead and zinc to “equivalent” silver payable ounces (metal quantity, multiplied by metal price, divided by silver price). Q1 2024 realized prices: $23.73/oz silver, $2,112.27/oz gold, $0.92/lb lead and $1.08/lb zinc (Q1 2023: $22.93/oz silver, $1,959.50/oz gold, $0.94/lb lead and $1.43/lb zinc). The following table provides a reconciliation of AISC of Juanicipio to production cost and various operating expenses of Juanicipio on a 100% basis (the nearest IFRS measure), as presented in the notes to the Q1 2024 Financial Statements. https://preview.redd.it/qkx2r5vzze0d1.png?width=720&format=png&auto=webp&s=0c9cb89471512649ac77b5cbe3177b0621d64835 (1) As Q3 2023 represented the first full quarter of commercial production, information presented for all-in sustaining costs and all-in sustaining margin together with their associated per unit values are not directly comparable. (2) Equivalent silver payable ounces have been calculated using realized prices to translate gold, lead and zinc to “equivalent” silver payable ounces (metal quantity, multiplied by metal price, divided by silver price). Q1 2024 realized prices: $23.73/oz silver, $2,112.27/oz gold, $0.92/lb lead and $1.08/lb zinc, (Q1 2023 realized prices: $22.93/oz silver, $1,959.50/oz gold, $0.94/lb lead and $1.43/lb zinc). For the three months ended March 31, 2024 the Company incurred corporate G&A expenses of $3,964 (three months ended March 31, 2023: $3,262), which exclude depreciation expense. The Company’s attributable silver ounces sold and equivalent silver ounces sold for the three months ended March 31, 2024 were 1,757,630 and 2,475,862 respectively (three months ended March 31, 2023: 880,429 and 1,230,412 respectively), resulting in additional all‐in sustaining cost for the Company of $2.26/oz and $1.60/oz respectively (three months ended March 31, 2023: $3.71/oz and $2.65/oz respectively), in addition to Juanicipio’s all-in-sustaining costs presented in the above table. The following table provides a reconciliation of EBITDA and Adjusted EBITDA attributable to the Company based on its economic interest in Juanicipio to net income (the nearest IFRS measure) of the Company per the Q1 2024 Financial Statements. All adjustments are shown net of estimated income tax. https://preview.redd.it/sx6jo7wzze0d1.png?width=720&format=png&auto=webp&s=1fea9df2b8195ce579b570935ab24b9939da5988 (1) As Q3 2023 represents the first full quarter of commercial production, information presented for EBITDA and Adjusted EBITDA is not directly comparable. The following table provides a reconciliation of free cash flow of Juanicipio to its cash flow from operating activities on a 100% basis (the nearest IFRS measure), as presented in the notes to the Q1 2024 Financial Statements. https://preview.redd.it/aqnp2dxzze0d1.png?width=720&format=png&auto=webp&s=56db2245eb87ec1f718edc1890b48b9b5d3ad762 (1) As Q3 2023 represents the first full quarter of commercial production, comparative information presented for free cash flow of Juanicipio is not directly comparable. Qualified Persons: All scientific or technical information in this press release including assay results referred to, and mineral resource estimates, if applicable, is based upon information prepared by or under the supervision of, or has been approved by Gary Methven, P.Eng., Vice President, Technical Services and Lyle Hansen, P.Geo, Geotechnical Director; both are “Qualified Persons” for purposes of National Instrument 43-101, Standards of Disclosure for Mineral Projects About MAG Silver Corp. MAG Silver Corp. is a growth-oriented Canadian exploration company focused on advancing high-grade, district scale precious metals projects in the Americas. MAG is emerging as a top-tier primary silver mining company through its (44%) joint venture interest in the 4,000 tonnes per day Juanicipio Mine, operated by Fresnillo plc (56%). The mine is located in the Fresnillo Silver Trend in Mexico, the world's premier silver mining camp, where in addition to underground mine production and processing of high-grade mineralised material, an expanded exploration program is in place targeting multiple highly prospective targets. MAG is also executing multi-phase exploration programs at the 100% earn-in Deer Trail Project in Utah and the 100% owned Larder Project, located in the historically prolific Abitibi region of Canada. Neither the Toronto Stock Exchange nor the NYSE American has reviewed or accepted responsibility for the accuracy or adequacy of this press release, which has been prepared by management. Certain information contained in this release, including any information relating to MAG’s future oriented financial information, are “forward-looking information” and “forward-looking statements” within the meaning of applicable Canadian and United States securities legislation (collectively herein referred as “forward-looking statements”), including the “safe harbour” provisions of provincial securities legislation, the U.S. Private Securities Litigation Reform Act of 1995, Section 21E of the U.S. Securities Exchange Act of 1934, as amended and Section 27A of the U.S. Securities Act. Such forward-looking statements include, but are not limited to:
Forward-looking statements are necessarily based upon estimates and assumptions, which are inherently subject to significant business, economic and competitive uncertainties and contingencies, many of which are beyond the Company’s control and many of which, regarding future business decisions, are subject to change. Assumptions underlying the Company’s expectations regarding forward-looking statements contained in this release include, among others: MAG’s ability to carry on its various exploration and development activities including project development timelines, the timely receipt of required approvals and permits, the price of the minerals produced, the costs of operating, exploration and development expenditures, the impact on operations of the Mexican tax and legal regimes, MAG’s ability to obtain adequate financing, outbreaks or threat of an outbreak of a virus or other contagions or epidemic disease will be adequately responded to locally, nationally, regionally and internationally. Although MAG believes the expectations expressed in such forward-looking statements are based on reasonable assumptions, such statements are not guarantees of future performance and actual results or developments may differ materially from those in the forward-looking statements. These forward-looking statements involve known and unknown risks, uncertainties and many factors could cause actual results, performance or achievements to be materially different from any future results, performance or achievements that may be expressed or implied by such forward-looking statements including amongst others: commodities prices; changes in expected mineral production performance; unexpected increases in capital costs or cost overruns; exploitation and exploration results; continued availability of capital and financing; general economic, market or business conditions; risks relating to the Company’s business operations; risks relating to the financing of the Company’s business operations; risks related to the Company’s ability to comply with restrictive covenants and maintain financial covenants pursuant to the terms of the Credit Facility; the expected use of the Credit Facility; risks relating to the development of Juanicipio and the minority interest investment in the same; risks relating to the Company’s property titles; risks related to receipt of required regulatory approvals; pandemic risks; supply chain constraints and general costs escalation in the current inflationary environment heightened by the invasion of Ukraine by Russia and the events relating to the Israel-Hamas war; risks relating to the Company’s financial and other instruments; operational risk; environmental risk; political risk; currency risk; market risk; capital cost inflation risk; risk relating to construction delays; the risk that data is incomplete or inaccurate; the risks relating to the limitations and assumptions within drilling, engineering and socio-economic studies relied upon in preparing economic assessments and estimates, including the 2017 PEA; as well as those risks more particularly described under the heading “Risk Factors” in the Company’s Annual Information Form dated March 27, 2023 available under the Company’s profile on SEDAR+ at www.sedarplus.ca . Should one or more of these risks or uncertainties materialize, or should underlying assumptions prove incorrect, actual results may vary materially from those described herein. This list is not exhaustive of the factors that may affect any of the Company’s forward-looking statements. The Company’s forward-looking statements are based on the beliefs, expectations and opinions of management on the date the statements are made and, other than as required by applicable securities laws, the Company does not assume any obligation to update forward-looking statements if circumstances or management’s beliefs, expectations or opinions should change. For the reasons set forth above, investors should not attribute undue certainty to or place undue reliance on forward-looking statements. Please Note: Investors are urged to consider closely the disclosures in MAG's annual and quarterly reports and other public filings, accessible through the Internet at www.sedarplus.ca and www.sec.gov LEI: 254900LGL904N7F3EL14 For further information on behalf of MAG Silver Corp. Contact Michael J. Curlook, Vice President, Investor Relations and Communications Phone: (604) 630-1399 Toll Free: (866) 630-1399 Email:info@magsilver.comhttps://preview.redd.it/d8wzg8yzze0d1.jpg?width=66&format=pjpg&auto=webp&s=a39ec6a39761447bbd4dbd77e92aef49e95e583e https://preview.redd.it/qr1wv0zzze0d1.png?width=4000&format=png&auto=webp&s=fadeb32c9245f8b70d903b1c70321decddf77985
|
2024.05.14 17:58 hvdub4 Advice combatting scammer
2024.05.14 17:57 Amphibian_Basic Firs impressions feedback
2024.05.14 17:52 ZealousidealNobody22 Home assistant Chat GPT4o intergration
luaCopy code /config/custom_components/chatgpt_integration/ -- __init__.py -- manifest.json -- services.yaml__init__.py:
pythonCopy code import openai import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType, ServiceCall DOMAIN = 'chatgpt_integration' CONF_API_KEY = 'api_key' CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ vol.Required(CONF_API_KEY): cv.string, }) }, extra=vol.ALLOW_EXTRA) def setup(hass: HomeAssistant, config: ConfigType): api_key = config[DOMAIN][CONF_API_KEY] openai.api_key = api_key def handle_chatgpt_request(call: ServiceCall): prompt = call.data.get('prompt') response = openai.Completion.create(engine="text-davinci-004", prompt=prompt, max_tokens=150) hass.states.set('chatgpt_integration.response', response.choices[0].text.strip()) hass.services.register(DOMAIN, 'ask', handle_chatgpt_request) return Truemanifest.json:
jsonCopy code { "domain": "chatgpt_integration", "name": "ChatGPT Integration", "version": "1.0", "requirements": ["openai"], "dependencies": [], "codeowners": [] }services.yaml:
yamlCopy code ask: description: "Ask ChatGPT a question" fields: prompt: description: "The question to ask ChatGPT" example: "What's the weather like today?"
htmlCopy codeHome Assistant ChatGPT Interface Home Automation with ChatGPT
2024.05.14 17:30 ExaminationOdd8421 user_proxy.initiate_chat summary_args
2024.05.14 17:28 Astrid_Nicrosil POV: you are browsing Tumblr in 2023
2024.05.14 17:16 Then_Marionberry_259 MAY 14, 2024 FR.TO FIRST MAJESTIC REMINDS SHAREHOLDERS TO VOTE IN UPCOMING ANNUAL GENERAL MEETING
https://preview.redd.it/amc20qi8se0d1.png?width=3500&format=png&auto=webp&s=e2fae5d450ab83c349831614e8d9c1261014cb33 submitted by Then_Marionberry_259 to Treaty_Creek [link] [comments] Vancouver, British Columbia--(Newsfile Corp. - May 14, 2024) - First Majestic Silver Corp. (NYSE: AG) (TSX: FR) (FSE: FMV) (the "Company" or "First Majestic") reminds its shareholders about the Company's upcoming Annual General Meeting of Shareholders (the "2024 AGM") scheduled to take place on Thursday, May 23, 2024 at 10:00 a.m. (Pacific Time) at the Sutton Place Hotel located at 845 Burrard Street, Vancouver, British Columbia, V6Z 2K6. The Board of Directors of First Majestic unanimously recommends that shareholders vote FOR all the resolutions that have been put forward for the 2024 AGM. The record date for notice and for voting at the 2024 AGM was March 28, 2024. Only shareholders as of the record date will be entitled to vote at the meeting. Shareholders as of the record date are encouraged to vote before the proxy voting deadline on Tuesday, May 21, 2024 at 10:00 a.m. (Pacific Time). If you are a registered shareholder of the Company and are unable to attend the 2024 AGM, please read, sign and date the form of proxy for the meeting (the "Proxy") and deposit it with Computershare Investor Services Inc. ("Computershare") by courier or mail at 100 University Avenue, 8th Floor, Toronto, Ontario M5J 2Y1, Attention: Proxy Department, or by facsimile at 1-866-249-7775 (toll-free in North America) or 1-416-263-9524 (international) by 10:00 a.m. (Pacific Time) on Tuesday, May 21, 2024, or at least 48 hours (excluding Saturdays, Sundays and holidays) before any postponement or adjournment of the meeting). Alternatively, registered shareholders may vote by telephone (1-866-732-8683) or online (www.investorvote.com) using the control number listed on the Proxy that they received from Computershare. Non-registered shareholders may participate in the 2024 AGM (either themselves or through a proxyholder, or through intermediaries using the voting instruction form). Alternatively, some non-registered shareholders may be able to vote by telephone or online and should refer to the voting instruction form that they received for further details and instructions. EVERY VOTE COUNTS Voting is quick and easy. First Majestic has retained Kingsdale Advisors to provide shareholders with assistance in voting their shares, and they may be reached by telephone at 1-866-851-3214 (toll-free in North America) or 1-647-577-3635 (text and call enabled outside North America), or by email at [contactus@kingsdaleadvisors.com](mailto:contactus@kingsdaleadvisors.com). To obtain current information about voting your First Majestic common shares, and for copies of the materials for the 2024 AGM, please visit www.firstmajesticagm.com, or scan the QR code below: https://preview.redd.it/d82f1zo8se0d1.jpg?width=218&format=pjpg&auto=webp&s=5b92a1c645b14040aee870464450ea0170adc9f8 ABOUT THE COMPANY First Majestic is a publicly traded mining company focused on silver and gold production in Mexico and the United States. The Company presently owns and operates the San Dimas SilveGold Mine, the Santa Elena SilveGold Mine, and the La Encantada Silver Mine as well as a portfolio of development and exploration assets, including the Jerritt Canyon Gold project located in northeastern Nevada, U.S.A. First Majestic is proud to own and operate its own minting facility, First Mint, LLC, and to offer a portion of its silver production for sale to the public. Bars, ingots, coins and medallions are available for purchase online at www.firstmint.com, at some of the lowest premiums available. For further information, contact [info@firstmajestic.com](mailto:info@firstmajestic.com), visit our website at www.firstmajestic.com or call our toll-free number 1.866.529.2807. FIRST MAJESTIC SILVER CORP. "Signed" Keith Neumeyer, President & CEO Cautionary Note Regarding Forward-Looking Statements This news release contains "forward‐looking information" and "forward-looking statements" under applicable Canadian and U.S. securities laws (collectively, "forward‐looking statements"). These statements relate to future events or the Company's future performance, business prospects or opportunities that are based on forecasts of future results, estimates of amounts not yet determinable and assumptions of management made in light of management's experience and perception of historical trends, current conditions and expected future developments. Forward-looking statements include, but are not limited to, statements with respect to: the time and place of the 2024 AGM; the process of voting at the 2024 AGM; and the use of the online and telephone platforms to cast votes. Assumptions may prove to be incorrect and actual results may differ materially from those anticipated. All statements other than statements of historical fact may be forward‐looking statements. Although First Majestic has attempted to identify important factors that could cause actual results to differ materially from those contained in forward-looking statements, there may be other factors that cause results not to be as anticipated, estimated or intended. The Company believes that the expectations reflected in these forward‐looking statements are reasonable, but no assurance can be given that these expectations will prove to be correct and such forward‐looking statements included herein should not be unduly relied upon. These statements speak only as of the date hereof. The Company does not intend, and does not assume any obligation, to update these forward-looking statements, except as required by applicable laws. To view the source version of this press release, please visit https://www.newsfilecorp.com/release/209068 https://preview.redd.it/1yxdabv8se0d1.png?width=4000&format=png&auto=webp&s=cda284c426d82431cbf5faf4aa1574e029a16db3
|
2024.05.14 17:07 FistofDavid New to Python - Not understanding passing something to an argument
#!/usbin/env python # -*- encoding: utf-8 """ Download podcast files based on your Overcast export. If you have an Overcast account, you can download an OPML file with a list of every episode you've played from https://overcast.fm/account. This tool can read that OPML file, and save a local copy of the audio files for every episode you've listened to. """ import argparse import datetime import errno import filecmp import functools import glob import itertools import json import os import sqlite3 import sys from urllib.parse import urlparse from urllib.request import build_opener, install_opener, urlretrieve import xml.etree.ElementTree as ET def parse_args(argv): """Parse command-line arguments.""" parser = argparse.ArgumentParser(description=__doc__) parser.add_argument( "OPML_PATH", help="Path to an OPML file downloaded from https://overcast.fm/account", ) parser.add_argument( "--download_dir", default="audiofiles", help="directory to save podcast information to to", ) args = parser.parse_args(argv) return { "opml_path": os.path.abspath(args.OPML_PATH), "download_dir": os.path.abspath(args.download_dir), } def get_episodes(xml_string): """ Given the XML string of the Overcast OPML, generate a sequence of entries that represent a single, played podcast episode. """ root = ET.fromstring(xml_string) # The Overcast OPML has the following form: # # ## # # Within theOvercast Podcast Subscriptions # #... #... # #block of XML, there's a list of feeds # with the following structure (some attributes omitted): # # # # # We use an XPath expression to find the# ... # entries # (so we get the podcast metadata), and then find the individual # "podcast-episode" entries in that feed. for feed in root.findall("./body/outline[@text='feeds']/outline[@type='rss']"): podcast = { "title": feed.get("title"), "text": feed.get("text"), "xml_url": feed.get("xmlUrl"), } for episode_xml in feed.findall("./outline[@type='podcast-episode']"): episode = { "published_date": episode_xml.get("pubDate"), "title": episode_xml.get("title"), "url": episode_xml.get("url"), "overcast_id": episode_xml.get("overcastId"), "overcast_url": episode_xml.get("overcastUrl"), "enclosure_url": episode_xml.get("enclosureUrl"), } yield { "podcast": podcast, "episode": episode, } def has_episode_been_downloaded_already(episode, download_dir): try: conn = sqlite3.connect(os.path.join(download_dir, "overcast.db")) except sqlite3.OperationalError as err: if err.args[0] == "unable to open database file": return False else: raise c = conn.cursor() try: c.execute( "SELECT * FROM downloaded_episodes WHERE overcast_id=?", (episode["episode"]["overcast_id"],), ) except sqlite3.OperationalError as err: if err.args[0] == "no such table: downloaded_episodes": return False else: raise return c.fetchone() is not None def mark_episode_as_downloaded(episode, download_dir): conn = sqlite3.connect(os.path.join(download_dir, "overcast.db")) c = conn.cursor() try: c.execute("CREATE TABLE downloaded_episodes (overcast_id text PRIMARY KEY)") except sqlite3.OperationalError as err: if err.args[0] == "table downloaded_episodes already exists": pass else: raise c.execute( "INSERT INTO downloaded_episodes VALUES (?)", (episode["episode"]["overcast_id"],), ) conn.commit() conn.close() def _escape(s): return s.replace(":", "-").replace("/", "-") def get_filename(*, download_url, title): url_path = urlparse(download_url).path extension = os.path.splitext(url_path)[-1] base_name = _escape(title) return base_name + extension def download_url(*, url, path, description): # Some sites block the default urllib User-Agent headers, so we can customise # it to something else if necessary. opener = build_opener() opener.addheaders = [("User-agent", "Mozilla/5.0")] install_opener(opener) try: tmp_path, _ = urlretrieve(url) except Exception as err: print(f"Error downloading {description}: {err}") else: print(f"Downloading {description} successful!") os.rename(tmp_path, path) def download_episode(episode, download_dir): """ Given a blob of episode data from get_episodes, download the MP3 file and save the metadata to ``download_dir``. """ if has_episode_been_downloaded_already(episode=episode, download_dir=download_dir): return # If the MP3 URL is https://example.net/mypodcast/podcast1.mp3 and the # title is "Episode 1: My Great Podcast", the filename is # ``Episode 1- My Great Podcast.mp3``. audio_url = episode["episode"]["enclosure_url"] filename = get_filename(download_url=audio_url, title=episode["episode"]["title"]) # Within the download_dir, put the episodes for each podcast in the # same folder. podcast_dir = os.path.join(download_dir, _escape(episode["podcast"]["title"])) os.makedirs(podcast_dir, exist_ok=True) # Download the podcast audio file if it hasn't already been downloaded. download_path = os.path.join(podcast_dir, filename) base_name = _escape(episode["episode"]["title"]) json_path = os.path.join(podcast_dir, base_name + ".json") # If the MP3 file already exists, check to see if it's the same episode, # or if this podcast isn't using unique filenames. # # If a podcast has multiple episodes with the same filename in its feed, # append the Overcast ID to disambiguate. if os.path.exists(download_path): try: cached_metadata = json.load(open(json_path, "r")) except Exception as err: print(err, json_path) raise cached_overcast_id = cached_metadata["episode"]["overcast_id"] this_overcast_id = episode["episode"]["overcast_id"] if cached_overcast_id != this_overcast_id: filename = filename.replace(".mp3", "_%s.mp3" % this_overcast_id) old_download_path = download_path download_path = os.path.join(podcast_dir, filename) json_path = download_path + ".json" print( "Downloading %s: %s to %s" % (episode["podcast"]["title"], audio_url, filename) ) download_url(url=audio_url, path=download_path, description=audio_url) try: if filecmp.cmp(download_path, old_download_path, shallow=False): print("Duplicates detected! %s" % download_path) os.unlink(download_path) download_path = old_download_path except FileNotFoundError: # This can occur if the download fails -- say, the episode is # in the Overcast catalogue, but no longer available from source. pass else: # Already downloaded and it's the same episode. pass # This episode has never been downloaded before, so we definitely have # to download it fresh. else: print( "Downloading %s: %s to %s" % (episode["podcast"]["title"], audio_url, filename) ) download_url(url=audio_url, path=download_path, description=audio_url) # Save a blob of JSON with some episode metadata episode["filename"] = filename json_string = json.dumps(episode, indent=2, sort_keys=True) with open(json_path, "w") as outfile: outfile.write(json_string) save_rss_feed(episode=episode, download_dir=download_dir) mark_episode_as_downloaded(episode=episode, download_dir=download_dir) def save_rss_feed(*, episode, download_dir): _save_rss_feed( title=episode["podcast"]["title"], xml_url=episode["podcast"]["xml_url"], download_dir=download_dir ) # Use caching so we only have to download this RSS feed once. @functools.lru_cache() def _save_rss_feed(*, title, xml_url, download_dir): podcast_dir = os.path.join(download_dir, _escape(title)) today = datetime.datetime.now().strftime("%Y-%m-%d") rss_path = os.path.join(podcast_dir, f"feed.{today}.xml") if not os.path.exists(rss_path): print("Downloading RSS feed for %s" % title) download_url( url=xml_url, path=rss_path, description="RSS feed for %s" % title, ) matching_feeds = sorted(glob.glob(os.path.join(podcast_dir, "feed.*.xml"))) while ( len(matching_feeds) >= 2 and filecmp.cmp(matching_feeds[-2], matching_feeds[-1], shallow=False) ): os.unlink(matching_feeds[-1]) matching_feeds.remove(matching_feeds[-1]) if __name__ == "__main__": args = parse_args(argv=sys.argv[1:]) opml_path = args["opml_path"] download_dir = args["download_dir"] try: with open(opml_path) as infile: xml_string = infile.read() except OSError as err: if err.errno == errno.ENOENT: sys.exit("Could not find an OPML file at %s" % opml_path) else: raise for episode in get_episodes(xml_string): download_episode(episode, download_dir=download_dir)
2024.05.14 16:55 WriteReflection How to use SEO to rank your social media content
2024.05.14 16:25 customEntregineer Help Needed: Persistent Resource Consumption Issues with WooCommerce Site on VPS
2024.05.14 15:56 SignalPractical4526 Need help with OAuth - New to Flet, New to Dev
import flet from flet import * from flet.auth.providers import GoogleOAuthProvider clientID = "960907517986-pn9g4a6vou7spkv5dcqp9e5lveeqr9la.apps.googleusercontent.com" clientSecret = "GOCSPX-UwIdBmnIyu2bayHFtejMXXXXXXXX" def main(page: Page): provider = GoogleOAuthProvider( client_id=clientID, client_secret=clientSecret, redirect_url="http://localhost:8550/api/oauth/redirect", ) resulttxt=Column() def logingoogle(e): page.login(provider, scope=["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile"]) def on_login(e): print(page.auth.user) resulttxt.controls.append( Column([ Text(f"name : {page.auth.user['name']}"), Text(f"email : {page.auth.user['email']}"), ]) ) page.update() page.on_login = on_login page.add( Column([ Text("Login Google", size=30), ElevatedButton("Sign google", bgcolor="blue", color="white", on_click=logingoogle ), resulttxt ]) ) flet.app(target=main, port=8550, view=WEB_BROWSER)The tutorial I followed is : https://www.youtube.com/watch?v=t9ca2jC4YTo&t=20s
2024.05.14 15:02 marijuanahh Error: Local Access