How many of you drink coffee? How many do not, and why? Ask Programming |
- How many of you drink coffee? How many do not, and why?
- ELI5 please - outline structure for a neural network to find letters and numbers from an image.
- What's going on with my code? [Python]
- Trying to generate a self-signed cert on one computer and push it and the key pair to a remote computer using Windows APIs
- screed.. Why hasn't their been a reasonable terminal editor replacement for vi ?
- Recommendations YouTube channels
- Best Online Courses For Fullstack Web Development
- Help with editing photoviewer.dll and/or photowiz.dll in Win 10. to change theme colors.
- How to train your brain for complexity?
- CSS - How do I make an "Input" border outline a different color?
- How to reliably trigger event on timer with minimal CPU usage
- Would it be possible to write a discord bot that could accept commands to navigate a like hulu, such as search for a show and select a show to play.
- Can I push a .gitignore file from my computer onto github with another .gitignore?
- I haven't built my first desktop program. My question due to lack of knowledge is: Do you use the same techniques that you use for front-end web development to make a desktop program's front-end? If not, can you clarify this and suggest some techniques? Does it happen automatically somehow? Thanks!
- Should I advance with Python or start learning Java?
- What are your opinions on coding bootcamps? Asking for someone looking for a career change
- eTextbook: a nudge in the right direction
- C++ Templated memeber function returning a templated class
- Confused about eventual consistency
- Macro to Reconnect Device on Network Loss
- Using mongo for the first time, queries don't seem to be running in order?
- Whats the contentType of the 64 bits of an IEEE754 double, like theres text/plain and image/jpeg?
- How to create a simple 3D model in python?
- Implementing a LinkedList Iterator, calls to next and previous
How many of you drink coffee? How many do not, and why? Posted: 18 Jan 2020 06:41 AM PST |
ELI5 please - outline structure for a neural network to find letters and numbers from an image. Posted: 18 Jan 2020 12:33 PM PST ELI5 (Explain Like I'm 5). I am slowly teaching myself machine learning from the ground up and I am trying to pin down an assumption. Assuming I have a gray scale bitmap (single byte pixel) of some arbitrary width and height, I would need a neural network with width * height inputs and then individual outputs for all letters A-Z and 0-9? Is that right? I am already assuming I would need one or more hidden layers between the inputs and outputs but I am not quite there yet. [link] [comments] |
What's going on with my code? [Python] Posted: 18 Jan 2020 08:49 PM PST I have an assignment that is something like this: - write a function that takes an int as an argument and counts each occurrence where there's 2 of the same number in a row e.g. 111222333444 returns 8. The code seems to work fine for numbers that are reasonably small. I can run it on anything up to 12! (takes 90 seconds to process). By the time it gets to 13 factorial it just craps out. I've tried letting it run for 30 minutes to an hour and it's still not going through. Here's the code: https://i.imgur.com/w6JgL4E.png The code does work if I convert the number to string and use the string length as the range (takes about 90 seconds) this is seen here: https://i.imgur.com/9Kn3tT0.png I thought it might have something to do with the limitations of the timer, but I have the same issue if I remove the timer from the code There was a different (but similar issue) problem in the assignment where we're supposed to take our 4 digit birth year and raise it to the power of our 6-digit student id number. Needless to say, it's a massive freaking number (> 2 million digits), and we're supposed to count the number of times 2, 5, and 0 occur within that number Here's my code for that portion: https://i.imgur.com/sNRqiP5.png Once again, the code functions without any issue with numbers that are reasonably sized. However, nothing appears to happen when I run the code, it just seems to be processing the code for an hour or longer. It's worth noting that it takes my computer a literal 5 minutes just to calculate output the number [link] [comments] |
Posted: 18 Jan 2020 07:02 PM PST The following text is copied from my StackOverflow question here. There is one person who has tried to answer and they insist that it's possible but it's clear there's a language barrier making things difficult. I'd appreciate any help anyone can provide. I have a scenario wherein an application needs to create a self-signed certificate and add it to the certificate store on a remote machine. I've tried both CryptAPI and CNG (though CNG still appears to use CryptAPI for creating the self-signed certificate and adding it to the remote certificate store), but the behavior I see occurs in both. Environment: Two machines on the same domain. One is Windows Server 2016 Standard and the other is Windows Server 2019 Datacenter. Same domain user with admin privileges used to log into both machines. Run the application on the 2016 machine indicating the hostname of the other. The code uses MFC/ATL for CString, includes wincrypt.h, and links against crypt32.lib. Tested against both VS2019's toolset and VS2005's toolset. What I see: The self-signed certificate is created and added to the remote store. If I view the certificate through the MMC it indicates that it has a private key attached. However, when I try to click "Manage Private Keys..." an error dialog says: "No keys found for certificate!" Similarly the Certificate Export Wizard says: "Note: The associated private key cannot be found. Only the certificate can be exported." And the "Yes, export the private key" option is greyed out. My theory is that the private key isn't being properly attached to the certificate context (or otherwise not being transmitted to the remote machine when I add the key to the certificate store). Here's what my code looks like: I found a similar issue here which is what gave me the idea to call CertSetCertificateContextProperty in the first place. But it doesn't resolve the issue. What am I missing here? Edit: This same code works when the certificate store opened is on the local machine. This issue only arises when the certificate store is on a remote machine. Edit 2: At RbMm's suggestion, I investigated exporting the certificate into a PFX. It was unclear to me how exporting the certificates into PFX's would change anything except that perhaps the generated PFX would do some magic to allow the key pair to be passed along when I insert it into the remote store. In that investigation I found this which helped me change my code to utilize PFXExportCertStoreEx/PFXImportCertStore. What you see below is what I added (replacing the Edit 3: After further discussions I've tried the following as well. After creating the temporary in-memory store and adding the certificate to it, I set the This does not resolve the issue either. [link] [comments] |
screed.. Why hasn't their been a reasonable terminal editor replacement for vi ? Posted: 18 Jan 2020 06:30 PM PST So I know this may be a bit of controversial post,I know editors are very personal too people, but here goes, I work with a lot of old school unix hacks and they all swear by vi, but I can't stand vi, I get that its a terminal editor invented back in the day, I know its not VS code.. but even with that my hatred for it runs deep , just starting it up .. why does this editor that requires me to press 'i' to start working with it is insane, its a f*kn editor its main role is to edit why do I need to give it a command to do so??? Also the keyboard shortcut commands are idiots esc+wq WTF, not to mention that often the character set is mis-aligned.. I'm sure there's probably a way in bash startup to configure it, which is fine but i'm bouncing system to system.. its just easier to learn the byzantine commands .. I shouldn't be using a computer editor that's older than me or my car, vi originated in 1976 . Ok now that I got my screed out of the way, my question is , why hasn't there been a reasonable more modern terminal replacement for this thing that is the defacto standard unix editor? am I the only one who is so irritated.. curious to hear thoughts.. [link] [comments] |
Recommendations YouTube channels Posted: 18 Jan 2020 04:38 PM PST Hey, i was wondering if and what YouTube chanells you watch wich are IT related and good to expand knowledge or even start with new stuff in general. I'm generally open to evrything :) [link] [comments] |
Best Online Courses For Fullstack Web Development Posted: 18 Jan 2020 06:46 AM PST As the title suggests, I'm looking for opinions about online courses for fullstack web devs. So far I've been planning on getting one of these: https://www.udemy.com/course/the-complete-web-development-bootcamp/?ranMID=39197&ranEAID=uD4dhxffZm0&ranSiteID=uD4dhxffZm0-XvZpxvwubUHxVPoDmV7I_Q&LSNPUBID=uD4dhxffZm0 ( The Complete 2020 Web Development Bootcamp by Angela Yu) https://www.udemy.com/course/the-web-developer-bootcamp/ ( The Web Developer Bootcamp by Colt Steele) https://www.udemy.com/course/result-oriented-web-developer-course/ ( The Web Developer Bootcamp by Vertex Academy) Has anyone completed one of these, if so, are these courses worth getting. Additionally, if you have any suggestions for other online courses feel free to suggest them. [link] [comments] |
Help with editing photoviewer.dll and/or photowiz.dll in Win 10. to change theme colors. Posted: 18 Jan 2020 12:12 PM PST Hello, so I have gotten this far and I find myself running into a brick wall any help is appreciated. I am looking to edit the Windows Photo Viewer program in Windows 10. I was able to find and complete everything needed to get WPV running in WIN 10. I was also able to change the background color of the app. However, I would like to change the bar at the top and bottom of the program to a darker theme or something other than white. The areas I am wanting to modify can be seen in this image circled in red. I know this is possible because there have been others who have done it as seen both here and here but I am uncertain about how to go about modifying the two .dll files. photoviewer.dll and photowiz.dll. Any help would be greatly appreciated. [link] [comments] |
How to train your brain for complexity? Posted: 18 Jan 2020 09:39 AM PST For a few years now I'm interested in how to get better at programming. There are obvious ways:
However no matter how well I know a language , architecture or a design pattern, I still find it difficult to understand code (/project) I've never seen before. I try to follow best practices, but they seem to take you not too far:
What I miss is the ability to build up mental models quickly - as rough as it is - and transform them, shape them during the exploration of the code base. Keep multiple stacks of layers and adopt if the representation in my head was wrong (because assumptions). Also the lack of being able to recognize (higher level) patterns, channels of data flow - or even the separation of important bits vs. filler code. Recently I've learn some good practices that helped with this:
So here is my question:
[link] [comments] |
CSS - How do I make an "Input" border outline a different color? Posted: 18 Jan 2020 03:04 PM PST Gif - https://imgur.com/a/37YAPsi Code (Pastebin) - https://pastebin.com/QMTt5jNz Issue : See that "blue" outline-ish thingy around the input field? How do I change it's color? I tried with an "outline" Property for the "text.input" class, as well as trying a .text-input:active class, but apparently, none of those are that blue...thingy around the input field, although I'm not sure what else could it be at this point. [link] [comments] |
How to reliably trigger event on timer with minimal CPU usage Posted: 18 Jan 2020 02:59 AM PST I currently have a Java busy loop design like this. The method potentiallyDoSomethingIfNeeded will do something if some data from an external websocket was received, and will occasionally (every few seconds) do some miscellaneous processing. However I don't like how much unnecessary CPU resources this takes. Most of the time, the method potentiallyDoSomethingIfNeeded does nothing. Instead I am thinking of transition to a design like this: To me this seems to be much more efficient in terms of CPU usage since I don't have a CPU spinning doing nothing. I have two questions (you can answer one of the two and I'll be happy):
EDIT: This is not premature optimisation, I want to do this to reduce CPU usage on a burstable AWS instance to save money. [link] [comments] |
Posted: 18 Jan 2020 02:29 PM PST I have experience writing a simple discord bot in both python and c# that could accept commands and give responses. I recently built a separate PC that's going to stream hulu for my discord server and I want my few friends and I to be able to enter a command such as !search Bob's Burgers and the bot would search hulu for Bob's Burgers, display result and then a second command could be entered to select which result to stream. Obviously there's easier ways to do this but I just want a project to work on. If it's possible can you please give me an outline or some videos to watch to research this project? [link] [comments] |
Can I push a .gitignore file from my computer onto github with another .gitignore? Posted: 18 Jan 2020 01:18 PM PST I have a repo on GitHub that I initialize with a .gitignore, but I also realize I have a .gitignore (the better one) on my local computer that I want to push on to GitHub. What should I do? Would deleting the .gitignore from GitHub and then pushing the .gitignore from my computer work? Or vice versa, deleting the .gitignore from my computer, then pulling and editing the .gitignore that was initialized with the GitHub? Thanks edit: I don't really want to delete the GitHub repo because I already added all my team members and created branches for us, and when I do create-react-native, which is our project, it created a ./gitignore automatically. [link] [comments] |
Posted: 18 Jan 2020 01:05 PM PST |
Should I advance with Python or start learning Java? Posted: 18 Jan 2020 12:36 PM PST Hi, I'm struggeling to figure out where to put most of my effort in learning new elements. I'm looking to go continue deeper into data analytics world, including working with data pipeline software & data analysis software. I already know a lot of Python, and have already deployed kubernetes web applications & worked with numerical software such as numpy, visualization such as matplotlib/jupyter and libraries such as scikit. I wish to start building these tools myself. So naturally I'm afraid that Python (as a tool) will become a bottleneck, therefor I am wondering about switching to Java. I love Python for prototyping & building smaller production software. However currently I'm working for a multinational company, and I wish to start making a larger impact on the community. Is there somone here, with lots of experience from both, that can suggest what area I should focus on? [link] [comments] |
What are your opinions on coding bootcamps? Asking for someone looking for a career change Posted: 18 Jan 2020 12:30 PM PST My wife works in the restaurant industry and is tired of it. She wants to do something that is at least somewhat intellectually stimulating. We've got a little one, and I just started community college, so we are trying to figure out the best way to navigate both of us being in school. I'm totally willing to put my school on hold so that she can go. For people not wanting to spend 4 years in school, how can they get into an entry-level programming position? Thanks! [link] [comments] |
eTextbook: a nudge in the right direction Posted: 18 Jan 2020 12:06 PM PST Hello, I am currently working on my final senior project. I was assigned an eTextbook that contains illustrations, videos, and some data analytics. I am very confused on how to start this as Ive never programmed any thing like this before. I was wondering if any of you guys knew of some sources which could help me out. [link] [comments] |
C++ Templated memeber function returning a templated class Posted: 18 Jan 2020 08:13 AM PST I'm trying to write litle openGL library and i've been stuck on this problem for hours. Basically i have a Uniform class code: First Fails with error: Second Fails with error: Thanks in advance for your help. [link] [comments] |
Confused about eventual consistency Posted: 18 Jan 2020 11:32 AM PST Say I have an API with read/write, and writes are eventually consistent. Say the current value of a key is A I then do a write with value B I then sit there reading until I eventually see value B At this point if I do another read, is it possible to receive value A? Like does eventual consistency mean once you've seen the updated value you won't see the old one? Or does it mean there's a period of time where you may see either value but at some point it will converge to one value? [link] [comments] |
Macro to Reconnect Device on Network Loss Posted: 18 Jan 2020 10:39 AM PST Ok, here's the tea. Currently my PC is using some USB TPLink device to allow my PC to connect to the WiFi. The device is getting old and every few minutes it drops the connection to the wifi entirely. Unplug it and plug it back in and for the next few minutes it continues to work great. I'm getting annoyed with that cycle but I'm too cheap to shell out for a new device. Is it possible to set up a macro or other program that automatically resets the connection to the device upon losing access to the internet? I have limited programming experience and I'm not certain where to start with something like that. [link] [comments] |
Using mongo for the first time, queries don't seem to be running in order? Posted: 18 Jan 2020 09:58 AM PST I'm just running through a mongo tutorial, and cannot seem to figure out why my code is running in the order it does. It displays my DB before adding to it. Any help would be much appreciated. So the output goes in this order. First my 3 console.logs BEFORE CREATE, AFTER CREATE, END, followed by "all of the cats" and showing the DB and lastly NEW CAT + cat [link] [comments] |
Whats the contentType of the 64 bits of an IEEE754 double, like theres text/plain and image/jpeg? Posted: 18 Jan 2020 09:24 AM PST https://en.wikipedia.org/wiki/Media_type https://en.wikipedia.org/wiki/Double-precision_floating-point_format https://en.wikipedia.org/wiki/IEEE_754 I plan to use this ContentType in a pure-functional programming language where everything is made of calls of a universal lambda function (including the bitstring of utf8 of the name of contentTypes), to label certain bitstrings by their contentType, with various optimizations so it doesnt matter how long the content-type is, in https://github.com/benrayfield/occamsfuncer That content-type has likely never been standardized cuz its so small (64 bits) and you wouldnt normally send just 1 of them at a time. If so then the process is to create one with the x- prefix possibly on both sides of the slash (which would you recommend?) then get it officially added to the content-type lists, or one could just pretend one thing or another already official and see if others follow, as double is already a well standardized data format but I'm just unaware of its name or if it has one. And the same for all the other common primitive types and maybe arrays of them. Maybe something like "application/x-ieee754-double" for the 64 bits and "text/x-IEEE754-double-base10" for the text form, but hopefully theres an existing name of it. [link] [comments] |
How to create a simple 3D model in python? Posted: 18 Jan 2020 07:32 AM PST |
Implementing a LinkedList Iterator, calls to next and previous Posted: 18 Jan 2020 07:27 AM PST So I have an assignment where we're making a circular doubly linked list and the code is doing what I expect it to do and how I want it to work, but that's not necessarily what the test case is testing for so I don't quite understand the logic. Specifically, from the docs " Note that alternating calls to next and previous will return the same element repeatedly " (https://docs.oracle.com/javase/7/docs/api/java/util/ListIterator.html#next())) But like this isn't how I would expect it to happen, so this isn't how I've programmed it to happen. I'd assume if you had a list of 1,2,3, and you were currently on 2, if you call next you would get 3, and if you call previous you would get 2, not 3. So how am I supposed to make it so that as the docs say, alternating calls to next and previous will return the same element? [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment