• Breaking News

    Saturday, February 22, 2020

    12 year recreational programmer, 8 year Engineer, what degree would ensure a 60$+/hr job? Ask Programming

    12 year recreational programmer, 8 year Engineer, what degree would ensure a 60$+/hr job? Ask Programming


    12 year recreational programmer, 8 year Engineer, what degree would ensure a 60$+/hr job?

    Posted: 22 Feb 2020 05:18 PM PST

    I have a bachelor's in chem Engineering, masters Engineering Management. I've been programming and hosting servers since high school.

    Looking to get into programming, but I cannot get an interview despite embedded projects (built a dishwasher), I've done full stack, machine learning/random forest in VBA(holy shit).

    I have savings and ready to go back to school. Any suggestions? PhD? A quick Bachelor's?

    I don't mind taking a pay cut to ~40$/hr, but I can't get interviews.

    Suggestions?

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

    What would a good stepping stone towards becoming an Artificial Intelligence Specialist be, but also could still realistically get a job with?

    Posted: 22 Feb 2020 08:03 PM PST

    Hi there, pretty much title. I've seen some courses from a college (NAIT) I'm looking at like Python, but I feel like learning just a language isn't enough to land a job.

    I have a general career goal in mind that I imagine will take me decades to come in to, but I do still need income in the meantime.

    I appreciate any tips you guys may offer me :)

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

    How optimized is the language known as "Brainfuck"?

    Posted: 22 Feb 2020 10:11 AM PST

    It seems super minimalistic so I wonder if perfectly written "Brainfuck" would save CPU cycles compared to languages such as Python, or C, or assembly?

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

    Hex editing a game help

    Posted: 22 Feb 2020 04:42 PM PST

    Hi, I've been trying to find the offsets of the other levels in the game: Blinx the time sweeper for xbox. I already know the offset for level 1-1, which is "322598". How can I find out the other offsets for levels 1-2, 1-3, 2-1, and so on? Sorry for such a confusing post, I'll try to answer questions if needed. Thanks!

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

    Creating a ToC for an existing PDF

    Posted: 22 Feb 2020 09:52 PM PST

    So... this is kind of one of those 'scratch an itch' sort of things. I have a couple of PDFs of text books - completely legit, freely available over the internet from the authors, etc. but the format as provided doesn't have a table of contents (or 'bookmarks') side-bar. These are pretty lengthy, technical texts, and it just seems absurd to not have a functional ToC. Yes, technically there is a ToC in the 'front' like in a 'paper' book, but no 'virtual one.

    In theory, how hard would it be to deconstruct these PDFs (assuming the publisher didn't put something in place to lock them down) and then re-construct them with a functional ToC? What would be the best way to do such a thing? I've got a little bit of experience with Python, and have spent some time working with PDFs in that, but mostly in terms of extracting tabular data from reports.

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

    Need help downloading lectures from Canvas

    Posted: 22 Feb 2020 08:29 PM PST

    Hi all,

    I'm currently a student, and we use Canvas to view video lectures. I'd like to download these videos to my hard drive, however it doesn't seem like Canvas has the capability. I did some research online, and I've tried to "inspect" the video (right-click, inspect) and scroll through the code to find the source link. Once I find the link, the address starts with BLOB and it doesn't allow me to view the original video for downloading. Can anyone please help me bypass this? I'm open to any suggestions. Thanks all

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

    How to name variables when dealing with non-english data?

    Posted: 22 Feb 2020 12:25 AM PST

    I live in a non-english speaking country but I usually just code everything in English, in normal circunstances if a need to store data retrieved from a database in a variable I'd name it the same as the field on the DB, something like this

    //Person is a object that contains data retrieved from a DB var name = Person.name 

    But in my current project, I'm dealing with a database filled in Spanish and I'm not sure what would be the best way to name my variables.

    var name = Persona.nombre 

    If I translate the field names and name my variables in English like in the rest of the code, the same data would be referred with two different names, and it may be less clear what data the variable is supposed to hold. On the other hand, if I respect the Spanish name I'd end with weird Spanglish code.

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

    My programmer friend and I have a kinky game we play with each other. What language is this in and what does it mean? Can I paste it somewhere to use it?

    Posted: 22 Feb 2020 06:11 PM PST

    nkicks = int(input("How many kicks? ")) # first two kicks n1, n2 = 0, 1 count = 0 # check if the number of kicks is valid if nkicks <= 0: print("Please enter a positive integer") elif nkicks == 1: print("Fibonacci sequence upto",nkicks,":") print(n1) else: print("Fibonacci sequence:") while count < nkicks: print(n1) nth = n1 + n2 # update values n1 = n2 n2 = nth count += 1 
    submitted by /u/Garvin2
    [link] [comments]

    Going down on abstraction levels

    Posted: 22 Feb 2020 04:14 PM PST

    As a first semester student of computer science, I learned to code with python. The language is great, but it hides the work "behind the scenes" that the computer does.

    I'm thinking about learning C, because it seems a good next Step to lower the abstraction. What do you guys think?

    If you desagree, please answer with a suggestion. Thanks in advance!

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

    Name the term..

    Posted: 22 Feb 2020 11:45 AM PST

    During my reddit years, i sometime ago stumbled over a concept or a qoute aboute how a programmer can stand do something manually, but when the x times he have to do it reaches a certain point, he will put in the work to do it programmatically..

    Please help me, cant remember what it is called..

    Edit

    this might be an obscure wiki page i found some years ago..

    But the concept was about that a programmer will do a mundane and simple task manually, for example copying a line from a text file and pasting it at the bottom of another file.

    This in it self maybe takes a couple of seconds to do, and then the job is done. It would take much longer to write a script do this work.

    But it would be beneficial for the programmer to write such a script if the job is done repeatedly.

    So if the work to write the script takes 1h, one can do quite alot of work worth of 1h. So where is the tipping point when you finally creates the script, 1x of the script time, 2x the script time. So the total amount of work before you no longer needs to do the job i say what 3x the script creation time.

    This is the ide i want to find the name for.. But i cant find the wiki page about it, and dont know of what keywords to search for...

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

    Why does hashing a hex string yield a different result than the same string, but binary-encoded (SHA256)

    Posted: 22 Feb 2020 01:57 PM PST

    Hi there,

    I have been learning about SHA256 and cannot figure out why hashing "00000000" yields a different result than the binary-encoded version of the same string (which ends up being '\x00\x00\x00\x00')

    I suspect this has something to do with encodings, which I do not have knowledge about.

    What exactly is happening when the hex string is encoded and then hashed?

    Why does the hex string give a different result than the binary encoded version?

    Is "binary encoded" even the correct term?

    I have my python code below:

    >>> import hashlib

    >>> str_hex = "00000000"

    >>> str_bin = str_hex.decode('hex')

    >>> hashlib.sha256(str_bin).hexdigest()

    'df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119'

    >>> hashlib.sha256(str_hex).hexdigest()

    '7e071fd9b023ed8f18458a73613a0834f6220bd5cc50357ba3493c6040a9ea8c'

    Any help is appreciated, thanks.

    submitted by /u/1gh62n245b
    [link] [comments]

    What are your favorite letters to use in for loops and/or nested for loops?

    Posted: 22 Feb 2020 12:17 PM PST

    I know most people probably use 'i', but personally I prefer to use 'j'. Something about 'j' just seems as though it's willing to go through more for me, and will be my loyal servant until the end of time. 'i' just seems to me as though it will ditch you as soon as the going gets tough. Let go from your job? 'i' will go find someone else. Car broke down? Fuck you, 'i' is walking to the nearest petrol station, ordering a taxi and going home. 'j' will always be there for you. When your ferret dies and you're devestated, 'j' will be there, rubbing your head until you cry yourself to sleep. 'j' understands you as a person.

    I also sometimes enjoy using 'z', 'q' or 'v'.

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

    Need help finding SOAP and REST services for finances

    Posted: 22 Feb 2020 05:47 AM PST

    Need help finding SOAP and REST services for finances. It doesn't have to be anything complicated. Simple calculations will do (i.e calcVAT or something). This is for educational purposes and not for business.

    I am a student so preferably something free. All the financial SOAP services I find either charges large amounts of money or has like a limited 2 week trail.

    Know of any good free ones? Please let me know!

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

    How do I resolve ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

    Posted: 22 Feb 2020 11:16 AM PST

    When trying to run my program I keep getting this error below.

    Traceback (most recent call last): File "C:\Users\R\Desktop\CeaserCrypt\Program_B.py", line 49, in <module> get_the_file() File "C:\Users\R\Desktop\CeaserCrypt\Program_B.py", line 13, in get_the_file s.connect((host, port)) # Bind to the port ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it 

    What does this mean and why am I getting it? This is the code:

     import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = socket.gethostname() # Get local machine name port = 12345 # Reserve a port for your service. s.connect((host, port)) # Bind to the port f = open("T.dat", "w") data = None while True: m = s.recv(1024) data = m if m: while m: m = s.recv(1024) data += m else: break f.write(data) f.close() print("Received the file..") return 

    And yes, my firewall/antivirus is off

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

    Raspberry Gekko

    Posted: 22 Feb 2020 09:44 AM PST

    Hey,

    I have a problem with gekko on my raspberry.

    I can access to the gekko web page with my pi

    but I'm getting this message :

    This is Gekko crashed with the following error: ERROR: The plugin sqlite adapter expects the module sqlite3 to be installed. However it is not, install it by running: npm install sqlite3@3.1.4

    So I wanted to update the sqlite but i get this message :

    gypgyp ERR!ERR! configure errorconfigure error

    gypgyp ERR! ERR!stack Error: EACCES: permission denied, mkdir '/home/pi/gekko/node_modules/sqlite3/build'

    stack Error: EACCES: permission denied, mkdir '/home/pi/gekko/node_modules/sqlite3/build'

    gyp gypERR! System Linux 4.19.97-v7l+

    ERR! System Linux 4.19.97-v7l+

    gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "configure" "--fallback-to-build" "--module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm"

    gyp gyp ERR!ERR! cwdcommand /home/pi/gekko/node_modules/sqlite3

    "/usr/bin/node" "/usr/bin/node-gyp" "configure" "--fallback-to-build" "--module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm"

    gyp ERR! gypnode -v v10.15.2

    gypERR! ERR! cwdnode-gyp -v v3.8.0

    /home/pi/gekko/node_modules/sqlite3

    gypgyp ERR! ERR!not ok

    node -v v10.15.2

    gyp ERR! node-gyp -v v3.8.0

    gyp ERR! not ok

    node-pre-gyp ERR! build error

    node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/bin/node-gyp configure --fallback-to-build --module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm' (1)

    node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/gekko/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)

    node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)

    node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)

    node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

    node-pre-gyp ERR! System Linux 4.19.97-v7l+

    node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/gekko/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"

    node-pre-gyp ERR! cwd /home/pi/gekko/node_modules/sqlite3

    node-pre-gyp ERR! node -v v10.15.2

    node-pre-gyp ERR! node-pre-gyp -v v0.6.28

    node-pre-gyp ERR! not ok

    Failed to execute '/usr/bin/node /usr/bin/node-gyp configure --fallback-to-build --module=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/gekko/node_modules/sqlite3/lib/binding/node-v64-linux-arm' (1)

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build`

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the sqlite3@3.1.4 install script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2020-02-22T17_04_06_405Z-debug.log

    What should i do ?

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

    Design patterns and software architecture in OOP/FP hybrids

    Posted: 22 Feb 2020 04:53 AM PST

    Hello, I hope this is the right subreddit to ask this kind of questions!

    First, an introduction. Most of my professional experience with programming (3.5 years) comes from maintaining a huge Java EE monolith application with a relational database, that could be described as "layered ball of mud". I also have some experience with Python and recently I've started writing microservices in Scala. Due to some issues with our Scala stack, my team may want to write our future services in Kotlin.

    And now, my story. What I noticed when switching to Scala, is that a lot of the stuff that I learned when working with Java seems to have been invalidated. Apparently, my team tends to ignore Uncle Bob's "good practices" such as not creating methods with over 3 arguments, creating distinguishable DTOs to move data between layers (especially between controller & service & database layers) and not to nest ifs and loops to deeply - to list some. Sometimes I can even see that service layer is entirely removed in favor of direct DAO/controller communication.

    Simultaneously, I have noticed that a lot of the good old fashioned design patterns (Gang of Five) and architecture patterns (Martin Fowler & others) have been solved/integrated either on the framework level or even by the programming language. On the other hand, I think that stuff like pattern-matching on data classes tends to replace polymorphic behaviour, which is a huge shift in logic placement.

    So, here come my questions:

    1. How do you approach Java/C++/Smalltalk originating design patterns with languages such as Scala, Kotlin and Python?
    2. How do you know which practice is a good practice? I'm mostly concerned with stuff like objects that carry method arguments vs named method arguments, using custom classes vs using tuples etc. I strive to write code that is idiomatic, but relatively often I have a hard time judging whether my idea leads to overengineering or not.
    3. Since the languages I mentioned combine FP with OOP, how do you know when to use FP techniques as opposed to OOP techniques? I think it might be my problem with Scala - this language is so flexible that it allows me to solve a problem with either OOP and FP, but I have to make a choice at some point. With Java, this used to be much easier.
    4. Did the value of separation of concerns principle decrease in microservice-oriented environments? Personally, I can't see a reason for that to happen (adding another DTO just for the sake of clean layers doesn't feel like a huge time investment most of the time), but that's what I think I'm observing in my team.
    5. Do you know of any resources on design patterns & software architecture resouces that concentrate on these "modern" high level languages and microservices that you can recommend? I have a list of classics to read, but I was wondering whether there's something newer that I'm not aware of.

    Thanks in advance!

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

    Graduated Software Development almost a year ago. Can't find a job. What can I do in the meantime to stop my skills from deteriorating?

    Posted: 22 Feb 2020 04:46 AM PST

    I'm looking for any online resources that I can use to stop my programming skills from deteriorating. Also open to learning new skills. Anyone know of any resources that I could use?

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

    Your opinion on Bootstrap?

    Posted: 22 Feb 2020 04:52 AM PST

    I'm a senior in CS and IS (double major). I am mainly focused on iOS, and Android development. However, I have developed a few websites for fun and I think it's a nice skill to have in your back-pocket, just in case. Over the last 4 years I've used WordPress, pure PHP, and (currently) ASP.NET Core.

    I recently had a very nice conversation with an experienced web developer who said that Bootstrap 4 has caused a lot of issues in development and that it causes more problems than it solves. However, he didn't really go in depth.

    My experience has been that it's a useful skill in my toolbelt. It's an easy way to create a mobile-friendly website fast. I absolutely understand the appeal if someone needs to create a quick demo. It really helps making a layout that looks decent. I understand the visual downside that every website you make looks a bit... vanilla. Like, it's really obvious that Bootstrap has been used.

    My question is directed towards creating a "real" website -- something complex, having multiple developers, and a demanding design. Would using Bootstrap create serious issues down the line? What is your opinion on Bootstrap in general? And what are some alternatives used in industry?

    I know everybody has strong opinions but please keep it civil in the comments. Thank you.

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

    Lookging for Project Suggestions

    Posted: 22 Feb 2020 04:30 AM PST

    Heya guys,

    I have some free time coming up next week and I'm looking into a project to work on. I have a list of languages / technologies / concepts etc. I find interesting or would benefit me at work.
    Those include * MS Graph API * Splunk / Elasticsearch * Docker * Kafka * CyberArk / Hashicorp vaults * Saltstack I'm currently finishing an Android app that my flatmates can use to check in and out of our shared parking lot. I work with python most of the time, but am open to any other language. Topics I'm interested in would be personal finance, security, productivity and music. Did anyone of you do something related to some of that stuff recently or has an idea? Cheers

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

    Sell pc and buy macbook pro 16”

    Posted: 22 Feb 2020 01:43 AM PST

    Shod I sell my pc(i7-7700k 24gis ram and ssd's) so that I can buy the macbook pro 16" with better specs and then buy a Doc/hub for my monitors etc so i can use the macbook pro also as my main system?

    I mostly program with React.ts, dotnet core and maybe java(for my college cs).

    So i am stuck with the choice for an i9 or i7 model. I sure want to have the 32gigs because my 16gig laptop is fully in use when compiling code (react). A colleague has the macbook 16" and it is razor fast like holy shit fast. Compile times are sometime one third of mine.

    If there is anyone with experience with these models and has some advice it is really appreciated!

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

    No comments:

    Post a Comment