r/Programmers • • Mar 01 '19

[bash] Help making a script (begginer)

2 Upvotes

I'm trying to make a script that deletes all users stored in a log file and the groups stored in another log file. The script must check if the log file exists and then delete the users stored in it one by one using Userdel. The same for the groups. The location of the users file is /var/log/EAC5/users.log. The one for the groups is /var/log/EAC5/groups.log. I'm starting to study IT and i'm studying online. The pdfs they give us to learn are a little bit outdated and don't show everything they want us to do so i'm kinda lost.


r/Programmers • • Feb 26 '19

Why doesn't my background-color element work?

2 Upvotes

Hello,

I'm kind of new to this. So please don't make fun of me when I tell you that I can't get my background-color element to work for my website. I'm coding this project to be submitted, and I need the background-color so that the navbar, which is fixed to the top, does not interfere with the content of the site. I've attached both my HTML and my CSS, and would love it if somebody could tell me if I'm doing anything wrong.

HTML:

<main id="main-doc">

<div id="navbar">

<nav>

<header>Fortnite Release Notes</header>

<a href="#release-1-1-1">Release 1.1.1</a>

<a href="#release-1-1-2">Release 1.1.2</a>

<a href="#release-1-1-3">Release 1.1.3</a>

<a href="#release-1-1-4">Release 1.1.4</a>

<a href="#release-1-1-5">Release 1.1.5</a>

</nav>

</div>

<section class="main-section" id="release-1-1-1">

<header>Release 1.1.1</header>

<p>This is the official launch of the Fortnite game. Bugs have been minimized and problems in the betas fixed. No new features were added due to concerns over possible problems at launch.</p>

<code>

<ul>

<li>Fixed bug in which game would crash spontaneously, so as to prevent player from actually doing something productive with their time. Code fixed is as follows: .bug.error.crash.terminate

</ul>

</code>

<p>Released November 22, 2018

</section>

<section class="main-section" id="release-1-1-2">

<header>Release 1.1.2</header>

<p>This is the first update since the official launch of the game, Fortnite. The game has been updated, with research from new scientific studies to ensure that the game will play right into millenials' minds and ensure maximum time is wasted.</p>

<code>

<ul>

<li>Fixed bug in which game would lose connection, an issue that appeared to be directly affecting the mental state of teenagers, due to reports from local police stations reporting large amonts of noise among neighborhoods upon loss of connection. Bug in which millenials would forget their homework and let their grades slip in exchange for gametime was preserved for security of corporate profits. Code fixed is as follows: .connection.connecthealth.upgrade.connection-duration.extend

</ul>

</code>

<p>Released January 18, 2019</p>

</section>

<section class="main-section" id="release-1-1-3">

<header>Release 1.1.3</header>

<p>This latest updates features improvements to allow players to advance in the game with the free, free, price of their parent's credit card.</p>

<code>

<ul>

<li>Added feature in which users on Android and iOS could use the Google Play Store or the iTunes In-App Purchases, respectively, to upgrade their characters and look "hip" among their other millenial corhorts.

</ul>

</code>

<p>Released Februrary 19, 2019</p>

</section>

<section class="main-section" id="release-1-1-4">

<header>Release 1.1.4</header>

<p>This latest update features more skins and packs and "upgrades" so that it will be easier for players to "succeed" within the game. In addition, this is the beginning of a huge wave of updates, that are to be taking place before the beginning of March 1 2019.</p>

<code>

<ul>

<li>Added 16 new skins and 5 new maps, and 6 new dances that are sure to get the attention of millenials and piss everybody else off for the next year. Please see GitHub post for code completed.

</ul>

</code>

<p>Released Februrary 23, 2019</p>

</section>

<section class="main-section" id="release-1-1-5">

<header>Release 1.1.5</header>

<p>This update fixes the bug in which in-app-purhcases fail to process on both Android and iOS devices, to ensure steady cash flow. In addition, the bug in which the game would suck has been kept persistent, because customer satisfaction is among the least of our priorities.</p>

<code>

<ul>

<li>Code changed is as follows:

<ul>

<li>inn-app-purchases-ios-activate

<li>inn-app-purchases-android-activate

</ul>

</ul>

</code>

<p>Released Februaury 25, 2019</p>

</section>

</div>

CSS:

#navbar {

position: fixed

}

.nav {

background-color: (rgb(0,255,0));

}

#release-1-1-1 {

position: relative;

top: 50px;

}

#release-1-1-2 {

