Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
エラーの原因がわからない。Java |
https://teratail.com/questions/264864?rss=all
|
エラーの原因がわからない。 |
2020-05-26 04:58:41 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
リンクのクリックできる範囲がウインドウ幅に合わせて変化してしまう。 |
https://teratail.com/questions/264863?rss=all
|
発生している問題・エラーメッセージpcの画面ではクリックできるリンクが、スクリーン幅がpX付近になるとではクリックできません。 |
2020-05-26 04:51:44 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
pytrochを使い始めたのですが モデルを動かすとき謎のエラーが出ます |
https://teratail.com/questions/264862?rss=all
|
|
2020-05-26 04:26:31 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Nokogiri】RSSニュースをRubyで扱ってみよう! |
https://qiita.com/fujigaki/items/f15f2a52d5ff91c84c09
|
XML宣言一番先頭のltxmlversionと書かれている部分は、このファイルがXMLファイルである事を表し、必ず先頭に記述する事になっていますchannelの定義XML宣言の次のltchannelgtから始まるブロックは、このRSSのチャンネル名を定義したものです。 |
2020-05-26 04:03:40 |
海外TECH |
DEV Community |
Using Pandoc to create a Website |
https://dev.to/jillesvangurp/using-pandoc-to-create-a-website-1gea
|
Using Pandoc to create a WebsiteI think I created my first web page around I was studying at the University of Utrecht at the time There was a brief period around where the using the World Wide Web meant queueing for the single unix terminal with a gateway to the internet amp Mosaic installed after lectures This of course soon escalated By all computer lab terminals a mix of Sun and HP unix machines and later some windows PCs had a browser It was around then that I put up a little HTML page on the faculty web server announcing my presence to the world In the years after this thing migrated to different places and around I registered my domain jillesvangurp com I was already too late to register jilles com Around the same time I got into blogging First with something called pivot which I swapped out for Wordpress a couple of years later For the past or so years I ve been using that to host my website Recently somebody pointed out that my web page was broken Basically my hosting provider did some infrastructure changes and this messed up https amp http Kind of embarrassing and it annoyed me that I had to spend time on fixing it So I decided that enough was enough and it was time to retire Wordpress This had been on my TODO list probably for the last five years or so But it was one of those things that I never got around to Over time I ve grown more uncomfortable with the notion of running a mess of php that is regularly in need of security updates and generally a vector for having your website defaced Also I like to write in markdown and Wordpress seems to insist on not storing that natively and or mangling it After a survey of different tools for static website generation I decided to keep it simple There are a lot of these tools out there but they all seem to be a combination of opinionated and convoluted for what I want And I got annoyed with their documentation A problem I see with this type of tools is that the happy path of using them is well documented but basically only does less than half the job that you need done Piecing the rest together has about the same complexity as just rolling your own scripts So I picked the simplest tool that gets the job done pandoc Pandoc is a nice command line tool to convert different text file formats to other formats I ve used a few months ago on my Elasticsearch Kotlin Client to generate an epub version of the manual Crucially it supports the Github flavor of markdown as input and html as the output Even better it can process code samples do syntax highlighting and some simple templating That s all I need I can do the rest with bash So I started hacking a few bash scripts together that I ve been adding features to in the last weeks At this point it s good enough for what I need Of course the whole set up is highly tailored to my needs but that might be good enough for others as well So I decided to share the source code on Github If not the scripts are simple enough to figure out that you can probably fix it to do whatever you need Feel free to fork and adapt CodeHere s a script that I wrote to convert markdown usr bin env bashfor page in ls pages do pandoc from markdown github smart yaml metadata block auto identifiers pages page o public basename page md html template templates page html V navigation cat navigation html V footer cat footer html doneThis simply generates html for each of the pages in the pages directory and uses the page html template This in turn has a few variables that it mostly gets from the markdown meta data section and I ve added a few on the command line Nice and simple I have a similar script that processes articles that I migrated from my old Wordpress setup in the articles directory Fixing the exported markdown was hard as Wordpress export makes a mess of that But I got it done in the end with a lot of patience and some regex replacing Since running the above script takes quite long on articles I created another script with a bit of hackery to fork processes with bash for blogpost in ls articles do export publishdate echo blogpost grep oE pandoc from markdown github smart yaml metadata block auto identifiers articles blogpost o public blog basename blogpost md html template templates article html V publishdate publishdate V navigation cat navigation html V footer cat footer html amp donefor pid in jobs p do wait piddoneNote it has a little amp on the pandoc command This causes bash to fork a process Then after all processes are forked I wait for all the jobs to finish Takes about seconds to process everything Good enough Also note the V options for setting variables those are used in the template In this case I ve added the publication date which is parsed from the file name using grep For the sitemap I simply gobbled together some nice find command and a few echo commands usr bin env bashsitemap public sitemap xml baseurl timestamp date u Y m dT H M SZ function url echo lt url gt lt loc gt baseurl lt loc gt lt lastmod gt timestamp lt lastmod gt lt url gt robots cat lt lt EOFUser agent Allow Sitemap baseurl sitemap xmlEOF echo robots gt public robots txtheader cat lt lt EOF lt xml version encoding UTF gt lt urlset xmlns gt EOF echo header gt sitemapfor file in find public name html sed e s public do echo url file gt gt sitemapdoneprintf lt urlset gt n gt gt sitemapI also needed an index page for my articles usr bin env bashrm f index mdexport HEADER cat lt lt EOF title Article Indexauthor Jilles van Gurp Intro text omitted EOF echo HEADER gt index mdcurrent year for name in find articles type f exec basename sort ur sed s md do year echo name sed E s month echo name sed E s day echo name sed E s title echo name sed E s nice title echo year month day echo title tr a z A Z title sed e s g if year current year then echo e n year n gt gt index md fi current year year echo nice title year month day title gt gt index mddonepandoc from markdown github smart yaml metadata block auto identifiers index md o public blog index html template templates article html V navigation cat navigation html V footer cat footer html V year date Y cp index md generatedindex mdrm f index mdThis is the most complicated script so far mainly because I wanted to support the old Wordpress link structure of year month day title so as to not break external URLs I have an htaccess file with some redirects There s another very similar script that generates an atom feed for those people still using feed readers I used atom for mostly nostalgic reasons as I was following the standardization of that while I was in Nokia Research I think RSS sort of stayed more dominant and then both are sort of equally irrelevant nowadays But it s still around and I guess they are still uses by various news aggregators so having a feed probably is a good idea from an SEO perspective Finally I have a Makefile that invokes all my little scripts in the right order and all the output goes to a public folder The last step uses rsync to copy everything over to my hosting provider The whole process takes about seconds which is a bit on the slow side but acceptable ConclusionIs this setup better than other tools Probably not But I have full control over what happens and it s simple enough that I can use and maintain it It s good enough for me and it gets the job done Note I ve added links to the actual files in my git repo Inevitably there will be changes on master but all the links point to a tag created for this article |
2020-05-25 19:16:50 |
Apple |
AppleInsider - Frontpage News |
How to get a discount on Apple Music if you are a student |
https://appleinsider.com/articles/20/05/25/how-to-get-a-discount-on-apple-music-if-you-are-a-student
|
How to get a discount on Apple Music if you are a studentCollege students pay percent less for their monthly Apple Music subscriptionーperfect for budget minded back to schoolers Here are the steps you ll need to follow to get an Apple Music student subscription |
2020-05-25 19:02:46 |
Apple |
AppleInsider - Frontpage News |
Review: Level Lock is the invisible smart home lock with HomeKit for your front door |
https://appleinsider.com/articles/20/05/25/review-level-lock-is-the-invisible-smart-home-lock-with-homekit-for-your-front-door
|
Review Level Lock is the invisible smart home lock with HomeKit for your front doorLevel Lock is an innovative new smart lock that brings connected home features and security to your front door including Apple s HomeKit while remaining entirely hidden |
2020-05-25 19:15:05 |
海外科学 |
NYT > Science |
Virgin Orbit Launch: 1st Attempt to Blast Off From Beneath Jumbo Jet |
https://www.nytimes.com/2020/05/25/science/virgin-orbit-launch-time.html
|
satellites |
2020-05-25 19:12:58 |
海外科学 |
NYT > Science |
Live Coronavirus Global News Tracker: Latest Updates |
https://www.nytimes.com/2020/05/25/world/coronavirus-news-cases-deaths.html
|
Live Coronavirus Global News Tracker Latest UpdatesAmericans took a varied approach to the holiday with pool parties in some places and shuttered beaches in others Social distancing measures could spur a last minute venue change for the Republican National Convention |
2020-05-25 19:50:41 |
海外科学 |
NYT > Science |
U.K. to Quarantine All Incoming Air Travelers; a Chinese Coronavirus Vaccine Shows Promise |
https://www.nytimes.com/2020/05/22/world/live-coronavirus-world-cases.html
|
U K to Quarantine All Incoming Air Travelers a Chinese Coronavirus Vaccine Shows PromiseImmunizations are falling because of pandemic disruptions raising fears of surges in preventable disease Lockdowns complicate the Muslim holiday Eid China s National People s Congress offers a show of strength |
2020-05-25 19:46:28 |
医療系 |
医療介護 CBnews |
9割の自治体が集合住宅併設事業所に「課題あり」-老人保健健康増進等事業 |
https://www.cbnews.jp/news/entry/20200522173506
|
介護事業 |
2020-05-26 05:00:00 |
金融 |
金融庁ホームページ |
「新型コロナウイルス感染症関連情報」特設ページを更新しました。 |
https://www.fsa.go.jp/ordinary/coronavirus202001/press.html
|
新型コロナウイルス |
2020-05-25 20:00:00 |
金融 |
金融庁ホームページ |
新型コロナウイルス感染症に係る緊急事態解除宣言を踏まえた今後の対応について麻生金融担当大臣談話を公表しました。 |
https://www.fsa.go.jp/common/conference/danwa/20200525danwa.html
|
新型コロナウイルス |
2020-05-25 20:00:00 |
海外ニュース |
Japan Times latest articles |
Japan sidestepped COVID-19’s worst, so what now? |
https://www.japantimes.co.jp/news/2020/05/25/national/japan-post-covid-19-emergency/
|
nation |
2020-05-26 04:30:14 |
海外ニュース |
Japan Times latest articles |
WNBA teams set to make tough decisions on roster cuts amid pandemic |
https://www.japantimes.co.jp/sports/2020/05/25/basketball/wnba-teams-set-make-tough-decisions-roster-cuts-amid-pandemic/
|
WNBA teams set to make tough decisions on roster cuts amid pandemicNew York Liberty general manager Jonathan Kolb knew he and first year coach Walt Hopkins would have to make some tough decisions on the team s roster |
2020-05-26 04:18:27 |
海外ニュース |
Japan Times latest articles |
Thomas Mueller expects sparks to fly during Bayern-Dortmund showdown |
https://www.japantimes.co.jp/sports/2020/05/25/soccer/thomas-mueller-expects-sparks-fly-bayern-dortmund-showdown/
|
Thomas Mueller expects sparks to fly during Bayern Dortmund showdownBayern Munich striker Thomas Mueller expects sparks to fly in Tuesday s top of the table clash at Borussia Dortmund which could help settle this season s title race Mueller scored |
2020-05-26 04:17:16 |
海外ニュース |
Japan Times latest articles |
Suicide note written by pro wrestler and ‘Terrace House’ star Hana Kimura discovered |
https://www.japantimes.co.jp/culture/2020/05/25/entertainment-news/suicide-note-written-pro-wrestler-terrace-house-star-hana-kimura-discovered/
|
Suicide note written by pro wrestler and Terrace House star Hana Kimura discoveredAn apparent suicide note written by Hana Kimura the year old professional wrestler and cast member of the internationally popular Netflix reality show Terrace House was |
2020-05-26 05:16:35 |
海外ニュース |
Japan Times latest articles |
Beijing draws the line with Hong Kong |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/beijing-draws-line-hong-kong/
|
beijing |
2020-05-26 05:00:37 |
海外ニュース |
Japan Times latest articles |
Japan must start drafting an Indo-Pacific charter |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/japan-commentary/japan-must-start-drafting-indo-pacific-charter/
|
Japan must start drafting an Indo Pacific charterAfter watching dozens of webinars including one co hosted by the Canon Institute for Global Studies and the Stimson Center it seems clear that no one |
2020-05-26 04:59:06 |
海外ニュース |
Japan Times latest articles |
Lockdowns haven’t proved they’re worth the havoc |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/lockdowns-havent-proved-theyre-worth-havoc/
|
haven |
2020-05-26 04:58:09 |
海外ニュース |
Japan Times latest articles |
NASA should beware of viruses from outer space |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/nasa-beware-viruses-outer-space/
|
planetary |
2020-05-26 04:57:18 |
海外ニュース |
Japan Times latest articles |
How Germany contained the coronavirus |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/germany-contained-coronavirus/
|
addition |
2020-05-26 04:56:27 |
海外ニュース |
Japan Times latest articles |
The impact of COVID-19 on Africa |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/impact-covid-19-africa/
|
africa |
2020-05-26 04:55:46 |
海外ニュース |
Japan Times latest articles |
China tests global diplomacy and economy |
https://www.japantimes.co.jp/opinion/2020/05/25/commentary/world-commentary/china-tests-global-diplomacy-economy/
|
covid |
2020-05-26 04:54:55 |
ニュース |
BBC News - Home |
Coronavirus: I don't regret what I did, says Dominic Cummings |
https://www.bbc.co.uk/news/uk-politics-52800595
|
durham |
2020-05-25 19:49:56 |
ニュース |
BBC News - Home |
Coronavirus: All non-essential shops to reopen from 15 June - PM |
https://www.bbc.co.uk/news/uk-52801727
|
covid |
2020-05-25 19:54:13 |
ニュース |
BBC News - Home |
Dominic Cummings: What did he do during lockdown? |
https://www.bbc.co.uk/news/uk-politics-52784290
|
lockdown |
2020-05-25 19:23:31 |
ニュース |
BBC News - Home |
Coronavirus UK map: How many confirmed cases are there in your area? |
https://www.bbc.co.uk/news/uk-51768274
|
government |
2020-05-25 19:25:08 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
農学部を新設する大学が増加、今どきの学生から人気を集める理由 - ニュース3面鏡 |
https://diamond.jp/articles/-/238272
|
開設 |
2020-05-26 04:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
香港デモ再燃ルポ、「国家安全法」で一国二制度は終焉か? - 加藤嘉一「中国民主化研究」揺れる巨人は何処へ |
https://diamond.jp/articles/-/238149
|
一国二制度 |
2020-05-26 04:52:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
花粉症患者は果物に過敏反応しやすい?増える成人食物アレルギーの事実 - News&Analysis |
https://diamond.jp/articles/-/238296
|
newsampampanalysis |
2020-05-26 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナ感染が子どもに拡大、わが子の命を守る心得を東大病院医師が指南 - News&Analysis |
https://diamond.jp/articles/-/238305
|
newsampampanalysis |
2020-05-26 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナショックで日本の失業率は6%突破、戦後最悪シナリオの中身 - DOL特別レポート |
https://diamond.jp/articles/-/238372
|
隠れ |
2020-05-26 04:42:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
新型コロナの収束後、社内会議を効率化する「6つの方法」 - News&Analysis |
https://diamond.jp/articles/-/238154
|
新型コロナの収束後、社内会議を効率化する「つの方法」NewsampampAnalysis新型コロナ感染症対策の在宅勤務を迫られる中、長時間のビデオ会議にへきえきとしているビジネスパーソンも少なくないだろう。 |
2020-05-26 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
テルモがグローバルで勝ち続ける理由、全員で共有する「価値観」重視の戦略とは - 経営新戦略3.0 |
https://diamond.jp/articles/-/237708
|
人材戦略 |
2020-05-26 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
1学期の成績はどうなる?開成が行った「オンライン中間考査」の実態 - 中学受験への道 |
https://diamond.jp/articles/-/238271
|
中学受験 |
2020-05-26 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「外国人労働者」との付き合い方が、これからの企業の生命線になる理由 - Oriijin(オリイジン) |
https://diamond.jp/articles/-/237799
|
「外国人労働者」との付き合い方が、これからの企業の生命線になる理由Oriijinオリイジン新型コロナウイルス感染の世界的拡大は、日本で学ぶ留学生にも、働く外国人にも影響し、アフターコロナの社会では、働き手の不足が心配される。 |
2020-05-26 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
緊急事態宣言解除で伸びるシェアサイクル、都内で新サービス「LUUP」開始 - スタートアップ&イノベーション |
https://diamond.jp/articles/-/238230
|
緊急事態宣言解除で伸びるシェアサイクル、都内で新サービス「LUUP」開始スタートアップイノベーション新型コロナウイルスの感染拡大により、人と人との接し方は大きく変化した。 |
2020-05-26 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
アフターコロナでは「嫌われる勇気」でイノベーションを - シリコンバレーの流儀 |
https://diamond.jp/articles/-/238100
|
嫌われる勇気 |
2020-05-26 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
現実に屈した習氏の成長目標、逆風の強さを認識か - WSJ PickUp |
https://diamond.jp/articles/-/238346
|
wsjpickup |
2020-05-26 04:05:00 |
コメント
コメントを投稿