• Breaking News

    Saturday, March 28, 2020

    Can I ask to make an interview with me? To calm worry and prepare for questions Ask Programming

    Can I ask to make an interview with me? To calm worry and prepare for questions Ask Programming


    Can I ask to make an interview with me? To calm worry and prepare for questions

    Posted: 28 Mar 2020 09:20 AM PDT

    Hello. I'm a java developer with 4+ years of experience. I want to try to find a job in a foreign country as a middle Java / JavaScript programmer. The problem is that English is not my native language, but I know it at about intermediate - upper intermediate level and I'm worrying a bit. And I'm not sure about my internet connection - will it be able to hold a video call. It 99% should, but I'm not sure.

    Could you interview me for testing purposes? If you would like, maybe train a bit. If you wish, write me, I will explain details.

    Thanks in advance.

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

    Is there an iPad emulator for Windows 10 that allows me to inspect element on web apps like I can do with the safari and the simulator for iOS?

    Posted: 28 Mar 2020 05:33 PM PDT

    So, I'm having a weird problem that I'm not entirely sure how to describe. For one of my classes, we have to update a webpage using PHP and SQL, which in and of itself is relatively simple but the problem I'm encountering is that my $_POST array is empty when accessed by different parts of the code.

    Posted: 28 Mar 2020 07:15 PM PDT

    The Code for the hidden action: $action = filter_input(INPUT_POST, 'action'); echo ("POST: "); // Just dumping the $_POST and $_GET arrays var_dump($_POST); echo (' '); echo ("GET: "); var_dump($_GET); echo (' '); echo ("Action == "); echo ($action); echo (' '); if ($action == NULL) { $action = filter_input(INPUT_GET, 'action'); echo ("2: Action == "); echo ($action); echo (' '); // Test if action is still NULL, if so, set it to 'list_products'. if ($action == NULL) { $action = 'list_products'; } } And then the code that accesses the $_POST array: else if ($action == 'delete_product') { $product_id = filter_input(INPUT_POST, 'product_id', FILTER_VALIDATE_INT); $category_id = filter_input(INPUT_POST, 'category_id', FILTER_VALIDATE_INT); echo ("product_id == "); // Tests what the values of $product_id and $category_id are echo ($product_id); echo (' '); echo ("category_id == "); echo ($category_id); echo (' '); if ($category_id == NULL || $category_id == FALSE || $product_id == NULL || $product_id == FALSE) { $error = "Missing or incorrect product id or category id."; include('../errors/error.php'); } else { // The code usually reaches this block delete_product($product_id); header("Location: .?category_id=$category_id"); } } else if ($action == 'show_edit_form') { $product_id = filter_input(INPUT_POST, 'product_id', FILTER_VALIDATE_INT); //$product_id = filter_input(INPUT_GET, 'product_id'); // This is the line of code that swaps the $_POST/$_GET arrays for some reason. $category_id = filter_input(INPUT_POST, 'category_id', FILTER_VALIDATE_INT); echo ("product_id == "); // Tests what the values of $product_id and $category_id are echo ($product_id); echo (' '); echo ("category_id == "); echo ($category_id); echo (' '); if ($category_id == NULL || $category_id == FALSE || $product_id == NULL || $product_id == FALSE) { // The code will reach this point $error = "Missing or incorrect product id or category id."; include('../errors/error.php'); } else { // The code will NOT reach this point $product = get_product($product_id); $category_name = get_category_name($category_id); $categories = get_categories(); header('Location: .?action=show_edit_form'); // THIS MIGHT NEED TO BE CHANGED } 

    }

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

    C++ access modifier security

    Posted: 28 Mar 2020 09:03 PM PDT

    My team at work was interviewing a candidate, and my coworker asked (of c++) "which is more secure, a struct or a class".

    The candidate said he didn't know the answer, but when my coworker replied a class was more secure I almost spat my coffee out. Thankfully it was a webex.

    Am I smoking crack? Obviously what he was getting at is the default access modifier for struct vs class, but access modifiers have no relation to anything security related, do they? I mean maybe you could argue that properly encapsulated code is less likely to have flaws in it, which might make it more secure, but even that seems like a huge reach. Like, code with a private access modifier lives in the same memory, doesn't it?

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

    Is there a good resource for learning how to set background images for iOS apps?

    Posted: 28 Mar 2020 08:42 PM PDT

    Hi,

    I am learning iOS development (internship), and I'm trying to use an image as a background for an app. The problem is, it ranges from looking pretty bad on some models to looking terrible on other models. I just can't seem to get the image to scale properly for different iphones.

    I've been looking for tutorials, but I can't find anything that uses a full-screen image along with storyboards. It's all either a solid background color, or just some icon in the middle, or they do it programmatically, which is tough because I'm taking over for a much more experiences developer and he used storyboards (as opposed to doing it programmatically) and I'm worried that I'll mess something up worse if I try to switch to doing it programmatically.

    So really, I just need a resource that explains things like how to use full images as a background and make it work on all phone models. My issue is that the image wants to stay the same size even on much smaller screens, meaning that on something like an iphone se or 8 or something you only get the top half of the image.

    I've tried using constraints, but they screw up with different dimensions, because (I think) they can't keep all of their constraints true when the ratio changes.

    I'd love any advice on how to handle this!

    Thanks!!

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

    STATA HELP FOR AN IDIOT

    Posted: 28 Mar 2020 06:20 PM PDT

    STATA HELP: I am looking to create a variable, where the variable equals 1 when the "team won the previous game" and 0 if they had "lost the previous game". Any help?

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

    How do you select drop down menu using selenuim?

    Posted: 28 Mar 2020 05:52 PM PDT

    I am struggling with the drop menu in google. So I am trying to use selenuim to login in to my google account and then click on the calender.. Google has a drop down menu and I cant seem to figure how to select calender from the menu. When I click on inspect calender from the drop menu in google this is the element I see.

    <span pid="24" class="MrEfLc" style="background-position: 0 -2553px;"></span>

    <span class="Rq5Gcb">Calendar</span>

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

    Why doesn't 0.01 + 0.02 give a floating-point error when 0.1 + 0.2 does?

    Posted: 28 Mar 2020 07:02 AM PDT

    Hi. I was playing with the following code:

    <p id="pp."></p> <script> var x = 0.1 + 0.2 document.getElementById("pp.").innerHTML = x; </script> 

    That, of course, gave 0.30000000000000004. But when I replace it with var x = 0.01 + 0.02, it just comes out as 0.03; how come?

    submitted by /u/Biscuit-in-Chief
    [link] [comments]

    [C#]What is the best way to organize these classes?

    Posted: 28 Mar 2020 04:37 PM PDT

    I am making a dynamic sidebar for a website. I'm looking to do something similar to inheritance but backwards (let me know if there is a better way)

    I would basically have two classes that would be a part of the sidebar class:

    Nav{ String Name; String Path; }

    DropDownNav { String Name; List<Nav> Navs; }

    Obviously the sidebar could have something like this:

    Sidebar{ List<Nav> List<DropDownNav> }

    But I was wondering if I could use polymorphism or inheritance to give me something like this

    Sidebar{ List<Nav> }

    Keeping them as one object but preventing Nav from having a list of navs, and preventing DropDownNav to have a path. What is the best way to accomplish this?

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

    What programming projects / skills do employers NEED to see in a Full Stack Developer? Top 3

    Posted: 28 Mar 2020 04:00 PM PDT

    Help Creating Scatter plots with a for loop in R

    Posted: 28 Mar 2020 03:02 PM PDT

    I have been trying to create a for loop in R that will output multiple scatter plots but haven't had much luck. Here is what I have done so far:

    for (column in colnames(top_scorers[3:8])){

    print(column)

    ggplot(top_scorers, aes(x=`Win%`, y=column))

    }

    The loop seems to be functioning correctly as it will print out the correct column names but the ggplot() function does not seem to output anything. Does anybody have an idea as to why? I am relatively new to coding in R but will try to provide clarity on what I am trying to do if needed.

    submitted by /u/dj-mill
    [link] [comments]

    Best way to implement clickable risk map?

    Posted: 28 Mar 2020 02:12 PM PDT

    I'm in the middle of writing risk (the boardgame) in python. I've build the back end and I am now working on the front end. However, one of the required features is that each territory in the map is clickable (risk board). What is the best way to implement this?

    I've considered splitting the map into different images for each territory, but images have to be rectangular, so clicking on one territory would often be interpreted as clicking on 2. Any ideas?

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

    What do you use the most from Github Student Developer Pack?

    Posted: 28 Mar 2020 01:59 PM PDT

    How to allow overcommit on Windows 10?

    Posted: 28 Mar 2020 01:43 PM PDT

    Before anyone tells me not to overcommit, I need to allow it for deep learning (tensorflow and keras) purposes. I am handling an .npy (numpy array) file of size of at least 19 GB and I am using every trick there is to prevent OOM problem, i.e. decreasing the batch_size, or splitting the data set into smaller partitions and yet I need to allow overcommit on windows.

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

    What's the best template for documenting use cases?

    Posted: 28 Mar 2020 01:32 PM PDT

    Question,

    Posted: 28 Mar 2020 09:44 AM PDT

    What can i do with a phone motherboard, the phone isn't working,the motherboard is fine,i dont have a pc,what can i do with it,connect it to another phone?,etc.

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

    Creating a something like file explorer

    Posted: 28 Mar 2020 09:42 AM PDT

    Just wanna ask, Can you suggest what do I need to know or to learn (where do I start?) in making a something like file explorer?

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

    What is the most simple way to make a code I wrote, usable for a friend of mine who does not have Python installed?

    Posted: 28 Mar 2020 01:11 PM PDT

    So I made a simple calculator for options in Python. How can I share it so someone who does not have

    Python can use it themselves?

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

    Javascript specific coding practice

    Posted: 28 Mar 2020 12:50 PM PDT

    Is there any free IDE for windows where i can write scripts for the iOS app Scriptable?

    Posted: 28 Mar 2020 12:42 PM PDT

    How would you suggest preventing users from cheating?

    Posted: 28 Mar 2020 11:58 AM PDT

    Background: I'm a software engineer who while in pandemic lock down started making games using React and Node to stay social with friends virtually (e.g. cards against humanity, codenames, etc.) but I am having trouble securing the game data so it's not readable to users. How do y'all accomplish this? Is there some kind of encryption or hash that is standard for this?

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

    Exposing a modding API in a gradle project

    Posted: 28 Mar 2020 11:39 AM PDT

    Hi, So I am making a modding API for a project. Essentially my question is this, what is the best way to expose the API to the public and link the mods to the main game.

    Option 1: Have an entire gradle project including the API for each mod. Essentially I would give the user an entire gradle project that contains the modding interface/API, and put each one of these gradle projects in the mod folder of the game. Obviously this seems bad as it is cumbersome and ineficient.

    Option 2: Somehow reference the modding API in a new gradle project providing the path to it. But then the modding API would have to be a jar, and I want to avoid compiling JARs as much as possible.

    What is the best way, including other options, of exposing a modding API using gradle?

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

    Help me with this pandas dataframe in python?

    Posted: 28 Mar 2020 07:16 AM PDT

     1. open 2. high 3. low 4. close 5. volume date 2020-03-27 16:00:00 247.700 248.4100 247.620 247.7100 767443.0 2020-03-27 15:59:00 247.970 248.4299 247.600 247.6700 403395.0 2020-03-27 15:58:00 247.540 248.4800 247.410 247.9700 355260.0 2020-03-27 15:57:00 248.320 248.3700 247.500 247.5300 344635.0 2020-03-27 15:56:00 247.190 248.5000 247.050 248.3200 325752.0 ... ... ... ... ... ... 2020-03-23 09:35:00 224.895 224.8950 224.895 224.8950 388212.0 2020-03-23 09:34:00 226.330 227.0000 225.010 226.0639 310932.0 2020-03-23 09:33:00 226.360 226.3600 226.360 226.3600 396740.0 2020-03-23 09:32:00 225.010 225.5000 222.350 223.1900 422233.0 2020-03-23 09:31:00 225.200 225.2000 225.200 225.2000 3860296.0 

    Right now I want to print everything inside of the latest entry into this pandas dataframe . I can print everything that is correlated with the "open, high, low, close & volume" but I can not print the date for a specific entry. I am getting the data using the TimeSeries function from alpha_vantage.

    What I can print

    index = len(data) - 1 print(data["1. open"][index]) 

    out

    247.700 

    the out i want

    2020-03-27 16:00:00 247.700 

    My question is, how do I access the dates in this pandas dataframe?

    I have searched for an answer and I can not find one.

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

    Honest Question, Looking For Honest Answers

    Posted: 28 Mar 2020 10:41 AM PDT

    I am relatively new to programming. I understand the very basics about how to set up an html, especially in such a way that i can use javascript code in it, and i know a little bit about javascript. as you can probably tell already, im not experienced by any means. ive seen some amazing things done on other subreddits and ive also seen some really interesting youtube videos (specifically by The Coding Train) and now I want to get serious about learning code. Where should I start? What language should I really fully learn first? I like JS a lot (even though i see a lot of trash talk towards it lol) so would that be a bad first language to learn? any advice would be amazing, thank you guys!

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

    Is theere a c# programming handbook?

    Posted: 28 Mar 2020 10:08 AM PDT

    I looking for a book which contains more/less complete documentation of the c# programming language. I want something I can use to check on some class or method that I don't remember completely or want to explore. Is there anything remotely like this?

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

    No comments:

    Post a Comment