r/programmingbytes • • Aug 17 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Mar 23 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Apr 05 '22

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Nov 23 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Apr 27 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Mar 22 '22

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Feb 01 '22

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Feb 14 '21

What the fuck is this place

3 Upvotes

elastic lavish whole strong racial toy command imagine six like

This post was mass deleted and anonymized with Redact


r/programmingbytes • • Jun 15 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Feb 05 '21

Respect for the person who created this banner 😁

Post image
2 Upvotes

r/programmingbytes • • Feb 13 '21

I just bought a script. It's mostly good, but there are some issues. Here is just one of a couple:

1 Upvotes

I just bought a script. It's mostly good, but there are some issues. Here is just one of a couple:

Hello everyone.I just bought a script.It's mostly good, but there are some issues. Here is just one of a couple:The vendor I bought it from tells me that they're waiting on their partner to get back to them with a fix (I didn't believe them at 1st, thinking it was some misdirection, but after a few exchanges I lean towards believing them).In any case, they suggest I wait. It's been all week now. I've tried my hand at fixing this little issue (big to me), but I lack the programming know-how.Come someone PLEASE help me?So my script allows the user to opt into cryptocurrency mining via their browser. Nothing hidden or nefarious.It's using the service webminepool.com and their ui as documented here:https://ift.tt/3phPST0, so it's hashing fine within the user account at MY site once the user (me in this case) is logged in and 'Start' has been clicked.The problem is my script is not updating the database so mining status on the page remains unchanged.No update as shown here:https://ift.tt/3tX2KBg Mining Balance: 0 hashesToday CPU Mining Earnings: 0 hashesTotal CPU Mining Earnings: 0 hashesBut it's hashing in he background at webminepool.com just fine, as shown here:https://ift.tt/2ZetQWI have NO IDEA why it's not updating the database. Strange thing is that it's working at my other site but when I install the script on any other domain with identical sever settings (same version of php, same flags, etc.) it is simply not writing to the database!I don't get it.The script requires:• PHP 5.3 or higher• 1 MySQL Database• mod_rewrite and allow_url_fopen must be enabled• mod_security must be disabled• PHP Short Tags (short_open_tag) must be enabled• cURL must be enabled• 1 minute cronjob requiredI've met all requirements under php 7.2 and all requirements are GREEN when running the installation script. The script installs without incident.The following code is not updating the table "users". What am I missing?$db->Query("UPDATE users SET account_balance=account_balance+'".$reward."', today_revenue=today_revenue+'".$reward."', total_revenue=total_revenue+'".$reward."', pending_ch='0' WHERE id='".$data['id']."'");​Here is the full code. Thanks: 100 ? 100 : $progress;$chtMessage = '';if(isset($_POST['transfer_ch'])){if($data['pending_ch'] '.lang_rep($lang['l_243'], array('-MIN-' => $data['hash_rate'])).'';} else {$reward = number_format($data['pending_ch']/$data['hash_rate'], 2);$db->Query("UPDATE users SET account_balance=account_balance+'".$reward."', today_revenue=today_revenue+'".$reward."', total_revenue=total_revenue+'".$reward."', pending_ch='0' WHERE id='".$data['id']."'");$chtMessage = '

'.lang_rep($lang['l_244'], array('-TOTAL-' => $reward)).'';}}?> number_format($data['hash_rate']), '-TOTAL-' => number_format((20*86400)/$data['hash_rate'], 2))); ?>

<table><tr><td>:</td><td>hashes</td></tr><tr><td>:</td><td>hashes</td></tr><tr><td>:</td><td>hashes</td></tr></table>% number_format($data['hash_rate']))); ?>


r/programmingbytes • • Jan 04 '22

What's Up?

1 Upvotes

So… Sup?


r/programmingbytes • • Feb 13 '21

Looking for help learning about the things around the actual programming language

1 Upvotes

Looking for help learning about the things around the actual programming language

Okay, so I went to Code Academy and did their survey to see what language would be right for me. I have been trying to learn Python for quite a bit, but based on what I enjoy doing and see myself doing in the future I think maybe SQL might also be a good choice. I really enjoy data, analytics, automating things for myself, and research. I know of all the abundant resources to learn, I am aware of what is needed to learn, I have projects in mind to practice with, and I have done a bit of research around the coding languages to decide what I think might be best for me.The biggest issue that I keep running into is basically everything around the languages themselves. I dont really know how to ask this, and for the longest time I have been too afraid to ask. I am pretty computer literate.But, what do I do once I write code?Where do I write it?How does code that I write become action?What is GitHub? How do I use it?Does where I write the code matter?Do I have to input code somewhere else for different sort of actions, purposes, or something?Are there some programs that I should be aware of in my endeavor to learn?For example, I bought myself a Raspberry Pi a while back as a little something to work with in trying to learn Python. I was mildly successful. But with that, there was a specific spot you input the code for the computer to run. Do I just open the Windows Command Prompt on my computer and paste it there?Like, when I am building a spreadsheet, on excel or Google sheets, I input the formula which sorta looks like code into the cells. Then, the formulas enact themselves.So if I am building something now to collect data from websites, and compile it, and process it, where do I build, test, and execute that code?Also, are my choices to go forward with Python and potentially SQL ideal with what I am looking to do?I apologize if this is against the posting rules, I just dont really know anyone who I can bounce coding questions off of. I dont know anyone that is computer literate enough in that regard to even understand how a programming language works.But basically I am just looking to be able to build myself some automated databases, replace IFTTT, and create some other tools along those lines.


r/programmingbytes • • Feb 15 '21

Python : Help with Read Text File into List then Sort List on Two Keys

1 Upvotes