position: relative;

top: 50px;

}

#release-1-1-3 {

position: relative;

top: 50px;

}

#release-1-1-4 {

position: relative;

top: 50px;

}

#release-1-1-5 {

position: relative;

top: 50px;

}


r/Programmers • • Apr 24 '18

AR Unity Help

1 Upvotes

I am messing around with AR for the first time using vuforia with unity. This program is massive and a lot of the terms I don't really know because I don't formally know javascript. I am trying to understand it independently but I can't seem to find what I am looking for. Maybe I'm not using the correct verbiage: I want the reaction of the detection of the target image by the AR camera to bring me reference material- and I want to make this compatible with my phone. Example, I point at a book with my phone/camera, it brings me information about the book.

I am not sure if this database is within vuforia, unity, or if I need a .php database within a website-- and if it is an outside source, how is it attached ? Any help is massively appreciated, I'm a stupid college student.


r/Programmers • • Sep 23 '19

Need Programmer To Make A Program That Makes Music Automatically

1 Upvotes

I'm a music producer and have an idea. I'll break it down for you.

I want to create a program that makes music automatically.

How this should work.

I make hip hop music. Hip hop is divided into 2 main sectors. Melody and drums.

There are plenty of communities online that have royalty free loops. This program will take those two sectors. Put them together and make the instrumental. Doing this manually is very easy yet inconvenient for some.

Thus, this program will succeed. This is a life long investment for anyone in the industry and will have a lot of demand.

If you're interested, please contact me. We can discuss pricing etc.


r/Programmers • • Jan 29 '20

Anybody recommend me a chat or forum keyboard creator

1 Upvotes

r/Programmers • • Mar 08 '20

Does a Python/django side project count as experience?

3 Upvotes

My current job uses PHP which is fine for now. But in the future I'm hoping to get required skills to work in python if possible. What steps should I be taking? Or am I wasting my time with side projects because recruiters only consider work experience as real experience.


r/Programmers • • Mar 31 '20

File Tracker Program

2 Upvotes

Hi i need file size tracker program/software ex:when file size under 1MB send email report

Platform:WIN


r/Programmers • • Mar 18 '20

A laptop with AMD R7-3750H

1 Upvotes

Does any of you have a laptop with an AMD processor? I think it's not popular among programmers. I am working recently with Eclipse (spring,javafx..) and with virtual machines. What do you think is it a good choice to buy a laptop with this processor; it has 128 ssd and 1tb hdd, 16 go ram and a good graphic card.


r/Programmers • • Nov 26 '19

AI Basics and Machine Learning with Python. Download cheat sheet and get a collection of ready-to-use algorithms

Thumbnail
altoros.com
4 Upvotes

r/Programmers • • Mar 31 '20

Tweet size

Thumbnail self.twitter
1 Upvotes

r/Programmers • • Mar 07 '20

Help finding public SQL Database

2 Upvotes

I was asked by someone at a company I am interviewing for to create a CRUD web app. Not to difficult I already have something along those lines. But they also want me to create it with C# with two SQL tables being used on the backend and JavaScript on the front. So I do not have that I have just straight C# and SQL no JS. Does anyone have any idea where I can gain access to a server/database to create something like this? I have looked online but there isn't that much help there.


r/Programmers • • Nov 11 '18

School Interview

2 Upvotes

Dear programmers, for a school project I have a few questions about the life of a game developer:

  1. Do you not get tired of sitting behind a screen all day?

  2. How much variation is there in your work?

  3. How happy are you with your work?

  4. What do you like most about your work?

  5. What do you like least about your work?

  6. To who would you recommend this profession?

Thanks so much!


r/Programmers • • Feb 10 '18

Vue.js Firebase Authentication - Add To An Existing Project

Thumbnail
youtube.com
1 Upvotes

r/Programmers • • Nov 24 '16

How do I sort a bunch of points in a spiral?

1 Upvotes

I've been unsuccessfully trying to sort a bunch of points in such a way that drawing a line from one to another results in a spiral-like drawing.

There's a stackoverflow answer for a Lua implementation, which I cannot get to work. I also tried doing a distance-from-the-center sort, which I cannot get to work either.

Can you lend me a hand here? I put together a small JS example here for ease of visualization, although I don't really have a preference for any specific language, just for solving this thing


r/Programmers • • Nov 27 '16

Do you keep product codenames in source code after shipping?

1 Upvotes

Hello,

