Code review request for a Python extension written in C Ask Programming |
- Code review request for a Python extension written in C
- [CI/CD] Is it okay to build on every push?
- Is Normalized.css still used?
- Python beginner level
- Tic Tac Toe
- Is there any blockchain whose purpose is ONLY to generate random bits that the most people and computers agree are actually random?
- Unity mac build to run an exe
- How does reserving space for variables work?
- Need some help understanding how to design Server-to-Server Authentication
- Starting Competitive coding
- Winapi - After creating a remote thread in an external process, can you see the status/return of the lpStartAddress function?
- Phone Bot | Those auto switches when user presses a number during call
- R script - editing data that is variant in size
- Bash script bug
- Automating tasks between outlook and onenote
- I want to store an int value before closing my UWP app
- Question about Multiple Processes and Pipes
- Kademlia | Can two nodes exchange messages directly?
- What is the term for the icons that are in the bottom right corner of the windows taskbar?
- Music charts api
- Looking to create an algorithm that shows 20 images on a certain event call, with 50% of images being based on a user’s interests, and the other 50% being random.
Code review request for a Python extension written in C Posted: 23 Aug 2019 10:37 AM PDT Here is the source code. I'm relatively new to C and have never written a C Python extension, so please point out as many Python API usage/memory management/code architecture mistakes as possible. EDIT: I am also interested how can I properly handle NULL references when creating Python objects (i.e. allocation errors). Right now this extension will probably crash the interpreter, but how do you properly handle such cases? [link] [comments] |
[CI/CD] Is it okay to build on every push? Posted: 23 Aug 2019 09:57 PM PDT GitLab user here. I'm trying out continuous integration right now. I configured my project to build (and test) all branches whenever I push--and I am alarmed by the number of pipelines I am generating, because I tend to push often. Is it considered good practice to build/test whenever I push? Or should I build/test only when I make a merge request (i.e. pull request in GitHub)? [link] [comments] |
Posted: 23 Aug 2019 09:50 PM PDT I have enrolled myself in a few web dev courses on Udemy. In one course or let's call it the newer one, doesn't use normalize.ss. Normalize is not added to the HTML. On the other hand, the older course is using normalize.css and #id more often than .class. Think this course is following old techniques which are not in trend now. Should I pursue with the older corse? I may be wrong about the latter. Please do correct me if I'm wrong and let me know if it is fine to use normalize. These are a few questions I want to get answered. [link] [comments] |
Posted: 23 Aug 2019 09:18 PM PDT |
Posted: 23 Aug 2019 07:31 PM PDT Should I feel bad that I cannot create a game of tic tac toe after studying Python with Udemy courses for less than 40 days? I have watched the review of how to create a game of tic tac toe twice and still cannot do it. I am using Jose Portilla's Python Bootcamp from Zero to Hero course. Any suggestions? [link] [comments] |
Posted: 23 Aug 2019 05:15 PM PDT |
Posted: 23 Aug 2019 05:01 PM PDT sorry if the question is too specific but I'm trying to use the html-to-pdf Nreco tool (which is a wkhtmltopdf C# wrapper) to generate a pdf from my unity app, the problem is that the tool does this through the wkhtmltopdf .exe command line tool, so my question is, is there any way to get around this to make it usable on mac OS ? [link] [comments] |
How does reserving space for variables work? Posted: 23 Aug 2019 10:06 AM PDT In most programming languages, you are able to reserve space for variables. In C: In Python: In x86 (nasm): But how does reserving memory work under the hood? How does the compiler or assembler pick an address for your variable to be stuffed in? [link] [comments] |
Need some help understanding how to design Server-to-Server Authentication Posted: 23 Aug 2019 03:22 AM PDT I'm writing a SaaS application that should work in the following way
At the same time there is the business user who can control what the output is in the response. I want to make the onboarding/ authentication as smooth as possible but also maintain that is both secure and robust enough. For example, the use case would look like this
So far it looks very straighforward for me to implement. Here is what complicates things and I don't know
More Questions
[link] [comments] |
Posted: 23 Aug 2019 03:41 AM PDT I am second year college student and I am starting with Competitive coding because to get internships in the 3rd year we have to have good algo and ds knowledge. But I am not able to get a particular path to follow in order to be good at ds and algo and also secure good ranks at competitive coding. [link] [comments] |
Posted: 23 Aug 2019 02:48 PM PDT Hi, I'm creating a remote thread and passing LoadLibraryA as the lpStartAddress which is called upon the thread being made. However, it seems like my dll is not being loaded (CreateThread does return successfully though). I want to get the result of the LoadLibraryA call, which returns NULL if it fails. Is there any way to get this result, since this function has now been executed in a separate thread belonging to another process? Thanks! [link] [comments] |
Phone Bot | Those auto switches when user presses a number during call Posted: 23 Aug 2019 01:27 AM PDT Hey, There are plenty of ways of placing a call through a bot and so on. (no app just phone network) It appears my googling skills aren't as high as I had hoped .. Just a pointer in the right direction would be enough I just have no idea what's it called or what conditions need to be fulfilled to implement it. [link] [comments] |
R script - editing data that is variant in size Posted: 23 Aug 2019 12:02 PM PDT Hey there folks, I'm currently doing my first ever coding project for this internship I've had over the summer. I helped run the experiment and then did data collection for it. Now I'm designing the tool that we're going to use to analyze the data, all in R. Somethings to know when considering this project:
And then it repeats for the next session, assuming you have more than one, starting from "SessionUId". How would one be able to have the parameters be something that is versatile, and selected for in a way that follows patterns rather than just designated values? The most important feature of this is the IBI data, which we can use to interpolate and extrapolate many different things from. Not only would I like to cut out some of this information, but also then be able to use the xlsx package so that it can all be bundled neatly as an excel sheet or workbook as an export. I'm not looking for anyone to help out with the entire damn thing, but a simple referral to what even this kind of problem is called would be nice. As you might be able to tell, I'm completely new to coding, Thanks for your time. [link] [comments] |
Posted: 23 Aug 2019 02:29 AM PDT Why does grep only work for the last line of this script? Output: secrets.txt: [link] [comments] |
Automating tasks between outlook and onenote Posted: 23 Aug 2019 10:46 AM PDT Hi everyone, I am looking for suggestions for how to automate a task. I receive update emails with a good amount of information in them pertaining to a bunch of different people. I essentially want to use a criteria that finds my name, copies that info with my name on it, and pastes it into a one note tab (which is where I make notes and comments so I can keep track of what I'm working on/whats been done.) This info that I receive in an email in inside of an excel table and there are multiple columns, one of which has my name. So when my name appears, I want that whole row of information copied over to one note. This email always comes from the same person, just in a few different varieties. I am not extremely proficient at coding in multiple languages, but I have had some experience and I welcome all help and suggestions! I have never posted here before, so please let me know if I can add any other information. [link] [comments] |
I want to store an int value before closing my UWP app Posted: 23 Aug 2019 04:46 AM PDT Is this possible to do without the use of sqlite database? Basically, I want to set the value of an int variable before I close the program, and when the program is restarted, the previously stored value should be displayed. I know I can do this using a text file and write the value to that file, and then retrieve the value from it. But is there a simpler way since this is just a number like 16340? [link] [comments] |
Question about Multiple Processes and Pipes Posted: 23 Aug 2019 10:14 AM PDT Hello, I am confused with a couple aspects of Pipes and multiple Processes. I am trying to create two processes and connect their input and output through pipes as drawn in the top right picture. Must I create two entire new processes such as returnValue1 & returnValue2? Or is there an easier way to do it than this? One other aspect that has me confused is which parts of the pipe(s) do I need to close? What is the problem that occurs when the pipe is not closed? I appreciate all the help! [link] [comments] |
Kademlia | Can two nodes exchange messages directly? Posted: 23 Aug 2019 02:43 AM PDT I'm doing some research on Kademlia based decentralized networks. After bootstrapping a new node, instead of broadcasting messages to the nearest nodes, can a message be sent to a specific node identified by its ID? (Even if that means to relay the message to multiple peers before reaching the destination) Thanks in advance [link] [comments] |
What is the term for the icons that are in the bottom right corner of the windows taskbar? Posted: 23 Aug 2019 01:07 AM PDT I'm developing a tool intended to run in the background of the windows OS that hooks into a few things like keyboard input, MIDI input, etc. I'd like to have an option to kill the tool by being able to right-click a menu icon in the bottom right of the windows taskbar but I don't know the term for it. If someone could please tell me what this is called so I can consult the StackOverflow gods with accurate terms that would be great. Bonus points if you're able to tell me if I'm able to make a python package behave this way. Edit: Solved. System Tray [link] [comments] |
Posted: 23 Aug 2019 02:23 AM PDT Hi r/AskProgramming, I hope this is the right place to ask. I'm looking for an API where I can get the current music charts by country. Can anyone point me to something useful, because I couldn't find anything googling for 2h. This is for a web project I want to start building. The Spotify api lets you fetch playlist data. This way I could fetch all of their TOP50 playlist that they have for each country, however this would be a lot of api calls at once. Another option I found was https://charts.youtube.com/charts/TopSongs/gb, where you can download a .csv file with the current charts. Is it possible to write a server-side script that goes through every country and downloads the corresponding csv file once a day/week? Any help is appreciated! [link] [comments] |
Posted: 22 Aug 2019 11:18 PM PDT Hey r/AskProgramming! I'm currently making a simple website in Node.JS that allows users to set their desktop background from a fullscreen image on my site (through the magic of Wallpaper Engine). All images have keyword tags that are related to what the image displays. When a user signs up, they give us 2 interests they have. I'm interested in how I would go about creating an algorithm that, on every page load, they are served 20 images. 50% of which are based on the interests they have, that match an image's keyword(s), and the other 50% being completely random. Any help is appreciated. Thanks guys! [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