• Breaking News

    Saturday, May 2, 2020

    Do you need microservices? Ask Programming

    Do you need microservices? Ask Programming


    Do you need microservices?

    Posted: 01 May 2020 01:14 PM PDT

    There have been two posts on Medium about Microservices lately. One saying I need them and one saying I don't need them. What should I be learning?

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

    Advice in getting better at problem solving

    Posted: 01 May 2020 10:35 PM PDT

    I need help to be better at problem solving or develop my logic. I'm currently working as a junior programmer but I feel that I'm slow at making functions to solve problems. I think is because my lack of logic to think. So I wanna know how do you got better at it? Which books do you read or which courses did you follow. Thanks in advance

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

    How callendar data was stored before Y2K?

    Posted: 01 May 2020 10:22 PM PDT

    After discussing with some friends the millennium bug (Y2K), I searched how data was stored back them. Most sites just say that was one byte per digit. meaning that the the two digit used to represente the year (the first two were just assumed to be 19) had 16 bits of storage avaliable. But with that amount, numbers up to 65536 could be represented and wouldn't be necessary to spare space assuming the first two.

    Besides, at the time every memory space was very expensive. So why alocate so many bits just for two digit representation?

    I don't know if the 2 bytes information is accurate, since I didn't find any detailed explanation.

    So, if it is true, why 16 bits for 2 digit representation, when 7 bits would do the trick?

    And, if it is misleading information, how callendar data really was stored before Y2K?

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

    How to deal with expectations and overworking with non tech bosses?

    Posted: 01 May 2020 03:54 PM PDT

    So I'm working at this relatively new (3-5yrs) company that suddenly grew too much too fast. Its core business isn't tech related at all, the founders are from other areas like architecture and law, and their core product is related to real estate. Thing is, of the almost 100 people working there, I'm the only one doing any kind of programming work. They have hundreds of excel sheets linked together which brings many problems as you all can imagine ranging from data integrity all the way to security and scalability, in other words, a total mess.

    So one of my tasks has been to try to standardize things, add some security, implement SQL tables in order to build a front-end so users can consume data on a controlled environment, starting with some core and high priority processes while still kinda keeping the existing structure until the shift.

    Here's where it gets tricky:

    Apart from that, I'm also expected to develop a full fledged mobile app for both Android and iOS and implement 2 different Enterprise ERP systems at the same time coordinating with external implementation teams (Since I'm the tech guy, I'm the PO of all the projects), while having to create myself the APIs between both systems and ours, I'm also the one expected to keep the company websites code updated, and most recently and frustratingly am expected to lead the IT support team (yeah, the guys fixing computers will answer to me, because again I'm the tech guy and "I know this stuff"). There are quite a few more things that are expected but you get the point.

    I'm currently hanging on and keeping the deliveries but it's taking the toll, management doesn't want to hire more people and have no clue about the amount of things that are needed to not flop all those projects. My meetings with management are always about me explaining why the company needs an RDBMS and proper systems to handle financial transactions instead of excel but their focus is oriented on how the "IT guy" is probably not working much during the lockdown (don't get me started on printer usage :/ ).

    So I'm wondering if anyone has/had a similar experience and how did you deal with it? Should I keep bringing up that the "scope is too broad"? Will it matter? Is there a better alternative than just leave?

    Also for some background, I don't have a CS degree, learned everything building stuff, so if I decided to leave, what kind of company would be best for someone without a CS degree? Should I pursue one? I'm goddamn confused as to where to go from here haha. Thanks a lot :)

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

    Do any of you have a tool you use that allows you to build yourself a knowledge base for you to reference when you know you knew something?

    Posted: 01 May 2020 12:13 AM PDT

    Long story short im still learning iOS development currently. I ran into an issue today that led to two hours of stack overflow until I figured it out. Along the way i came accross some great stuff that i know will be important to have handy when i run into stuff in the future. But i dont think i should just bookmark it and hope i remember. Which got me to thinking, maybe theres a better way?

    Im looking for a tool that will allow me to build some sort of personal searchable/indexable Knowledge base. Where i can take links or pages of notes and tag them and compile them in a way where if im running into this issue in the future I can type 'UIAlertMessageView' or 'constraints' and todays stuff will come up.

    Any suggestions?

    Thanks.

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

    What kind of code can write over itself/add more without stopping?

    Posted: 01 May 2020 07:39 PM PDT

    I was made aware of Java hot swapping

    But I'm talking about hardware code that runs on an embedded device, then the code can get modified without recompiling.

    Any thoughts welcome but I just have this fantasy/thought of a robot that stays alive(by long batteries/low power draw/and renewable power eg. solar) but it can also update its own code.

    It is stupid I know, I'm not an ML/AI guy but most things you program it once that's it.

    I'm not talking about "over the air updates" either

    "Son.... what you're describing is AGI" haha

    In JavaScript/Python I can think of this happening where it takes string code and evals it into the running state, but I'm looking for lower.

    And yeah, it probably doesn't make sense it wouldn't be like "Hmm... I'm going to write some code with brackets and semi colons"

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

    Explain (this checksum) to me algorithmically?

    Posted: 01 May 2020 03:37 PM PDT

    Please, and thanks.

    QFile file; //Uses QT framework QDataStream fs quint32 checksum = 0; quint32 cache; quint64 pos = 0x00;

    while(pos <= (file.size() - 0x07)) { file.seek(pos); fs >> cache; checksum += cache; pos += 0x04; }

    My question:

    Where is the value for cache coming from? It seems to be related to some pointer but I guess I'm not following. I'm not seeing it being assigned anywhere? What exactly is being cached? I can definitely see the value change when I step through the code, but I'm not sure how it's being calculated. The right bitshift operator only applies to the left side no?

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

    A question you've heard a thousand times

    Posted: 01 May 2020 06:43 PM PDT

    What programming language should I learn?

    I'm not asking what is the most practical or easy to learn, but my interests in hobbies typically align with what's minimalist or gimmicky. That being said, I do plan on playing around with esolangs once I dip my toes in something a little more tame, so I need something a bit more normal, but still based in those principles. I know it's a really vague description of what I'm looking for, but if anyone could at least narrow it down a bit for me, I'd be grateful.

    I guess I'm in it for the esolangs, but diving straight into that would be really daunting.

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

    Python Script Question

    Posted: 01 May 2020 02:13 PM PDT

    I was just wondering if there was a way to write a python program so that it refreshed a chrome webpage and then hit a button on the webpage?

    I have a lot of experience with Python for basic projects and can usually figure out more complex stuff, but some Google searches have not been very helpful with this question. Any help is appreciated.

    Shark

    submitted by /u/Shark4-6
    [link] [comments]

    Do databases that adapt to user behavior exists?

    Posted: 01 May 2020 05:53 PM PDT

    Currently taking a database internals course, and it seems like there's a lot of interesting tradeoffs when you are designing a data management system. Some of these tradeoffs seem to be dependent on what kind of behavior you think will occur once user's begin to use your database.

    For example, you may design your database to have super fast reads for certain types of data but maybe it makes writes slow. So you're assuming that your user is mostly only going to care about the speed of reads.

    One of the takeaways I've gotten so far is that, assumptions like this are dangerous because requirements change, can't predict user behavior, etc. So it got me thinking, are there any databases out there that use the databases internal statistics, do some cost analysis, and change their internal file structure/data structures/algorithms to something that better suits the users?

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

    New in the industry - Need your advice

    Posted: 01 May 2020 05:48 PM PDT

    Hello everybody,

    I am joining a large IT company in the coming weeks as a Sales manager and have a few questions I would love your input on if you have time to spare. I have always been a power user but I am now facing a whole new level and the learning curve is/will be steep!

    1. I have read the DevOps handbook, the Phoenix/Unicorn project but if you have other resources you feel are a must-read to understand your side of the business, I'm all ears!
    2. My goal is not to sell for the sake of selling but to provide our clients with the solution they need. If it's not us then so be it. Knowing this, for those of you who have been on either side of the sales process in IT, what are your examples of a good and a bad sale? What should I never lose track of specific to this particular industry?
    3. Bonus question: Obivously, I won't become knowledgable in absolutely every tech out there, but I have one technical question that stumps me: Code is committed to trunk and tested in a production environment but how do you ensure that another commit for the same deployment window but not yet incorporated in the production environment is not breaking the build?

    Thanks for the help!

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

    How to upload video to firebase firestore using react native

    Posted: 01 May 2020 05:30 PM PDT

    Im currently able to upload an image to firebase firestore by storing it in a blob and upload it to firestore. How would i do the same but for a video instead, would I also put it in a blob?

    openLibrary = async () => {
    const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)
    if (status === 'granted') {
    const image = await ImagePicker.launchImageLibraryAsync({allowsEditing: true})
    if(!image.cancelled){
    const url = await this.props.uploadPhoto(image)
    this.props.updatePhoto(url)
    }
    }
    }

    export const uploadPhoto = (image) => {
    return async (dispatch) => {
    try {
    console.log("in upload photo")
    const resize = await ImageManipulator.manipulateAsync(image.uri, [], { format: 'jpeg', compress: 0.1 })
    const blob = await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()
    xhr.onload = () => resolve(xhr.response)
    xhr.responseType = 'blob'
    xhr.open('GET', resize.uri, true)
    xhr.send(null)
    });
    const uploadTask = await firebase.storage().ref().child(uuid.v4()).put(blob)
    const downloadURL = await uploadTask.ref.getDownloadURL()
    return downloadURL
    } catch(e) {
    console.log("in upload photo error")
    console.error(e)
    }
    }
    }

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

    How to upload video to firebase firestore using React native

    Posted: 01 May 2020 05:30 PM PDT

    Im currently able to upload an image to firebase firestore by storing it in a blob and upload it to firestore. How would i do the same but for a video instead, would I also put it in a blob?

    openLibrary = async () => {
    const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)
    if (status === 'granted') {
    const image = await ImagePicker.launchImageLibraryAsync({allowsEditing: true})
    if(!image.cancelled){
    const url = await this.props.uploadPhoto(image)
    this.props.updatePhoto(url)
    }
    }
    }

    export const uploadPhoto = (image) => {
    return async (dispatch) => {
    try {
    console.log("in upload photo")
    const resize = await ImageManipulator.manipulateAsync(image.uri, [], { format: 'jpeg', compress: 0.1 })
    const blob = await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()
    xhr.onload = () => resolve(xhr.response)
    xhr.responseType = 'blob'
    xhr.open('GET', resize.uri, true)
    xhr.send(null)
    });
    const uploadTask = await firebase.storage().ref().child(uuid.v4()).put(blob)
    const downloadURL = await uploadTask.ref.getDownloadURL()
    return downloadURL
    } catch(e) {
    console.log("in upload photo error")
    console.error(e)
    }
    }
    }

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

    How to upload video to firebase firestore using React native

    Posted: 01 May 2020 05:29 PM PDT

    Im currently able to upload an image to firebase firestore by storing it in a blob and upload it to firestore. How would i do the same but for a video instead, would I also put it in a blob?

    openLibrary = async () => {
    const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)
    if (status === 'granted') {
    const image = await ImagePicker.launchImageLibraryAsync({allowsEditing: true})
    if(!image.cancelled){
    const url = await this.props.uploadPhoto(image)
    this.props.updatePhoto(url)
    }
    }
    }

    export const uploadPhoto = (image) => {
    return async (dispatch) => {
    try {
    console.log("in upload photo")
    const resize = await ImageManipulator.manipulateAsync(image.uri, [], { format: 'jpeg', compress: 0.1 })
    const blob = await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()
    xhr.onload = () => resolve(xhr.response)
    xhr.responseType = 'blob'
    xhr.open('GET', resize.uri, true)
    xhr.send(null)
    });
    const uploadTask = await firebase.storage().ref().child(uuid.v4()).put(blob)
    const downloadURL = await uploadTask.ref.getDownloadURL()
    return downloadURL
    } catch(e) {
    console.log("in upload photo error")
    console.error(e)
    }
    }
    }

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

    How to upload video to firebase firestore using React native

    Posted: 01 May 2020 05:29 PM PDT

    Im currently able to upload an image to firebase firestore by storing it in a blob and upload it to firestore. How would i do the same but for a video instead, would I also put it in a blob?

    openLibrary = async () => {
    const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)
    if (status === 'granted') {
    const image = await ImagePicker.launchImageLibraryAsync({allowsEditing: true})
    if(!image.cancelled){
    const url = await this.props.uploadPhoto(image)
    this.props.updatePhoto(url)
    }
    }
    }

    export const uploadPhoto = (image) => {
    return async (dispatch) => {
    try {
    console.log("in upload photo")
    const resize = await ImageManipulator.manipulateAsync(image.uri, [], { format: 'jpeg', compress: 0.1 })
    const blob = await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()
    xhr.onload = () => resolve(xhr.response)
    xhr.responseType = 'blob'
    xhr.open('GET', resize.uri, true)
    xhr.send(null)
    });
    const uploadTask = await firebase.storage().ref().child(uuid.v4()).put(blob)
    const downloadURL = await uploadTask.ref.getDownloadURL()
    return downloadURL
    } catch(e) {
    console.log("in upload photo error")
    console.error(e)
    }
    }
    }

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

    How to upload video to firebase firestore using React native

    Posted: 01 May 2020 05:29 PM PDT

    Im currently able to upload an image to firebase firestore by storing it in a blob and upload it to firestore. How would i do the same but for a video instead, would I also put it in a blob?

    openLibrary = async () => {
    const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)
    if (status === 'granted') {
    const image = await ImagePicker.launchImageLibraryAsync({allowsEditing: true})
    if(!image.cancelled){
    const url = await this.props.uploadPhoto(image)
    this.props.updatePhoto(url)
    }
    }
    }

    export const uploadPhoto = (image) => {
    return async (dispatch) => {
    try {
    console.log("in upload photo")
    const resize = await ImageManipulator.manipulateAsync(image.uri, [], { format: 'jpeg', compress: 0.1 })
    const blob = await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest()
    xhr.onload = () => resolve(xhr.response)
    xhr.responseType = 'blob'
    xhr.open('GET', resize.uri, true)
    xhr.send(null)
    });
    const uploadTask = await firebase.storage().ref().child(uuid.v4()).put(blob)
    const downloadURL = await uploadTask.ref.getDownloadURL()
    return downloadURL
    } catch(e) {
    console.log("in upload photo error")
    console.error(e)
    }
    }
    }

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

    New in the industry - Need your advice

    Posted: 01 May 2020 05:21 PM PDT

    Hello everybody,

    I am joining a large IT company in the coming weeks as a Sales manager and have a few questions I would love your input on if you have time to spare. I have always been a power user but I am now facing a whole new level and the learning curve is/will be steep!

    1. I have read the DevOps handbook, the Phoenix/Unicorn project but if you have other resources you feel are a must-read to understand your side of the business, I'm all ears!
    2. My goal is not to sell for the sake of selling but to provide our clients with the solution they need. If it's not us then so be it. Knowing this, for those of you who have been on either side of the sales process in IT, what are your examples of a good and a bad sale? What should I never lose track of specific to this particular industry?
    3. Bonus question: Obivously, I won't become knowledgable in absolutely every tech out there, but I have one technical question that stumps me: Code is committed to trunk and tested in a production environment but how do you ensure that another commit for the same deployment window but not yet incorporated in the production environment is not breaking the build?

    Thanks for the help!

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

    New in the industry - Need your advices

    Posted: 01 May 2020 05:15 PM PDT

    Hello everybody,

    I am joining a large IT company in the coming weeks as a Sales manager and have a few questions I would love your input on if you have time to spare. I have always been a power user but I am now facing a whole new level and the learning curve is/will be steep!

    1. I have read the DevOps handbook, the Phoenix/Unicorn project but if you have other resources you feel are a must-read to understand your side of the business, I'm all ears!
    2. My goal is not to sell for the sake of selling but to provide our clients with the solution they need. If it's not us then so be it. Knowing this, for those of you who have been on either side of the sales process in IT, what are your examples of a good and a bad sale? What should I never lose track of specific to this particular industry?
    3. Bonus question: Obivously, I won't become knowledgable in absolutely every tech out there, but I have one technical question that stumps me: Code is committed to trunk and tested in a production environment but how do you ensure that another commit for the same deployment window but not yet incorporated in the production environment is not breaking the build?

    Thanks for the help!

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

    Are there popular guidelines on how to write readmes, contributings or any kind of documentation really?

    Posted: 01 May 2020 10:09 AM PDT

    I already have my own opinion on the matter and was thinking about making templates, but before I would like to know if there is some kind of widely accepted standard for writing documentation. So that I don't waste my time working on my own version.

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

    How do I run a python script repeatedly using files in my directory as arguments?

    Posted: 01 May 2020 03:56 PM PDT

    Hi there. I'm a complete novice. I have a python script that spits out some scores for my protein sequence. It takes my fasta file (a text file commonly used by bioinformatician) and either the word long, short or glob as arguments. Looks like this when I run it on command prompt:

    $python dothething.py file1.fasta long

    Problem is I have to run the script for about 20000 files. I'm under the impression that this should be automatable but I don't know how. Currently, I have a directory that contains file1.fasta -> file20000.fasta. How do I get dothething.py to run for all 20000 files.

    I've attempted to write a script but I encounter all kinds of issues trying to get the script to run inside the script besides other issues.

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

    I am trying to build a sound-to-sheetmusic app...

    Posted: 01 May 2020 11:17 AM PDT

    I am building it in JavaScript alongside Electron and I have already made the sound recognition app. The only part that's left is to build a live sheet music app that should place the note on the stave after recognizing it. Do you know any libraries that can do that?

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

    Awesome app idea

    Posted: 01 May 2020 02:36 PM PDT

    So I came up with a great idea (yeah, I know you heard this before) for and application, but I don't have the knowledge to put it in action. How should I proceed ? Learning to code from scratch I think is overreaching, should I try to find a programmer to partner up? I'm living in a pretty isolated place in Croatia at the moment, so that doesn't sound very realistic. Help me Reddit, how to turn this great idea into reality?

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

    Do adaptive databases exist? Where database internals change based on user behavior?

    Posted: 01 May 2020 05:58 PM PDT

    Currently taking a database internals course, and it seems like there's a lot of interesting tradeoffs when you are designing a data management system. Some of these tradeoffs seem to be dependent on what kind of behavior you think will occur once user's begin to use your database.

    For example, you may design your database to have super fast reads for certain types of data but maybe it makes writes slow. So you're assuming that your user is mostly only going to care about the speed of reads.

    One of the takeaways I've gotten so far is that, assumptions like this are dangerous because requirements change, you can't predict user behavior, etc. So it got me thinking, are there any databases out there that use the databases internal statistics, do some cost analysis, and change their internal file structure/data structures/algorithms to something that more efficiently serves the user?

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

    Do adaptive databases exist? Where the database changes it's internals structure/algs based on user behavior?

    Posted: 01 May 2020 05:55 PM PDT

    Currently taking a database internals course, and it seems like there's a lot of interesting tradeoffs when you are designing a data management system. Some of these tradeoffs seem to be dependent on what kind of behavior you think will occur once user's begin to use your database.

    For example, you may design your database to have super fast reads for certain types of data but maybe it makes writes slow. So you're assuming that your user is mostly only going to care about the speed of reads.

    One of the takeaways I've gotten so far is that, assumptions like this are dangerous because requirements change, can't predict user behavior, etc. So it got me thinking, are there any databases out there that use the databases internal statistics, do some cost analysis, and change their internal file structure/data structures/algorithms to something that better suits the users?

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

    Do adaptive databases exist? Where the database changes it's internals structure/algs based on user behavior?

    Posted: 01 May 2020 05:54 PM PDT

    Currently taking a database internals course, and it seems like there's a lot of interesting tradeoffs when you are designing a data management system. Some of these tradeoffs seem to be dependent on what kind of behavior you think will occur once user's begin to use your database.

    For example, you may design your database to have super fast reads for certain types of data but maybe it makes writes slow. So you're assuming that your user is mostly only going to care about the speed of reads.

    One of the takeaways I've gotten so far is that, assumptions like this are dangerous because requirements change, can't predict user behavior, etc. So it got me thinking, are there any databases out there that use the databases internal statistics, do some cost analysis, and change their internal file structure/data structures/algorithms to something that better suits the users?

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

    No comments:

    Post a Comment