• Breaking News

    Monday, October 5, 2020

    Question: What kind of video for programming are you interested in seeing? I have a youtube channel, and I don't know what to post, I'll take any idea as long as they aren't a course kind of thing. Ask Programming

    Question: What kind of video for programming are you interested in seeing? I have a youtube channel, and I don't know what to post, I'll take any idea as long as they aren't a course kind of thing. Ask Programming


    Question: What kind of video for programming are you interested in seeing? I have a youtube channel, and I don't know what to post, I'll take any idea as long as they aren't a course kind of thing.

    Posted: 05 Oct 2020 04:32 PM PDT

    should I choose ML over other career paths of CS

    Posted: 05 Oct 2020 05:57 AM PDT

    so i really like machine learning (making models ,learning and implementing algorithms, Linear algebra and calculus and so )

    but that being said i may not know the difficulties of this path , does it requires alot of statistics? ,what about database knowledge? and is it more difficult than other cs fields? should i choose different career path (easy one )?

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

    Quesion: What is NTC/IP?

    Posted: 05 Oct 2020 04:55 PM PDT

    The business and sales people from where I work are saying a client wants to buy a weather station that is NTCP/IP compliant.

    I have no clue what the N stands for. I quick google search showed no good results and I think there must be a typo or a misunderstanding somewhere along the way, as I would expect it to be TCP/IP. But the sales team claims the client wants NTCP/IP. No one in the company has any clue what it means, and I could not find a single person capable of explaining the difference to me.

    Do you know what this protocol stands for, and what are the differences from that to good ol' TCP/IP?

    Thanks!

    Edit:

    Sorry. I just clarified this with a co-worker. The protocol is actually called NTCIP. The P was actually a typo. There are some stuff on google about it. I will do more research.

    Thanks everyone for your response.

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

    Greenfoot Java help

    Posted: 05 Oct 2020 09:54 PM PDT

    I'm using Greenfoot on a Mac and every time I add a bracket in the grey section (i.e. if (getY() <=0 { ), the closing bracket at the bottom of the green section disappears, which won't let the code work properly. Afterwards, Greenfoot crashed. Also, I have a second issue, there's a white space that I cannot get to go away (the white block of space above the yellow section).

    Is this a Mac-related issue with Greenfoot, or am I doing something wrong?

    If so can someone help me fix this problem??

    Screenshot of my work here: https://i.imgur.com/Y0uOnXi.png

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

    Understanding ftok() parameters.

    Posted: 05 Oct 2020 09:21 PM PDT

    Been learning about shared memory recently and I see ftok() being used, I understand it generates a key to provide access to the shared memory, but I am confused on the parameters it takes. So the first is a path to a file. Could this be any file? For example could it be like a blank text file? The example given uses ".cshrc" so what does this mean? Now the second one is supposed to be an id, so where does that come from?

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

    C / C++ static code analysis tools?

    Posted: 05 Oct 2020 06:47 AM PDT

    We have written many embedded C systems? One of our clients of over 10 years is interested in tools to help them understand the code we have written for them. I am evaluating SourceTrail, Imagix 4D, Understand (SciTools) and Lattix.

    I would appreciate any advice or comments.

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

    How do I replace zip with folders with this script?

    Posted: 05 Oct 2020 07:17 PM PDT

    I want the script to handle and move folders instead of zip files, is that possible and does anyone know how to make that work?

    [cmdletbinding()] param( $Directory = "H:\", $Filename = "database.txt", $Filetype = "zip" ) $Files = Get-ChildItem "$Directory\*.$Filetype" Write-Verbose "Searching in $Directory for $Filetype files." Write-Verbose "Found this many: $($Files.Count)" $Files | ForEach-Object { Write-Verbose "Processing file $($_.FullName)" Remove-Item $Filename -ErrorAction SilentlyContinue & "C:\Program Files\7-Zip\7z.exe" e "$($_.FullName)" $Filename | Out-Null $GenreMatch = Get-Content $Filename | Select-String "Posted: (.*)" | Select-Object -First 1 if ($GenreMatch) { $Folder = $GenreMatch.Matches.Groups[1].Value Write-Verbose "Found Posted: '$Folder'" $strippedFolder = ("$Folder".Split([IO.Path]::GetInvalidFileNameChars()) -join '-') $strippedFolder = $strippedFolder -replace '\.+','' $strippedOutDir = "$Directory\"+$strippedFolder+$concat Write-Output $strippedOutDir mkdir $strippedOutDir -ea SilentlyContinue | Out-Null Move-Item -LiteralPath $_.FullName $strippedOutDir } } 
    submitted by /u/doublefanburger
    [link] [comments]

    How do Programs that Download Instagram Stories/Photos and YouTube Videos Work?

    Posted: 05 Oct 2020 06:49 PM PDT

    Need Help Please where is my wrong?

    Posted: 05 Oct 2020 06:43 PM PDT

    import java.io.*;

    public class InitializeMain ();

    {

    public static void main(String args[])throws Exception

    {

    int choice; char tryAgain='y'; String repeat=""; InputStreamReader inputChoice = new InputStreamReader([System.in](https://System.in)); BufferedReader myInput = new BufferedReader(inputChoice); 

    while(tryAgain == 'y')

    {

    int x =0;

    while(x<=10) { System.out.println(); x++; } System.out.println("GAMES"); System.out.println("A. Mobile Legends! Bang! Bang!"); System.out.println("B. Call of Duty! Assemble Let's Fly Together"); System.out.println("C. Valorant! Amazing!"); System.out.print("Choice: "); choice = Integer.parseInt(myInput.readLine()); 

    if(choice == C){

    System.out.println("Valorant! Amazing!");

    }

    else if(choice == B){

    System.out.println("Assemble Let's Fly Together!");

    }

    else if(choice == A){

    System.out.println("Bang! Bang!");

    }

    System.out.print("Back to Menu?[y/n]: ");

    repeat = (myInput.readLine());

    tryAgain = repeat.charAt(0);

    }

    }

    }

    submitted by /u/More-Breakfast-7964
    [link] [comments]

    C++ How do the pointers in this example work?

    Posted: 05 Oct 2020 02:23 PM PDT

    Hey,

    I'm wondering about the bool cast for the variable "on" (last line in for loop). How does it work? I understand the (bool *), but the star left of it doesn't make any sense to me.

    Can somebody shed some light?

    struct CheatEntry { void *variable; ///< pointer to the variable }; for (int i = 0; i != lengthof(_cheats_ui); i++) { { const CheatEntry *ce = &_cheats_ui[i]; bool on = (*(bool*)ce->variable); } 
    submitted by /u/adrasx
    [link] [comments]

    C++ - Can not get std_lib_facilities.h header to work

    Posted: 05 Oct 2020 02:09 PM PDT

    I am learning c++ out of Bjarne Stroustrup's Programming: Principles and Practice Using C++ (2nd Edition), and I have been trying for an hour to get the first program to run on vscode but for some reason I keep getting errors and warming. I not sure what it is I have to do to fix this.

    Here is an image of my workspace and the error and warming messages I get:

    https://imgur.com/gallery/GAYeu5s

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

    On a high level, how does Google Maps create its user interface?

    Posted: 05 Oct 2020 07:04 AM PDT

    ie, the actual map itself

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

    Help with c#

    Posted: 05 Oct 2020 12:57 PM PDT

    Hey guys, I'm an absolute beginner, and I'm trying to create my first game in unity. My question is, why this code doesn't have any error, but keeps displaying "CS1519"?

    using System.Collections; using System.Collections.Generic; using UnityEngine;

    public class player : MonoBehaviour { public Rigidbody2D rb; { // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody2D>(); }

    // Update is called once per frame void Update() { rb.velocity = new Vector2(3, rb.velocity.y); if (Input.GetMouseButtonDown(0)) { rb.velocity = new Vector2(rb.velocity.x, 3); } } 

    }

    Please i need help

    submitted by /u/Cool-Alps-7444
    [link] [comments]

    Need Help identifying the minimum number of different sets that contain at least one of each element in a group (where each different element may belong to one or more different sets)

    Posted: 05 Oct 2020 12:11 PM PDT

    My company sells attachments that are compatible with certain items on the market. For example, let's say:

    Attachment 1 is compatible with Items A, B, and F

    Attachment 2 is compatible with Items B and C

    Attachment 3 is compatible with Items A, C, F, and G

    Attachment 4 is compatible with Items A, D, and E

    And so on for about ~12 different attachments and 100+ different items.

    I want to find the minimum number of attachments that we can sell that will work with all of the Items that the customer owns. Our machine can only connect to one attachment and item at a time, so its okay if the customer buys only one attachment to use with a few (or many) different items.

    My first idea was just to loop through each item that the customer has and add all attachments that work with them to a list - and then remove all duplicate attachments in the list at the end. But this will result in more attachments than necessary.

    I'm a pretty novice coder, so I would appreciate any help so much. I'm working in VBA, but should be able to understand any help given in pseudo code, C, or Python as long as it's not too advanced. Thank you!!

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

    How is text search implemented efficiently?

    Posted: 05 Oct 2020 11:35 AM PDT

    For instance when you press ctrl-f in your browser or PDF or whatever.... How is this done efficiently? It seems like the only way to do it would be to search every character until you find the matching sequence(s). I guess you could parallelize it but even then it seems like you'd still get an abysmal runtime complexity.

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

    Artificial Intelligence: A Modern Approach | Easier code to work with?

    Posted: 05 Oct 2020 12:29 PM PDT

    Hello, Artificial Intelligence: A Modern Approach is a text book which offers a code base https://github.com/aimacode to work with.

    I've very new to AI. I was wondering what similar Java, C++ or other libraries exist that you would recommend.

    I'm looking for something that is well documented with lots of examples but general enough to solve problems with.

    Thanks

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

    is mobile development considered a bad career path for cs ?

    Posted: 05 Oct 2020 11:44 AM PDT

    jobs opportunities aren't that much also the future of mobile dev is in risk due to web dev (that what i read on the internet) is that right ?

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

    When is it acceptable to use a Global variable? Considering using it to track an Error

    Posted: 05 Oct 2020 05:58 AM PDT

    I have an infinite loop/recursion that we are currently trying to root cause. However the temporary solution is to break if the loop.

    This error occurs mid program in a method, and is an edge case.

    I'm being asked to output the variables in an Excel file if the loop breaks.

    My two thoughts, either-

    global variable the error, output it at the end.

    Change parameters on all methods and functions to carry the error to the end.

    The global variable solution seems the easiest and quickest. However I used a global variable 2 weeks ago and am concerned I'm doing something improper.

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

    Question about company computer for those who work at large IT companies

    Posted: 05 Oct 2020 09:37 AM PDT

    Hello,

    I recently got my first big IT job at a major IT consulting company and the issued laptop first had to go to their IT team to configure. I'm wondering, what kind of information might they be tracking?

    I know there are tools that protect privacy, like if I do a screenshot of my computer and share it, then they'll be able to identify the exact computer where it came from.

    Can they track my average work time? Like, say for instance, I finish a task that was expected to take 2 days in under a day. Would they be able to see that I didn't do anything on the computer or how advanced is the "work tracking" capabilities?

    Any insight would be appreciated.

    Thanks

    UPDATE: I'm in the US.

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

    Something like a "rapid learn interactive syntax analyzer" tool with parallels in other languages?

    Posted: 05 Oct 2020 09:09 AM PDT

    I'm trying to learn Ruby right now and the syntax is throwing me off so like "what are these two pipes" etc... I thought of an interface like this where it's big/zoomed in and you select a language and type in a snippet of code and you could get an explanation of each part/parallel in another language how to write it.

    I mean your editor(VS Code for me) somewhat does it but yeah right now kind of a wall like "why isn't this working" what is this ? at the end of stuff, etc...

    I'm not new, I write APIs and what not but I haven't used Rails on my own before.

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

    Let’s say I want to build an e-commerce website for practice (i’m new to programming) what languages do I need?

    Posted: 05 Oct 2020 08:44 AM PDT

    So far, I think I'm good at html and css, currently learning Javascript and a bit of php. Could I have a fully functioning website by using just those languages alone? The project is simply for practice, but I want to make it as professional as I can. What else could I need to do this?

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

    Java class not working

    Posted: 05 Oct 2020 07:40 AM PDT

    I have recently begun following tutorials on Java, but while trying to run my file in command prompt it wouldn't register. Please help!

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

    I want to get into FAANG (Facebook, Amazon, Apple, Netflix, and Google) without JAVA

    Posted: 05 Oct 2020 11:14 AM PDT

    I have a dream to work for big tech companies like Facebook, Amazon, Apple, Netflix, and Google. I am a full stack developer. I have knowledge of Javascript, python, PHP, Golang. currently trying to learn C++ and Java.

    I liked C++, I find it interesting. It is not the same for Java, I just feel Java is not for me.

    when I searched for which languages extensively used in big tech companies. I found Java is mostly used at the enterprise level.

    Also, it is true that for interviews in big companies, any well-known language like python, C++, JavaScript, etc are enough to solve interview questions or problems and I can choose any of those languages, rather I should spend more time on data structure and algorithms.

    But if those companies are using Java extensively for most of the projects, then not knowing java will reduce my chance.

    I want to know your views. I will be really happy if somebody not agrees with me.

    Thanks

    *\* my conclusion is based on Java is the most used language in these big tech.

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

    Are there ways around Twitters API limitations

    Posted: 05 Oct 2020 07:16 AM PDT

    I seem to have exhausted all my options on this and thought I would ask the people here.

    I am trying to pull all retweeters from a tweet. I have tried the Twitter API but am limited to 100 users. I have tried the 4 most popular Python library's with no luck.

    Would anyone happen to have any ideas?

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

    No comments:

    Post a Comment