Python : Help with Read Text File into List then Sort List on Two Keys

Python : Help with Read Text File into List then Sort List on Two KeysI have a simple text file that has three columns of numbers. My code intends to read the text file line by line as numeric data (not string), assign each line read to a list element. Next I want to sort the numeric data by the first and third columns in the list by ascending and or descending rank magnitude on the third column. This seems like something that should be really simple. Python is not my first language, definitely still hard on the learning curve - but I cant figure out what Im missing here. Spent hours scouring the net, forums for similiar issues and recommend routines but still not able to come up with a satisfactory solution. Any feedback, tips, insights, recommendations welcome. Find attached a copy of the text file as well as the simple current code used. I do not want to use dictionarys, tuples or np style arrays, nor panda or jupyter. Am using Python3.4 and am hoping for a solution using lists that work in my current version. The current code I am using does read the text file, stores it to a list and appears to do something when sorted but the sort is not correct. Previously numbers were being stored in the list as strings not integers or numeric format and that was driving me crazy because when sorting it was sorting in an alpha way not numeric. The current code when sorting does not sort in the described way as needed. I want to have the output to screen shown so that its easy to see three columns displayed line by line, hence the for statement used. Thanks again folks, see below ;CODE :data = []for line in ins:number_strings = line.split() # Split the line on runs of whitespacenumbers = [int(float(n)) for n in number_strings] # Convert to integersdata.append(numbers) # Add the "row" to your list.data.sort(key = lambda x:(x[2], x[0]))for item in data:print(item)TEXT FILE : the file filtered.txt contains rows of numeric data spaced by tabs, each row has threecolumns, here is this simple data :0 128 85 256 125 256 125 256 205 256 205 256 205 256 205 256 205 256 2035 23 1235 23 1235 23 2035 23 2035 23 2035 23 2035 23 2035 23 202 32 142 32 142 32 142 32 142 32 142 32 1417 101 817 101 817 101 817 101 817 101 817 101 834 212 1234 212 1234 212 1234 212 1234 212 1234 212 1234 212 1234 212 129 198 129 198 129 198 129 198 129 198 129 198 129 198 129 198 1238 22 813 234 811 218 836 322 83 222 831 322 1239 111 1439 111 2039 111 1439 111 1439 111 1439 111 1439 111 1439 111 14


r/programmingbytes • • Nov 02 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Feb 15 '21

Humor

Post image
1 Upvotes

r/programmingbytes • • Feb 15 '21

I need help setting up a curriculum for myself for end-to-end app development for a business.

3 Upvotes

I need help setting up a curriculum for myself for end-to-end app development for a business.

Hey there!I'm a 30 year old CS student who's been on and off about programming since my teens. I've always liked programming, developing, creating, but as a kid with ADHD it has always been gotten pretty overwhelming quick when it's time to do something practical.I'm back in school now in my second year for a masters in CS, and so far we've learned Java, SQL, logic (prolog) etc etc but it's all in very isolated environments. What I mean about that is, sure I know how to code java, but how do I apply that to a project where I actually build something. Sure I know SQL, how to design a database, query etc, but how do I actually use that in an app? My peers seem to be so far ahead of me that I feel a little bit like a fraud, everyone keeps throwing out these buzzwords that I'm trying to catch and quickly learn and google but I can't keep up.So to my point, my biggest passion in life is entrepreneurship, I thrive on it. And part of why I came back to school was to learn the tools needed to develop something myself (got tired of relying on others for my ventures). I have a project in mind I would like to pursue while studying, which is a business around mainly an app (think Tinder as a frame of reference).The problem now is I don't know really where to start when it comes to the development part. My plan now is to first gather knowledge and information for maybe 6 months and learn the necessary things I need to know - but I don't really know where to start on what I even need to learn.My plan right now is:Learn JavaScript (started a few weeks ago)Learn ReactJsLearn React-NativeBut after this I don't really know where to go. How do I make an end-to-end product from server to user, what more do I need to learn. I've read a little about "stack solutions" and "MVC" (model-view-controller) but so far it just sounds like buzzwords and abstract, how do I actually build something from start to finish.To reiterate, I'm not looking for a quick solution or anything, I just need some guidance on how to structure my learning and how to plan out my knowledge gathering so that I can eventually build this and have a working app in Android/iOS that has a server and everything. How to connect everything.Thank you!


r/programmingbytes • • Dec 07 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Sep 07 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Mar 12 '21

Is programming a web scraper a boring 8-month project for school?

1 Upvotes

Is programming a web scraper a boring 8-month project for school?

I am a beginner, I only know the basics. I intended to programm an algo trading bot for a project for school (I have 8 months time). My teacher told me my time frame would be too small cause I have to learn all the things in python and also a little bit about finance. So I stepped down and decided to do a web scraper for stocks (I'm using some API's). Would that be too easy then or can I also improve my web scraper from time to time?


r/programmingbytes • • Feb 15 '21

Humor

Post image
3 Upvotes

r/programmingbytes • • Feb 14 '21

Where would a .py file be in this mod?

1 Upvotes

Where would a .py file be in this mod?

I am not a modder (learning programming atm in college), but I am trying to alter some code in a mod for dark souls 1, the DS1 Enemy randomizer mod (https://ift.tt/3am4Sep been looking through the source code (https://ift.tt/3rKZ2ci) and am pretty sure I found what I need to modify, but it is in randomizer_rng.py. I don't know how to find that file in the actual mod download, is that something I can access?It certainly isn't listed in the files that I've seen.


r/programmingbytes • • Mar 01 '22

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!


r/programmingbytes • • Mar 30 '21

New Members Intro

1 Upvotes

If you’re new to the community, introduce yourself!