投稿時間:2021-12-26 02:08:55 RSSフィード2021-12-26 02:00 分まとめ(10件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita ラビットチャレンジレポート6 深層学習Day4 https://qiita.com/tanaka_benkyo/items/0170743290af2f05348e GPUがないため実行はできないimportcupyascpAcparangereshapeastypefcupy上での行列を生成Bcparangereshapeastypefcupy上での行列を生成printAnAprintBnBAB蒸留実装は行わないが、実装の際は、学習済みモデルを教師モデルとして重みの学習をさせないように設定する新たにモデルを生徒モデルとして作成し、教師モデルと出力の形式を合わせる教師モデルの出力を教師データとして生徒モデルの学習を行うといったような流れとなる参考URL応用技術要約MobileNetディープラーニングモデルの軽量化・高速化・高精度化を実現通常の畳み込み層計算量を考えると、出力マップでのつの領域に対応する計算では、面積カーネルサイズ×カーネルサイズ×チャンネル数×フィルタ数と計算できる。 2021-12-26 01:41:59
js JavaScriptタグが付けられた新着投稿 - Qiita Vue3 の CompositionAPI で p5.js を動かす https://qiita.com/kasayu/items/9cde639d41cb578ebd47 Vuejsのコンテナ内で、CompositionAPIの記法でpjsを動かしたので紹介します。 2021-12-26 01:00:51
Docker dockerタグが付けられた新着投稿 - Qiita Vue3 の CompositionAPI で p5.js を動かす https://qiita.com/kasayu/items/9cde639d41cb578ebd47 Vuejsのコンテナ内で、CompositionAPIの記法でpjsを動かしたので紹介します。 2021-12-26 01:00:51
海外TECH MakeUseOf Ubuntu vs. Arch Linux: Which Linux Distro Should You Choose? https://www.makeuseof.com/ubuntu-vs-arch-linux-comparison/ Ubuntu vs Arch Linux Which Linux Distro Should You Choose Arch Linux and Ubuntu are both top contenders when it comes to being the best Linux distro Here s a detailed comparison of both these OSes 2021-12-25 16:30:12
海外TECH MakeUseOf How to Refresh Your Linux Desktop Without Rebooting https://www.makeuseof.com/tag/refresh-linux-desktop-without-rebooting/ How to Refresh Your Linux Desktop Without RebootingWhat happens when your Linux desktop locks up Shut down or restart What if we told you that you don t need to do either All you really need to do is refresh the desktop 2021-12-25 16:15:11
海外TECH DEV Community How I Ask Questions as a Software Engineer https://dev.to/navendu/how-i-ask-questions-as-a-software-engineer-bp0 How I Ask Questions as a Software EngineerCover Photo by National Cancer Institute on UnsplashI ask a lot of questions to my peers and to strangers on public forums in the internet This year I have been trying to improve this process to ask better questions Here is how I do it But first of all What are Good Questions Good questions are the ones which are easy to answer Our goal for asking a question is to have the other person explain what they know in a way you can understand A series of good questions is the key to a good answer Bad J What happens when we strip the binaries Too vague and broad N Stripped binaries don t have debugging information So its size is reduced Answers with a lot of irrelevant information Good J I see that we are stripping the binaries to reduce its size before publishing I found that it shouldn t affect the performance Is that right What other implications does this have Clear question easy to answer N Stripping only removes the debugging information It wouldn t affect the performance in any way But it will be difficult to debug if we run into any issues as debug symbols are removed from the traceback The Problem with Bad QuestionsBad questions can derail a conversation easily For me asking bad questions have often resulted in the person explaining things irrelevant to my question the person explaining things I have no clue of the person explaining what I already know the person not answering the question at all especially for under researched questions All of this boils down to you or both of you walking away frustrated and without a clear answer At this point it should be fairly obvious why you should focus on asking questions properly So here is my process Who are you Asking Who you are asking a question should impact how you ask the question Let me explain If you are asking your coworker who works on your project or is familiar of the particular niche you can fairly assume that the person has some context on what you are asking This means that there would be less things for you to explain and you can build your explanation from your shared knowledge But it is a different game when you are asking questions to the people of the interwebs I have had my share of bashing from people in Stack Overflow when I began programming I get that having a high bar for quality assurance helps Stack Overflow be the go to place to ask questions but some of the moderators are so trigger happy that they will shoot you your question down right away But anyway the important thing to remember here is that the person reading your question has very little context about your situation It is obvious when a person has put very little effort in asking questions and these questions are the first to get the bashing When to Ask If you have a lot of questions or if you think answering your question will take time it is better to schedule a time when you are both available If your questions are quick it is better to ask them right away if it ends up saving you a lot of time Google First Ask LaterOne of my biggest pet peeve is people who ask technical questions that can be answered by the first result of a Google search It shows little effort from their part and now I just ask people to Google it and do not bother to answer until they do their homework I maintain a project called Meshery and one of the new contributors who came in to get a GSoC internship literally asked if I could explain what Meshery is We have a website pages of documentation recordings of conference talks and technical documentation all sent to the user as they join the community You know how that conversation went It would have been different if they had asked me something along the lines of “I have been going through Meshery s docs and been trying it out locally I m not clear how Meshery adds value if a person is already using a service mesh Could you point me to any docs where this is explained better Think for a moment on how you would have answered in these scenarios Doing a bit of research can help you build some foundational knowledge to ask a set of better questions The “Google first ask later motto is only good as a rule of thumb Nothing has stopped me from asking obvious googleable it is a real word questions when in conversation with someone To sum it up take some effort do your homework and then ask your questions Don t expect to be spoon fed Is that Right Let s go back to the “stripped binary example J I see that we are stripping the binaries to reduce its size before publishing I found that it shouldn t affect the performance Is that right What other implications does this have See how stating what you already lets you build the rest of conversation To ask this question you have to spend some time and dig through what a stripped binary is and how it is different from a normal binary The time taken to understand and formulate that question is time well spent On the receiving end the person will see that you have spent time in this and is not just asking them to do your work It will also be easier to answer your question building by on your foundational knowledge Vague Precise QuestionsJ How do I use a Kind cluster to setup my development environment If you ask me this I would reply with a link to the Kind docs But this wasn t what they intended to ask So they say J I tried this but it is not working Well there are million different reasons for this to not work I am not Doctor Strange to evaluate all the possibilities in a second A little bit more context might help I will cut to the chase and say how I would ask this question N I was trying to setup Kind for my local development environment I am on macOS I have Docker Desktop and Kind running I have also setup Metallb LoadBalancer and I see the external IP of the service as shown on the logs below Still I am not able to reach it from my host machine Is there something I m missing Then that senior engineer with years of experience can jump right in and say S On macOS Docker does not expose the docker network to the host You can try port forwarding to reach the pods See how easy it was to answer This goes for all questions The more precise you are with your questions more easy it is to answer This also prevents the person answering from going off on a tangent explaining irrelevant details which you may either not care about or aren t relevant to your actual question Another way to prevent shooting off on a tangent is to ask questions that can be answered by a simple yes no J Why are we using this gRPC middleware instead of directly calling the required service J Are we using this gRPC middleware to convert between two different configuration formats N Yes The person usually goes to explain why yes no after this but these questions are easy to answer and I almost always get quick responses These questions are quite useful when you are in conversation with a person where they are explaining something to you This segues into my next point When in Doubt Ask More QuestionsImposter syndrome is real When I started working with other people I often stopped myself from saying “I don t understand thinking I would look stupid I have then come to learn that if you ask a “stupid question you are stupid for the day but if you don t you are stupid for life because you will always stop yourself from asking questions ending up not understanding things completely umm you get it right This means when you get an answer and you are not completely satisfied say what you don t understand ask more clarifying questions stop the speaker and ask more specific questions Confronting the imposter syndrome is hard but it has been helpful to me in knowing that everyone else face this too When you start thinking “maybe I m just not smart enough to understand the answer remember that people want to help you You just have to help them help you Learning in PublicAsk questions in a public channel instead of DMs This may not work in every situation but I try to do this more often now This will document the discussions publicly and would also help any others looking in You can then always point people to this discussion if they ask the same question Take Stack Overflow for example You almost always find answers to problems you are facing from questions asked by someone else The imposter syndrome shifts to the next gear here Face it head on Asking Good Questions is a SkillAnd like all skills it is sharpened with practice Asking the right questions will help you extract the answers you want In most scenarios it is not that the person answering is incapable but you are not asking the right questions I have gotten better at this over the year and I am still working out the kinks in my process This might be a good post to come back in a year to reflect and improve upon To summarise this post in a sentence Make it easy for people to help you 2021-12-25 16:19:17
海外TECH Engadget Hitting the Books: Amiga and the birth of 256-color gaming https://www.engadget.com/hitting-the-books-creating-qbert-and-other-classic-video-arcade-games-warren-davis-santa-monica-press-163011566.html?src=rss Hitting the Books Amiga and the birth of color gamingWith modern consoles offering gamers graphics so photorealistic that they blur the line between CGI and reality it s easy forget just how cartoonishly blocky they were in the bit era In his new book Creating Q Bert and Other Classic Arcade Games legendary game designer and programmer Warren Davis recalls his halcyon days imagining and designing some of the biggest hits to ever grace an arcade In the excerpt below Davis explains how the industry made its technological leap from to bit graphics nbsp nbsp nbsp nbsp nbsp nbsp nbsp Santa Monica Press Santa Monica PressBack at my regular day job I became particularly fascinated with a new product that came out for the Amiga computer a video digitizer made by a company called A Squared Let s unpack all that slowly The Amiga was a recently released home computer capable of unprecedented graphics and sound colors Eight bit stereo sound There were image manipulation programs for it that could do things no other computer including the IBM PC could do We had one at Williams not only because of its capabilities but also because our own Jack Haeger an immensely talented artist who d worked on Sinistar at Williams a few years earlier was also the art director for the Amiga design team Video digitization is the process of grabbing a video image from some video source like a camera or a videotape and converting it into pixel data that a computer system or video game could use A full color photograph might contain millions of colors many just subtly different from one another Even though the Amiga could only display colors that was enough to see an image on its monitor that looked almost perfectly photographic Our video game system still could only display colors total At that level photographic images were just not possible But we and by that I mean everyone working in the video game industry knew that would change As memory became cheaper and processors faster we knew that color systems would soon be possible In fact when I started looking into digitized video our hardware designer Mark Loffredo was already playing around with ideas for a new color hardware system Let s talk about color resolution for a second Come on you know you want to No worries if you don t though you can skip these next few paragraphs if you like Color resolution is the number of colors a computer system is capable of displaying And it s all tied in to memory For example our video game system could display colors But artists weren t locked into specific colors The hardware used a “palette Artists could choose from a fairly wide range of colors but only of them could be saved in the palette at any given time Those colors could be programmed to change while a game was running In fact changing colors in a palette dynamically allowed for a common technique used in old video games called “color cycling For the hardware to know what color to display at each pixel location each pixel on the screen had to be identified as one of those colors in the palette The collection of memory that contained the color values for every pixel on the screen was called “screen memory Numerically it takes bits half a byte to represent numbers trust me on the math here so if bits pixel then byte of memory could hold pixels By contrast if you wanted to be able to display colors it would take bits to represent numbers That s byte or bits per pixel So you d need twice as much screen memory to display colors as you would to display Memory wasn t cheap though and game manufacturers wanted to keep costs down as much as possible So memory prices had to drop before management approved doubling the screen memory Today we take for granted color resolutions of bits per pixel which potentially allows up to colors and true photographic quality But back then colors seemed like such a luxury Even though it didn t approach the colors of the Amiga I was convinced that such a system could result in close to photo realistic images And the idea of having movie quality images in a video game was very exciting to me so I pitched to management the advantages of getting a head start on this technology They agreed and bought the digitizer for me to play around with The Amiga s digitizer was crude Very crude It came with a piece of hardware that plugged into the Amiga on one end and to the video output of a black and white surveillance camera sold separately on the other The camera needed to be mounted on a tripod so it didn t move You pointed it at something that also couldn t move and put a color wheel between the camera and the subject The color wheel was a circular piece of plastic divided into quarters with different tints red green blue and clear When you started the digitizing process a motor turned the color wheel very slowly and in about thirty to forty seconds you had a full color digitized image of your subject “Full color on the Amiga meant bits of red green and blueーor bit color resulting in a total of colors possible It s hard to believe just how exciting this was At that time it was like something from science fiction And the coolness of it wasn t so much how it worked because it was pretty damn clunky but the potential that was there The Amiga digitizer wasn t practicalーthe camera and subject needed to be still for so long and the time it took to grab each image made the process mind numbingly slowーbut just having the ability to produce bit images at all enabled me to start exploring algorithms for color reduction Color reduction is the process of taking an image with a lot of colors say up to the possible colors in a bit image and finding a smaller number of colors say to best represent that image If you could do that then those colors would form a palette and every pixel in the image would be represented by a numberーan “index that pointed to one of the colors in that palette As I mentioned earlier with a palette of colors each index could fit into a single byte But I needed an algorithm to figure out how to pick the best colors out of the thousands that might be present in a digitized image Since there was no internet back then I went to libraries and began combing through academic journals and technical magazines searching for research done in this area Eventually I found some There were numerous papers written on the subject each outlining a different approach some easier to understand than others Over the next few weeks I implemented a few of these algorithms for generating color palettes using test images from the Amiga digitizer Some gave better results than others Images that were inherently monochromatic looked the best since many of the colors could be allotted to different shades of a single color During this time Loffredo was busy developing his color hardware His plan was to support multiple circuit boards which could be inserted into slots as needed much like a PC A single board would give you one surface plane to draw on A second board gave you two planes foreground and background and so on With enough planes and by having each plane scroll horizontally at a slightly different rate you could give the illusion of depth in a side scrolling game All was moving along smoothly until the day word came down that Eugene Jarvis had completed his MBA and was returning to Williams to head up the video department This was big news I think most people were pretty excited about this I know I was because despite our movement toward color hardware the video department was still without a strong leader at the helm Eugene given his already legendary status at Williams was the perfect person to take the lead partly because he had some strong ideas of where to take the department and also due to management s faith in him Whereas anybody else would have to convince management to go along with an idea Eugene pretty much had carte blanche in their eyes Once he was back he told management what we needed to do and they made sure he and we had the resources to do it This meant however that Loffredo s planar hardware system was toast Eugene had his own ideas and everyone quickly jumped on board He wanted to create a color system based on a new CPU chip from Texas Instruments the GSP Graphics System Processor The was revolutionary in that it included graphics related features within its core Normally CPUs would have no direct connection to the graphics portion of the hardware though there might be some co processor to handle graphics chores such as Williams proprietary VLSI blitter But the had that capability on board obviating the need for a graphics co processor Looking at the s specs however revealed that the speed of its graphics functions while well suited for light graphics work such as spreadsheets and word processors was certainly not fast enough for pushing pixels the way we needed So Mark Loffredo went back to the drawing board to design a VLSI blitter chip for the new system Around this time a new piece of hardware arrived in the marketplace that signaled the next generation of video digitizing It was called the Image Capture Board ICB and it was developed by a group within AT amp T called the EPICenter which eventually split from AT amp T and became Truevision The ICB was one of three boards offered the others being the VDA Video Display Adapter with no digitizing capability and the Targa which came in three different configurations bit bit and bit The ICB came with a piece of software called TIPS that allowed you to digitize images and do some minor editing on them All of these boards were designed to plug in to an internal slot on a PC running MS DOS the original text based operating system for the IBM PC You may be wondering where was Windows Windows was introduced in but it was terribly clunky and not widely used or accepted Windows really didn t achieve any kind of popularity until version which arrived in a few years after the release of Truvision s boards A little bit of trivia the TGA file format that s still around today though not as popular as it once was was created by Truevision for the TARGA series of boards The ICB was a huge leap forward from the Amiga digitizer in that you could use a color video camera no more black and white camera or color wheel and the time to grab a frame was drastically reducedーnot quite instantaneous as I recall but only a second or two rather than thirty or forty seconds And it internally stored colors as bits rather than like the Amiga This meant bits each of red green and blueーthe same that our game hardware usedーresulting in a true color image of up to colors rather than Palette reduction would still be a crucial step in the process The greatest thing about the Truevision boards was they came with a Software Development Kit SDK which meant I could write my own software to control the board tailoring it to my specific needs This was truly amazing Once again I was so excited about the possibilities that my head was spinning I think it s safe to say that most people making video games in those days thought about the future We realized that the speed and memory limitations we were forced to work under were a temporary constraint We realized that whether the video game industry was a fad or not we were at the forefront of a new form of storytelling Maybe this was a little more true for me because of my interest in filmmaking or maybe not But my experiences so far in the game industry fueled my imagination about what might come And for me the holy grail was interactive movies The notion of telling a story in which the player was not a passive viewer but an active participant was extremely compelling People were already experimenting with it under the constraints of current technology Zork and the rest of Infocom s text adventure games were probably the earliest examples and more would follow with every improvement in technology But what I didn t know was if the technology needed to achieve my end goalーfully interactive movies with film quality graphicsーwould ever be possible in my lifetime I didn t dwell on these visions of the future They were just thoughts in my head Yet while it s nice to dream at some point you ve got to come back down to earth If you don t take the one step in front of you you can be sure you ll never reach your ultimate destination wherever that may be I dove into the task and began learning the specific capabilities of the board as well as its limitations With the first iteration of my software which I dubbed WTARG “W for Williams “TARG for TARGA you could grab a single image from either a live camera or a videotape I added a few different palette reduction algorithms so you could try each and find the best palette for that image More importantly I added the ability to find the best palette for a group of images since all the images of an animation needed to have a consistent look There was no chroma key functionality in those early boards so artists would have to erase the background manually I added some tools to help them do that This was a far cry from what I ultimately hoped for which was a system where we could point a camera at live actors and instantly have an animation of their action running on our game hardware But it was a start 2021-12-25 16:30:11
海外科学 NYT > Science James Webb Space Telescope Launches on Journey to See the Dawn of Starlight https://www.nytimes.com/2021/12/25/science/james-webb-telescope-launch.html James Webb Space Telescope Launches on Journey to See the Dawn of StarlightAstronomers were jubilant as the spacecraft made it off the launchpad following decades of delays and cost overruns The Webb is set to offer a new keyhole into the earliest moments of our universe 2021-12-25 16:35:01
ニュース BBC News - Home Queen's Christmas message pays tribute to 'beloved' Philip https://www.bbc.co.uk/news/uk-59768736?at_medium=RSS&at_campaign=KARANGA husband 2021-12-25 16:21:47
ニュース BBC News - Home Covid: Volunteers ensure Christmas Day booster jabs push https://www.bbc.co.uk/news/uk-59785948?at_medium=RSS&at_campaign=KARANGA christmas 2021-12-25 16:39:46

コメント

このブログの人気の投稿

投稿時間: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件)