• Breaking News

    Friday, December 27, 2019

    What's a good non-data selling company alternative if you don't want to work with google or similar companies? Ask Programming

    What's a good non-data selling company alternative if you don't want to work with google or similar companies? Ask Programming


    What's a good non-data selling company alternative if you don't want to work with google or similar companies?

    Posted: 27 Dec 2019 08:39 AM PST

    I mean generally. I have heard google sales data and that is considered a non-ethical practice. What would be your option for a company with the size of google but with good ethical practices?

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

    I want to design a bare bones video game that let's me move around & click on things that trigger cut scenes. What software should I use?

    Posted: 27 Dec 2019 12:00 PM PST

    My goal is to create educational games but I've only ever made stick figure videos in flash.

    What is the quickest route to me creating and getting to an end product?

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

    Help needed with Arduino error!

    Posted: 27 Dec 2019 04:05 PM PST

    I had previously made a post about an error on Arduino I faced when making a melody to be played by a buzzer. I forgot to add an image to the post and I have done this time below.

    I used the example from File -> Examples -> Digital -> toneMelody.

    I pretty much copied it all and just changed the notes and the note durations and kept all of the syntax the same however I keep receiving this error when I press both verify and upload.

    Image 1

    Image 2

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

    Need help adding clickable div on website

    Posted: 27 Dec 2019 05:22 PM PST

    Hey there! I need some help with this piece of code if anyone could help. I wanted the services section on the homepage to have links attached to each button. I linked the text through basic html but I need the entire button to be clickable, if possible. The website is naturallyuniqueboutique.com

    Here is the section code:

    1 <!-- /templates/snippets/section-ourservice.liquid --> 2 ​ 3

    <div class="widget ourservices no-margin space-top-{{ settings.margin-top-section }} space-{{ settings.margin-bottom-section }}"> 4

    <div class="wrapper-banner"> 

    5

     <div class="grid"> 

    6

     <div class="grid-banner-service-inner style1 clearfix"> 

    7

     <div class="service-inner clearfix"> 

    8 {% for i in (1..3) %} 9 {% capture title %}ourservice{{ i }}title{% endcapture %} 10 {% capture _desc %}ourservice{{ i }}desc{% endcapture %} 11 {% capture _icon %}ourservice{{ i }}_icon{% endcapture %} 12

     <div class="grid__item large--one-third service-{{i}}"> 

    13

     <div class="ourservice-inner"> 

    14

     <div class="ourservice-info"> 

    15

     <div class="ourservice-info-inner"> 

    16 {% if settings[_title] != blank %} 17 <b class="ourservice-heading">{{ settings[_title] }}</b> 18 {% endif %} 19 {% if settings[_desc] != blank %} 20

     <span class="ourservice-content"> 

    21 {{ settings[_desc] }} 22 </span> 23 {% endif %} 24 </div> 25 </div> 26 </div> 27 </div> 28 {% endfor %} 29 </div> 30 </div> 31 </div> 32 </div>

    33 </div>

    Any help would be really appreciated. Thank you.

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

    Any chance Cache stores content inserted into a webform that wasnt submitted properly?

    Posted: 27 Dec 2019 09:38 PM PST

    I just spent the past few hrs creating and editing content in a web form, then accidentally clicked through to the next page instead of hitting the the submit (which in turn, would also bring me to the next page). hitting back brought up the form in its original state prior to me adding anything at all. im just completely f*cked here, right?

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

    Is it common to make changes in a prod env?

    Posted: 27 Dec 2019 04:24 AM PST

    At my work I have been tasked with making changes to a web app's integrations. For this app there is no test env so everything I do is immediately in production. Is this common?

    For context: I am not a developer. My boss found out I could code and started having me work on projects at work.

    Some of the integrations I wrote myself, some of them are me modifying integrations an outside team made.

    We have a redundancy to this system for now if it goes down but the redundancy is going away soon and it is possible I will be tasked with making changes after the redundancy is gone.

    TLDR: no test env for a semi critical resource, I am not a professional and am making changes in production.

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

    Programming on a chromebook

    Posted: 27 Dec 2019 12:17 PM PST

    What are my options?

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

    [CSS]What is the best way to approach the problem of block height being computed differently than width, so you can't use a percentage in child divs?

    Posted: 27 Dec 2019 01:42 PM PST

    Hello!

    I was trying to make a button to scale with my window size earlier, and I couldn't make it work. After a lot of googling, I finally found out that the problem is not me. The problem is how stuff works.

    Apparently, when you use percentages, you reference your width and height relative to the parent container. So far so good. But the height and width of parent containers that weren't explicitly written down compute differently.

    If you write x% width, the default body/window width will resolve to the actual viewport width.

    But if you write x% for height, then nothing works because it will for some reason resolve to nothing because it is nowhere explicitly referenced.

    The solutions to this problem are:

    html, body { height: 100%;} div {height: 50%;} 

    OR using the viewport and explicitly announce the parent containers dimensions:

    body{width: 100vw; height: 100vh;} div{height:50%;} 

    Now, my question for you is:

    Do I use approach 1?
    Do I use approach 2? (looks smoother to me but I dunno)
    Should I just use the "vh" where I actually need it (in the div)?
    Is it safe to use viewport relative variables (vh, vw)? (I think I read a rant somewhere that they are buggy or something)

    Thank you!

    EDIT: forgot to add my fiddle https://jsfiddle.net/uoe1r4cw/ (margin:auto doesn't work, but that's a mystery for another day)

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

    Simple ReLU classifier in C++ from Scratch

    Posted: 27 Dec 2019 12:59 PM PST

    Looking up how to make a simple classifier in C++. Have had trouble finding good sources that are easy to understand for a non-math (more code) that do not use OpenCV or dlib.

    Goal is to build a classifier then use the GPU to speed up learning.

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

    Performance metrics

    Posted: 27 Dec 2019 11:39 AM PST

    What tools do you guys recommend to calculate the performance of a webpage? I tried pagespeed. Any other tools?

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

    I'm not sure if it fits the subreddit, but I want to ask you programmers what types of exercise/training/fitness you do since we are stuck at a desk all day?

    Posted: 27 Dec 2019 11:31 AM PST

    I haven't found any exercise that I don't find boring. It would be optimal to do something while watching tv shows etc. or to do something between pomodoros.

    Any ideas?

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

    Any way I could add multiple (fully displayed) images with text only within them?

    Posted: 27 Dec 2019 07:09 AM PST

    My issue is that even with the first image in css, it won't display fully and is cropped straight after the text within the header ends. Could I make it someway that it fully displays no matter the text length?

    Here's the CSS:

    header {

    background-image: url("background.jpg");

    background-size: auto;

    background-repeat: no-repeat;

    background-position: fixed;

    }

    (I can add pic of prototype for reference if requested)

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

    Programmer Car Enthusiast Looking To Help Car Community

    Posted: 27 Dec 2019 09:58 AM PST

    Originally tried to post this on /r/cars but the karma requirement screwed me. It fits here too though.

    Hello, I'm a pretty well experienced programmer. I'm very much interested in cars and have become very involved recently and want to help in some way. I don't have a lot of experience buying or trading vehicles, which is why I have come to you.

    What service, website, or software do you believe can help the community and car enthusiasts in general? I don't care how stupid you think your idea might be, let me know.

    Perhaps there's a part of the car buying/selling experience that's cumbersome or some other intricacies that aren't often talked about, what do you think I can do to help?

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

    Getting started with Kali Linux and penetration testing

    Posted: 27 Dec 2019 08:35 AM PST

    Hi.. I want to learn about Kali Linux os, how it works and basics about it. Then head towards learning kali tools and penetration testing. I already know CPP and python and familiar with Ubuntu.. So how and from where should I start?? Any recommendations for online courses i should take ? Thank you!

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

    Question about Linkedin's realtime platform.

    Posted: 27 Dec 2019 12:59 AM PST

    So I was reading a blog post about Linkedin's realtime platform [https://engineering.linkedin.com/blog/2016/10/instant-messaging-at-linkedin--scaling-to-hundreds-of-thousands- ] [https://www.slideshare.net/agupta03/realtime-content-delivery-powering-dynamic-instant-experiences]. They have used SSE for persistent connections. But browsers enforce a limit on the number of persistent connection that could stay open at any given time (6 for chrome). In my test setup the connection hangs if there are already 6 connections open. But in case of linkedin this limit does not matter. Their eventsource api connects for all tabs. Any idea how do they do it?

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

    Div Width

    Posted: 27 Dec 2019 05:39 AM PST

    So I have Three divs on a single page, but there are spaces all around them. I specified width and height to 100% but they don't work and when I increased width to 150%, it only got enlarged on right. How do I fix it?

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

    CS50 - LUHN's Algorithm

    Posted: 27 Dec 2019 05:14 AM PST

    I am doing a course on edx.org and was able to write the code and it works with test cases - link but I get a grade of 39% only just wanted to know why and if you know how the grading system works. Thanks.

     #include<cs50.h> #include<stdio.h> #include<math.h> int main(void) { int i,l,first_2; int sum1 = 0 , sum2 = 0, total_sum = 0; long num ; int card[16],orig[16],multiple[8]; int len = 0; do { num = get_long("Number: "); }while( num <= 0 ); // length of card number int count = log10(num) + 1; // if the card length is below required length - mark as invalid if(count >= 13 && count <= 16) { // gets card number is revsrse for( i = count-1 ; i >= 0 ; i--) { orig[i] = num % 10; num /= 10; } // gets card number as user entered for( i = 0; i <= count - 1 ; i++ ) { card[i] = num % 10; num /= 10; } // gets alternate numbers - odd and stores in array for( i = 1, l= 0 ; i < count - 1; i += 2, l++) { multiple[l] = card[i]; } // sums the numbers for( i = 0 ; i < sizeof(multiple)/sizeof(multiple[0]) -1 ; i++) { multiple[i] = multiple[i] * 2 ; if(multiple[i] <= 9) { sum1 += multiple[i]; } if(multiple[i] >= 10) { sum1 += (multiple[i]/10) % 10 + multiple[i] % 10 ; } } // gets the sum of non muliple numbers for(i = 0 ; i < count ; i += 2) { sum2 += card[i]; } // total sum total_sum = sum1 + sum2 ; // check to see if modulus multiple of 10's if(total_sum % 10 == 0) { // checks 1 & 2 number of card and card length if( orig[0] == 3 && ( orig[1] == 4 || orig[1] == 7) && count == 15) { printf("AMEX \n"); } else if( orig[0] == 5 && ( orig[1] >= 1 && orig[1] <= 5) && count == 16) { printf("MASTERCARD \n"); } else if( orig[0] == 4 && ( count == 13 || count == 16) ) { printf("VISA \n"); } else { printf("INVALID \n"); } } else { printf("INVALID \n"); } } else { printf("INVALID \n"); } return 0; } 
    submitted by /u/reverse3ngineer
    [link] [comments]

    Borders around cells

    Posted: 27 Dec 2019 04:31 AM PST

    Hi, I want to add borders around cells in HTML table. How do I do it?

    Here is HTML code:

    <table class="first_table"> <tr> <th>უნარები</th> <td>Python</td> <td>Web Development</td> <td>Red Hat/CentOS</td> <td>Algorithms & Data Structures</td> </tr> <tr> <th>შეფასება</th> <td>⭐⭐⭐</td> <td>⭐/2</td> <td>⭐</td> <td>⭐⭐⭐</td> </tr> </table> 

    And hereis CSS:

    .first_table{ border-style: ridge; border-color: #472b62; } 
    submitted by /u/OmniKingBoss
    [link] [comments]

    Delete all fb messages in the chat

    Posted: 27 Dec 2019 02:52 AM PST

    Since April 2019, Facebook allows you to cancel the messages in the chat for both you and the partecipant to the chat (that will read only "the message was deleted").

    This script seems to work by deleting the message only for you, not for your "partner"
    https://gist.github.com/mdunham/aea1668dbd1c70b51ea44f99e5bca9b6

    Any chance for some help on how I'm supposed to be changing it to actually select the option "delete for everyone"

    submitted by /u/Extra-Big1990
    [link] [comments]

    FREE online certification?

    Posted: 27 Dec 2019 02:39 AM PST

    I know that a lot of people are not recommending FREE certificate or even getting paid certificate online and i respect that. But i need some free certificates from famous companies ( like google, amazon, Microsoft .. ) if there any.

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

    No comments:

    Post a Comment