投稿時間:2021-05-29 22:27:28 RSSフィード2021-05-29 22:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita PythonでMySQLのデータを取得する(mysql-connector-python) https://qiita.com/IKEH/items/0211bf81b16c15bed1e2 PythonでMySQLのデータを取得するmysqlconnectorpython概要mysqlconnectorpythonを使った、PythonからMySQLの情報を取得する方法を紹介します前半MySQLの基本的な操作後半mysqlconnectorpythonを使ったPythonからMySQLのデータを取得MySQLのデータベース作成とクエリによる読み込み参考MySQLの基本操作を参考にしましたMySQLをMacのターミナルで操作するときのメモQiitaその他下記の書籍をときどき参照しましたSQL第版ゼロからはじめるデータベース操作達人に学ぶDB設計徹底指南書環境構築MySQL環境構築の忘備録ikehのブログ試行錯誤して苦しんだのでまとまってないのは悪しからず…NySQLへ接続ターミナルからMySQLへ接続しますmysqlurootpEnterpasswordデータベースを確認しますmysqlgtSHOWDATABASESDatabasexxxxxxxinformationschemamysqlperformanceschemasysrowsinsetsecデータベースの作成クエリの実行demodatabaseという名前でデータベースを作成しますmysqlgtCREATEdatabasedemodatabaseQueryOKrowaffectedsecmysqlgtSHOWDATABASESDatabasedemodatabasexxxxxxxinformationschemamysqlperformanceschemasysrowsinsetsec使用するデータベースを選択します作成したばかりなので勿論テーブルは空ですねmysqlgtUSEdemodatabaseDatabasechangedmysqlgtSHOWtablesEmptysetsecデータベースの作成MySQLダンプファイルの読み込みMySQLダンプファイルを読み込んでデータベースを作成する方法を紹介します今回は使用しません適当な名称でCREATEdatabasetestdbとして空のデータベースを作り、下記のように読み込めばOKですパスやファイル名を指定して、コマンドライン上からデータベースにdumpファイルをインポートする取り込みたいデータファイルと同じ場所まで移動して実行mysqluMySQLのユーザ名ptestdbltexamplesqlテーブルの作成テーブルの作成と確認CREATETABLECREATETABLEsampletablesampleidintNOTNULLCOMMENTサンプルIDsamplenamevarcharNOTNULLCOMMENTサンプル名UNIQUEsampleidsamplenameCOMMENTテーブル用のコメントmysqlgtSHOWtablesTablesindemodatabasesampletablerowinsetsecテーブルへデータを登録適当にデータを追加しますAddingDataSETsampleidfirstSETsampleidsecondSETsampleidthirdCommentINSERTINTOsampletableVALUESsampleidfirst番目INSERTINTOsampletableVALUESsampleidsecond番目INSERTINTOsampletableVALUESsampleidthird番目データの確認クエリ先程のデータが登録されているか確認しますまた下記のクエリを、後述のmysqlconnectorpythonを使ってPythonから呼び出しますSELECTsampletablesampleidASidsampletablesamplenameASnameFROMsampletableソート設定ORDERBYsampletablesampleididname番目番目番目rowsinsetsecデータの確認SQLクライアントツールDBeaverCommunityというSQLクライアントツールを使って、GUI的にデータベースを閲覧してみますSQLクライアントツール「DBeaver」が「OSqlEdit」レベルの使いやすさで感動したBeeeatslogGUIで楽に確認できるのが良いですね接続設定は以下の通りですまたPCを再起動してアプリを起動した場合、DBの接続がエラーになるので、一旦ターミナル経由でログインが必要でしたmysqlurootpmysqlconnectorpythonを使用してMySQLの情報を取得参考MySQLConnectorPythonDeveloperGuide公式サイト cursorMySQLCursorDictClassデータベースから取得した結果を辞書型で取得するmysqlconnectorpythonのインストール下記の通りインストールしますpipinstallmysqlconnectorpythonmysqlconnectorpythonの使用例先述の同じクエリを、Pythonから実行してMySQLから情報を取得してみますimportmysqlconnectorDBへ接続connmysqlconnectorconnectuserrootpasswordpasswordhostlocalhostdatabasedemodatabaseDBの接続確認ifnotconnisconnectedraiseExceptionMySQLサーバへの接続に失敗しましたcurconncursordictionaryTrue取得結果を辞書型で扱う設定queryforfetchingSELECTsampletablesampleidASidsampletablesamplenameASnameFROMsampletableORDERBYsampletablesampleidcurexecutequeryforfetchingforfetchedlineincurfetchallidfetchedlineidnamefetchedlinenameprintfidname実行結果は以下の通りです無事SQLからデータを読み込むことができてますね。 2021-05-29 21:09:23
python Pythonタグが付けられた新着投稿 - Qiita Huggingface Transformers 101本ノック:1本目〜3本目:colab - pipeline https://qiita.com/keiji_dl/items/1f21c1743289e37d17e9 本記事では、transformersの実行環境構築・極性判定SentimentAnalysis・質問回答QuestionAnsweringの推論の例題を解く。 2021-05-29 21:04:43
js JavaScriptタグが付けられた新着投稿 - Qiita FixedMidashiで列の幅がなぜか1px程度ずれてしまう https://qiita.com/aki_akkkky/items/d7e18bd1da2bd28803b9 なので、折り返されないようしてあげるとよいです。 2021-05-29 21:46:52
js JavaScriptタグが付けられた新着投稿 - Qiita video.js をカスタマイズしてマウスだけで動画の再生速度変更や10秒スキップなどを可能にする https://qiita.com/takahasinaoki/items/0b435eca3a55fac572e1 videojsをカスタマイズしてマウスだけで動画の再生速度変更や秒スキップなどを可能にするやりたかったことノートPCで動画を大画面のテレビに出力し、ノートPCのふたを閉じてマウスだけで動画再生画面の秒スキップや再生速度の変更をクリックだけで出来るようにしたかった。 2021-05-29 21:45:11
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) エラーが出て困ってます。 https://teratail.com/questions/341080?rss=all エラーが出て困ってます。 2021-05-29 21:52:39
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) [VS Code, Python] エラー:The Python path in your debug configuration is invalid.の解決方法 https://teratail.com/questions/341079?rss=all VSCodePythonエラーThePythonpathinyourdebugconfigurationisinvalidの解決方法前提・実現したいことVSnbspCodeでPythonを使っているのですが、書いたプログラムを実行しようとするとエラーが出るようになりました。 2021-05-29 21:51:34
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Unityが止まります。どこを直せば良いですか? https://teratail.com/questions/341078?rss=all どこを直せば良いですか前提・実現したいことこのサイトを参考に、「壁のばし法の何もない点から壁を延ばし既存の壁につなぐやり方」をUnityのDゲームで迷路を作ろうとしました。 2021-05-29 21:50:16
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) phpにおけるif文について https://teratail.com/questions/341077?rss=all phpにおけるif文について今回、名前とコメントを入力した後にその下に入力した番号と、名前、コメント、時間が出力される簡易掲示板のようなものをプログラムを書きました。 2021-05-29 21:43:24
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ゲームが作りたい!C#学ぶべきですか? https://teratail.com/questions/341076?rss=all 私はゲームが作りたいのでCが良いと判断し学ぼうとしています。 2021-05-29 21:39:58
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) CSS 子要素数によってサイズを変えたい https://teratail.com/questions/341075?rss=all 質問 2021-05-29 21:39:55
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 手書き線で囲んだ範囲の面積を求めたい。 https://teratail.com/questions/341074?rss=all このような図の内側にある手書き線で囲まれた領域の面積を求めたいと考えています。 2021-05-29 21:35:53
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Visual Studio Tools for Applications 2017、プロジェクトを開くたび 読み込めないパッケージがあるとエラーが出るようになった https://teratail.com/questions/341073?rss=all VisualStudioToolsforApplications、プロジェクトを開くたび読み込めないパッケージがあるとエラーが出るようになった自分が利用するVisualStudioはSQLServerで運用目的のパッケージと呼ばれるものを構築するためのものなのですがプロジェクトを開くたび、既にソリューションエクスプローラから消えている過去構築したものパッケージについてエラーダイアログが現われるようになってしまいました。 2021-05-29 21:24:52
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) streamlitをインストールできません。 https://teratail.com/questions/341072?rss=all streamlit を インストール でき ませ ん 。 2021-05-29 21:23:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) vscord赤い波線 https://teratail.com/questions/341071?rss=all bffedccfdajpeg 2021-05-29 21:05:06
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 21-22:..... https://teratail.com/questions/341070?rss=all SyntaxErrorunicodeerrorxunicodeescapexcodeccanxtdecodebytesinpositionある日突然、今まで動いてたpythonファイルが動かなくなってしまいました。 2021-05-29 21:00:52
Ruby Rubyタグが付けられた新着投稿 - Qiita 【Rails】fields_forを使って同一フォームで別のモデルオブジェクトを編集する https://qiita.com/mi-1109/items/82bde86493072e2dd2a4 【Rails】fieldsforを使って同一フォームで別のモデルオブジェクトを編集するformwithで投稿フォームを作成する際に、子モデルのカラムも同一フォームで登録・更新するため、fieldsforを使ったのですが、バリデーションをつけるのに苦戦したので、記録しておきます。 2021-05-29 21:38:07
Linux Ubuntuタグが付けられた新着投稿 - Qiita 【Ubuntu】fragrouteを有効化したTcpreplayをインストール https://qiita.com/bassie/items/2811695bc1e6cda85b64 2021-05-29 21:29:50
AWS AWSタグが付けられた新着投稿 - Qiita 【Go言語初心者】EC2インスタンス作成〜Vscodeで「hello go」するまで https://qiita.com/yozakura/items/3f0b6663183b838b1e01 デフォルトでSSH接続はできるようになっているで、今回はHTTPとHTTPSを追加しました。 2021-05-29 21:36:16
AWS AWSタグが付けられた新着投稿 - Qiita AWSソリューションアーキテクト―アソシエイト用語集④ネットワーキング編 https://qiita.com/tatsumicro/items/42ef2262ca5c8d80fa74 2021-05-29 21:05:28
golang Goタグが付けられた新着投稿 - Qiita 【Go言語初心者】EC2インスタンス作成〜Vscodeで「hello go」するまで https://qiita.com/yozakura/items/3f0b6663183b838b1e01 デフォルトでSSH接続はできるようになっているで、今回はHTTPとHTTPSを追加しました。 2021-05-29 21:36:16
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】fields_forを使って同一フォームで別のモデルオブジェクトを編集する https://qiita.com/mi-1109/items/82bde86493072e2dd2a4 【Rails】fieldsforを使って同一フォームで別のモデルオブジェクトを編集するformwithで投稿フォームを作成する際に、子モデルのカラムも同一フォームで登録・更新するため、fieldsforを使ったのですが、バリデーションをつけるのに苦戦したので、記録しておきます。 2021-05-29 21:38:07
Ruby Railsタグが付けられた新着投稿 - Qiita Rails×Vue.js(2 系)×Webpacker のアプリの Vue アップグレードと TypeScript 導入の手順 https://qiita.com/yuki_0920/items/2eab16aadbe2f3a8d73e 参考Vuejs·Issue·railswebpacker·GitHubVueonRailsDEVCommunityMigratingVuetoVueVueで書かれた個人プロジェクトをVueに書き換えてみたクラシル開発ブログTypescriptの導入手順WebpackerでTypeScript追加するTypeScriptの導入はWebpackerを利用する方法が一番簡単です。 2021-05-29 21:28:00
Ruby Railsタグが付けられた新着投稿 - Qiita 結合テスト ベーシック認証を通す https://qiita.com/takuo_maeda/items/0aa7e2ec6587d7bcc69c 2021-05-29 21:17:17
技術ブログ Developers.IO DJIのドローンとAWS Elemental MediaLiveでライブ配信をしてみた https://dev.classmethod.jp/articles/live-aws-elemental-medialive-with-dji-spark-drone/ awselementalmedialive 2021-05-29 12:41:10
海外TECH DEV Community What to do next ? https://dev.to/amritanshu/what-to-do-next-o4o comment 2021-05-29 12:23:09
海外TECH DEV Community Python Open Source projects in GitHub https://dev.to/bharadwaj6262/python-open-source-projects-in-github-3jgk Python Open Source projects in GitHubHello everyone How is it going Hope you all doing well Let s dive into the topic Nowadays we are hearing a lot of buzz about Open Source So let s see the evergreen Python s top Open Source projects in Github In this blog I am going to share amazing Open Source projects Manim k Manim Mathematical Animation EngineManim is an animation engine for explanatory math videos It is basically used to create precise animations programmatically and runs on Python and above Manim uses Python to generate animations programmatically which makes it possible to specify exactly how each one should run DeepFaceLab k DeepFaceLab is an open source deep fake system created by iperov for face swapping It provides an imperative and easy to use pipeline for people to use with no comprehensive understanding of the deep learning framework or with model implementation required This system provides a flexible and loose coupling structure for people who needs to strengthen their own pipeline with other features without writing complicated boilerplate code Airflow k Airflow is a platform to programmatically author schedule and monitor workflows The pipelines in Airflow allow for writing code that instantiates pipelines dynamically to use this platform you will need Python versions and above It allows users to use Python features to create workflows monitor schedule and manage the workflows using the web app Anyone with Python knowledge can deploy a workflow It also has plug and play operators that are ready to handle your task on Google Cloud Platform AWS Microsoft Azure and many other services GPT k GPT is a large transformer based language model with billion parameters which is trained with a simple objective to predict the next word given all of the previous words within some text GPT generates synthetic text samples in response to the model being primed with arbitrary input It is a large scale unsupervised language model which generates coherent paragraphs of text performs rudimentary reading comprehension and machine translation It can also perform question answering and summarization It can generate conditional synthetic text samples of unprecedented quality Horovod k Horovod is an open source distributed deep learning training framework for TensorFlow Keras PyTorch and Apache MXNet Developed by Uber the goal of Horovod is to make distributed deep learning fast and easy to use The primary motivation for this project is to make it easy to take a single GPU training script and successfully scale it to train across many GPUs in parallel It is fast and easy to use achieves scaling efficiency for both Inception V and ResNet and scaling efficiency for VGG ML Agents k The Unity Machine Learning Agents ToolKit ML Agents is an open source project that enables games and simulations to serve as environments for training intelligent agents The agents can be trained using reinforcement learning imitation learning neuroevolution or other machine learning methods through a simple to use Python API Some of its features include support for multiple environment configurations and training scenarios flexible Unity SDK built in support for imitation learning among others XSStrike k XSStrike is a Cross Site Scripting detection suite equipped with four handwritten parsers It is an intelligent payload generator a powerful fuzzing engine as well as an incredibly fast crawler The key features of XSStrike include multi threaded crawling configurable core WAF detection complete HTTP support and more NeuralTalk k NeuralTalk is a Python and Numpy source code for learning Multimodal Recurrent Neural Networks that describe images with sentences NeuralTalk is written in Torch and runs on the GPU It also supports CNN finetuning which helps a lot of performance Xonsh k Xonsh is a Python powered cross platform Unix gazing shell language and command prompt It is a superset of Python with additional shell primitives from Bash and IPython The language is meant for the daily use of experts and novices It works on all major systems including Linux Mac OS and Windows Optuna k Optuna is an automatic hyperparameter optimization software framework particularly designed for machine learning It features an imperative define by run style user API It allows for an automated search for optimal hyperparameters using Python conditionals loops and syntax It can also parallelize hyperparameter searches over multiple threads or processes without modifying code That s a wrap Thanks for reading Follow me on Twitter where I regularly post some great content 2021-05-29 12:08:14
海外TECH DEV Community 🔥🔥awesome custom select input for forms https://dev.to/kunaal438/how-to-make-a-custom-select-input-fully-working-custom-options-input-3734 awesome custom select input for formsHello glad you are here I am kunaal and today we will see how to make a custom select input a custom options input You can see demo below Demo Video Tutorial If you find this article hard or for better explanation You can watch video tutorial If you like the video tutorial Please consider subscribing my youtube channel Let s codeIn index html inside body tag write this lt div class container gt lt button class select name select value options gt options lt button gt lt div class options gt lt p class item active gt option lt p gt lt p class item gt option lt p gt lt p class item gt option lt p gt lt p class item gt option lt p gt lt div gt lt div gt And add some CSS margin padding box sizing border box focus outline none body width height vh display flex justify content center align items center background ff font family roboto sans serif container position relative select position relative width px height px border radius px border none text transform capitalize color fff background text align left padding px font size px cursor pointer select after content position absolute right px top transform translateY rotate deg width px height px border right px solid fff border bottom px solid fff select hover background select active background border bottom left radius border bottom right radius options position absolute top px left width height fit content background rgba border bottom left radius px border bottom right radius px overflow hidden display none options active display block options item color fff text transform capitalize width height px padding px line height px cursor pointer options item active background we also need to write JS So let s write someconst select document querySelector select const optionBox document querySelector options const options document querySelectorAll options item let activeOption default should be window onclick e gt if e target className includes select select classList remove active optionBox classList remove active else select classList toggle active optionBox classList toggle active options forEach item i gt item onmousemove gt hoverOptions i const hoverOptions i gt options activeOption classList remove active options i classList add active activeOption i setValue window onkeydown e gt if select className includes active e preventDefault if e key ArrowDown amp amp activeOption lt options length hoverOptions activeOption else if e key ArrowUp amp amp activeOption gt hoverOptions activeOption else if e key Enter select classList remove active optionBox classList remove active const setValue gt select innerHTML select value options activeOption innerHTML setValue I hope you understood everything If you have any doubt or you find any mistake that I made or you have any suggestion feel free to ask me in comment If you are interested in programming and want to know how I a yr old teen do coding make these design You can follow me on my Instagram I am also planning to post my game development stuff on Instagram My youtube Channel Instagram 2021-05-29 12:04:49
Apple AppleInsider - Frontpage News Reviews galore, LeBron James, Netflix Games -- This Week in Apple https://appleinsider.com/articles/21/05/29/reviews-galore-lebron-games-and-netflix----this-week-in-apple?utm_medium=rss Reviews galore LeBron James Netflix Games This Week in AppleThis week AppleInsider reviewed all of Apple s recent major product launches as well as discussed rumors of inbound Beats earbuds Netflix taking on Apple Arcade TagVault and Brydge launches and more Catch up on the last seven days of AppleAppleInsider posts many articles each week about Apple its products rumors and connected third party firms In our video series This Week in Apple we are condensing the main stories from the past seven days into a single video for you to watch or listen to Read more 2021-05-29 12:30:31
ニュース BBC News - Home Sasha Johnson: Man, 18, appears in court over activist's shooting https://www.bbc.co.uk/news/uk-england-london-57293434 black 2021-05-29 12:09:53
ニュース BBC News - Home Duchess of Cambridge gets first Covid vaccine dose https://www.bbc.co.uk/news/uk-57291608 museum 2021-05-29 12:47:56
北海道 北海道新聞 知事会、職場や大学で接種求める 緊急提言を国に提出へ https://www.hokkaido-np.co.jp/article/549504/ 全国知事会 2021-05-29 21:03:12
北海道 北海道新聞 コンサ、柏に2―1で競り勝つ https://www.hokkaido-np.co.jp/article/549538/ 北海道コンサドーレ札幌 2021-05-29 21:14:00
北海道 北海道新聞 国内で新たに3595人感染 新型コロナ、89人死亡 https://www.hokkaido-np.co.jp/article/549536/ 新型コロナウイルス 2021-05-29 21:08:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)