• Breaking News

    Monday, December 28, 2020

    Looking for a secrets management platform - recommendations? Ask Programming

    Looking for a secrets management platform - recommendations? Ask Programming


    Looking for a secrets management platform - recommendations?

    Posted: 28 Dec 2020 08:27 PM PST

    Primarily storing active environment devops keys, but I'd appreciate recommendations. Free or paid is okay.

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

    How do you know which coding tools are the right ones for your project when working with a developer?

    Posted: 28 Dec 2020 08:23 AM PST

    Hello AskProgramming,

    I'm not a programmer and I don't play one on TV. I am a guy trying to start a side business with a toolset geared towards my industry. I have been interviewing software development companies and doing my own research on what tools/codebases/stacks (insert proper term here) to use in making a cloud driven backend with macos and windows 'native' desktop front ends, maybe an iPadOS branch but mobile is not really important for this kind of tool.

    I know there are so many options here but as the person funding the project how do I know the developer I am working with is picking the appropriate toolsets for what I am looking for. It's not easy for me to figure out what some of my reference applications are made with and I also don't know if things like ReactNative/Flutter, which have been recommended by the Dev Cos, are right for this?

    I have googled my eyes out on this and still feel lost. Any tips, advice or input would be really appreciated!

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

    Having doubts in my app development..?

    Posted: 28 Dec 2020 02:16 PM PST

    Everything is going well. But I feel like it's being stitched together. The architecture is ok, but I break some protocols of the architecture to achieve security / desired outcome since I'm using noSQL. I'm having doubts and feel like the more I develop the more I began to use "hacky" solutions to solve problems that goes beyond documentation... any advice ? This is a pretty ambitious project, and it's just me.

    The only solace is me thinking if this app succeeds , I can afford to re-do it...

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

    Why can you delete a WinRAR file and still keep that WinRAR file open at the same time?

    Posted: 28 Dec 2020 09:10 PM PST

    I'm sorry if this is the wrong place to ask. It's just been bothering me for awhile. Is there like a programming explanation for this? Normally other files won't let you delete something as long as its "in use". But WinRAR lets you do it just fine.

    Please tell me if this is the wrong sub to ask and where I could ask it instead.

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

    University Intro Course Advice

    Posted: 28 Dec 2020 08:21 PM PST

    I'm new to programming and this is something that I would like to learn. My school offers a procedural and object oriented programming concepts class which I'm thinking about taking as it fills up my elective space. I was wondering if this would be a good course to start with? Thank you!

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

    Looking for good coding book recommendations

    Posted: 28 Dec 2020 07:43 PM PST

    Hey folks,

    I just received some Amazon gift cards for Christmas and I'm looking for a good book to enhance my coding knowledge. I am still very much a beginner, but have read Starting Out with Python and have created a Chess game made in python. I'm looking for a book about OOP that is more theory heavy than what I've already read and focuses on good ways to structure code. The book's language of choice doesn't have to be Python. It could be C++ or another lower programing language. Let me know what would be a good book to go with. This is just a rough idea of what I'm looking for. I am open to suggestions. Let me know what you guys think.

    Thanks.

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

    C++ Library + relative files

    Posted: 28 Dec 2020 06:38 PM PST

    Hey guys,

    I have a rendering library. I want to add a few "default" 3D meshes that the library users can potentially just use. Think Mesh m = new Mesh(DEFAULT_MESH_1) where DEFAULT_MESH_1 can be a an enum value. To make my life easier, I really want to store these default meshes in common 3D file formats such as .dae or .obj.

    The problem is that these would then be read at runtime, which means the paths of them have to be absolute on the system, or relative to the run location right? I don't want to force the user to run the executable from some path. I also don't want an "install" so I don't want to add files to the system in any way.

    I think a possible solution here is to run a script or program before hand and converts these file into .h files I can just bake in at compile time. Downsides being that I am kinda wasting memory (not that big a deal) and I have to run a non-standard script as part of the compile, adding an extra step.

    Do you guys know any good ways to work around this? I'm not sure what the standards are, the programs I have compiled that need a similar thing have always had an "install" step, like make install that copy these files to a known destination. I really don't want to do that.

    If it means anything, my build system is cmake.

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

    What do you use for building wireframes/mockups? Is there a common program that's used?

    Posted: 28 Dec 2020 08:52 AM PST

    Have heard I will understand Rust more and its design patterns if I have a good knowlede of C++, is it true?

    Posted: 28 Dec 2020 06:11 PM PST

    I am trying to learn Rust, the most important thing I want to learn is about memory, lower level stuffs........Do I learn about memory allocation, lower-level stuffs in Rust? I have heard that because Rust is a different language, it is better to have some knowledge of C++ in order to understand what flaws it covers and to understand its design patterns, is it true? Should I dive into C++ more and understand it's fundamentals before I learn Rust?

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

    (Vue.js CLI) Function triggered by event bus doesn't run

    Posted: 28 Dec 2020 01:47 PM PST

    Hello! I'm a web dev newbie and I have what I suppose is a basic problem, probably caused by inexperience but here goes. I'm using an event bus to carry a value from one vue child component to it's parent when triggered on click -- the child emits the event and the value I need to transfer and I use that event to both call a method in the parent and to do stuff with that value in the parent's method using eventBus.$on(event, value)

    If it helps, I'm trying to make an web browser extension for one of those start-page website bookmark dialers like 'infinite dashboard' or 'speed dial' where I click an empty card button, popup appears, provide an url and the card button saves that url and displays the site name for the next time you click it so you can navigate to that address (Most of the described functionality isn't implemented, I'm trying to learn how to do it)

    ---------> sendResolvedDomainToCardButton() in TopComponent.vue is the method that's causing the issue.

    (if the component separation looks weird, what I'm trying to do is to mostly or entirely remove dependencies inside the low-level components and let the high-level components take care of the details)

    I have no idea what the issue could be so I kind of have to copy paste the whole thing, sorry:

    main.js

    import Vue from 'vue' import App from './App.vue' Vue.config.productionTip = false new Vue({ render: h => h(App), }).$mount('#app') 

    App.vue ---- the event bus is here

    <template> <div id="app"> <TopComponent></TopComponent> </div> </template> <script> import TopComponent from './components/TopComponent.vue' import Vue from 'vue'; export const EventBusTest = new Vue(); export default { name: 'App', components: { TopComponent } } </script> <style> </style> 

    TopComponent.vue --- this has the function that doesn't run

    <template> <div class="hello"> <CardButtonPlaceholder v-on:clicked='openModalTest()' v-bind:name='cardButtonName'></CardButtonPlaceholder> <ModalComponent v-show="showModal" v-on:closeClicked="closeModalTest()" v-on:clickedSave="sendResolvedDomainToCardButton()"></ModalComponent> <!-- ****** Here *****--> </div> </template> <script> import ModalComponent from '@/components/ModalComponent.vue' import CardButtonPlaceholder from '@/components/CardButtonPlaceholder' import { EventBusTest } from '../App.vue' export default { name: 'TopComponent', components: { ModalComponent, CardButtonPlaceholder }, data: function(){ return { showModal: false, cardButtonName: "" } }, methods: { openModalTest: function(){ this.showModal = true }, closeModalTest: function(){ this.showModal = false }, sendResolvedDomainToCardButton: function(){ alert('just checking') // ***** And Here ***** this doesn't run <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< EventBusTest.$on("clickedSave", domainName=> { //Am I even doing this right? alert(domainName) }); } } } </script> <style scoped> </style> 

    ModalComponent.vue --- this is a pop up dialog that shows up when I press the CardButtonPlaceholder

     <template> <div class="modal"> <h1>this is a modal</h1> <input type="text" id="urlTextField"/> <button v-on:click='onSave()'>save</button> <button v-on:click='onClickCloseButton()'>close</button> </div> </template> <script> import { EventBusTest } from '../App.vue' export default { data: function(){ return { resolvedHostName: "", domainName: "" } }, props: ['givenURL'], methods: { onClickCloseButton: function(){ this.$emit('closeClicked') }, onSave: function(){ this.givenURL = document.getElementById("urlTextField").value let domain = (new URL(this.givenURL)) this.domainName = domain.hostname EventBusTest.$emit("clickedSave", this.domainName); } } } </script> 

    CardButtonPlaceholder.vue --- this is the button that opens the popup

     <template> <div> <button v-on:click="onClickButton()">{{ name }}</button> </div> </template> <script> export default { props: { name }, methods: { onClickButton: function(){ this.$emit('clicked') } } } </script> 
    submitted by /u/cantbebothered67836
    [link] [comments]

    What do I even google for to choose a way to write a GUI for my personal project?

    Posted: 28 Dec 2020 05:30 PM PST

    Hi all!

    I have absolutely zero experience with GUIs, and random googling led me to some clearly overkill solutions which seem overwhelming to me...

    I have a personal picture library (I do fish spotting) with a database with tags, fish classification, etc... It's all saved in mongodb and I can query stuff to get the pics I'd like or pull info in neat tables. What I wanted to do is have some kind of an interface which I could use to create custom filters to showcase pictures in a sleek way, depending on some chosen parameters (tick boxes, radio buttons etc), have folding tree structures where I can explore fish classification and which ones I've photographed or not etc... Stuff like that.

    Anyway, where do I even start? Are there some libraries with a variety of templates like these which I can reuse and edit to my tastes?

    PS I use python, so if it's easily compatible, would be great.

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

    Is this code some sort of keylogger or virus?

    Posted: 28 Dec 2020 04:24 PM PST

    I'm instructed to paste into a text file and change into a .cmd file Apparently it activates windows 10 for free (the comments are overwhelmingly positive) but it looks super sketchy. Windows defender wanted to delete it in a second

    https://get.msguides.com/windows10.txt

    It comes from this video: https://www.youtube.com/watch?v=CE0jkzUXt1o

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

    Algorithm and arrays

    Posted: 28 Dec 2020 06:34 AM PST

    I tried the codility challenge, my question is how do you start to learn algorithms and use it in Python arrays , where do I start learning, to solve below such problems using Python

    For example: given arrays juice and capacity, both of size N, returns the maximum number of flavors can mix in a single glass , Given juice = [10, 2, 1, 1] and capacity = [10, 3, 2, 2], your function should return 2.

    Any suggestion or guidance is welcome

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

    Is it bad to use other scripting languages when bash could be used?

    Posted: 28 Dec 2020 09:39 AM PST

    Hi, I do a bit of everything alongside my studies, and I like to automate the maximum amount of things possible on my projects (moving files/downloading stuff/uploading builds...), I use linux so bash scripts are an option for me but I do everything with JS as I feel more comfortable with it.

    is it a bad practice?

    Are there tasks for which js doesn't fit?

    Is there a better scripting languages for any of the tasks I mentioned?

    I would like to hear opinions about scripting tasks on personal computer.

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

    Edited someone's code... Can I publish this as an extension?

    Posted: 28 Dec 2020 03:14 PM PST

    Let me preface this by saying I know NOTHING about coding, so excuse me if I seem a bit fresh, have difficulty with programming vernacular, etc.

    So I made an extension that adds a RateYourMusic search function to the right click context menu. I made it for personal use but I've been thinking of sharing it to the world. However I made it using someone else's extension code (an extension to search on YouTube) and from what I've read online there's some trouble with that. Something about sharing the same id/signature whatever.

    I know I could just contact the programmer of the original extension, but the original extension was removed from the store so I'm out of luck. But I'm also thinking since it's gone, it's fair game right? But even if I didn't have to ask for permission I still feel shitty for not asking for permission. I mean, this is someone's hard work! It just feels unethical!

    Idunno any advice?

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

    What qualities make some programming languages age better than others in regards to the job market?

    Posted: 28 Dec 2020 08:52 AM PST

    In the field of web dev for example, Loads of PHP sites still exist but especially for newcomers most developers are like "eww won't touch" to PHP and would more open to learning Python of a back end language. Plus PHP has gotten the reputation to being full of lower paid tech jobs. But objectively speaking Python is 4 years older than PHP so I see the irony of a JavaScript developer or Python dev calling PHP devs "dinosaurs" and whatnot. Other back end languages seem to age like a fine wine in the job market and though there's legacy work to be found in many languages there seems little correlation with the attractiveness and the actual age of the tech. So what makes some aging languages more appealing than others in the job market?

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

    Address Validation for Millions of People

    Posted: 28 Dec 2020 09:18 AM PST

    If you had a list of customer names and the physical addresses that were associated with them at one time, what methods and resources do you have at your disposal to validate that the address is current, or find a better address?

    Manually for one person I know you could use one of many background/whitepages type sites online, but this obviously can't scale to millions of people.

    Bonus points if phone and/or email can be returned as well.

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

    Are there any open source libraries people have written that decrypt TLS handshakes with Shor’s algorithm?

    Posted: 28 Dec 2020 02:59 AM PST

    Say I declare a function that calculates the discrete logarithm:

    bignum get_exponent(bignum base, bignum modulo); 

    I cannot yet define the function but one day I will be able to when quantum computers become usable.

    I could build a library around it that decrypts common RSA and ECC key exchanges. I could then apply these to TLS handshakes and decrypt recorded TCP byte streams.

    Does such a library exist? Any article you read about quantum computers talk about how this will be possible but has anyone actually bothered to write the code?

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

    C - Pipe System Call in Linux

    Posted: 28 Dec 2020 11:28 AM PST

    I am trying to get unnamed pipes to work in Linux. In this case i want to send a string of 3st 'a', "aaa". However this is the output i get:

    String is aaa

    String from pipe: a���

     int stringSize = Number+1; int pipefds[2]; char buffer[stringSize]; if(pipe(pipefds) == -1) { perror("pipe"); exit(EXIT_FAILURE); } char *array = (char*)malloc((stringSize)*sizeof(char)); char x = 'a'; char y = '\0'; int z; for (z = 0; z < Number; z++) { array[z] = x; } array[z] = y; printf("String is %s\n", array); /* Writing to pipes */ write(pipefds[1], array, 1); /* Reading to pipes */ read(pipefds[0], buffer, stringSize); printf("String from pipe: %s\n", buffer); 
    submitted by /u/GroundbreakingMenu32
    [link] [comments]

    C - Convert 'Character Pointer' To 'String Pointer'

    Posted: 28 Dec 2020 04:20 AM PST

    I am trying to store individual elements in an character pointer, then convert it to a string. (i am going to use it for pipes/linux).

    However my code don't seem to work. I don't think i am storing the individual chars in the array correctly.

    char *array[100]; char x = 5; char y = '\0'; for (int z = 0; z < Number; z++) { array[z] = &x; // store char '5' at index z } array[Number] = &y; // store '\0' as last char to make it a string printf(" String is %s \n", *array; // print string, dont seem to work 
    submitted by /u/GroundbreakingMenu32
    [link] [comments]

    Do they only ask about Data Structures related questions in coding interviews for a job or is there much more to it than that?

    Posted: 28 Dec 2020 02:11 AM PST

    Sorry if this is a stupid question, but I am new to the world of Computer Science....

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

    How do i copy the value of a variable from one function to another?

    Posted: 28 Dec 2020 04:50 AM PST

    I'm new to C. How do i transfer lets say " int a = 5" how do i transfer the value of A ( which is 5) to another function?

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

    Point of sales (c program )

    Posted: 28 Dec 2020 04:43 AM PST

    I cant seem to run my program correctly. The dates is not correct as well. My whole program is wrong. I have no idea which part js wrong and which part to change pls help. Feel free to dm me for the question and my program. Thank you!

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

    Can someone help me compile this tetris game?

    Posted: 28 Dec 2020 04:30 AM PST

    https://www.codeproject.com/Articles/186028/MVC-Bricks-for-ASP-net

    I tried to compile this game using Visual Studio 2017, but the sln would keep closing on its own after 5 seconds when opening it. Not sure how to go about this. If someone could compile it for me for Windows 10, I would be so thankful.

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

    No comments:

    Post a Comment