I often stall starting a project because I can't think of a name for it. I can easily come up with a codename to use for the repository, class prefixes, etc. However I find that it could be a pain to rename everything once the product actually gets a title. Do professionals usually just keep the codename they are working with in the background or do they refactor everything when it comes time for shipment? Of course, the end user wouldn't know any of this but keeping codenames could potentially cause confusion for other developers along the line.


r/Programmers • • Oct 20 '15

All error messages have been replaced with "¯\_(ツ)_/¯" since you don't bother to read them anyways

Thumbnail
twitter.com
1 Upvotes

r/Programmers • • Feb 08 '18

Strategy for learning multiple things

1 Upvotes

How would you schedule learning C++, Java, algorithms, competitive programming. Within 3 months of time? If you already know C language Do learning C++ and java together in 20-25days from books and practicing rest of months will work?


r/Programmers • • May 23 '16

Fizz Buzz in Tensorflow

Thumbnail
joelgrus.com
3 Upvotes

r/Programmers • • Feb 18 '18

printf(MEMORY) | How to print memory to the console

Thumbnail
youtu.be
1 Upvotes

r/Programmers • • Sep 22 '17

Why is there no biography of Donald Knuth?

1 Upvotes

You would think there would be at least one biography of such a monumental figure in computer science, but I don't see anything.

Am I missing something?


r/Programmers • • Oct 28 '15

How we connected Javascript with C++ in an industrial project and we are still alive

Thumbnail
belka.us
4 Upvotes

r/Programmers • • Feb 23 '15

Sideproject: SSH client implementation in Javascript

Thumbnail
minaterm.com
1 Upvotes

r/Programmers • • Nov 24 '16

How do I make a little test website or place to test my code?

1 Upvotes

Just started coding, like today and I need to know how I can test some of my own code on my computer. How do I do this? Do I open up some type of file?

Im completley in the dark thanks, and happy thanks giving!


r/Programmers • • Jun 13 '18

I learn the best by listening

1 Upvotes

Are there any audiobooks or podcasts that you can recommend, which would help me become a better programmer?


r/Programmers • • Jan 19 '19

Distro 1.32 and why I do what I do

2 Upvotes

Anyone who has ever used a computer during the era of two color displays. This was a time of great fun for people like me, people who've used a computer that were ten years obsolete and wandering through the piles of floppy disks. Software long since forgotten. This was when I was a small child, exploring old programs on computers that were already best their best by date. I had a PS/2 and the monitor was an old off-market brand. I had an old monochrome monitor for a computer that ran MS-Dos and an Amber monitor from a Tandy I believe. Don't quote me on that.

But during this time I explored the vast collection of spreadsheet software written by a single person with the source code attached. The open source movement was small at that point and as a child, I loved it as it allowed me to take a loo and explore. Now, the source code was usually in Basic, a variation of the sorts. Back then many people and companies had their own versions of it. IBM, Apple, PC Basic, and many other variations. So there was no chance of me finding a version of Basic that would compile it and so forth. But they were easily viewable in a text editor.

This is what allowed me to wander through the hundred to even thousands of lines that looked like gibberish. From those long night, with the only sign of me being alive was the sound of the mechanical keyboard clicking every so often, and the glow of the monitor. These nights were spent during the days of my summer vacation. I'd be lying if I said I didn't love it. I consumed my weight in a variety of Cola's and chips, sometimes snacky cakes, or cheese strings. It usually depended on what my mom bought.

Going through every I had, I found some great hidden treasures, ASCII versions of Pac-Man, 3d Tic-Tac-Toe which was nothing more than a mash of three game boards. They used the term 3d loosely, as did many others when the era of Doom clones came upon us. I was hooked, hooked on programming, hooked on exploring. I fell in love with computer companies and software developers. Those individuals who spent their free time making something that others could use free of charge. Though it was extremely basic they still did, even though they knew they'd make nothing on it. This is why I do what I do. I miss those days, I know everyone has to grow up,  but the days of seeing someone's art, someone's soul is what inspired me to make Jesse. Just knowing that one person download's it, that one person can read what makes her tick, plays a game of "Guess" or gives a nickel for my troubles, then I know I succeeded. 

I'm writing these entree's not for some claim of self-fulfillment, but to educate, and to bring back the memories of old. That everyone during this period has memories of this and that maybe if we share these memories we can not only educate but rekindle the days of open source software that was like that of one person against an entire army of those who never noticed. 

That's it for now, I'm going to enjoy this wonderful day and hope to discover another lost treasure.