• Breaking News

    Sunday, March 29, 2020

    There isn't an ask computer engineering sub so I'm asking here: why aren't Fn key combinations on the laptop completely customizable? Most of the keys are binded usually one the function keys so why can't the rest be set by the user to do an action when pressed with the Fn key? Ask Programming

    There isn't an ask computer engineering sub so I'm asking here: why aren't Fn key combinations on the laptop completely customizable? Most of the keys are binded usually one the function keys so why can't the rest be set by the user to do an action when pressed with the Fn key? Ask Programming


    There isn't an ask computer engineering sub so I'm asking here: why aren't Fn key combinations on the laptop completely customizable? Most of the keys are binded usually one the function keys so why can't the rest be set by the user to do an action when pressed with the Fn key?

    Posted: 29 Mar 2020 02:03 PM PDT

    "To Do List" first time programmer

    Posted: 29 Mar 2020 09:42 PM PDT

    If i were to make a "To Do List" application which includes both front and backend, what are the things i should learn in order to make it.

    I would like to use C# to do the back end (as i'd like to learn the language), but anything else than that i'm lost in a sense of not knowing

    what else im needed in order to make a simple "To do list" program/web application. So Im asking here if any of you guys have a suggestion for me,

    how to make this happen. What specific things should i learn and if you could list all the languages/frameworks/... i'd need to learn, or if you have an idea

    if it would be better for me to make this a standalone program or a web application (i was told it would be easier for me to make it as a web app

    because of the variety of things i would need to learn). I know im asking for much, but if anybody can help, it would be much appreciated as i would like

    to learn something during this corona lockdown, because for a while now i wanted to learn to code, and now that i have time and will, it seems like it would

    be the best time. Somebody i know told only told me it would be the best to do it as a Web app, so if you have any other way of doing it, please help.

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

    Who/what exactly is nixCraft or Cyberciti.biz ?

    Posted: 29 Mar 2020 07:57 PM PDT

    So, I started using shell a lot these days and for most of my searches, if not all, the first link is always from this domain cyberciti.biz and the site calls itself nixCraft. I checked the site and couldn't find much info about it, except that it seems like one person runs it and is asking for donations. For some reason, I don't find the content on the site helpful to me(my own perspective, may be I am looking at it or understanding it wrong?). The UI seems pretty clunky and it seems to be changing every now and then with not much of an improvement(again, my experience, YMMV). Apart from being the top result in Google searches, it doesn't seemed to be linked from any other stackoverflow answers or other articles I read about shell scripting or some particular commands.

    I'm just curious what other people know or think about this website? Why is this ranked top by Google? Any one use it regularly?

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

    How much slower is Python compared to C?

    Posted: 29 Mar 2020 04:33 AM PDT

    I'm writing a server app to control a computer remotely with a phone and don't know which of those languages I should use. Python is much slower but I don't have much real life experience to know what it translates to.

    My program is basically just reading from a socket and faking mouse and key presses and occasionally running shell commands. Would the difference in speed already be noticeable?

    I would like to write it in Python for easy platform independence, but not if it means waiting a couple seconds for your mouse to move.

    EDIT: also I'm not streaming images or anything, the Socket only receives offsets where to move then mouse.

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

    Am I the Asshole Developer?

    Posted: 29 Mar 2020 09:41 AM PDT

    I've been a front-end developer for 7 years, and have almost work just as many jobs, mostly several month contract jobs, and never working at a single place more than 2 years. I admit, when I started I was definitely not a good coder, but now I am fairly confident in my abilities. I just finished a project as the lead frontend developer and one of 3 devs (one who left midway through the project, the other one primarily backend) for a major chain that will be used in stores around the world.

    However, I'm not quite sure what happened, it might have been due to the coronavirus, I and several other team members were laid off at the end of this project. It seems to be a reoccurring theme for me that even as I get better at coding, more competent and able to deliver more, something always happens and I'm back to looking for another contract.

    There is one nagging feeling I constantly have about scrum and my role. No matter how many times I give lip service to scrum masters, designers, testers and product managers, I secretly think that they aren't all that necessary to my job when it comes down to it. Don't get me wrong, I do not want to be organizing tasks and testing my own app. However, I just don't see them as equal partners in the development of an app. In the end, it is the developer that is out in the fields, tilling the land. It's the developer putting the sweat out there and doing the heavy lifting. The developer is the one who has to solve the most complex problems that scrum masters, testers and designers couldn't begin to grasp.

    The scrum master and/or product manager always feels like the nagging parental figure, telling you you have these tasks to do, and getting irritated when you can't finish them on time. The tester feels like the critic, nitpicking your work and telling you to change a font size or asking for a change that seems easy in their mind but may actually be quite complicated. The designer for that matter also falls into that category, depending on the scrum structure. Since we didn't have a UI/UX person on this project, the tester and the product manager often collaborated in this role. Not only that, it feels sometimes these are the people that often get the credit.

    I know that sounds arrogant. But I am wondering what I am missing and would like to hear some perspectives. I truly don't want to be the asshole developer. I truly would like to change so that I can be honest when I am telling other team members I appreciate their contributions. However those are not the feelings that I have after months on a project. I feel like I'm destined to forever be the roving coding mercenary roaming from scrum to scrum, until I find those mystical rumored lands of "developer driven development".

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

    Understanding the use of process.env in a web app

    Posted: 29 Mar 2020 11:31 AM PDT

    I was looking at an example React site and somebody used process.env to get a token-like object. This token along with the person's username would then determine whether or not the person could access the site.

    From reading about process.env it's related to whatever setup/environment the user has on their system. So I was thinking process.env would do something to get the person's relevant token. However when examining the code further there's actually a Config file with a hardcoded token (so I assume it's the same for all users). In this case why use process.env?

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

    Do I need to attribute authors of an Icon Pack if I'm not using it anymore but is visible in Github

    Posted: 29 Mar 2020 02:11 PM PDT

    I'm developing a mobile app and I'm using GitHub for source code which is set to public, so I can show my friends and classmates.

    I was using some free icons from www.flaticon.com/home , which required the developer to attribute the authors to the icons.

    But I decided to go ahead and just create my own icons and delete all the icons I was using the flaticon, but the problem is in the previous commits on GitHub, the old images of the icons are still visible in my resource folders.

    Is this a problem I need to address at all? Do I need to mention anywhere that I WAS using icons from FlatIcon or am I good to just act like it never happened? There is no trace of it left on my current version of the app, and it hasn't been published yet.

    I'm just worried because someone can go back and download the old images, and they might not know if they need to attribute FlatIcon or not.

    Thanks!

    P.s. I don't know if this is possible but maybe an option would be to just delete every instance of the previous icon images from my github history?

    submitted by /u/Leading-Coffee
    [link] [comments]

    Leftist Tree. I do not understand s-values.

    Posted: 29 Mar 2020 07:44 PM PDT

    Example:
    https://i.imgur.com/77ArOwp.png

    From what I've read, the s-value is the distance from a node to the closest leaf, aka a node with no children. So why is the s-value of Node 4 equal to 2? Shouldn't it be 1 because the nearest leaf is Node 8?

    I see that it is because it involves extended trees, is that always the case?

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

    Is this a feature of any programming langauge? Perhaps by pushing the limits of c++ or some other language that does crazy stuff?

    Posted: 29 Mar 2020 01:17 PM PDT

    So, here's what I'd like to do. I want to create an "Entanglement" interface that allows me to capture any object and insert

    void before<<methodName>>({<<argtype>> const <arg> | <arg> ∈ <<methodArgs>>)

    and

    <<returnType>> after<<methodName>>(<<return value of method>>)

    methods before and after method calls for an object. It'd be nice if I could specify which methods this applies to but not required.

    The user can define a <somename>Entanglement class which makes unique definitions for the before and after methods. My intention for this feature is that a definition of this Entangled<class> <<newname>>(<<instance>>) can then capture an instance of a class and then when calls are made to the renamed instance of type Entangled<class>. The Entangled can add Entanglements and then every time an injected method is called, each Entanglements methods are called. Ideally, the instance should have the exact same interface as the normal class.

    This would allow a user to instantiate two different data structures, and then every change to the Entangled data structure would be reflected in the other one in some way.

    For example, a graph and a priority queue which tracks the degree of the vertices in the graph. Every time an edge uv is removed, the degree of uv is changed and the priority queue is notified, and the keys of those vertices are changed in the queue and the respective position of those vertices is changed. This would allow incredibly elegant implementations of things like minimum spanning tree or vertex cover approximation.

    But I want this sort of interface to be very generic.

    This would likely be a metaprogramming task beyond the scope of a mere language.

    Edit:

    The intention is to avoid the Entanglement and Entangled<class> interfaces from being specific to the data structure being Entangled through inheritance- that would be higher coupling than I'd like.

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

    Web app vs desktop app memory usage

    Posted: 29 Mar 2020 04:31 PM PDT

    Which uses up more resources: a web app running in Chrome or the desktop app equivalent?

    For example, if I have Gmail, Slack, and Trello always open in browser tabs, would I reduce memory usage if I downloaded their respective apps and had those open instead?

    Or, would it make a difference if I had them all open in an app like Station?

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

    PDF trouble in android studio

    Posted: 29 Mar 2020 04:17 PM PDT

    Hey reddit. I have a pretty unique issue and I hope someone can help me with this.

    I am currently working on an android app that (among other things) reads pdf files. The user must be presented with a file dialog in which they can choose a file to view. The code I wrote works fine except for the first run. Whenever I first launch the app and choose the file it will not show up on the screen, I keep getting this error

    java.io.FileNotFoundException: open failed: ENOENT (No such file or directory) 

    but then when I hit back and choose the file again the pdf loads up fine! Im not surre why this is happening any advice would be much appreciated

    Here is the full code:

    public class PDFViewer extends AppCompatActivity { public static String filepath = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_pdfviewer); new MaterialFilePicker().start(); File file = new File(filepath); PDFView pdf = findViewById(R.id.pdfView); pdf.fromFile(file).load(); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1 && resultCode == RESULT_OK) { filepath = data.getStringExtra(FilePickerActivity.RESULT_FILE_PATH); } } } 

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

    New to python! - Doubt about a begginer exercise

    Posted: 29 Mar 2020 03:54 PM PDT

    So im trying to make this exercise in Python and i can´t figure it out on how to make it work in one single line. The exercise is this one : https://www.practicepython.org/exercise/2014/03/05/05-list-overlap.html, line 2. Thanks in advance!

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

    Help with text to speech in C#

    Posted: 29 Mar 2020 03:37 PM PDT

    Alright guys, I've spent hours trying to give my console app text to speech capability. The best solution I landed on was getting System.Speech.dll from NuGet. When I try to get it though, it says "Package System.Speech.dll 1.0.4 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package System.Speech.dll 1.0.4 does not support any target frameworks." How in the world do I do this properly? I won't pretend I have experience with coding. I am using Visual Studio 2019 and I'm writing C# for a Console App (.NET Core). All I really want to do is make my program talk 🤷🏼‍♂️. Thanks in advance guys~

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

    Logical Inference Programs?

    Posted: 29 Mar 2020 03:17 PM PDT

    Hello. I am new to programming.

    Are the programs that perform Hilbert System-style inference. For example, given some variables and some dependencies between them, return everything you can infer?

    I understand Prolog does Logic Programming, but it is not clear to me that it can do something like this.

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

    Programming tool for small (visual-oriented) projects?

    Posted: 29 Mar 2020 02:49 PM PDT

    Is someone aware of a programming tool(s) for small (visual-oriented) projects. Something in which I don't have to code much to have a decent prototype/product of a project (probably gamified i guess, but no necessarily)?

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

    How to Set Up and Run the BitMEX and Deribit Market Maker Crypto Trading Bots, Configure + Optimize

    Posted: 29 Mar 2020 02:38 PM PDT

    How do I set up a proper JSF project?

    Posted: 29 Mar 2020 12:26 PM PDT

    I've read that JSF is close to dead, or at least it's pointless to start learning in 2020, but I have a school project that I must do in JSF.

    My problem is every single tutorial I find is bad, I do everything by the letter, and in the end it's still not working.

    The most recent tutorial I tried is this one.

    I created the HelloWorldBean, the hello.xhtml, but whenever I try to run it I just get a blank page.

    Before this tutorial I didn't use a Maven project, the result was the same.

    Is there a good place where I can learn how to use JPA with JSF? All I need to do is have a JSF CRUD program to read/modify some tables from a MySQL database.

    But even when I download a whole project something is still not working, I've never encountered something like this.

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

    Open source forum framework MERN stack

    Posted: 29 Mar 2020 12:25 PM PDT

    Looking for suggestions

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

    Does anyone know what part of the Windows SDK/API handles the mobile device file system

    Posted: 29 Mar 2020 12:13 PM PDT

    I am trying to write a synchronization tool to copy ~60GB of data from my Desktop to an android device without using ADK but so far been stumped in finding the correct API that handles it.

    Rephrase/simplify: I have 60GB of data I want to copy to a mobile device through automation. I know there has to be an API in the Win SDK to do this but I can't find it by googling.

    Edit: Android/Iphone are not logical drives but I did find one API that could be viable via Windows "Portable Device API".

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

    Connected to VPN but NOT server (X-Post r/minecraft)

    Posted: 29 Mar 2020 11:37 AM PDT

    So my buddy set up a Minecraft server on his own PC and I have to use a VPN to join it. I am successfully connected to his VPN no problem there) but I cannot connect to the server itself. I am pinging to his IP fine (so also no problem there) but for some reason the connection won't happen. I tried troubleshooting with my firewall by turning them off, to see if the somehow Minecraft was being blocked or something, but this didn't help.

    We've been foiled and frustrated by this confiscating conundrum >:{

    But for real please help.

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

    What sort of development environment is this?

    Posted: 29 Mar 2020 12:25 AM PDT

    https://i.imgur.com/MkM5EGc.jpg

    Probably not the standard sort of question asked here, but I found this stock image on a news article and was wondering what sort of development environment they are using.

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

    I want to make a camp finding app, could i ask for some advise?

    Posted: 29 Mar 2020 06:54 AM PDT

    So I'm a relativity experience full stack developer, but I mostly do operations, so I though I might ask how you would tackle this particular problem. I was thinking about making an web based camp finding app for my motorcycle adventures. I would mostly like the app to answer the question, «where are some nice wild camping spots nearby having features like X, Y and Z», where features can be stuff like, «nearby water», «nearby a road», «not close to buildings», «flat area» etc. The output of such a question should look like points/drawn area on a map, maybe color coded to say something about quality of the results.

    I was thinking about getting a copy of OpenStreetMap as a start. I can either try to collect features with a naive expert system approach, given a point on a map and some real time processing - or maybe i could try to solve it with machine learning, sampling areas which i know are good and what are not - maybe even crowd source some data.

    Any thoughts to how to solve this problem, both methodically and technically? Thanks!

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

    Detecting malicious code from network packet payload

    Posted: 29 Mar 2020 12:56 AM PDT

    Hello,

    I could use some help with guidance in research for my college assignment.

    I need to detect malicious code (malware) from packet payload. Detection is based on a single packet, not based on a flow. Detection should analyze only packet payload, not headers. Detection should detect malware from network packet, not a packet which indicates an attack is going on (i.e. ddos).

    I've come across papers which are based on signature inspection, anomaly detection and alternative machine-learning methods. The problem is, if I decide to go with signature based method, how do I collect the signature database? I would prefer to stay away from anomaly based methods, since that would require learning "normal" network traffic in order to differentiate it from malicious network, seems far too much work for one person. Machine learning methods which I've read about come down to detecting malicious flow based on packet headers.

    I didn't manage to find a single research paper or resource which would help me with choosing the appropriate method in order to start implementing the solution. I kindly ask for your help, thanks.

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

    What is the best way of storing a lot of columns in MySQL

    Posted: 29 Mar 2020 06:37 AM PDT

    I have to store patient information of a hospital and I have to save +50 different column in MySQL, Do I need to create multiple tables and connect them or a table with 50 different columns?

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

    I need your feedback to improve my design

    Posted: 29 Mar 2020 06:36 AM PDT

    I need your feedback to improve my design

    Currently I am trying to build a REST API similar to Facebook graph api using mvc architecture

    So I designed the class diagram

    https://github.com/mahmoudahmedd/facebook-graph-api/blob/master/documentation/class%20diagram.png

    And I need your feedback to improve my design

    any help ?

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

    No comments:

    Post a Comment