• Breaking News

    Wednesday, October 10, 2018

    How do overclocking programs like MSI afterburner modify the CPU and GPU? Ask Programming

    How do overclocking programs like MSI afterburner modify the CPU and GPU? Ask Programming


    How do overclocking programs like MSI afterburner modify the CPU and GPU?

    Posted: 10 Oct 2018 05:16 PM PDT

    Hi all! I'm fairly interested in making my own overclocking software, for learning purposes, but I don't really know where to start.

    I know that NVIDIA has some command-line tools to modify GPU fan curves, but I was wondering how do companies get CPU and GPU information and modify values such as core clock, voltage, and things like that.

    The language required to make such software isn't an issue to me, but I just need to know how to read and modify these values.

    Thanks in advance!

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

    I need help with something, using python.

    Posted: 10 Oct 2018 09:57 PM PDT

    I'm quite new to coding, that's why this is so hard for me.

    So, i'm trying to make program which would save a link under a specific name like

    The link: www.google.com

    The name it saved as: google

    and so if the user typed "google" the code would open www.google.com

    but, i'm trying to make it so the user could add other shortcuts as well.

    but i'm not able to get my head around how to do that.

    I hope i'm not asking for too much!

    Thank you in advance! :)

    If you don't understand (which makes sense because i'm really bad at explaining) Please feel free to ask me.

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

    . Focus() not working for checkboxes (C#)

    Posted: 10 Oct 2018 09:48 PM PDT

    . Focus() is working great for textboxes and radio buttons but not doing ANYTHING for my checkboxes. I have been trying for 2 hours and I've gotten nowhere. Please help. I'm just trying to set focus on a checkbox if a user forgets to check an option. Should be so simple!!

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

    WooCommerce - how do you display variations alphabetically?

    Posted: 10 Oct 2018 09:45 PM PDT

    We have thousands of products that were pulled into WordPress with an automated program. The variations it created for products appears to be in a random order (ie strengths: 6mg, 0mg, 12mg, 3mg).

    Without going into each variable product and changing it manually, for thousands of products, how can I just change the display order for variations to alphabetical?

    Looking for the answer someone mentioned a hook:

    function my_custom_wc_get_variations_args( $args ) { $args['order'] = 'ASC';

    return $args; 

    } add_filter( 'woocommerce_ajax_admin_get_variations_args', 'my_custom_wc_get_variations_args' ); This code isnt working for me though... someone else mentioned the same hook also, but I cannot get these working...

    " 2 down vote accepted In woocommerce/includes/class-wc-ajax.php there is a method on the WC_AJAX class responsible for loading variations called load_variations, it contains only one hook, which is a filter, named woocommerce_ajax_admin_get_variations_args which fires early in the method."

    Please help!

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

    Need help with offline POS

    Posted: 10 Oct 2018 09:37 PM PDT

    I have a Point of Sale SPA made with angular 6 that consumes a REST API (asp.net core) on an IIS in a "server" PC on LAN.

    The problem is that the tablets showing the POS, can't access the API because all the end-points are on http, not https making it "insecure" and blocking the calls. I tried creating a self-signed certificate but I need to be "enabling" it over and over again.

    What would be the correct approach for this scenario?

    Keep in mind that I would need to replicate this environment for different restaurants so I don't know if a single SSL certificate would work.

    Any help would be endlessly appreciated.

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

    Need help with the analysis stage of my inventory system.

    Posted: 10 Oct 2018 05:16 PM PDT

    Hi!

    I'm building a small system to manage a supermarket's inventory using c++. I'm struggling with structuring my structures. Right now I have a structure named Product, which includes an ID, a name, a cost, an amount, a receive date, and an expiration date. However, I have ran into a problem and feel stuck. The problem is related to the expiration dates. I'm also trying to set this up with .txt files, so please keep that in mind. I'll try my best to explain the problem.

    Lets supposed we receive an order with milk (Product). We received 100 milks, and they all expire a month from today. A few days later, we receive an order with more milk. However, this milk doesn't expire a month from now, it expires two months from now. We received 50 of these milks. So the milk quantity is now 150. However, there are 2 types of milks, 100 milks that expire a month from now and 50 milks that expire two months from now. So not only do I have to keep track of a list of different products, but also a list within that which keeps track of all the different products with expiration dates.

    So instead of this:

    • Milk: 150
    • Beef: 45
    • Apple: 100

    We would have:

    • Milk: 150
      • Milk expiring a month from now: 100
      • Milk expiring two months from now: 50
    • Beef: 45
      • Beef expiring today: 10
      • Beef expiring tomorrow: 35
    • Apple: 100
      • Apples expiring a week from now: 20
      • Apples expiring two weeks from now: 80

    How should I go about doing this?

    Should I just make a different instance of each different apple with different IDs and amounts?

    Should I make two structures, a general product and a specific product? I could have the specific product include a product, an amount, and an expiration date. And have the general product have all the things they share such as name. I would have the general product have a field of an array of specific products.

    Similarly, should I have two structures, a general product and a specific product? I could have the specific product have a generalProductID field referencing the general product it belongs to. And then build a list of all the specific products with the same generalProductID?

    It seems like I have a few options and I'm not sure which one would work best or which one is done by convention. Perhaps none of these work...

    Please help!

    Thanks!

    -----------------------------------------------

    EDIT:

    Here is a list representation of what I meant with "Should I just make a different instance of each different apple with different IDs and amounts?":

    • Milk Expiring a Month From Now: 100
    • Milk Expiring Two Months From Now: 50
    • Beef expiring today: 10
    • Beef expiring tomorrow: 35
    • Apples expiring a week from now: 20
    • Apples expiring two weeks from now: 80

    This option seems O.K. but might not be the most efficient for reporting purposes.

    Thanks Again!

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

    Good places to volunteer?

    Posted: 10 Oct 2018 01:19 PM PDT

    I'm a beginner. I wouldn't really call myself a programmer, but I've got the basics down (html, css, vanilla js). I know some js libraries. I want to start getting some real-world experience, but I doubt that anyone would hire me, so I'm looking to volunteer as a programmer somewhere.

    Does anybody know any websites or companies that are looking for web dev volunteers, specifically around the NYC area? Remote is fine, too lol

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

    Is it correct to call Python Object-oriented if it doesn't support encapsulation, except through variable name conventions?

    Posted: 10 Oct 2018 04:56 PM PDT

    need help with for loops in c++

    Posted: 10 Oct 2018 04:38 PM PDT

    in college and have never taken a programming class and this is a question

    write a program using for loops to display the following pattern;

    *

    **

    ***

    ****

    *****

    I understand how to set up a for loop but i don't know how to add the stars and create a new line at the same time. Can't get anything i've written to run and build. Any help would be appreciated

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

    Where can we start open-ended discussions about C++?

    Posted: 10 Oct 2018 03:52 PM PDT

    The cluster of subreddits comprising /r/programming /r/AskProgramming and /r/learnprogramming are not the locations to start open-ended conceptual questions.

    I wanted to start a thread titled "The Great and Wonderful C++ Hatred Thread" where anyone with experience in C++ can tell their horror stories or list what aspects of C++ they really hate.

    I have written in C++ for over 10 years , and there are still parts of it that I find clumsy. There are also portions of the language that are widely considered "broken" (such as the need to re-compile templates as if they are executable code).

    Where would be the best place to get this discussion going?

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

    Beginner: Am I ready to attend coding bootcamp? (please hear me out)

    Posted: 10 Oct 2018 10:45 AM PDT

    Like the title says, I'm a beginner, but let me provide some more context: by beginner, I mean that I have never had a job in programming, nor have I majored in or took programming classes back in university.

    I have been studying really hard by myself for the past couple of months, and I'd say that I'm pretty confident in HTML & CSS. I'm also fairly proficient in vanilla JavaScript. I have started doing a bunch of algorithm problems as of late, and I'm not too terrible at them. I've also studied jQuery and React, the former of which I'm pretty good at and the latter of which I've got the basics down.

    I feel that I'm ready to start attending coding bootcamp, but I heard that they're unimaginably difficult to go through. I'm not looking to come out top of the class or anything. I just want to survive. I know that skills aren't the only things I need, and to that I say that I'm more than spiritually prepared to take on the challenge. However, I am not too sure if I even need to be technically ready.

    Would you guys say that it doesn't matter whether I'm "ready" or not and that I should just go for it if I really want to do it?

    Also, if you need more context to get a better idea of things, please feel free to ask any questions you want! :)

    EDIT: My mentality for going to coding bootcamp is not "This is going to get me a job!" because I know that, chances are, it's not. My mentality is this: I feel that I've pushed myself pretty far so far, and I'm looking for the next stepping-stone to becoming a better developer, and I feel that coding bootcamp may be just that.

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

    In what language should I program a Bot to buy items from a webshop?

    Posted: 10 Oct 2018 07:18 AM PDT

    I want to write a bot for buying Supreme. For the people that don't know what Supreme is: It is an overhyped clothing brand that drops clothes each thursday. Because it's so overhyped there are some clothes that sell-out in like 5 seconds. So I want to write a bot that will be able to buy it. It has to find the item in the webshop, then choose the right size and color and then checkout and autofill everything in the checkout.

    So what language is the best to program this?

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

    Does Microsoft Visual Studio have a layout editor?

    Posted: 10 Oct 2018 12:50 PM PDT

    I am looking to see if anyone knows if Microsoft Visual Studios has any layout editor extensions/feature that is similar to Android Studios layout editor. I had more experience using Android Studio, however since I needed a program for both iOS and Android, I had to use Visual Studios for my company. It would make my life a hella a lot easier if I had this feature instead of me relying on HTML/CSS codes to adjust the buttons/text within a page. Does anyone know of one?

    P.S. I only know Java/Javascript atm so if you can, limit it to programs that have those languages. I'm still learning the others.

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

    What is 'solidus'?

    Posted: 10 Oct 2018 12:40 PM PDT

    According to Unicode, ASCII 0x2f is called 'solidus'.

    Now, I have seen characters where the ASCII name is different from what people usually call it, but here, I've never met anyone that calls it 'solidus'. In fact, I don't think I've ever heard the word used once.

    A few questions: - Why does this name exist? - What is a 'solidus'? - Why is this the official name, but people colloquially call it 'forward slash' or just 'slash'?

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

    VNC client

    Posted: 10 Oct 2018 01:24 AM PDT

    Hi guys,

    A friend of mine and me are making a VNC client-server. I'm writing the client in JavaScript but I don't know what I have to do and i didn't found any manual or docs about structure of that kind of client.

    Can someone help me?

    PS. I know how VNC technology works.

    Thanks.

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

    Suggest Java online courses

    Posted: 10 Oct 2018 11:50 AM PDT

    I'm new to java please suggest some good online courses out there for beginners preferably on Udemy. And also can someone suggest good ebooks on Java. Thanks

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

    Where to begin with connecting and sending images from PC to Android app?

    Posted: 10 Oct 2018 11:31 AM PDT

    I have about a year experience programming in Android Studio and I'm trying to send images from a webcam connected to a raspberry pi to an app in Android Studio. This is completely new to me and I am not sure where to begin. I programmed the pi as a TCP over HTTP server and I have a URL that shows the live webcam feed when a computer or phone is connected as a server. I'm looking to bring those images into my own app but I don't really know where to begin. Can anyone point me in the right direction of what I actually need to do?

    submitted by /u/Satans_Little-Helper
    [link] [comments]

    I’m wanting to write my first useful program! Just need some guidance.

    Posted: 10 Oct 2018 11:26 AM PDT

    I have been learning C++ for the past 6 weeks. I decided I want to write a program to automate a mundane task. I'm not sure if I can do this with C++ or not or if the program is possible at all. Basically it would work like this:

    1. User provides pdf file.

    2. Program searches pdf for an account number.

    3. If it finds an account number, it stores the page number it was found on. The program continues to search until it cannot find any more instances of the account number.

    4. Program extracts pages where account number was found and combines them into a new pdf file.

    5. Program attaches this new pdf document to an email and sends it to the email linked with the account number with a canned response.

    I'm mainly unsure about importing the pdf into the program, if it's possible or how it's done. Also unsure about the email portion. Thanks in advance!

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

    Semi-Simple Javascript order form

    Posted: 10 Oct 2018 11:02 AM PDT

    Hello, this is my homework and I had a pretty basic Javascript class a while and I pretty much forgot everything from the class and i am a extreme beginner and i simply am stuck on this homework assignment have and have tried to look it up but i just dont comprehend java and i need some help.

    This is the assignment:

    https://gyazo.com/d6ff6597ecc4e36dfe44f1aae58cb413

    https://gyazo.com/48cd1129f60b27e4b86eec3eb44dae14

    https://gyazo.com/b19faa875b833e0fa1aeaf70daffe937

    I have most of the css and html done and I am not sure if i even want to post the code because i used some things from other projects that we have done in class that i code along with but dont quite understand and its an absolute mess of me testing things. I basically just need a starting point for the Java part of it including incorporating it into the html.

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

    advantages of pointers

    Posted: 09 Oct 2018 10:23 PM PDT

    im following this article

    https://www.tutorialspoint.com/cprogramming/c_pointers.htm

    as understand its when assigning null pointer it wouldnt eat much resources and apart of null pointers what are the other advantages of pointers sorry for my bad english am not native speaker

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

    Polyglot developers, what proportion of the languages you know do you use at work?

    Posted: 10 Oct 2018 07:54 AM PDT

    Versus those that you think are interesting, but don't get to use when you're being paid.

    submitted by /u/666lumberjack
    [link] [comments]

    Creating an Elliptic Curve Cryptographic Module for Python

    Posted: 10 Oct 2018 05:15 AM PDT

    I want to create an elliptic curve module for python as my A-level coursework. Currently in my program I am planning on implementing point addition, multiplication and subtraction for short Weierstrass, Montgomery, and Edwards Curves (defined F mod p where p is prime). I also planning on adding function to find the y coordinate for any x value, if it exists. This module should include various elliptic curve cryptographic functions like ECDH, ECDSA and EC Elgamel. I plan to add use the projective coordinate for greater efficiency.

    I want this to be a full module so I will be writing mostly PEP 8 compliant and also will create documentation to go along with this.

    I asked this question here as the module will be written for programmers first and so I though it would be useful to get feedback on what features the community wanted.

    Thanks

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

    What are some coding contests like Hacktoberfest ?

    Posted: 10 Oct 2018 04:53 AM PDT

    Hi,

    I would like to know what are some coding contests like Hacktoberfest where we can get goodies upon completion of the task. Also, it would be awesome if it's coming up this year.

    Thanks.

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

    Finding name for an application

    Posted: 10 Oct 2018 02:48 AM PDT

    Hello,

    Me and a friend are developing a small nodejs based app that could be embedded on Raspberry Pi , Synology OS or more commonly on Windows/Linux.

    It has a web GUI that allow you to set recorders that will automatically records desired streams based on Streamlink plugins so you won't miss your favorite Twitcher or Artist on streaming platforms when you're sleeping or at work.

    The first public release should arrive soon, but we are facing a small problem; we can't find a good name for it.

    I thought maybe we could get some inspiration here, with the help of Reddit.

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

    No comments:

    Post a Comment