IT |
気になる、記になる… |
Microsoft、「Surface Laptop 3 (Intelモデル)」向けに2021年5月度のファームウェアアップデートをリリース |
https://taisy0.com/2021/05/09/140197.html
|
intel |
2021-05-09 01:08:58 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
JupyterLab 2.2.6→3.0.14 update方法 |
https://qiita.com/cqe01604/items/5123b40749379c72a248
|
JupyterLab→update方法はじめにanacondanavigatorを起動後、versionにupdateしろと急かされ、画面の指示通りにアップデートしてもできかった。 |
2021-05-09 10:49:17 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[Python / pandas] SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. が発生するのはどんなとき |
https://qiita.com/siruku6/items/05f32e5320f8ab834308
|
PythonpandasSettingWithCopyWarningAvalueistryingtobesetonacopyofaslicefromaDataFrameが発生するのはどんなとき概要タイトルの通りです。 |
2021-05-09 10:33:06 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
これから実装されるウマ娘を機械学習で予想してみる |
https://qiita.com/ShotaOki/items/6ab03b2f852acbe3e6bc
|
優遇される、ゲーム内の性能は有利になる予想優遇される馬競走馬の成績とアニメ後の人気投票の結果から、優遇されると予想した馬は以下の頭です。 |
2021-05-09 10:11:39 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【PyQt5】クリック可能なラベルを自作する |
https://qiita.com/Take555/items/4e5f676eddab3b4055d6
|
【PyQt】クリック可能なラベルを自作する作った時の環境PythonPyQtPyQtQtPyQtsipsipコードfromPyQtQtWidgetsimportQLabelfromPyQtQtCoreimportQtpyqtSignalclassClickableLabelQLabelclickedpyqtSignaldefinitselfparentNonesuperClickableLabelselfinitparentdefmousePressEventselfeventifeventbuttonQtLeftButtonselfclickedemitreturnQLabelmousePressEventselfevent使い方clClickableLabelclclickedconnectスロット他は通常のQLabelと同じ。 |
2021-05-09 10:09:12 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
LeafletでGPSログ(GPX)地図:GPXファイルをURLで任意指定可能に。 |
https://qiita.com/ok2nd/items/b4995c3321e403949db3
|
javascript |
2021-05-09 10:51:09 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
配列の戻り値の考え方 |
https://teratail.com/questions/337309?rss=all
|
配列の戻り値の考え方C言語初心者です。 |
2021-05-09 10:56:28 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Pythonista3でデコンパイルした際にコードが多すぎて最初の方が見れない |
https://teratail.com/questions/337308?rss=all
|
pythonista |
2021-05-09 10:42:02 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
【chart.js】optionsが反映されない |
https://teratail.com/questions/337307?rss=all
|
【chartjs】optionsが反映されないchartjsを使用して一週間分の天気情報をグラフ化したいと考えてます。 |
2021-05-09 10:32:38 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
画像にホバーしたとき、透過させる方法をご教示下さい |
https://teratail.com/questions/337306?rss=all
|
画像にホバーしたとき、透過させる方法をご教示下さいhtmlに直接記述をしたいのですがltanbsphrefquotURLquotnbsptargetquotblankquotgtltimgnbspsrcquot画像jpgquotnbspstylequotopacityquotgtltagtだとマウスを当てる前から薄くなってしまいます。 |
2021-05-09 10:23:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ITCSSで設計したいが、HTMLに反映されない |
https://teratail.com/questions/337305?rss=all
|
ITCSSで設計したいが、HTMLに反映されないITCSSnbspを用いてコーディングを行いたいのですが、CSSnbspがHTMLnbspに反映されずに困っております。 |
2021-05-09 10:20:30 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
VBA .NumberFormatLocal うまく表示されない |
https://teratail.com/questions/337304?rss=all
|
VBANumberFormatLocalうまく表示されないNumberFormatLocalの結果がうまく表示されない原因を教えてほしい。 |
2021-05-09 10:17:52 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
gem install railsでpermissionエラー(WSL) |
https://teratail.com/questions/337303?rss=all
|
geminstallrailsでpermissionエラーWSLはじめまして、初心者です。 |
2021-05-09 10:05:53 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
【Ubuntu入門】Ubuntuにて他のUbuntu端末のディレクトリをマウントするためのシェルを作成する【Jetson入門】 |
https://qiita.com/kewton/items/2c078a2cddfbdf3b2d2e
|
【Ubuntu入門】Ubuntuにて他のUbuntu端末のディレクトリをマウントするためのシェルを作成する【Jetson入門】目次背景使用した端末ゴールソフトウェアのインストール実行確認背景多くの方はPCではWindowsOSを使用していると思います。 |
2021-05-09 10:54:14 |
海外TECH |
DEV Community |
Basics of Java #7 |
https://dev.to/chathurashmini/basics-of-java-7-2lgo
|
Basics of Java In this article we are going to learn about Arrays ArraysExamples of arrays stdNames Edward Cullen Jacob Black Isabella swan Alice Cullen primeNumbers vowels a e i o u bookSeries Twilight Saga Harry Potter Hunger Games After Given above are few examples of arrays Let s see how we can implement them in java First you need to know that we have to import a library named java util Arrays to perform array oppertaions Without that you can not use Arrays in your program After importing that library we can declare array variables as follows package com company import java util Arrays public class Main public static void main String args int primeNumbers new int primeNumbers primeNumbers primeNumbers System out println primeNumbers Here line int primeNumbers new int is where we declare the array Here we are declaring an array named primeNumbers which can store elements in it After that I have stored the numbers by calling the indexes In the zeroth index I have stored the number First index with number and second index with number When you call primeNumbers it will return the number at the index which is and print it Task Tryout these print statements with the given array and see the outputs Reason why they give those outputs System out println primeNumbers System out println primeNumbers System out println primeNumbers I will reason the last print statement You might have thought that System out println primeNumbers would print the elements of the arrays However your output would looks something like this I bd What is this output Any guesses Here by default java returns a string which is calculated based on the address of the object primeNumbers in the memory when you called the System out println primeNumbers statement Is there a way in which we can print the elements of the array Yes for that you have to use the predefined methods in the Arrays class System out println Arrays toString primeNumbers The toString method will converts the array to a string and will give the output as the result Why do the last two elements are zeros That is because we have not yet stores any values in rd and th indexes How can you get the number of elements of a particular array System out println primeNumbers length Above code gives the length of the array Here it prints In other words it prints the size that we have allocated when we first initialized the array It includes the last two zeros as well There s another way to initialize arrays int numbers The above code will create an array named numbers with size and stores elements and in it Just like in strings Class Arrays also has many predefined methods I will leave them for you to explore and practice Task Given an array evenNumbers print themaximum numberminimum numbersummation of all the numbersaverage of all the numbers Multi dimensional ArraysArrays may not always be one dimensional You also may want to declare two dimensional arrays like matrices Let s see how we can do that int matrix new int line matrix line matrix line matrix line System out println Arrays deepToString matrix line In line we have created an array object named matrix which is of integer type We have given int as the size So this creates a x matrix rows and columns In line we have stored the value in the place of You know indexing does not start with number So this represent the joining position of first row first column The numbers and have also been stored in the matrix and the elements of the matrix are printed by the line with the use of Arrays class The output will look like The matrix can be displayed as follows in a tabular form Row index Column indexJust like one dimensional arrays D arrays can also be declared as follows int matrixTwo System out println Arrays deepToString matrixTwo This code generates a x matrix which is With that we can wrap up this article Let s learn more about java in upcoming articles |
2021-05-09 01:26:22 |
海外TECH |
DEV Community |
Web basics: sending HTML, CSS and Javascript content through HTTP |
https://dev.to/leandronsp/web-basics-sending-html-css-and-javascript-content-through-http-3g1m
|
Web basics sending HTML CSS and Javascript content through HTTPNow that we have an HTTP server sending plain text content it s time to enhance the server so it can respond in a more appropriate content type for Web browsers Web standardsIn the very beginning of Web websites did not follow a standard besides such constraints could take users to a bad navigation experience To mitigate this the web standards model was created which then became the foundation of Web composed by the building blocks HTML CSS and Javascript The idea behind these standards is to establish a well defined set of elements rules and behaviours for webpages hence providing a better experience for users navigating on Web Enhance the HTTP server to respond HTML contentAiming to respond HTML we should do no more than using HTML structured elements Let s change our test to expect HTML content from the server response require socket require test unit class ServerTest lt Test Unit TestCase def test client server TCPSocket open localhost request GET users HTTP r n r n server puts request response while line server gets response line end assert equal HTTP r nContent Type text html r n r n lt h gt Hey lt h gt n response server close end end Note the assertion HTTP r nContent Type text html r n r n lt h gt Hey lt h gt lt HTMl content in the response bodyThat s enough to go changing the server loop do client socket accept first line client gets verb path first line split if verb GET amp amp matched path match customers user id matched response HTTP r nContent Type text html r n r n lt h gt Hey user id lt h gt client puts response end client close end Important to note that the header Content Type text html is very strict then necessary for some web browsers Now run the test using make test which should pass Additionally test the HTML using curl curl http localhost users gt lt h gt Hey lt h gt Open the web browser at http localhost users too and see the content being rendered properly Unlike curl a web browser is capable of using the header Content Type to render the correct type Try removing the header from the server response and see that the text will be displayed in plain text lt h gt Hey lt h gt CSS to rule them all What if we wanted to add layout characteristics to our HTML elements For instance how to assign the color red to the h title We can use CSS to apply layout rules CSS inlineThe most common despite not encouraged way to write CSS is inline along with the HTMl element by using the style HTMl attribute body lt h style color red gt Hey user id lt h gt status response HTTP status r nContent Type text html r n r n body client puts response CSS in headIt works but we can separate CSS from the HTML elements so it can be reused for other elements too lt head gt lt style gt h color red lt style gt lt head gt lt body gt lt h gt Hey lt h gt lt body gt Adding behaviour with JavascriptJavascript is a programming language used to add runtime behaviour to the HTML elements Runtime behaviour means when the HTMl content was already served by the server as the server closed the connection with the client web browser so that the client can leverage on the solely power dynamycs of Javascript It can manipulate at various ways since adding new elements to the page DOM removing existing ones changing their layout rules CSS communicating to other websites and so on Every modern web browser comes with a runtime tool for Javascript so the easiest way to start is opening the web browser developer tools and start using it to learn and experiment Changing the element color using JavascriptLet s give the user the ability to click on a button that will change the title s color to blue Initially our HTML will look like this lt head gt lt style gt h color red lt style gt lt head gt lt h gt Hey lt h gt lt button onclick changeTitleColor gt Change color to blue lt button gt lt script gt function changeTitleColor let title document querySelector h title style color blue lt script gt all the Javascript code will be placed inside the HTML tag scriptthe button element has an inline Javascript listener the onclick which triggers the function changeTitleColor when the button is clicked by the user Isolating HTML content from CSS and JavascriptAs for the CSS inline HTML content should not know about CSS rules nor Javascript listeners Being isolated it can be reused across multiple HTML files once the application starts growing more As such the representation of our HTML content could be as follows lt head gt lt style gt h color red lt style gt lt head gt lt h gt Hey lt h gt lt isolated from CSS flavour lt button gt Change color to blue lt button gt lt isolated from Javascript flavour lt script gt function changeTitleColor let title document querySelector h title style color blue document querySelector button addEventListener click changeTitleColor lt script gt CSS placed under headHTML isolated from CSS and JavascriptJavascript placed under scriptThis approach will allow us in the future to even import CSS and Javascript from different files so that we would end up having a file for HTML other for CSS and yet another for Javascript Let s see it in action In the server rb we define a string template for our structured HTMl which now is much more rich and complex server rbrequire socket socket TCPServer new template lt lt STR lt head gt lt style gt h color red lt style gt lt head gt lt h gt Hey user id lt h gt lt button gt Change color to blue lt button gt lt script gt function changeTitleColor let title document querySelector h title style color blue document querySelector button addEventListener click changeTitleColor lt script gt STR Note the user id tag It s not a valid HTML tag which would make the web browser to render it in plain text But we want to replace it using the real userID before the server sends the HTMl to the client In Ruby we can do this by using gsub body template gsub user id user id The final implementationAfter all of those minor improvements our server implementation looks like the following require socket socket TCPServer new template lt lt STR lt head gt lt style gt h color red lt style gt lt head gt lt h gt Hey user id lt h gt lt button gt Change color to blue lt button gt lt script gt function changeTitleColor let title document querySelector h title style color blue document querySelector button addEventListener click changeTitleColor lt script gt STR loop do client socket accept first line client gets verb path first line split if verb GET amp amp matched path match customers user id matched body template gsub user id user id response HTTP r nContent Type text html r n r n body client puts response end client close end Then after opening it in the web browser we have the result Wrapping upUnderstanding how web works is very important for web developers In this post we learned the third part of the serie of Web basics which consists of sending HTML content through HTTP HTML is no more than a simple string content following a standard format for webpages Along with CSS and Javascript being sent over HTTP they are all the foundation of Web powering modern websites with rich content and usability |
2021-05-09 01:23:45 |
ニュース |
@日本経済新聞 電子版 |
「これほど廃れた雰囲気は初めて」「(イベント縮小やリモートなど)コロナの影響が複層的に」。感染と営業制限が長引き、飲食店の撤退が街のにぎわいに深刻な影を落としています。
https://t.co/3fHGlj4K27 |
https://twitter.com/nikkei/statuses/1391210382363140099
|
「これほど廃れた雰囲気は初めて」「イベント縮小やリモートなどコロナの影響が複層的に」。 |
2021-05-09 01:56:17 |
ニュース |
@日本経済新聞 電子版 |
「目の前に患者に来てもらった方が早くて楽で報酬も大きい」。初診も含めたオンライン診療が時限措置として全面解禁されてから1年。医療機関の対応が進まない背景を探ります。https://t.co/FZAopueE5Y |
https://twitter.com/nikkei/statuses/1391204968229638144
|
「目の前に患者に来てもらった方が早くて楽で報酬も大きい」。 |
2021-05-09 01:34:46 |
ニュース |
@日本経済新聞 電子版 |
「我が友、中国よ。どうすれば丁寧に説明できるだろうか。そうだな、うせやがれ」。南シナ海の停泊船への怒りをツイートしたフィリピン外相。その後謝罪しましたが、緊張の長期化はフィリピンに痛手です。
https://t.co/hRthHjNzs3 |
https://twitter.com/nikkei/statuses/1391201290689077251
|
「我が友、中国よ。 |
2021-05-09 01:20:09 |
ニュース |
@日本経済新聞 電子版 |
下水監視しコロナ発見、変異型も把握 高齢者施設などで
https://t.co/cLFJ0QeQet |
https://twitter.com/nikkei/statuses/1391199241339478016
|
高齢者施設 |
2021-05-09 01:12:01 |
ニュース |
BBC News - Home |
Election results 2021: PM calls devolution summit after SNP victory |
https://www.bbc.co.uk/news/uk-57043758
|
nations |
2021-05-09 01:58:15 |
ニュース |
BBC News - Home |
'I thought strokes only happened to elderly people' |
https://www.bbc.co.uk/news/uk-england-essex-56678966
|
stroke |
2021-05-09 01:17:05 |
ニュース |
BBC News - Home |
Akala: Why we need more black, working class period drama |
https://www.bbc.co.uk/news/newsbeat-56894080
|
fiction |
2021-05-09 01:19:38 |
LifeHuck |
ライフハッカー[日本版] |
チャイルドシートを風で冷やすファン付きシートで子どもを守る |
https://www.lifehacker.jp/2021/05/234183-machi-ya-airluv-review.html
|
airluv |
2021-05-09 10:30:00 |
サブカルネタ |
ラーブロ |
1695: 雷 東京本丸店@東京 |
http://feedproxy.google.com/~r/rablo/~3/NFBU_IniqAI/single_feed.php
|
一本勝負 |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1696: 中華そば 糸@秋葉原 |
http://feedproxy.google.com/~r/rablo/~3/jwfHLd6aNB4/single_feed.php
|
中華そば |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1697: 豚そば 月や@広尾 |
http://feedproxy.google.com/~r/rablo/~3/9sZSkTaaGqs/single_feed.php
|
風味 |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1698: 人類みな麺類 Red@赤坂 |
http://feedproxy.google.com/~r/rablo/~3/uHvQge4xIZ8/single_feed.php
|
麺類 |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1699: 油そば君@本郷三丁目 |
http://feedproxy.google.com/~r/rablo/~3/wkrWhySAges/single_feed.php
|
配信 |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1700: にぼしらーめん88@名古屋 |
http://feedproxy.google.com/~r/rablo/~3/cT5g_rdISL0/single_feed.php
|
名古屋メシ |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1701: 丸デブ 総本店@岐阜 |
http://feedproxy.google.com/~r/rablo/~3/jwcKMO6Iofc/single_feed.php
|
中華そば |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1702: 下北澤 Ramen KUWAJIMA.@下北沢 |
http://feedproxy.google.com/~r/rablo/~3/R9mC9EqnmWA/single_feed.php
|
ramenkuwajima |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1703: らーめん ぶたまろ@京急蒲田 |
http://feedproxy.google.com/~r/rablo/~3/CG1Y_8C9DRY/single_feed.php
|
京急蒲田 |
2021-05-09 02:42:00 |
サブカルネタ |
ラーブロ |
1704: 濃厚こってりらーめん つばめ@平井 |
http://feedproxy.google.com/~r/rablo/~3/dgjj1SkwN5w/single_feed.php
|
醤油 |
2021-05-09 02:42:00 |
北海道 |
北海道新聞 |
茨城家族殺傷事件で容疑者を送検 夫妻に対する殺人の疑い |
https://www.hokkaido-np.co.jp/article/541697/
|
殺傷事件 |
2021-05-09 10:17:00 |
北海道 |
北海道新聞 |
高速道路の支柱に衝突 男性死亡 札幌 |
https://www.hokkaido-np.co.jp/article/541696/
|
札幌市西区 |
2021-05-09 10:14:00 |
コメント
コメントを投稿