• Breaking News

    Friday, October 26, 2018

    How important education is for getting programming related job? Ask Programming

    How important education is for getting programming related job? Ask Programming


    How important education is for getting programming related job?

    Posted: 26 Oct 2018 10:23 AM PDT

    Hello,

    How important education is for getting programming related job?

    I am a law student (second year) and for the last two years I have been doing small freelancing gigs related to back end and front end web development. At this point I am pretty sure that my chances of getting law related job are very low (even if I get masters).

    So I have been thinking about next possibilities:

    1. Switching major to CS related major
    2. Finish my studies and try to find a job simply showing my experience and skills
    3. Finishing started education and then assessing my skills and knowledge and deciding if it is worth it to get second degree in CS related field

    It important to mention, that I'm from Europe so I won't have any debt and cost of education is relatively low.

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

    Swift error while running app. Any help would be appreciated.

    Posted: 26 Oct 2018 07:57 PM PDT

    Trying to make use of a singleton MVC and receive this error no matter what I change. Any help would be appreciated.

    Only error I can find - Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) - SWIFT - SINGLETON

    Link -> Here

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

    Programming Challenge: Help! I need to create a bot... how??

    Posted: 26 Oct 2018 06:49 PM PDT

    I need to design a program that will enter a form by typing strings of text, adding random numbers, and hitting enter as well as clicking a mouse. Is there a simple way to do this. I've used a paste-bin to draw up a simple map of what the program should do.

    robot hastebin

    Please help me out... I need this to work...

    And in case you're wondering about the form after reading the above hastebin, I took a snap of the form here: https://ibb.co/fMjr8A

    Thanks

    Jonathan

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

    Need help with executing batch program upon scroll wheel turn

    Posted: 26 Oct 2018 12:43 PM PDT

    Hi, I want to send a hex command over my P.C's serial port upon a mouse click or action of the scroll wheel.

    So far I have a batch script that will send the hex commands I'm interested in sending, but I can't figure out how to tie this function to the scroll wheel of the mouse.

    I would like to avoid using third part applications like AutoHotKey.

    I need some help figuring out how to watch / map the button press to executing the command. Alternatively I could create a batch file that is constantly running and is intercepting / watching the mouse status and will send the command any time the scroll wheel is scrolled.

    Outside the box ideas welcome.

    Appreciate the help.

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

    [C++] Issues with recursive function with large values

    Posted: 26 Oct 2018 12:37 PM PDT

    Hey! I've been mulling this over for a while and I can't figure it out. For a programming challenge thing, we were supposed to make a program where we calculated the number of Knights that could fit on an NxN chessboard. I've got an algorithm that runs the logic via recursion. Essentially whenever a knight is placed, it places an attack space everywhere that knight could attack on a 2D vector, and vice-versa when attacks are placed.

    The program runs flawlessly for values N 3-64. (I'll be honest, haven't tested 1x1 or 2x2 boards but I'd assume they work). But when I have my vectors represent a 65x65 board or higher, my program just kinda... doesn't run and I can't really figure out why.

    My recursive statement(s) are below. Otherwise I just kind've loop through a 2D vector and place a knight in any available blank space. (After the first one is placed, most of the board should be filled so it mostly just takes care of any stragglers) I haven't really used recursion on large things like this before so I don't know if maybe too many calls are in the stack at once or something. If anybody has any insight into the problem, I'd love to hear it!

    void placeKnight(vector<vector<int>>& board, int& count, int x, int y) { if (!board[x][y]) { board[x][y] = 1; count++; int max = board.size(); if (x < max - 1 && y < max - 2) canAttack(board, count, x + 1, y + 2); //down right if (x > 0 && y < max - 2) canAttack(board, count, x - 1, y + 2); //down left if (x < max - 2 && y < max - 1) canAttack(board, count, x + 2, y + 1); //right down if (x < max - 2 && y > 0) canAttack(board, count, x + 2, y - 1); //right up if (x < max - 1 && y > 1) canAttack(board, count, x + 1, y - 2); //up right if (x > 0 && y > 1) canAttack(board, count, x - 1, y - 2); //up left if (x > 1 && y > 0) canAttack(board, count, x - 2, y - 1); //left up if (x > 1 && y < max - 1) canAttack(board, count, x - 2, y + 1); //left down } return; } void canAttack(vector<vector<int>>& board, int& count, int x, int y) { if (!board[x][y]) { board[x][y] = 2; int max = board.size(); if (x < max - 1 && y < max - 2) placeKnight(board, count, x + 1, y + 2); //down right if (x > 0 && y < max - 2) placeKnight(board, count, x - 1, y + 2); //down left if (x < max - 2 && y < max - 1) placeKnight(board, count, x + 2, y + 1); //right down if (x < max - 2 && y > 0) placeKnight(board, count, x + 2, y - 1); //right up if (x < max - 1 && y > 1) placeKnight(board, count, x + 1, y - 2); //up right if (x > 0 && y > 1) placeKnight(board, count, x - 1, y - 2); //up left if (x > 1 && y > 0) placeKnight(board, count, x - 2, y - 1); //left up if (x > 1 && y < max - 1) placeKnight(board, count, x - 2, y + 1); //left down } 

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

    Low-end IDE for C#?

    Posted: 26 Oct 2018 03:29 AM PDT

    Hello, I've been using Visual Studio but find it laggy, slow and somewhat crashy.
    Are there any alternatives aimed at older systems (I'm using mostly 15-year old hardware)?

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

    Website to easily create CSS?

    Posted: 26 Oct 2018 03:36 PM PDT

    Hey guys, sorry in advance if this question is really dumb, I'm just getting into webdev. I need to create a website for my uni assignment and I cannot be bothered to figure out CSS cause deadlines.

    Does a website exist where you can set up a homepage and choose colours and stuff and then it generates the CSS code for what you did? I wanna just create a static homepage in CSS that has all the widths, lenghts, etc. done correctly so I can put text on it. If this doesn't exist, what is the easiest way you could recommend to create a basic website layout in CSS? Thanks in advance

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

    What do employers look for when they see your application for <technology> engineer?

    Posted: 26 Oct 2018 11:22 AM PDT

    I've got 4 years experience in the field. Everything from full stack web stuff to scientific simulation and machine learning research. I've been out of work for 4 months and I can't seem to figure out what it is I need...I'm frustrated.

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

    Why are so many developers interested in early retirement?

    Posted: 26 Oct 2018 09:07 AM PDT

    Howdy folks, I hope more general questions are welcome here. If not please suggest where I could post elsewhere.

    Most of us are paid well, we occasionally get to solve interesting problems. We constantly get to learn new things. We're very much in demand.

    All in all, most of us have a pretty sweet gig, and yet I'm curious about a correlation I see within the /r/financialindependence subreddit. The last survey they had there, a sizable majority were in IT or engineering.

    It got me thinking, why? Is it that we're not as pressured to be 'flashy' with our consumption as, say doctors, lawyers, or people in finance? Are we more apt to optimize or min/max things, including our finances? Or, more darkly, is it just ageism?

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

    A library or packet to easly prototype my sons drawings as a game. like.. . flying monsters or make them jump around or space invaders like game or shot’em up like game?

    Posted: 26 Oct 2018 08:21 AM PDT

    I'm familier with C C++ python swift. Should i try pygame? Also i am searching an easy way to convert that drawings in to game assets.

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

    Java Gui

    Posted: 26 Oct 2018 03:33 AM PDT

    Hi guys,

    I'm studying Java Swing, Awt and FX at University. I started some days ago so I don't know how this tools actually work. In this exercise I have to make an array with some objects composed with a question and an answer. The JTextField for the answer is editable.

    In the Build class I made an horrible gui but it's not a problem, my problem is the for statement into Build class: It doesn't wait for the answer at any of my three questions but it print the last question and when I answer the showDialogMessage appears three times.

    What I have to do?

    PS. For complete code click here

    ``` class Build extends JFrame implements ActionListener{

    JPanel p = new JPanel(); JTextField q = new JTextField("", 20); JTextField a = new JTextField("", 20); JButton b = new JButton("Submit"); Faq array[] = new Faq[3]; String currentAns; public Build(){ int i; setLayout(new GridLayout(3, 2, 20, 50)); array[0] = new Faq("Di che colore è il cavallo bianco di Napoleone?","Bianco"); array[1] = new Faq("Ramiro ama Giulia?", "Si"); array[2] = new Faq("Quando ti laureerai?", "Mai"); add(new JLabel("Domanda -> ")); add(new JLabel("Inserisci il risultato: ")); for(i=0; i<array.length;i++){ q.setText(array[i].getQuest()); q.setEditable(false); a.setText(""); a.setEditable(true); p.add(q); p.add(a); p.add(b); currentAns = array[i].getAns(); b.addActionListener(this); //non refresha la pagina con le nuove scritte //BOH System.out.println(array[i].getQuest()); } add(p); setSize(500, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } @Override public void actionPerformed(ActionEvent e) { System.out.println(a.getText()); if(currentAns.compareTo(a.getText())==0){ JOptionPane.showMessageDialog(this, "OK"); System.out.println("OK"); } else{ JOptionPane.showMessageDialog(this, "ERRORE"); System.out.println("Nope"); } } 

    }

    ```

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

    Spring boot start up time

    Posted: 26 Oct 2018 06:55 AM PDT

    After installing the newest version of the osx (Mojave) to my macbook pro the start up time for even a simple java spring boot project has gone up from like 5 seconds to over 20. Any ideas if there's something I can try to fix the issue?

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

    Does anyone know the name of this syntax coloring scheme?

    Posted: 26 Oct 2018 06:39 AM PDT

    Hi everyone. First of all, this is not a question that is directly related to the technicalities of programming, so please forgive me if this is not the right place to ask.

    The page on the link below displays a snippet of code designed to exploit the infamous heartbleed weakness. I think the coloring scheme and font used in this code are very visually appealing and I would like to use it in my code editor. Does anyone know the name of this scheme?

    https://stackabuse.com/how-to-exploit-the-heartbleed-bug/

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

    C# Looking for help on how to parse this certain XML

    Posted: 26 Oct 2018 01:58 AM PDT

    I have a sample XML Like this, and would like to convert it below.

    <root> <attribute code="AAA"> <attribute code="A1"/> </attribute> <attribute code="AAA" /> <attribute code="BBB" /> <attribute code="CCC" > <attribute code="C1" /> <attribute code="C1" /> </attribute> </root> 

    to something like this

    /AAA[1]/A1 /AAA[2] /BBB /CCC/C1[1] /CCC/C1[2] 

    I am having trouble doing this in C# with a clean code

     void xTry(XmlDocument xdoc) { //XElement execution = XElement.Parse(xml); var parentAttr = xdoc.SelectNodes("//root/*"); var retAttr = new List<string>(); foreach (XmlNode attr in parentAttr) { var childAttr = attr.SelectNodes("*"); if (childAttr.Count > 0) { foreach (XmlNode child in childAttr) { retAttr.Add(attr.Attributes["code"].Value + "/" + child.Attributes["code"].Value); } } else { retAttr.Add(attr.Attributes["code"].Value); } } } 
    submitted by /u/ippo20
    [link] [comments]

    No comments:

    Post a Comment