• Breaking News

    Saturday, September 11, 2021

    What’s the development/project cycle like where you work? Ask Programming

    What’s the development/project cycle like where you work? Ask Programming


    What’s the development/project cycle like where you work?

    Posted: 11 Sep 2021 08:48 PM PDT

    Do you work in sprints? Ad-hoc? Have no process? Have a lot of process?

    I'm interested in what real world teams are doing and also do you like it? Any way you think it could improve?

    submitted by /u/Satanic-Code
    [link] [comments]

    C# to python

    Posted: 11 Sep 2021 04:04 PM PDT

    Recently I accepted a job in a python shop. They know that I have no professional experience in it, and will teach me.

    That is, they will take me through the conventions they follow as a team/department as well the ones they've established - not so much provide an understanding of the language. That's on me.

    I'm trying to learn by translating the breadth of what I do now into python. What aspects of the language did you wish you knew prior using python in a professional setting?

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

    Hiring managers of Reddit, if someone built a small project and presented it on their first round interview, would you be impressed?

    Posted: 11 Sep 2021 04:26 PM PDT

    I am building a small scale project for my interview Monday with a publicly traded company and have decided to take some stock data and analyze it using the tools listed in the job description. I want to do a quick presentation during my interview, but I am starting to wonder if this might come across as cheeky? Would you be impressed if someone did this? I am not a stock guru, but datasets are of daily open/close etc info is easily accessible , however I don't want to open up any possible pitfalls by potentially not being able to answer a question about stocks or analyzing something incorrectly. The company seems to have great culture and I got good vibes from the phone screening so I feel good about it, just don't want to possibly shoot myself in the foot.

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

    Trying to learn C# to mod my favorite game, Rimworld, what’s the most basic mod you can think of?

    Posted: 11 Sep 2021 08:22 PM PDT

    Not sure if anyone will know what I'm talking about, but it's my basic end goal to create ANY mod for Rimworld. There's a million out there already, and I wanna try to make my own for fun. Anyone have any experience modding a game?

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

    Monitor suggestions for a programmer

    Posted: 11 Sep 2021 08:02 PM PDT

    I just started my first career job as a software developer this past week. I'm proud to be working at this company, and I believe they really are a great company, but when it comes to technology supplies, they're pretty cheap. Since most employees are WFH most of the time, all the new hires were given a laptop (I believe most/all other employees have one too, but that's irrelevant) and a basic desk kit. I mean really basic. Mouse and keyboard I couldn't really care less about (although I'd like to upgrade those eventually), but I was only given a single 4:3 monitor (thankfully I had an extra 16:9 sitting around at home for my home office). Naturally, in this profession, that's not going to work.

    So with all that likely unnecessary background out of the way, what monitors would you guys recommend? I'd like 2 at minimum, preferably at least 1 ultrawide, and all of them able to swivel to portrait.

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

    Could anybody please help me understand about the new modifier in C# ?

    Posted: 11 Sep 2021 07:23 AM PDT

    C# pastebin: https://pastebin.pl/view/e465f2e2

    Why does a.Print() and ((A)c).Print() output "B" ? I mean, they are actually D instances, I would expect them to output "D" like c.Print(), but they don't.

    Is there any resource on the official spec of C# that mentions this behavior of new modifier ? I would like to read up more about this but don't really now where to look.

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

    DSA TUTOR

    Posted: 11 Sep 2021 06:52 PM PDT

    Any paid private DSA(preferably java) tutors who can train me for competitive programming

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

    Jitpack Build Error ("http://cache")

    Posted: 11 Sep 2021 02:27 AM PDT

    I'm very new to uploading/creating java libraries and I've been researching this issue for a while and have not even found a solution.

    Here is my jitpack.io build log: https://pastebin.com/HythnFhQ

    Additionally, here is my build.gradle for my Java library.

    plugins { id 'java-library' id 'maven-publish' } sourceCompatibility = '16' group = 'com.github.beanbeanjuice' group 'com.beanbeanjuice' version 'v1.0.0' repositories { // maven { // url "https://jitpack.io" // allowInsecureProtocol = true // } // maven { // url "http://cache" // allowInsecureProtocol = true // } mavenCentral() } dependencies { // JUnit - Unit Testing testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.0-M1' testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine' // Jetbrains Annotations implementation group: 'org.jetbrains', name: 'annotations', version: '21.0.1' // JSOUP - Parsing JSON implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1' // JSON implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.3' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.3' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.12.3' // Logback implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3' // HTTP implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13' // DOTENV implementation group: 'io.github.cdimascio', name: 'java-dotenv', version: '5.2.2' } task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives sourcesJar archives javadocJar } wrapper { gradleVersion = "7.1" distributionType = Wrapper.DistributionType.ALL } publishing { publications { maven(MavenPublication) { groupId = 'com.beanbeanjuice' artifactId = 'cafe-api-wrapper' version = '1.0.2' from components.java } } } test { gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS useJUnitPlatform() } //apply from: 'https://raw.githubusercontent.com/sky-uk/gradle-maven-plugin/master/gradle-mavenizer.gradle' 

    The thing is, build is perfectly fine when run on my computer. I know there is a jitpack.yml, which I will also show here.

    before_install: - echo "Before Install" - ./ensure-java-16 install install: - echo "Install" - if ! ./ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi - java -version # Thanks to https://github.com/jitpack/jitpack.io/issues/4355#issuecomment-744678253 

    The ensure-java-16 file contains this;

    #!/bin/bash JV=`java -version 2>&1 >/dev/null | head -1` echo $JV | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/' if [ "$JV" != 16 ]; then case "$1" in install) echo "Installing SDKMAN..." curl -s "https://get.sdkman.io" | bash source ~/.sdkman/bin/sdkman-init.sh sdk version echo "Updating SDKMAN..." sdk update echo "Installing JDK 16" sdk install java 16.0.2-open ;; use) echo "must source ~/.sdkman/bin/sdkman-init.sh" exit 1 ;; esac fi 

    Now, to get to the point. In line `226` (142 in pastebin) of the log file, it says that gradle/maven does not support insecure protocols. This is fine! However, the repository that is bugging it is `http://cache` which... is not in my `build.gradle`. I've tried to add it manually and allow insecureProtocols, but that still has not worked.

    Again, on my home PC, build goes perfectly fine and smoothly. On jitpack, however, the build seems to fail. This is just a small personal project, but I would like to figure out what is wrong so that I can at least learn from this. Thank you all so much!

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

    The client is not getting the response they should get.

    Posted: 11 Sep 2021 11:50 AM PDT

    Hey, I'm attaching the link of my actual question posted on stackoverflow. I didn't write here because it would create a problem for you all to read. Please help me. Please...

    my question

    submitted by /u/Winter-Protection-62
    [link] [comments]

    How i convert a html template to a pdf format ?

    Posted: 11 Sep 2021 10:05 AM PDT

    The application i want to make will take data from the user with help of form and then generate a
    ejs template using that data . My query is that if there's a way to print the template as it or maybe convert it into a pdf and download it .

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

    Proper Class Instantiating (Error: argument 1 has unexpected type 'Ui_MainWindow') - PyQt5/Class Problems. Need Help

    Posted: 11 Sep 2021 09:44 AM PDT

    Hey everyone,

    I have problems with proper Class instantiating. I know that self is of the wrong type, I mean it says so in the Error.
    I know that it won't work, but I also don't know how to best work around it?

    Really hoping someone can help me out. Let's say this is my code:

    class MainWindow(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setObjectName("MainWindow") self.resize(1052, 804) self.setStyleSheet("background-color: rgb(24, 23, 24)") self.button1 = QPushButton(self) self.button1.setGeometry(100, 100, 100, 100) self.button1.setStyleSheet("background-color: white") self.button1.clicked.connect(self.is_clicked) def is_clicked(self): self.r = MainWindowTwo() self.r.show() class MainWindow2(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setObjectName("MainWindow") self.resize(1052, 804) self.setStyleSheet("background-color: rgb(24, 23, 24)") self.button1 = QPushButton(self) self.button1.setGeometry(100, 100, 100, 100) self.button1.setStyleSheet("background-color: white") self.button1.clicked.connect(self.is_clicked) def is_clicked(self): ~ how to call MyWidget? ~ class MyWidget(QWidget): ~ code that checks if buttonpress was left - or right-click ~ def run(): app = QApplication(sys.argv) m = MainWindow() m.show() sys.exit(app.exec_()) run() 

    so, step by step:

    1. I instantiate MainWindow by running def() (and a window with a button pops up)
    2. I press the button, MainWindow's "is_clicked()" method is called
    3. I instantiate MainWindowTwo with self.r = MainWindowTwo()
    4. Another window with a button pops up, I press it, MainWindowTwo's's "is_clicked" method is called

    Here's where it stops for me... I would like to make another Class ( Class MyWidget(QWidget) ) and call that, but it's of a different type, QWidget. It should check whether the last button press

    ( self.button1.clicked.connect(self.is_clicked) ) was a leftclick or a rightclick. But yea, it inherits from QWidget and not QMainWindow like my other 2 classes.

    How would I check if self.button1... that particular button press was either left or right-click when the method to do so sits in a Class that inherits from QWidgets and not QMainWindow and is therefore a different type than self.button1 ?

    Would I need to do something like:
    self.buttonpress = self.button1.clicked.connect(self.is_clicked)

    and then self.buttonpress = MyWidget()

    or is that complete nonsense?
    Really hope someone can help me out, I want to understand this better.

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

    Hex data question

    Posted: 11 Sep 2021 09:24 AM PDT

    Hi

    I'm trying to learn some hex editing but ran to a weird problem. I was looking for string "Sarah" from save file but in the file the characters are as: "aSar.h"

    I don't know why that is, could the file be encoded?

    any hex editing tips/tutorials also welcome :)

    thx

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

    How does one edit flash games entirely through decompilers and other tools?

    Posted: 11 Sep 2021 07:20 AM PDT

    To start it off I just got a decompiler called JPEXS and while I did manage to mess around with the code a little bit and change the text I don't know how to use it completely

    Its a tad bit confusing here and there and I wanted to use the thing for so many things like hacking games like cyclomaniacs and you know

    Or even add that armor games intro to every single flash game that did not contain one, Doing something similar to this

    You can see that the person used adobe flash too

    So I wanted to ask, What are the requirements to fully edit a flash game? What tutorials should I use? How do I hack things like coins and what not? Add more scenes or extra things like new characters?

    Do I need adobe flash in order to do most of those too?

    Any help?

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

    About indentation (tabs vs spaces)

    Posted: 11 Sep 2021 06:12 AM PDT

    I keep seeing people online arguing about wether indentation should be in tabs or spaces. My question is since this comes down to personal preference and most editors allow you to set tab width to what you like, why hardcode indentation size in spaces? When I download code from the internet usually it's not spaced how I like, so why not make tabs the default and have everyone see the code as they like. When writing it, most use auto-indentation anyway

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

    What this technology called ??¿

    Posted: 11 Sep 2021 03:47 AM PDT

    I have an android app called "money manager" has the feature "PC manager" when I use it it will give me a link to access the app from the local network from the web browser What this feature name

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

    Kill currently running job in Redis Queue (RQ)

    Posted: 11 Sep 2021 03:36 AM PDT

    Hi Reddit,

    I have a Vue, Django integrated project. I hosted the Vue project on Netlify and the Django project on Heroku. A python script (integrated into Heroku) is called on certain buttons which extract data from a youtube livestream and posts this to the Django API and PostgreSQL database to be viewed on the frontend.

    I use Redis Queue to queue these tasks, however, I want the user to be able to cancel the current job in process. I am able to catch the id of the job (say 'job-id'), so i would like to just do rq.kill('job-id') and let them have the chance to start running another job instead.

    How is this possible? It seems online as if you can only cancel a job in a queue, but not a currently running task?

    Thanks!

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

    How to scrap a public information on web ?

    Posted: 11 Sep 2021 03:10 AM PDT

    Hi, dear people of r/AskProgramming

    I'm looking for the best way to scrap an information from a local web site.

    I want to print an information (number of sit availaible in a library) on a screen for a school project. I need to scrap it from the place's web site, since this information is publicy avalaible there.

    I was looking for a solution with python or node.js but since i'm really lazy i have seen there is Scraping service like Scrapy, OctoParse ... but there is a ton of it and i don't what to think about it.

    So, what is the best way to do it in your opinion ?

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

    Understanding the memory safety issue.

    Posted: 11 Sep 2021 03:04 AM PDT

    I am looking at learning rust but i want to understand the problem they are trying to solve. I have dabbled a bit in cybersecurity in my free time and i understand buffer overflows and i have some practical experience with how data races can be security issue. But in this video, the guy explains that shared mutable state is the root of the memory safety problem, and rust is the first programming language to address this.

    Explain to me "shared mutable state". I kind of understand the "mutable state" part but not the "shared" part (outside of data races). Maybe some examples of how this happens in c/c++ or go?

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

    Enum won't let me use "-"

    Posted: 11 Sep 2021 02:47 AM PDT

    Hello. I have this enum :

    CountWhat what;

    public enum CountWhat

    {

    lines = 0,

    words = 1

    }

    I need to change the word lines with -l, but it won't let me. Error : identifier expected.

    public enum CountWhat

    {

    -l = 0,

    -w = 1

    }

    What can I do to use the -l there ? Thanks.

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

    I feel totally stuck and I need help getting out of a plateau

    Posted: 11 Sep 2021 02:34 AM PDT

    I've graduated uni and been programming professionally for about a year now. I'm mostly doing React and React Native. The first couple of months on the job were really cool because I didn't know much about front-end dev. Everything was new a fascinating.

    Right now, I feel a little stuck. I don't feel like I've learned anything in a while. Do a request, get the data, handle errors, make a component, pass the data to the component, display the data, etc. etc. Every day seems the same. I don't think I've learned much of anything for the last couple of months. I don't have a lot of strong leadership to guide me. We don't really use any cutting edge technology and the whole codebase is a bit basic. I've taken on some managerial and organizational responsibilities just to have something different to do.

    I don't really have the opportunity to learn a lot of things while on the job. I like the idea of that because learning a library while working on an existing project allows you to see best practices, the full possibilities and capabilities while having the guidance of someone more experienced. You can still do that by yourself but the process is wholly different. Redux can be used just to store some variable in global state or a huge amount of the logic can be done through it. And I didn't realize that for a while. I understood the concept of action, actions creator, reducer, store but even so I didn't comprehend the possibilities by myself (for a while).

    I just wanna be a good developer but I feel like I'm in a rut. I try spend 1-2 hours a day learning new things on top of the 8 hour work day. Even so, I don't know what I should focus on learning. Even when I learn something, there's a difference between understanding how something works and understanding how to use it with best practices. That's why I like having more experienced developers to get some guidance and advice.

    It's really easy to find some resources on learning the basics. But I find it hard to progress out of that into more advanced concepts and their proper usage. I just wanna better myself but I'm totally unaware how I should proceed.

    submitted by /u/Wizard-of-Koz
    [link] [comments]

    So my C object file (.o) has some weird symbols in it. What are those? Shouldn't there be just binary (1s and 0s) ?

    Posted: 11 Sep 2021 05:28 AM PDT

    can google do it?

    Posted: 11 Sep 2021 07:30 AM PDT

    can google close or destroy or monopoly flutter or golang , like change license or something like this, cuz I don't understand in software license yet, I am reading but in nutshell can google do it?

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

    help in javascript "this" keyword

    Posted: 11 Sep 2021 12:06 AM PDT

    https://youtu.be/h33Srr5J9nY 6:51

    why doesnt the direct call of setTimeout reset this to refer to window?

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

    No comments:

    Post a Comment