• Breaking News

    Friday, August 27, 2021

    How do I resend a new redeem code to my internal developer account when it says "installed". Ask Programming

    How do I resend a new redeem code to my internal developer account when it says "installed". Ask Programming


    How do I resend a new redeem code to my internal developer account when it says "installed".

    Posted: 27 Aug 2021 06:01 PM PDT

    I am a developer on our Apple Developer account.

    I added myself to testflight as an internal tester and redeemed my code.

    I then switched Apple ID on my device and installed a different app for a completely different developer account.

    I then switched back to my first Apple ID. Now when I go into the testflight app, it says I have no apps installed. I don't have my original redeem code either (but I think that is one time use anyways).

    When I go to app store connect, and navigate to the app testflight page, it shows my account as "Installed" even though it is not. Some internal testers have "resend invite" option next to their name, but there is not that option next to my account. I can remove my account as a tester, and then add it again, but it makes no difference. As soon as I add myself back, it immediately goes back to showing "installed" again.

    I have tried reinstalling testflight and that made no difference.

    How do I get myself a new redeem code for this app?

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

    Why is the max value of a 32 bit floating point number 3.4 x 10^38?

    Posted: 27 Aug 2021 06:58 PM PDT

    I understand 2x - 1 gives you the max number for x unsigned bits. but say we're using IEEE-754 32 bit floating point number. Shouldn't the maximum value be 10256 x 223? since the mantissa is a 23 bit number and the exponent is 10 raised to the power of an 8 bit number.

    Wikipedia however says the (2 − 2−23 ) × 2127

    where does this come from? Why is the exponent negative?

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

    HTML dropdown is not working

    Posted: 27 Aug 2021 05:43 PM PDT

    I'm making a header for a website I'm working on. Here is the HTML code (it's not supposed to look like that and it's properly indented in the actual file):

    ```

    <li class="nav-item">

    <div id="right">

    <div class="dropdown">

    <button class="dropbtn">SETTINGS

    <i class="fa fa-caret-down"></i>

    </button>

    </div>

    <div class="dropdown-content">

    <a href="#">PROFILE</a>

    <a href="#">LOGOUT</a>

    </div>

    </div>

    </li>

    ```

    and here's the CSS code:

    ```

    .dropdown {

    float: left;

    overflow: hidden;

    }

    .dropdown .dropbtn {

    font-size: 15px;

    border: none;

    outline: none;

    color: white;

    padding: 25px 25px;

    background-color: inherit;

    font-family: inherit;

    margin: 0;

    }

    .nav-item a:hover, .dropdown:hover .dropbtn {

    background-color: #0648CD;

    }

    .nav-logo a:hover {

    background-color: #003296;

    }

    .dropdown-content {

    display: none;

    position: absolute;

    background-color: #003296;

    min-width: 160px;

    z-index: 1;

    }

    .dropdown-content a {

    float: none;

    color: white;

    padding: 12px 12px;

    text-decoration: none;

    display: block;

    text-align: left;

     font-size: 10px; 

    }

    .dropdown-content a:hover {

    background-color: #0648CD;

    }

    .dropdown:hover .dropdown-content {

    display: block;

    }

    ```

    I don't understand why the dropdown button isn't working at all.

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

    Does anyone know of a configurable in-browser REST client, deployed VIA docker?

    Posted: 27 Aug 2021 03:39 PM PDT

    I'm working on a POC for demo in a few weeks. The solution is deployed VIA docker stack/swarm, and one of the services in a REST service.

    I'm wondering if there exists a REST client webapp that I can add as another service in my docker-compose.yml for testing. This service would have configurations for the REST calls that I want to have as presets.

    Example:

    my Webapp is at: https://integ:8080/api

    I want to hit my REST client app at https://integ:9080/ in Chrome, and from there I have a postman-like UI with preconfigured REST calls to test my webapp.

    Does anyone know of any such app?

    UPDATE: I found this post, looks like HoppScotch (Formerly PostWoman) might be my solution https://www.reddit.com/r/selfhosted/comments/ftlgk6/selfhosted_https_api_tester_like_postman/

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

    Can a computer prove a specific function will halt or not, and find the sets of arguments that will do either?

    Posted: 27 Aug 2021 10:49 PM PDT

    Can a computer be given a specific function, and through purely syntactic/algorithmic means find a set of arguments that will cause it to halt or not?

    For the sake of the argument let's imagine the int range is unlimited in the following example:

    def subtractTwo (arg) : while arg != 0 : arg = arg - 2 

    It's obvious that this function will only halt if arg is a positive even integer. But this understanding, at least for me, comes from understanding the semantic content of this function, or why it does what it does.

    Can a computer/AI come to this conclusion and prove it without any human input?

    If arg is an odd number, it will decrement infinitely, and we can't compare previous states to prove it will never halt. That's the only reliable method I've found mentioned so far to prove a function won't halt.

    Alternatively, is it possible to write a function that's impossible for a computer to prove whether it will halt or not, but that it's possible for a human to do so?

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

    What the hell is going on here? [JavaScript]

    Posted: 27 Aug 2021 04:53 PM PDT

    Why are the arraylists showing so weirdly in Javascript?

    https://i.imgur.com/4d24DgO.png

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

    My company wants to start signing our star program, will an OV Code Signing be enough?

    Posted: 27 Aug 2021 07:42 PM PDT

    We are a small company, there are only 3 developers, me included, one of our apps is starting to attract many users but the Chrome warnings (when downloading) and Windows warnings (when installing) spook many of our clients, so we would like to sign our code we are small so we are thinking on ksoftware .net (please if you know a better option let me know), we want to get an OV Code signing certificate, but since we update our app a lot I don't know if the reputation would that we build would be lost every time we update and re-sign our program.

    Would an OV Code signing solve our problems (get rid of the scary warnings)?.

    Could you recommend sign providers for small businesses?

    Will we lose our reputation every time we change the code and re-sign?

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

    Is there a thing like tmux for web browsing?

    Posted: 27 Aug 2021 03:52 PM PDT

    I am currently using tmux on an M1 Air for learning programming. Since I am a student still, I still find myself having to look at google every few minutes. I have a tmux session running and have it attached in two separate windows, one in full screen and one in a half screen with Safari on the other side. Is it possible to do the same thing in a web browser, where you have two separate windows both looking at the same session? If you have any suggestions let me know.

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

    Two issues - Favicon is not displaying and two JS error messages in the index.html file

    Posted: 27 Aug 2021 07:00 PM PDT

    Hello!

    Currently learning the basics of HTML, CSS, and JS. I am running into two issues -

    1. In my index.html file. I am seeing two error messages via VS code, (see link below for reference.) Both tags are closed and no closing tags are missing. Any ideas? I went ahead and rewrote the section again, but that did not help.

    https://i.imgur.com/n5bEvau.png

    1. My favicon is not showing up in the browser tab, even though it's linked properly.

    (Worth mentioning. I do have a browser tab animation running, but I do not think that is causing the issue. See here - (https://streamable.com/bqh3nh) I removed the entire animation and the favicon was not present after.

    Here is a snapshot of the HTML head containing the correct linking and on the bottom you will see the favicon images in the correct path. (https://i.imgur.com/jHnFSgP.png)

    Any help would be greatly appreciated!

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

    Has anyone fixed their 'path' errors forever? And hasn't ran into them in years/decades?

    Posted: 27 Aug 2021 07:30 AM PDT

    I was going to list all of the problems I had 'simply' linking the correct path over the last 13 years, but it would take too long.

    I'm not sure if I could say all the problems were the same(wrong location linked/typo) or they each had a particular reason they were wrong(Windows/Linux, relative path, nonliteral strings).

    Whatever the case, I STILL am being an idiot and getting stuck on path issues. Both not identifying them quickly and not solving them quickly.

    Has anyone figured out a way that works for them? Checklist? Process?

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

    Help getting started with a Facebook bot that reads posts and sends messages in response.

    Posted: 27 Aug 2021 10:02 AM PDT

    Hi everyone,

    I have no idea where to start with this idea- I've never written an app or program before. I'd appreciate if someone could point me in the direction of what I might need to learn in order to make this happen or if it's even possible!

    CONTEXT:

    I am part of a FB group that invites users to make posts about small gigs. I want to respond to these posts as quickly as possible so that I can book these gigs, but the page is oversaturated. Within 5 minutes, 3 or 4 other people respond via FB messenger and a comment on the post.

    I'm sure you can see where I'm going with this, so if you disagree with my idea, please know that I kinda question the ethics of using a bot to beat the odds, but I'd like to get some advice on what it might take to make it happen anyway.

    IDEA:

    So, what I'm hoping for is a program/app/bot linked to my business page that will read public posts made in this group and send a FB message to the poster if their post contains certain keywords (ones that pertain to the kind of gig I want).

    For example, if a stranger makes a post at 12:00pm saying,

    "I need some work done on my big project. Can anyone help?"

    This program will read the post, flag the keywords - e.g. "work" or "help" - and contact the profile that posted by sending them a FB message at 12:01 that says, "Hi! I saw your post and I'm available to help."

    If you have any ideas about how much effort this would take or what kinds of things I might need to learn to write this program, please share! If you think this just isn't possible, please let me know so that I don't waste my time, and I'll just go back to a mad dash every time I get a FB notification.

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

    If there are millions of programmers, why are there not more “youtubes” or “twitchs”?

    Posted: 27 Aug 2021 01:46 PM PDT

    When is a good time to read up on a topic?

    Posted: 27 Aug 2021 07:24 AM PDT

    I've been learning react and js recently. I'm learning pretty fast just by doing, but I would also like to read about the topic at hand. Unfortunately, I never really learn anything by reading. I just get lost in all the abbreviations and concepts that I don't understand and end up with nothing learned after I finish the text.

    I was trying to read this for example, but I just couldn't understand a full paragraph at any point. So my question is, when should I start using reading material when learning a new language? Should I use text-only learning resources at all? Or should I just learn hands-on?

    Thanks.

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

    Help making a Java program repeatable from user input.

    Posted: 27 Aug 2021 02:44 PM PDT

    I'm very new to Java and I'm trying to make a simple force calculator to display from within the console. I want the program to be able to close and repeat if the user types "yes" to a prompt. I think I've made a little progress by getting my program to run while using a while loop, but I don't know what to do from here.

    (VV Total code as of now VV)

    import java.util.Scanner;

    public class forceCalc

    {

    public static void main(String[] args)

    {

    Scanner input = new Scanner(System.in);

    double objmass;

    double acceleration;

    double forcekg;

    double forcePND;

    String restart;

    String units;

    restart = "yes";

    while (restart.equals("yes")) {

    System.out.println("Force Calculator");

    System.out.println("");

    System.out.println("");

    System.out.println("Do you measure your object in pounds or kilograms? (Type pounds or kilograms below)");

    units = input.nextLine();

    if (units.equals("kilograms")){

    System.out.println("How heavy is your object in kilograms?");

    objmass = input.nextDouble();

    System.out.println("How fast is your object travelling in meters per second?");

    acceleration = input.nextDouble();

    forcekg = (objmass*acceleration);

    System.out.print("This object will excert " + forcekg);

    System.out.println(" Newtons upon impact");}

    else if (units.equals("pounds")) {

    System.out.println("How heavy is your object in pounds?");

    objmass = input.nextDouble();

    System.out.println("How fast is your object travelling in mph?");

    acceleration = input.nextDouble();

    forcePND = (objmass*.4536)*(acceleration*.447);

    System.out.print("Your object will excert " + forcePND);

    System.out.println(" Newtons upon impact."); }

    System.out.println("Would you like to calculate another object and restart the program? (yes/no)");

    restart = input.nextLine(); }

    }

    }

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

    How would you build this? (see post)

    Posted: 27 Aug 2021 01:42 PM PDT

    Hi everyone. How would you build the following product:

    1. database filled with legal cases
    2. cases are categorized under standard criteria (e.g. damages awarded, category of employment, etc.)
    3. users search for cases according to criteria + PDF report created listing results

    Any sort of insight would be appreciated.

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

    How many hours of your work day do you actually work?

    Posted: 27 Aug 2021 05:58 AM PDT

    Examples of activities considered work: Meeting, emails and other forms of work related communication, debugging, writing code, researching a problem or technology, walking or relocating because you have to be somewhere else to do work. Chatting with coworkers about work.

    Activities not considered work: reading the news, chatting about non-work related topics with coworkers, handling personal emails, surfing reddit.

    I guess a loose definition of work could be: every activity that directly or indirectly creates, or is a step towards creating, value for your employer.

    You get the gist, hopefully. :p

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

    Performance question: Sort, map, reduce which order is best?

    Posted: 27 Aug 2021 11:20 AM PDT

    Hi. I have a big list of objects, each has an id. Now I want to join their ids in a unique string so that I can see if I already have another list with the same objects. But which order is the most performant? Is there even a difference?

    I just though that operating on a list of strings is easier than on objects. So Map -> Sort -> Reduce. Am I right, am I wrong?

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

    How game servers works

    Posted: 27 Aug 2021 11:14 AM PDT

    Hey guys I wonder how game servers works and what it's match people and can I use AWS for it.

    If you know let me learn please.

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

    Is my analogy about variables and data types correct?

    Posted: 26 Aug 2021 10:51 PM PDT

    Hello! I would like to know if my analogy is correct.

    "Variables are like boxes and can be labeled according to what content it stores. A variable can hold a variety of categories. In programming, we call this Data Types."

    Thank you for reading!

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

    PROJECT IDEA: read till the end, it might be quite helpful(web or app)

    Posted: 27 Aug 2021 06:24 AM PDT

    So, here is an idea using APIs and web or app development.

    PROBLEM-

    Everyone knows that google, youtube, and all these platforms are designed in a way to hook you up. This also means that if you are using them for work purposes, that you might be then they will waste a lot of your time.

    So, we can build a simple web app or Android app that is designed not to increase productivity but to remove distraction of the app. here is the bigger picture

    The app will perform all the basic tasks that are helpful-

    Youtube-

    • 1- search for videos
    • 2- save later access
    • 3- playlist access

    Instagram-

    • chat features and home feed
    • posts from only people whom we follow(no promotion)

    google-

    • No suggested search
    • no suggested articles
    • block some sites

    You can ask me in Dm for more regarding what is the idea, what is thought process behind it and how is it going to help.

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

    Is Android studio must for Android development?

    Posted: 27 Aug 2021 06:04 AM PDT

    Can u suggest few alternatives for low-end PCs?

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

    How do websites like the nytimes manage to constantly display new data?

    Posted: 27 Aug 2021 04:17 AM PDT

    New front page, new articles, it feels really dynamic and flowable. I'm curious what behind the scenes setup they have to make their "create new content" action so seamless.

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

    Is there a practical reason for over-complicating the storage of simple strings in binary data specifications?

    Posted: 27 Aug 2021 07:43 AM PDT

    I am currently writing a .NET decompiler / PE file reader (PE = .dll and .exe files) just for fun, but I have noticed something strange. Across the PE and .NET specifications I have already encountered at least six different ways of soring simple strings in the the binary files, and this makes it very difficult to write a universal parser that works with all of them.

    First of all, the PE section headers are "8-byte, NULL-padded UTF-8 strings". Except when the string is more than 8 bytes, in which case it points to a different location in the binary where the longer string is stored.

    Then we have the Import Name table (where the imported dll names are stored), which uses a trailing zero, but also adds an additional padding byte to ensure that the string ends at an even boundary. WHY?? WHAT'S THE DAMN POINT?

    The CLI header stores name strings with a length prefix, but it's padded to the next 4-byte boundary. Who even comes up with this shit?

    The CLI metadata stores its version string with a length prefix, but that prefix is always a multiple of 4, the remaining space is padded with zeros.

    There should be no more then two ways of reading a damn string. Either with a 32-bit length prefix, or with a null terminator. These two simple methods could be used in all four of the scenarios that I've mentioned above, yet the developers still decided to come up with some random rule for padding or for storing the length.

    I think that in my next custom binary format, I will store strings with a 13.5-bit length prefix, but also padded to the next prime-number byte boundary, but only if the string is read before midnight, on an odd-numbered day of the week, and if the current year is divisible by 3.

    EDIT: I'm not making this up

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

    You're the first to prove that P=NP, and are the only one who can defeat all NP problem-based cryptography - how would you convert that into as much cash as possible?

    Posted: 27 Aug 2021 07:02 AM PDT

    This would be the holy grail for a security researcher, but, surprisingly, when me and my pals came up with the hypothetical, we couldn't find a way to actually make decent cash with it. Surely there must be some huge systems relying on the premise that cryptography actually works who could be exploited for cash?

    A zero-day exploit broker offers to buy this exploit from you for $5 million, but you believe that you could make more by keeping it to yourself.

    Can you do that without going to prison?

    Hashing isn't NP-hard : Reversing hashes and finding collisions in Sha-2 is O(1). Bitcoin also hashes the public keys, so unless I'm mistaken, Bitcoin is off the table!

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

    how can i use Azure httptrigger for deleteing data from my Cosmos container in js ?

    Posted: 27 Aug 2021 01:33 AM PDT

    No comments:

    Post a Comment