• Breaking News

    Sunday, December 19, 2021

    Any examples of open-source objects on GitHub? Ask Programming

    Any examples of open-source objects on GitHub? Ask Programming


    Any examples of open-source objects on GitHub?

    Posted: 19 Dec 2021 03:13 AM PST

    I want to open source part of my software. It is essentially just a JSON object, but I see a lot of value in open sourcing it because it's a big static object that references some regulatory information that changes from time to time (like maybe once a year or so). I'm trying to find an example of other very small open-source objects like this that publish just an object so I can see how they've presented it etc. Know any examples like this?

    submitted by /u/carlinwasright
    [link] [comments]

    Easiest Front-End framework for backend developers?

    Posted: 19 Dec 2021 08:28 AM PST

    Hi all, I'm a .Net/C# developer with 2 years of experience mostly working on enterprise applications. Currently I would like to start working on a personal website project, functionality of which can be compared with LinkedIn. I barely have any front-end experience and at my current job for front-end we use Ext.js which does not require knowledge of HTML-CSS either(it is quite ugly tho). I would like to know which modern framework will be easiest to pick up for someone who does not like writing html-css too much.

    submitted by /u/GioNatro1999
    [link] [comments]

    Which programming language for storing data and exporting them?

    Posted: 19 Dec 2021 08:25 AM PST

    I want to write a program to read data from a web API in JSON format, then store the data to SQLite tables, then query and process the data and export them to a CSV file. Maybe later I add options for exporting to a HTML file.

    I'm already familiar with C#, JavaScript (TypeScript) and Python. But I don't know Which one of those programming languages is more suitable for my program. I hope you guys help me to make this decision.

    I'm using Ubuntu and probably my program will never run under Windows.

    submitted by /u/msadeqhe
    [link] [comments]

    Is it possible to create a decentralized application that is not on the ethereum blockchain?

    Posted: 18 Dec 2021 03:01 PM PST

    I recently started learning about coding decentralized applications, however all the videos and tutorials I find use the ethereum blockchain. So is it possible to create a decentralized application that's not on ethereum? If so how would I do that?

    submitted by /u/AP0LLO18
    [link] [comments]

    AutoHotkeys AlwaysOnTop script not working specifically for Windows File Explorer and other Windows system windows?

    Posted: 19 Dec 2021 12:57 AM PST

    I've been using an Alwaysontop AHK script to keep my windows on top of other windows with a hotkey.

    Here's the code in question:

    ^SPACE:: Winset, Alwaysontop, , A ; ctrl + space Return ~#!x::Suspend 

    It works perfectly for practically every window I use except Windows-based windows - things like File Explorer, Task Manager, etc...

    How can I go about getting these windows to also work with the script?

    I've used WinSpy to get information on specific Windows things before, but I'm not exactly sure what to look for here, or if there is a simpler solution that can force Windows-based windows to function with the script.

    Any ideas?

    submitted by /u/the_crabnebula
    [link] [comments]

    How deep can students study in each field of the CS major at the university ? (If students follow what students do at school)

    Posted: 19 Dec 2021 04:30 AM PST

    I'm going to study at university as a CS major , so I want to know about this more

    Question

    1 . How deep can students basically study in each field of the university's CS major? (If students follow what they do at school)

    2 . What are the benefits of studying CS for 4 years, except that you can get a job?

    submitted by /u/User012340
    [link] [comments]

    What library to use to create a Bubble size infographic?

    Posted: 19 Dec 2021 02:34 AM PST

    First, sorry if this is not the correct subreddit, I don't have a clue where to ask this question.

    I'm looking for a library (js) that allows me to easily create a little infographic showing (floating) bubbles, the bigger the bubble the higher the number representing it.

    But a short search in Google drops me nothing but bubble charts using a x-y square, which is nothing similiar to what I'm looking for. Any recommendations, please?

    In case this is not the subreddit, please point me out where to post this question, thank you.

    submitted by /u/einemnes
    [link] [comments]

    Writing a paraer: Tokenize, Parse, then what?

    Posted: 19 Dec 2021 02:30 AM PST

    Hi Reddit,

    I currwntly writing a parser for my customer syntax which I use for some configuration files in .NET. I would like to parse plain text files into objects.

    As of know I'm happy which my lexical analysis (tokenization). I'm pretty happy with the parsing as well. I'm using the tokens to generate an abstract syntax tree.

    My plan now is to convert the AST into a object. There I have a few questionS:

    • Should I even bother to generate an AST or should I generate the object directly from the output of the tokenizer?
    • What is this step called: Converting an AST into some objects by propulating the properties?

    Thanks

    submitted by /u/Stogoh
    [link] [comments]

    Resources to help me make a decentralized torrent network for go?

    Posted: 19 Dec 2021 01:35 AM PST

    There is an application written in go that keeps track of a bunch of files in the computer in a sqlite database. I want to make a plugin for the application so that the people with the plugin can search for files that other people with the plugin have without getting their IP. I wanted to know if this is possible. Torrent usually use online trackers so I don't know if a decentralized tracker can be implemented. If it's possible, which resources can I look up to make this?

    submitted by /u/darknesscrysis
    [link] [comments]

    Is GPT-3 a model that one could run on their generic home PC or does it require a huge cluster?

    Posted: 18 Dec 2021 09:40 AM PST

    Let's assume OpenAI makes GPT-3 open access and I can build my own GPT powered application.

    Is the model too large to run on my PC or would I have to invest in a cluster or a cloud service to be able to run it?

    submitted by /u/Speterius
    [link] [comments]

    Can someone please ELI5 what Log4j is all about? I don’t know what’s happening?

    Posted: 18 Dec 2021 04:53 PM PST

    How do real time monitoring applications work? How do they create streams and update data?

    Posted: 18 Dec 2021 06:07 PM PST

    Say for example that you've got an application that monitors the stock market. How does such an application update prices? Where do they get the data and how do they monitor it? Are they polling it by making HTTP requests, something else, every so often?

    Wondering if anyone around here knows.

    submitted by /u/Braxis981
    [link] [comments]

    C/C++: Are function parameters always consecutive in memory?

    Posted: 18 Dec 2021 01:38 PM PST

    Basically, i have to index into 3d grid with indexes i, j, k and retrieve a parameter x, y, z from a cell at that index. Each cell stores only positive parameters x y z, but it would be conceptually easier, if there was an method that could allow getting 'negative' x y and z, which are just positive parameters, but from cell i-1, j-1 or k-1 respectively. Basic implementation in code looks something like:

    enum GridParamIndex{ X = 0, Y = 1, Z = 2, NX = 3, //Negative x,y,z NY = 4, NZ = 5 }; float Grid::getParamAt(int i, int j, int k, GridParamIndex index) { switch (index) { case Grid::X: case Grid::Y: case Grid::Z: return cells.at(i,j,k).getParameter(index); break; case Grid::NX: return cells.at(i-1,j,k).getParameter(index); break; case Grid::NY: return cells.at(i,j-1,k).getParameter(index); break; case Grid::NZ: return cells.at(i,j,k-1).getParameter(index); break; } } 

    But, if function parameters are consecutive in memory regardless of compiler and platform (given the usecase of most popular platforms: Windows/Linux/Mac OS, running on intel/amd X86 architecture CPU, compiled with MSVC or MINGW), there is a simpler and possibly faster method of getting smae result:

    enum GridParamIndex{ X = 0, Y = 1, Z = 2, NX = 3, //Negative x,y,z NY = 4, NZ = 5 }; float Grid::getParamAt(int i, int j, int k, GridParamIndex index) { if(index > 2) { (&k)[index-3] -= 1; } return cells.at(i,j,k).getParameter(index); } 

    But this only works if parameter order on the stack is always the same, and they are always consecutive in memory. What are your thoughts on this?

    submitted by /u/Grubzer
    [link] [comments]

    Node.js, why does my api test fail when two users are loaded into DB, but not when one user is loaded?

    Posted: 18 Dec 2021 02:25 PM PST

    I've been working through the University of Helsinki's free Fullstack development course, currently on the API testing unit here: https://fullstackopen.com/en/part4/token_authentication#exercises-4-15-4-23

    I've pretty much completed the exercise, developing a simple Node.js backend to handle users and blogs with a MongoDB backend. You can see my full work here: https://github.com/mmccarthy404/fullstack/tree/main/part4/blog

    However, I'm running into an issue finalizing my tests, where I'm able to successfully add a blog for a user when only one user exists in the database, but it fails when two users are present in the database! For example, this test passes (https://github.com/mmccarthy404/fullstack/blob/main/part4/blog/tests/blog_api.test.js#L25-L56) while this test fails (https://github.com/mmccarthy404/fullstack/blob/main/part4/blog/tests/blog_api.test.js#L134-L169)

    I've investigated, and found that the line erroring out is here (https://github.com/mmccarthy404/fullstack/blob/main/part4/blog/controllers/blogs.js#L27), and it's failing with the message: User validation failed: _id: Error, expected \_id` to be unique. Value: `61be5b416d48165ff8556c22``. But it doesn't make sense why the update works in the first case but not the second? Any help is appreciated!

    submitted by /u/michaelmccrypto
    [link] [comments]

    How to detect current DPI of a variable DPI wired mouse plugged into a windows 10 computer via USB?

    Posted: 18 Dec 2021 04:53 PM PST

    I have a variable DPI mouse.

    Logitech G502 Proteus Spectrum

    It allows me to change my DPI setting with buttons on the mouse. Which is great for gaming. But I can never tell what the current DPI is to know if/how much I should change it.

    If possible I'd like to run some sort of widget on my computer I can quickly glance at that tells me my current DPI.

    Is this something remotely feasible? I looked on stack overflow but couldn't find anything.

    Would appreciate any advice.

    submitted by /u/KnockKnockChicken
    [link] [comments]

    Vue set a partial by condition?

    Posted: 18 Dec 2021 03:06 PM PST

    Just getting into vue and quasar and need to know how to set a partial value by a condition, for example:

    <q-step :name="2" title="Create Account" icon="list" :done="step > 2"
    >

    I want this q-step https://quasar.dev/vue-components/stepper#introduction to be disabled if I'm on step 3.

    submitted by /u/dikbummmm
    [link] [comments]

    C++ Program made into HTML file.

    Posted: 18 Dec 2021 12:23 AM PST

    I'm working on a video game design project/challenge that requires me to host the game on a website. I'm either thinking about itch.io or my own personal website, but either way, I need to to be in an HTML file. My problem is that it's being developed in C++. The only option I've seen is emscripten, but I would then need to figure out how to get the library I'm using to compile as well. Is there any easier way to do this, or is my only option emscripten?

    submitted by /u/Bubba656
    [link] [comments]

    Can someone explain how this code works?

    Posted: 18 Dec 2021 12:23 PM PST

    ---

    for i in range(8):

    if i == 4:

    break

    else:

    print(i+3)

    else:

    print(1)

    ----

    Thank you.

    submitted by /u/ShadyAryxn
    [link] [comments]

    How do you start planning your software / game?

    Posted: 18 Dec 2021 08:26 AM PST

    So when you start with an idea, how do you structure what you are going to code ?

    Do you start with the big picture and chunk it down to smaller problems ? Do you sketch the idea on a paper / sketching software / mind-map ? How do you stay structured throughout the developing process ?

    I feel I'm learning quick but I might have to improve on planning my work instead of just starting right away and deal with problems along the way.

    submitted by /u/Xspectiv
    [link] [comments]

    How do apps like Reddit and Facebook keep the user logged in seamlessly?

    Posted: 18 Dec 2021 11:33 AM PST

    Hey fellow programmers, I'm just curious how these apps keep you silently/seamlessly logged in. Do they store a authentication token on the device and whenever navigating to the app re initiate a new session?

    Any resources anyone can provide would be greatly helpful.

    Thanks!

    submitted by /u/youre_a_dingus
    [link] [comments]

    Can’t figure out why my monorepo project isn’t working

    Posted: 18 Dec 2021 09:53 AM PST

    I am using metaplex on solana blockchain.

    I have cloned a monorepo with 3 packages inside the root. I have made changes to the backend package and I have built the project successfully. My new code has been compiled and is located in "dist" correctly.

    I then have a second package (web) which uses code from this package. When I try to compile this package, it returns an error saying "no exported member …".

    My question is am I missing something?

    Bare in mind the backend package is a npm package that has been published before I have cloned. However, with my new changes to the project do I need to use non link or is this something completely different?

    I really appreciate anyone who can help!!!!!!!!!!

    submitted by /u/Luk3ark
    [link] [comments]

    Am I solely responsible for the production bug?

    Posted: 18 Dec 2021 06:05 AM PST

    Hi Everyone, I wanted to hear your opinions on this matter: I worked on a project, and few bugs were identified after the deployment to production. They were never identified on uat and staging. And, I had worked based on the business requirements. I am worried if the blame would be upon me.

    submitted by /u/artic_emotions
    [link] [comments]

    Automate extraction of highlighted texts from PDF documents to databases

    Posted: 18 Dec 2021 09:40 AM PST

    Hi everyone,

    I'm new into programming, I was wondering if there was a way to extract text that I've highlighted on a PDF document (Acrobat Reader) and send them into a database (a word = a row). More specifically, collecting words/sentences that are highlighted in red goes into database A, those in yellow goes in database B, green in database C etc... Is there any way to automate this process ?

    submitted by /u/windycity237
    [link] [comments]

    Looking for a skil to learn.

    Posted: 18 Dec 2021 06:43 AM PST

    So basically I'm a student who has just finished my 5th semester in my 8 semester BTech UG programme in Computer science.

    I have a 2 week vacation, and my resumé looks very lacking. Can anyone please be kind enough to suggest something useful I could learn, like an online course , that would look good on my resumé?

    I'm interested in learning data sciences and AI , if that counts for anything.

    submitted by /u/TheShendelzare
    [link] [comments]

    Survey to gather data

    Posted: 18 Dec 2021 06:18 AM PST

    Hey everyone, I'm wondering what are some resources to make a survey/questionnaire to gather data for analysis using Python (and likely numpy and MatPlotLib). Also any survey ideas are welcome since I'm doing this just to get more experience with "real" data.

    submitted by /u/Prgrmr_in_training
    [link] [comments]

    No comments:

    Post a Comment