• Breaking News

    Sunday, November 28, 2021

    How do we google strings that are special characters? Like this code: (?!.*\.\.)(?!.*\.$)[^\W][\w.]{2,24} Ask Programming

    How do we google strings that are special characters? Like this code: (?!.*\.\.)(?!.*\.$)[^\W][\w.]{2,24} Ask Programming


    How do we google strings that are special characters? Like this code: (?!.*\.\.)(?!.*\.$)[^\W][\w.]{2,24}

    Posted: 27 Nov 2021 09:01 PM PST

    In Python 3.10, it's from this line: match = re.match(r'https://www.example.com/@(?!.*\.\.)(?!.*\.$)[^\W][\w.]{2,24}/video/[\d]+([?][\w])*',

    It's unsearchable in search engines it seems.

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

    How to deal with developer imposter syndrome ?

    Posted: 27 Nov 2021 11:25 PM PST

    I've been learning mern stack for a year now and i can build stuff from scratch. But when i try and browse for jobs somehow when i check those job posting , i would find a piece of stuff that i don't know and my OCD would trigger the developer imposter syndrome. All of a sudden i would feel like that i don't know anything or i'm just not good enough. I would again go back to learning that library or framework only to come back to find something new. Is it something that happens with most people or is it just me. And how do i deal with it ?

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

    Do you ever get the tetris effect with coding?

    Posted: 27 Nov 2021 09:56 PM PST

    For those who don't know, the tetris effect is something that can happen to people who play a ton of tetris. They will think of everything in the context of tetris, things like looking at shapes in the real world and think of what tetris blocks would fit there. Whenever i get really i to coding i get this for the next few days. It mostly happens when my brain isn't fully active. ie: spacing out or shortly after I wake up.

    if i had been doing a lot of assembly what will happen is i will see something like my cat, and my brain will try to piece together what the mov, jmp, push, pop, add, etc… commands are before i realize that that dumb and impossible. I wanna know if anyone else gets this or if im just crazy. I dont mind it, its kinda cool. I saw the x86 assembly code of my dick once… it was apparently only 32 bit :(

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

    Can this be done?

    Posted: 28 Nov 2021 12:04 AM PST

    I have to do something manually at work. Wondering if this can be programmed? Important to note that my work restricts the installation off new programs so my options are kind of limited. For example I can't install the Python environment.

    Basically there's a site in which I need to input data from Excel. However this is a site that needs to be logged into each time so I cant use VBA to instruct it what to do.

    Essentially what I'd like to do is to open 20 tabs manually to the correct page. Then I'd like to copy the first cell in Excel and paste it in the first browser tab, then go to the second Excel cell and paste it in the second browser tab, and to do this 20 times.

    Is there a way of doing this?

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

    Python crash maximum recursion depth

    Posted: 27 Nov 2021 11:37 PM PST

    Hi,

    The title isn't very explicit I am sorry. I'm working on a maze generator in Python and have a problem with a maximum recursion depth error.

    I've seen that using "sys.setrecursionlimit" should help, but it didn't change a thing in my case.

    The only thing that changed this error for me was putting the generation in a step-by-step function and calling each step in a for loop, but I don't see the difference with the original code where I call the next step at the end of each one.

    The global process in the crashing case is : generate a wall, create a hole in it, repeat with one of the two sub-rooms that have been created and put the other in a list (used as a stack) until the rooms are of minimum size and the stack is empty.

    The other version would be more of : generate a wall, create a hole in it, stock the next room to be created in a vector and the other one in the stack. I then can call a function building a room depending on the variables stocked in the said vector and repeating the process.

    Not only do I not see the difference in terms of taken space, but I also made a version where the function of the second version is called in a for loop 10000 at once, so it seems to be the exact same idea.

    Does anyone know why it does this ?

    Sorry this description is very wordy and maybe not very clear.

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

    Load balancer and CDN relationship

    Posted: 27 Nov 2021 09:16 PM PST

    So in system design diagrams load balancers and CDNs are always in the picture. Though I can't find the exact answer on who actually checks the CDN to see if the content is in there or not, the load balancer or the server?

    CDN

    request->LB -> Servers

    So in this simple example, what happens?

    1. request received by load balancer, load balancer selects the appropriate server. The server checks the CDN and sees that the CDN has the necessary content for the request and fetches it from there.
    2. request received by load balancer, load balances checks the CDN and sees that the CDN has the necessary content for the request and fetches it from there.

    Or does it work another way? Load balancer is ultimately an endpoint that clients can reach, it should be able to check if it even needs to select a server or if the CDN already has the necessary things based on the request?

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

    Is there a good free university program available online?

    Posted: 27 Nov 2021 09:14 PM PST

    Hey everyone i'm not a student but i want to learn programming from a college program

    My english is not that good but i basically want a site where i can find questions and lessons of coding but from a university, I tried to visit the official website of Oxford but no response.

    I just want a beginner university program where i can start from zero with other students but online and without having to pay.

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

    Recup keyboard disposition automatically

    Posted: 27 Nov 2021 06:49 PM PST

    Try coding a virtual keyboard in C# and I want my program to retrieve and copy automatically the configuration of the initial keyboard.

    submitted by /u/DjO2-1996
    [link] [comments]

    Missing "Generate APK Bundle" in Android Studio. Help?

    Posted: 27 Nov 2021 06:41 PM PST

    I use Android Studio. Kotlin. Flutter. I've read in many articles and forums and watched YouTube videos on how to build .aab file. And they all lead to the option "Generate APK Bundle" which should be visible in BUILD > GENERATE APK BUNDLE but in my case it's not. I can't attach the image here though.

    I also searched for solutions but none worked. Here's a copy of what Flutter doctor showed from the Terminal.

    Flutter (Channel stable, 2.5.3 on Microsoft Windows [Version 10.0.19.42.1348], locale en-US) Android toolchain - develop for Android devices (Android SDK version 30.0.0) Chrome - develop for the web Android Studio (version 2020.3) Connected device (2 available)

    No issues found.

    My laptop is Windows 10, x64

    Thank you.

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

    Learning C/C++ via algorithm and data structure questions

    Posted: 27 Nov 2021 05:41 PM PST

    I would like to know whether it would be a good idea to learn C and C++ by practicing algorithm and data structure questions. I am well acquinted with Python, R, MatLab, and Swift, and have a decent understanding with the theoretical side of algorithms. However, I think my understanding of algorithms is held back by the friendly nature of Python. Also, I would like to learn the idiosyncrasies within C and C++.

    Would this be the good way to go about it? The other method I can think of is to do a project with them… but I am unfamiliar with the kinds of projects done with either.

    Thank you for any assistance you can provide.

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

    Is working for an agency a good idea ?

    Posted: 27 Nov 2021 04:18 PM PST

    So here is the thing I am a new dev who is currently learning and my goal is to land a job at a decent tech company but in my area there is Wordpress/PHP work available, the type of work I want to do is preferably on a startup but my friends insist this would be a good learning experience, so have you guys dealt with this what did you do ?.... Any advice.

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

    What programming language should I learn in order to write apps for the Tesla Pi Phone?

    Posted: 27 Nov 2021 03:03 PM PST

    I've worked on iOS, Android, and Windows, so I am familiar with C++, Java, Kotlin, Objective-C and Swift.

    What language will the Tesla Pi Phone use?

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

    Still grappling with this load balancer question… what are they trying to get at?

    Posted: 27 Nov 2021 11:15 AM PST

    I had this interview question I'm still grappling with. Anyone know how they would answer?

    Idk how to go about asking this because I feel like I don't really get the question and what concern they are trying to highlight but maybe that's the point of the question. Question is: —————

    A system exists with the following restraints:

    • One user may work on the same document at the same time

    • The document must be handled by a single server no matter how many users are using it

    • No way to spread the document server load

    • Each server can handle several documents at a time

    • No way to spread the load

    • Load balancer uses round robin to sign document

    Do you have any concerns with the load balancer?

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

    How to stop a function from running while it is already happening

    Posted: 27 Nov 2021 09:00 AM PST

    Dialog

    Like always for me, I'm making a script code of practising movement. In this ive made a jumping function where it goes upwards, waits 0.5s and goes back down to the ground.

    Problem

    In my script, its meant to only allow you to jump once until you land back down on the ground although im not currently sure on how to do this as when you click the jump button multiple times it will make you go higher multiple times instead of only allowing the script to run once untill it reaches the ground again.

    What im asking

    Is their anyway possible that someone could tell me a resolution to this problem or try automatically add in the script the fix

    Code

    import turtle as turtle

    import time as t

    Screen = turtle.Screen()

    #Screen Setup

    Screen.bgcolor("white")

    Screen.setup(width=700, height=400)

    Screen.bgpic("Pixel Forest.png")

    #Turtle Setup

    turtle.shape('turtle')

    turtle.shapesize(stretch_wid=1, stretch_len=1)

    turtle.color("white")

    turtle.penup()

    turtle.speed(20)

    turtle.goto(0, -170)

    turtle.speed(2)

    #turtle def (functions)

    def GoingRight():

    turtle.speed(20)

    turtle.setheading(360)

    turtle.speed(2)

    turtle.forward(30)

    def GoingLeft():

    turtle.speed(20)

    turtle.setheading(180)

    turtle.speed(2)

    turtle.forward(30)

    def Jumping():

    turtle.speed(20)

    turtle.setheading(90)

    turtle.speed(2)

    turtle.forward(50)

    t.sleep(0.5)

    turtle.setheading(270)

    turtle.forward(50)

    def StopGame():

    turtle.bye()

    #keybind entering

    Screen.onkey(GoingRight, "d")

    Screen.onkey(GoingLeft, "a")

    Screen.onkey(Jumping, "w")

    #closing the game

    Screen.onkey(StopGame, "Escape")

    #listening for key movement

    Screen.listen()

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

    Looking for automation approchoches.

    Posted: 27 Nov 2021 09:00 AM PST

    I have been coding C# for just over 15 year in various forms for various projects.

    Currently we use EF for Orm to Database creation. Over the years we have a coding style / template that that works.

    They are the basic crude but in our templating style.

    We have a POCO class to define tables which we write the attributes relating to the data that needs to be stored.

    Now we have a DA modelFatory that basically for eatch POCO model. Similar to A ViewModel.

    In these DA models (classes on their own) does CRUD operations on the DB, such as methods that Populate and return the Model from DB, Save(model), ListAllModelsEntries returning a list.

    We also generate APIs for external accsess, so we have in the Controllers methods such as InsertPerson(model), which calls, PersonDA Model.Save(Model)

    GetPerson(ID) { Var Mode = NewPersonDA()

    Model.personID = ID

    persons Model.getID(ID) return OKObject()

    )

    Above is brief, and I hope can make the goal understandable

    The question is how could I create the API Controller, the API Endpoints, and the DA model and methods automatically based on my POCO Models, as these are default methods that is standard foundation on most of our code.

    I can engineer by own generator, text files etc to write the code.

    I am just looking to see if there is a product to do these crude in my style already available.

    Your assistance would be greatly appreciated.

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

    No comments:

    Post a Comment