• Breaking News

    Saturday, September 26, 2020

    How to automate my posting to Instagram Ask Programming

    How to automate my posting to Instagram Ask Programming


    How to automate my posting to Instagram

    Posted: 26 Sep 2020 07:27 PM PDT

    ok, I'm really confused...

    There seems to be a fair few posts on stack overflow about this, but are all outdated as I have tried about 15 different python bots and code sections and cant get them to work.

    It seems that the API's have changed in the past year and thus every developer who had a working bot is now left unable to.

    I'm confused at to why, as there are services like Later .com and others that allow people to post to their instagram account. So there has to be a programmable way to do this.

    I had a look at the API docs for their API but I can only seen to find 2 and none of them allow posting to your profile:

    1) Instagram Graph API

    The API can be used to get their media, manage and reply to comments on their media, identify media where they have been @mentioned by other Instagram users, find hashtagged media, and get basic metadata and metrics about other Instagram Businesses and Creators.

    This only says get their media, not publish.

    2) Instagram Basic Display API

    The API can be used to access any type of Instagram account but only provides read-access to basic data. If you are building an app that will allow Instagram Businesses or Creators to publish media, moderate comments, identify @mentioned and hashtagged media, or get data about other Instagram users, use the Instagram Graph API instead.

    This one says should I want to publish media then I should go to the Instagram Graph API, again which doesnt say I can publish.

    Let's say for the sake of this convo that the one I should use is the Instagram Graph API. The requirements for this are:

    Before you can switch your app to Live Mode you must complete the App Review process. You can begin the process in the App Review > Permissions and Features tab within the App Dashboard. All Instagram Graph API permissions except for pages_show_list require App Review approval.

    Once you complete App Review you will be asked to complete Business Verification. You must complete verification before your app will be able to use Advanced Access Levels.

    All I want to do is automate the posting of my personal instagram account so I can bulk edit photos and do all that in one day without having to create a full working live app that people can use or a business.

    Please, for the love of all that is automation, please point me in the right direction to do this..

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

    How the hell does one achieve this level of skills to program this ? How was this even done for a browser ?

    Posted: 26 Sep 2020 08:05 AM PDT

    Basic Python Help

    Posted: 26 Sep 2020 11:12 AM PDT

    I have been presented with the question:
    "Write a program that asks the user to input the number of students and the number of books to be equally divided between them. Calculate and output the number of books that each student will receive and the number left over"

    This to me seemed quite obviously a classic case of Integer division & Modulus.

    I wrote this code which i supposedly wrong for using integer division, can someone please explain why my code is wrong, maybe i'm being stupid, but I cannot figure it out.

    Kind Regards :0

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

    How do programs like Spotify communicate activity and input between different devices?

    Posted: 26 Sep 2020 04:55 PM PDT

    Arduino: Send bytes over serial communication

    Posted: 26 Sep 2020 05:42 AM PDT

    I need to communicate between an Arduino and a LED driver over serial. I got the description for the communication and I do know Arduino serial examples (https://www.arduino.cc/en/Tutorial/LibraryExamples/SoftwareSerialExample) but I have no idea how to write the byte-values to this serial output.

    One command consists of 30 bytes while there is a header (4 bytes), the data section (24 bytes) and the end section (2 bytes) and the values go from 0x00 to 0xFE each.How can I even send one of these values? Would I need to add them up into one commend? How would I do that?Could anyone please give me an advice on how to do that or maybe even an example.

    the second last byte is an CRC byte that is formed through bytes 2-28. is there normally a standard way to calculate it or is this not standardised?

    Thank you for your help!

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

    How much will programming and computer science in general change on quantum computers?

    Posted: 26 Sep 2020 10:37 AM PDT

    I am interested in taking CS in university but am not sure if it is worth it, because I don't know if quantum computers would change programming and CS a lot, as QC's are fundamentally different than classical computers. My question how much will they change it and how to learn quantum computing and programming. Also, why do quantum languages such as Q# exist if there isn't access to quantum computers yet?

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

    Does anybody else find learning python a bit tricky after knowing only static languages?

    Posted: 26 Sep 2020 06:39 AM PDT

    i8086 assembler program appears in anime. Can somebody explain what it does?

    Posted: 26 Sep 2020 06:17 PM PDT

    Hello,

    I am watching the first episode of Goku: Midnight Eye, and at one point (probably not a spoiler) a bunch of code that is stated to be for i8086 quickly scrolls past the screen. My forte is C++, so if somebody can figure out what the program does, that would satiate my curiosity!

    Not sure if the tick marks I am seeing are single quotes, or grave marks. I'm guessing they are whatever i8086 assembly uses for comments given what the lines are. I am using grave marks below.

    It's an 80's anime, and there's a lot of blur as the code scrolls past, so if something doesn't look right, I probably misread what I saw.

    Also, that is a Yen symbol at 1120.

    **LIST OF i8086 INSTRUCTION SET**

    00 mod reg r/m ADD reg/mem, reg byte add reg

    01 mod reg r/m ADD reg/mem, reg word add reg

    02 mod reg r/m ADD reg, reg/mem

    03 mod reg r/m ADD reg, reg/mem

    04 data8 ADD AL, data8

    05 data16 ADD AX, data16

    06 PUSH ES

    07 POP ES

    1000 ` ****MEMORY DISPLAY ****

    1010 ` copyright

    1020 `

    1030 CLEAR ,&H1FF0 : DEFINT I-N

    1040 WIDTH 80,25 : CONSOLE 0, 25, 0

    1050 DEF FNCVTRI%(X)=VAL("&H"+HEXS(X))

    1060 `

    1070 PRINT : PRINT "**MEMORY DISPLAY **" : PRINT

    1080 INPUT "* Segment base=&H", DS : SEG

    1090 INPUT "* Offset address=&H", DS : OFFSET

    1100 DEF SEG=&H1FF0 : GOSUB *MDSP. INIT

    1110 DL=256 : CLS

    1120 FOR I=0 TO &HF : LOCATE 9+I¥8+3*I, 2

    1130 LOCATE 1, 21

    1140 PRINT "Use a ROLL-UP or a ROLL-DOWN keys"

    1150 `

    1160 LOCATE 0, 0

    1170 PRINT "Segment base=&H" : RIGHTS

    1180 D. SEG. BASE%=FNCVTRI%(SEG. BASE)

    1190 D. OFFSET%=FNCVTRI%(OFFSET)

    1200 CALL MDSP(D. SEG. BASE%, D. OFFSET%)

    1210 AS=INKEYS : IF AS="" THEN 1210

    1220 IF AS=CHRS(&HF8) THEN GOSUB 1270

    1230 IF AS=CHRS(&HF9) THEN GOSUB 1330

    1240 IF AS<>CHRS(&H1B) THEN GOSUB 1210

    1250 LOCATE 0, 22 : PRINT "**END**" : END

    1260 ` forward

    1270 OFFSET=OFFSET+DL

    1280 IF OFFSET<65536 ! THEN RETURN 1190

    1290 OFFSET-OFFSET·65536 ! : SEG. BASE

    1300 IF SEG. BASE>=65536 ! THEN SEG. BASE=SEG

    1310 RETURN 1160

    1320 ` backward

    1330 OFFSET=OFFSET·DL

    1340 IF OFFSET>=0 THEN RETURN 1190

    1350 OFFSET=OFFSET+65536! : SEG. BASE=SEG. BASE·4096!

    1360 IF SEG. BASE<0 THEN

    1370 RETURN 1160

    (NOTE: The below code showed up on a different screen, and may not be part of the above program)

    1909 DATA 47

    2000 DATA e8, 18, 00

    2010 DATA 43

    2020 DATA 26

    2030 D. SEG. BASE%,

    If you want to check for yourself, it's in episode 1, around the 22:10 mark.

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

    Ruby on Rails: How to embed JS template that also uses Ruby ERB and JS variables?

    Posted: 26 Sep 2020 05:34 PM PDT

    New to Rails:

    I am creating a form in Rails that allows users to sign up and then add multiple bio sections (text areas) to the form dynamically.

    The form starts off with one section for adding a bio (as well as title and a photo) . But there is a button that when pressed should make a new bio section appear, allowing the user to create multiple bios for their profile.

    The front end version of this form simply uses Handlebars.js as a template for the bio section, and Javascript to add the additional bio sections (templates) when the button is pressed.

    However, I am now trying to convert this form to Rails. The form now has ruby erb that sends the info to the model/database. Therefore I need to create a template that allows me to add ERB/ruby with HTML to the template, then display the template using Javascript (onclick event listener on the button). Handlebars only seems to let me add html or js, not ruby ERB.

    I am not sure if this is possible or how to find a solution because all the keywords, such as "template," are so generic that "How to add ruby template to view using Javascript" brings up tutorials on scaffolding. Any idea on how to do this?

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

    How check if value passed to function is of a certain type. [Python]

    Posted: 26 Sep 2020 04:00 PM PDT

    Hi, I recently started using the typing module, I created a function that takes a List of integers and should return an integer which is the sum of the first and last indices of the List. I want to check if the value passed is not a List of integers and raise an error. My problem is that It will raise an error even if the passed value is a list of [int] or a list[str]. I know my if statement is wrong but I don't know how else to do it. How would I solve this.

    from typing import Tuple, Any, List import mypy def add(list_of_int: List[int]) -> int: if list_of_int != List[int]: raise TypeError('Passed value is not a list of integers') return list_of_int[0] + list_of_int[len(list_of_int) - 1] addition = add([10,20,30]) print(addition) 
    submitted by /u/ConsciousGoose2
    [link] [comments]

    Best way to write out provided data onto an image without having to worry about text sizing/spacing etc.?

    Posted: 26 Sep 2020 03:05 PM PDT

    Hi everyone, I've been meaning to generate a leaderboard for a racing league drawing from the existing format/style of the official F1 broadcast (example here) that I'd like to work on as a "fun" exercise. My 1st attempt involved trying to get to grips with pillow in python to (for any given size) generate a template onto which the text corresponding to the given drivers can then be written on but soon enough got into issues with sizing/spacing etc. and figured that there should be an easier way to do this.

    Not sure if this question makes a lot of sense but a pointer in the right direction towards how people like myself can generate graphics like this would be much appreciated. I can understand if this question might be teetering towards graphic design but I figured I'd start here (since I know of this sub).

    submitted by /u/KR-Chief
    [link] [comments]

    Low barrier entry for Software Development

    Posted: 26 Sep 2020 09:51 AM PDT

    Is it true that learning Full Stack JS is the lowest barrier to entry In web/software development

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

    I am stuck with reverse spiral matrix code

    Posted: 26 Sep 2020 01:03 PM PDT

    I need help with this reverse sprial traversal sparse matrix code. I can't start it. Any help would be greatly appreciated thanks. https://imgur.com/a/DZEePOK

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

    Need recommendation for Online Course in Python

    Posted: 26 Sep 2020 12:01 PM PDT

    I'm looking for an online programming course in python Language. I know a bit of C and C++ & want to learn python from basics to advanced. I'm from India, we have a few online classes portals but I don't know which one to select. I am willing to pay some amount for it, but the course needs to be worth it and actually teach me things. Any sources will do as long as they do a good job at teaching it.

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

    Any advice on how to add my GitHub to my CV?

    Posted: 26 Sep 2020 11:11 AM PDT

    do I add the URL, hyperlink the account to the account name or just give my name by itself?

    also where should i put it?

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

    Is true asynchronous development possible?

    Posted: 26 Sep 2020 04:40 PM PDT

    My team at LinearB just released a new free forever tool for hybrid remote dev teams. Our goal is to allow dev teams to work truly asynchronously, without constant interruptions. But to still give dev leads and product owners all the info they need.

    We correlate and analyze code, Git logs, project issues and team interactions to:

    • Create purpose-built "devboards" for stand-up, bug triage and retro
    • Send detailed updates to team leads and product managers
    • Predict when features/bugs are really going to release
    • Highlight which projects are at at risk
    • Flag branches with high-risk files

    Will you try it and let us know what you think? The self-service onboarding takes about 3 minutes and there's cool dashboards you can see right away.

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

    What is a simple problem that is yet to be solved where the solution will require you to develop a software system, hardware system, an algorithm or an ML algorithm?

    Posted: 26 Sep 2020 01:41 AM PDT

    This is for a class project and I would appreciate the help.

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

    How to determine my source IPv6 address

    Posted: 26 Sep 2020 06:23 AM PDT

    As part of a bigger project, I'm trying to generate IPv6 ICMP packets, and unlike their IPv4 counterpart the ICMP6 checksum calculation routine needs the source and destination address.

    For IPv4, the source address is determined automagically later on when using sendto() so I don't know and don't care about it.

    So, given the destination address, am I supposed to somehow guess the source address that sendto() is going to use? Or am I thinking about this all wrong? Working sample code that's also human readable seems hard to find, so a violent kick in the right direction would be greatly appreciated.

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

    Patterns or techniques for generalizing objects (JS)

    Posted: 26 Sep 2020 06:18 AM PDT

    Anybody here who didn't complete Google coding challenge but still got a call for an interview?

    Posted: 26 Sep 2020 05:17 AM PDT

    I attempted the grad challenge today and it didn't go that well. Google says the challenge is just part of their overall assessment but I'm pretty sure it's a major part. Anybody here who didn't do that well in such a challenge but still went to the next round?

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

    Credit card number fingerprinting strategy

    Posted: 25 Sep 2020 10:24 PM PDT

    Looking for suggestions on how one might implement a credit card number fingerprinting strategy, similar to Stripe or Spreedly.

    My concerns: The first 6 (BIN #) and last 4 digits of a 16 digit credit card number are typically not considered a secret. This leaves 6 private digits. There also cannot be a salt involved in a hashing algorithm, because you want the same card number to hash to the same value for the same input.

    Stripe's hashes are quite small, eg: "9eL1pkRZHTibDvdd". Would the security of a fingerprint purely rely on just hashing the number with a secret value? They also can't rotate the secret without breaking all past fingerprints.

    Thoughts?

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

    A good example of function that uses guard statements

    Posted: 26 Sep 2020 04:35 AM PDT

    Guys, I'm working for a manual for a novice programmers, and it it required to show why guards are so useful.

    There are some articles on the Internet, but examples there are not great. For example, one of them:

    // version with two guards public Foo merge (Foo a, Foo b) { if (a == null) return b; if (b == null) return a; // complicated merge code goes here. } 

    In the same article it is compared with

    // version without guards public Foo merge (Foo a, Foo b) { Foo result; if (a != null) { if (b != null) { // complicated merge code goes here. } else { result = a; } } else { result = b; } return result; } 

    Well, the first version is much better! This is what the author talked about and I agree with him.

    But the author don't show (intentionally, I suppose) that there is also the 3rd way, which is not as ugly as the second.

    // version without guards public Foo merge (Foo a, Foo b) { if (a == null) return b; else if (b == null) return a; else { // complicated merge code goes here. } } 

    Could somebody provide an example of a function which

    1. is much better with guards than without them
    2. && cannot be changed to if-else if-else? (That is, the "third" way should be impossible.)
    submitted by /u/john_smith_007
    [link] [comments]

    Proxies

    Posted: 26 Sep 2020 03:43 AM PDT

    Hi guys! I am wondering from where the proxy providers obtain these proxies especially residential ones which are bounded to real isp. Any thoughts?

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

    No comments:

    Post a Comment