• Breaking News

    Thursday, January 7, 2021

    Do some languages have more mature compilers and therefore produce better binaries? Ask Programming

    Do some languages have more mature compilers and therefore produce better binaries? Ask Programming


    Do some languages have more mature compilers and therefore produce better binaries?

    Posted: 07 Jan 2021 01:39 PM PST

    C has existed for a long time and is still in use in high performance situations.

    Go is fairly new.

    If I write a substantial program in both languages (using only the intersection of features), will the C program have more advanced compiler optimisations and therefore run faster?

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

    Program to find word cognates, similar spelled words/subwords for any language in any language

    Posted: 07 Jan 2021 07:40 AM PST

    I recently read: https://www.amazon.com/Unlimited-Memory-Advanced-Strategies-Productive-ebook/dp/B00I3QS1XQ/ref=tmm_kin_swatch_0?_encoding=UTF8&qid=1610033105&sr=8-1 trying to get some methods to be able to deal easier with some of the more annoying courses at university and also be able to learn languages (vocabulary) a lot easier. The book is basically all about making associations for things you want to learn with things in your long term memory. So I was wondering if there is any Website/Program doing what the title says, in order to find concepts in a language you're good in, in order to associate them with the word you want to learn.

    Here some questions:

    - Do you know of any program / website?

    - Do you think it would be beneficial for learning languages?

    - How would you approach said program. (Build a db? What metrics to use? etc.)

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

    Implementing LinkedIn like connections

    Posted: 07 Jan 2021 01:20 PM PST

    I am building a food recommendation system (for groups) and I want to implement something like LinkedIn connections. My tech stack is mainly PHP, jQuery and HTML & CSS, what is the best way to implement the sending and accepting a connection request (I just need to store the connection in my MySQL database after confirmation)? I have user's email so I was thinking maybe something to do with that? I haven't got much experience with that so if you have any suggestions or resources to share I would really appreciate it.

    I need some help with the way to actually request connections and then accept .

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

    I would like to develop IOS or Android game apps, what language should I learn?

    Posted: 07 Jan 2021 09:32 PM PST

    I'm fine with IOS or Android or both, but I have lots of ideas for games (simple games like the ones typically made by Ketchapp or Voodoo) and would like to learn to code. I also am curious for those who are self taught how I can get started? Thanks in advance!

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

    Why won't this VB.NET Array.Sort work?

    Posted: 07 Jan 2021 05:34 PM PST

    Trying to write a very simple code here that takes input from a textbox, Array.sort then display the result in the same textbox alpabetically sorted, but no sorting happens. What am i doing wrong? O.o

     Dim FSsorted(TextBox1.Lines.Length - 1) As String For i = 0 To TextBox1.Lines.Length - 1 FSsorted(i) = TextBox1.Lines(i) Next i Array.Sort(FSsorted) For j = 0 To FSsorted.Length - 1 TextBox1.Lines(j) = FSsorted(j) Next j 
    submitted by /u/daver18qc
    [link] [comments]

    Making a chatbot that learns in the process of chat

    Posted: 07 Jan 2021 05:24 PM PST

    I made a simple chatbot which has a simple A.I. A few weeks ago, I exported some of my chats from Telegram and created a dataset of patterns and responses for my bot. I wrote a simple code which could train a model from that data and now she works very well.

    For now, I want my bot to get smarter by talking. I found RASA, but to be honest, it's a little bit bloated for my purpose. I saw people made bots or assistants which got smarter by chatting. Is it possible to make using tools such as keras or tensorflow? or I should go for more complex stuff like RASA?

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

    Need help deciding what framework to use for my project

    Posted: 07 Jan 2021 11:59 AM PST

    Morning all! I am a computer science major in college and working on my own personal project that tracks five day gainers in the stock market. I would prefer building my software on HTML and Python, hopefully deploying it as something usable eventually.

    I am confused, however, on what kind of software framework/microframeworks I should be utilizing to reach my specific endgoal. MongoDB? Flask + SQLAlchemy? I hope to create something that can scrape data from other websites (like barchart.com) and use that data to calculate specific values that will give more information about daily gainers. Ideally, this would refresh every couple of minutes.

    If anyone has any advice, I would greatly appreciate any input!

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

    How would you write a simple neural network machine learning program?

    Posted: 07 Jan 2021 08:36 PM PST

    I've watched the youtube videos which provide that large scale overview of how machine learning works. But I am curious, from a code-based standpoint, how it works, because even though I get the generalities, I have no idea how you mite implement it in terms of python or any other coding language.

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

    How to open .JDM files?

    Posted: 07 Jan 2021 04:35 PM PST

    Hi guys,

    I want to reverse-engineer some automotive software from a digital cluster and I've got a .JDM file which contains an update file for the digital cluster. Problem is, I've tried for over an hour but I can't get it to open.

    Everywhere online I found that I need 'Jade' to open it, so I installed that but it's not working unfortunately (I get: Error - too much text to the control). Opening in a regular text/code editor doesn't work either, so I'm kinda out of options.

    Does anybody here maybe have any experience with it? Would love to hear it!

    Edit: words

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

    Is it possible to build something that would hide/hash directory contents, so the only way you can see them is to use a password? (Windows)

    Posted: 07 Jan 2021 08:31 AM PST

    It seems like Windows has no real support for what i need. You can hide folders/files, but they are not really hidden, you can still see them, by selecting a few options. There seem to be a lot of programs that are supposed to do this, but i dont kmow how effective they really are. If you know any please let me know.

    So i need something that would hide directory contents and the only way someone could see it, is to use a password, or something like that.

    EDIT: The files/folders would be on a cd/dvd

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

    How do I remove every character after the last \ in a string in python?

    Posted: 07 Jan 2021 09:36 AM PST

    Is Go a good alternative to C?

    Posted: 07 Jan 2021 01:10 PM PST

    Hello!

    In my search for a nice compiled language that is fast and can do stuff, but which has functionalities and modern advancements that have been developed after 1970, I have stumbled on Go.

    It sounds pretty good, and if we ignore Google being an evil corporation, it looks perfect.

    What do you guys think? Other Alternatives I've heard are Rust, D and Haskell. But I don't care much about functional languages, so that's a big hurdle.

    I want a language that is as usable and easy to write as Python (or at the very least doesn't require you to manually allocate memory in order to make an array of strings), that can compile for Windows and Linux with the same libraries, that doesn't have to be interpreted or need weird third party dependencies that you can't bundle, and that it runs similarly efficient and fast as C.

    Give me some advice.

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

    Hard coding binary data

    Posted: 07 Jan 2021 12:52 PM PST

    So I'm working on a 2d game which is only a single Java file. I need to add some sound effects but i can't read an external file (not allowed to do so). I can may be make a call to an API to work around it but i was wondering if i could hard code any sound effects/music into the code. I mean writing the binaries are not what i am asking for but may be copying and storing it in a byte array, idk something like that. Has anyone done this before?

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

    Java - help creating a swtich class

    Posted: 07 Jan 2021 03:58 PM PST

    Stuck with a problem....

    Implement a class Dial that represents an oven switch. The switch can vary in the interval 0-6 and is always in 0 when created. The class must have a method getSettings that reads current position, and two methods turnLeft and turnRight to turn the switch one position left and right.

    If you turn the switch too far the switch automatically turns over.

    For example:

    Test Result Dial d = new Dial(); System.out.println(d.getSetting()); 0 d.turnRight(); 1 System.out.println(d.getSetting()); 2 d.turnRight(); 1 System.out.println(d.getSetting()); 0 d.turnLeft(); 6 System.out.println(d.getSetting()); d.turnLeft(); System.out.println(d.getSetting()); // Överslag d.turnLeft(); System.out.println(d.getSetting()); 

    I've so far done this:

    public class Dial{ private int[] arr = {0, 1, 2, 3, 4, 5, 6}; public getSetting(){ } } 

    How can I make getSetting() to read the current position?

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

    Pull Facebook group posts from several groups and repost them live as they are being published. Is it possible?

    Posted: 07 Jan 2021 08:55 AM PST

    Hey!

    This honestly might not be the right place at all to ask this, but I figured it'd be worth a shot anyway.

    I have a bunch of groups where stuff is being sold. I find it extremely hard to keep track off, especially now with the new FB layout. I was wondering if anyone knows if there is a way to pull every single new post from every group and post them to a separate site or so, so I can permanently run it on one monitor and check in on it every once in a while. Instead of having to check each group individually, sort the posts by new etc etc

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

    Java do-while loop

    Posted: 07 Jan 2021 02:48 PM PST

    I have a problem with this question:

    Scanner input = new Scanner(System.in); do { int i = input.nextInt(); System.out.println(i); } while (i != 0); System.out.println("Klar"); 

    It is supposed to print:

    Result 1 2 0 Klar 

    My try so far is:

    Scanner input = new Scanner(System.in); int i = input.nextInt(); do { System.out.println(i); i = input.nextInt(); } while (i != 0); System.out.println(i); System.out.println("Klar"); 

    This works on 2/3 tests but I get error when user inputs 0 at the beginning. How can I fix?

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

    no code database

    Posted: 07 Jan 2021 02:44 PM PST

    Hello, I am not a computer programmer but I have a fantastic idea for a public database, I have only ever used HTML a bit in building very basic portfolio, small business websites etc as I am really just a graphic designer/animator. I would never be able to programme a backend setup or anything, just a quick question,

    in your opinion would it be better to pay someone to build a backend database and they can extract in the data from a spreadsheet

    OR

    that I would create the database myself using one of these cloud no code database software applications?

    Thank you

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

    I want to make a website with a certain interaction. What tools would I need to do that?

    Posted: 07 Jan 2021 05:21 AM PST

    view concept image

    I want to make it possible for a user to create multiple bars and title it whatever they want, and I want the user to be able to slide the red indicator left and right. I also want to be able to change the numbers to whatever I want, and for the entire state of each bar to be saved.

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

    Recommendations for TDD books/resources with real-world examples

    Posted: 07 Jan 2021 02:15 AM PST

    Hi,

    I'm interested in any book (or other resource, eg. video series) folk can recommend on TDD.

    Specifically, I'm after something that has real-world, step-by-step examples of building different types of projects using TDD.

    I've worked through many courses and katas etc using a TDD approach, but I find it hard to translate my experience there into building real-world products. Still waiting for my chance to build a Roman numeral calculator IRL.

    Following a course you're hand-held through each step, caveats and surprises are added at the right moment when you have the opportunity to fix them. Katas follow a logical progression in complexity so lend themselves naturally to TDD.

    I want to move beyond the basics and read/work through examples that are not straightforward. I am not interested in the why (I'm already convinced!)

    I'm open to resources that use any language for the examples really; if the book works through a project, I'll just write it in a language I know, if the book uses another language. That might be better actually, as I'll be forced to implement it myself rather than just follow.

    I already know the Kent Beck book.

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

    Options for sharing code between projects that isn’t mono-repo

    Posted: 07 Jan 2021 01:11 AM PST

    My new team lead at work is pushing for us to merge all our projects & repositories into a mono-repo in order to more easily share code between said projects & repositories. I am not too keen on this because I don't think the benefits outweigh the drawbacks.

    Can anyone suggest some other options for code sharing that I can then suggest to the team? My vote is for putting the shared code into a git submodule that can be included into each repo/project. I think that this will give us a good balance between what they want from a mono-repo while avoiding the problems with using a mono-repo, however my thinking could be pretty short sighted. I think that publishing shared code as a library will be too inconvenient for the rest of the team to agree to.

    Would love some advice from some people more experienced than me!

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

    Chatbox Webapp Solution (open source is even better)

    Posted: 07 Jan 2021 01:12 AM PST

    For a few days I am searching a chat webapp to make a web chatbot.

    I already have all the backend infrastructure in Python, that means I can set a webhook that receives user input and answers with message that chatbot must say but I need a web UI. It can use websocket so that I can interact with it for example.

    I came throught a lot of website providing webchat service but we must use their services, I would like to host myself the webapp and interact with it myself (through my backend code).

    Is that possible? Do you know solutions ?

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

    Does it make sense to split different parts of the backend (API, websocket, cron, core) into different projects?

    Posted: 06 Jan 2021 11:21 PM PST

    Just inherited a codebase where the backend is split up as such

    - backend - core - websocket - cron - api 

    core is a central package that mainly contains the code with the models and db interfaces.

    Websocket, Cron and API are all separate standalone servers that import core. They each contain their own configurations (eg. db.config), but all their configs are the same and there's no foreseeable future where they would have to hit a different database.

    I'm considering combining all the backend services into the same project because I can't forsee any need for them to have separate configurations. The remaining developers on the project simply tell me that it was already designed this way when they joined. The original developers have left, and I've sent them an email asking if they can explain the decision behind it, but I'm not sure if I'll get a response.

    Do you guys agree that it should be merged to be the same project for simplicity and to avoid code/config duplication? Or are there advantages to designing things this way?

    submitted by /u/aelesia-
    [link] [comments]

    Does anyone have any good tutorials for making a discord bot using Java or C++ to recommend?

    Posted: 07 Jan 2021 06:39 AM PST

    No comments:

    Post a Comment