#networking
1 messages ยท Page 279 of 1
this looks propietary af
Web Browser
Im honestly all HPE, have no experience with idrac
Yeah doesn't idrac have a utility?
There are NO client
just theoretically, you connecting to correct port?
some videos I see use 5900, some use 1266
I will try this
@tropic gyro https://www.dell.com/community/PowerEdge-Hardware-General/T110-II-DRAC-Access/td-p/4171621
Hi, I have a new T110 II Server that I have just installed for a client. I configured the DRAC whilst the server was booting with an ip address, subnet and gateway. It has a single NIC port - which I suspect may be significant in this post. If I now try to access the DRAC, either on the server itsel...
So it might not be 80 or 443 by default
iDRAC settings utility The iDRAC settings utility is an interface to set up and configure the iDRAC parameters by using UEFI. You can enable or disable various iDRAC parameters by using the iDRAC settings utility. NOTE: Accessing some of the
Maybe this
iDRAC utility lol
Not working
hope it yields results
76% done
The iDRAC utility is a integrated tool, I have configured IP settings here
this is not a client
does idrac have any firewall settings by any chance?
In some dell forum they say that some versions onf my server not have an iDRAC, BUT in my list of connected devices on my box's interface i have this :
(Freebox OS)
different versions have different implementation specifics
do you know what generation iDRAC this is?
Where ?
Im just asking, never worked with idrac
I think it is an iDRAC 6
Me too, this is the first time
I just know that i got an hpe g9 server some time ago and the ilo was broken ๐ฆ
so i needed to refund it
BUT it's already configured
but when I want to acces it from the browser it not work
did you configure it correctly?
I think yes because it show on my freebox's connected devices list
DHCP
idk then ยฏ_(ใ)_/ยฏ
So what can I do ?
@tropic gyro what did the nmap scan show
all is closed
you sure idrac works / is connected properly?
might wanna scan your whole /24 for 80 and 443
or just set a static IP
you sure you got the right NIC?
Might want to try r/homelab?
There are only 1 network card
What's that ?
its a subreddit with a lot of people who like to have servers at home
๐
they have a discord server too I think, which I wont post here as I dont want to get banned. But if your issue wont get resolved you might wanna try to ask there
im afraid i cant help much more, as I said. My experience with dell devices is nonexistent ๐ฆ
Just search homelab in server discovery
@tame carbon The store was closed, so here I am with my terrible connection again :/
Rn, for absolutely no reasons it works but I'm sure it'll stop working
didnt you unplug all those devices?
I did, but rn they are all plugged in
It's always been like that, most of the time it doesn't work and sometimes it does
Hey, I was told this is the chat where I can ask about a network dilemma I have?
Or should I ask it in tech-support
this channel is for real life networking as in getting to know others
OH

Well I'm kinda lost

Alrighty
Just ask your question@split anvil
I have a TP Link LAN switch and I was trying to get both my PC and PS4 have ethernet since the router is in the living room, there are 2 cables in my room, one i definetely know it's for ethernet but the other is dubbed "kid's room" on a label slapped on the cable and I tried to connect that cable into the LAN switch and in the PS4 and I already have 1 cable that spreads into 2, one end for the switch and 1 for the PC, with my "knowledge" I know that a switch works when a LAN powered cable is inserted and it gives power to other LAN cables correct? If that's true, why when I go to my connection details it on my PS4 it says NAT-type unknown and it doesn't show any IP, or gateway or whatever?
It's a long one sorry hah
I have a screenshot of the ends of the cables and they are different
one sec please
that being said, if you plug in your playstation directly into the cable, do you get the "same" NAT mode?
or well, the other way around
plug your cable directly into your ps4 ๐
i know that the left one was used for a tv box or whatever and the right one is for my PC, i thought there wasn't any difference
the cable on the right looks bad, termination wise
When i plug the right cable in the ps4 there is the ip settings and whatever
its not properly crimped, I assume?
Oh yeah that's not a normal cable
i don't know what my ISP used but
@desert briar on the right one it's only 2 pairs
the left one doesn't give any signal
@split anvil those are 2 different cables?
they used 4 pairs instead of 8
left one should give a signal
when i plug it in the PC it shows an orange light that blinks
@split anvil do you know where the other side of this cable is?
Oh
yeah
one end is in the switch
one in the pc
and they are directly connected as one cable in the router in the living room
what a nasty way to do networking lol
Yeah
we don't really have smart people here tbh
@split anvil reterminate the cable properly on both ends, and then put a proper switch in front of it
Yeah
Or well, pay someone to do it
you can learn it, but you still need to buy the equipment ๐
I was thinking if like if i buy a new cable it would work? ๐
Is the cable in the wall?
@split anvil you just cut off whatever they put on, and then put new headers on them
UGH
It's not hard if you already have equipment
I don't
But if you know someone who has
Well, is the cable in the wall?
Nope
It's an easy job
I guess the cable had some specific use some time ago
what is it used for? Hopefully not internet
I guess you can get a new one

@split anvil just reterminate the cable
and get a small switch
router <--> switch <--> pc, and other devices
Yeah well, or just get a new long cable and replace this one. Its easier said than done
What if i
"reterminate it"
Hmm let me try something
I'll use the end that goes from the router to my pc and connect it to the switch instead
and then the other split end i connect to the pc
wouldn't that technically work?
if you can use one of the 'two' links they have there
yeah, you could use a small switch
You can try, but at this point I have no idea which end is which ๐
lemme actually show you what i mean by 2
@split anvil I understand what they did
you can do networking with 100mbit/s with only 2 pairs (4 wires)
you need 4 pairs to do full gigabit
so you can cut it up, and run 2x 100M
We pay for 75 mb
@split anvil yeah thats internet
but I'm talking about the cable and the physical connection
yeah, you only need 1 connection between your router and your switch
there's only 1 thing plugged in there?
yeah, well isnt that a switch then?
@split anvil you connect both the router and the other devices to it
its just a bridge
so it bridges devices together on the same network
YO
i got it to work
so the other end in the split cable
is basically
dead
or like it doesn't do shit
both have 4?
no like
when i connect it to the ethernet port on my pc
it blinks orange
just like when i plug the other cable that has internet running through it
i can't really explain adequately
so basically
i need another lan cable
yeah
I have one of those under my desk too
although my placement looks like a fire hazard
?
lol you have no idea
how much gear is here
there's a lot of cables here
when I create a test setup
im gonna ask if we have a free lan cable laying around because the other one is lon enough to run from my room to the kitchen
they legit
wired it
so that it goes from the living room to my room and from my room to the kitchen
they should have just used a switch
through the switch
instead of cutting up the cable
@split anvil yeah its the cheap and poor option
its just..
stupid really
because with vlans you can logically seperate the network into 4095 different networks
xD
16-ish million with VxLAN ๐
QinQ
@split anvil a switch is like 20 bucks, not sure why they cheaped out
If I did this at work, I'd probably be fired
though I've seen it before xD
@clear igloo lol Poor man's vlan
Whats more important is you are removing L2 as much as possible, just as it was meant to be
Yup
@clear igloo Also spent a few hours labbing this PM-4-ERR_DISABLE: channel-misconfig (STP) error which happened last week. God, all the stars had to align for it to happen
Needed an RFO as it caused and outage for about ~1000 customers.
Yuck, that does not sound like a fun issue
Jesus that was a pain
But we managed to get the cable out of the wall
since it was legit
stapled to it
@clear igloo Yep, asymmetrical switching due to hashing and a rouge BPDU that somehow looped/leaked via customer equipment
and got everything up and running, otherwise the whole switch was sitting there unused @tame carbon @desert briar thanks for your input on my problemo ๐
@desert briar I've seen this trick with old telephone wires too xD
its usually 1 loop around the entire house
and what you do, is you basically cut off the middle, terminate both ends
and put a switch inbetween
that way you can just have a ring
it was basically 1 phone wire that went to every outlet in the house
Best 10 gig Switch?
I think everyone reccomends the 4x10G 1x1G mikrotik one
Ah
@oak night
this one
Ok but one for use in rack?
oh like a bigger one
Yes with more port
there's this one
but tbh tht's way overkill
@oak night Well, what features do you need?
What do you mean by good interface? A good management interface? GUI or CLI?
And what budget?
Well IDK
SFP+ can do copper too for 10g
Rj45
yes, there are copper and fiber SFP+ modules
With rj45?
Yes. Copper.
Ok can you send me some links?
Ok
This ones not bad at 599
They are usually cheaper than amazon but not in this case, lol
Wait so this one would be a good one?
Total of 12 ports, although 4 would need rj45 transcievers. and is a L3 switch
It means it can operate at both layer 2 and 3 of the OSI model
basically, means it can do routing too
Ok
Nope, you can use the SFP or copper ports
From the description "Combo ports can be used alongside the 8 regular 10G RJ45 Ethernet ports at all times"
and in that case no SFPs would be needed with that switch
Yes, they are SFP+ or 10G copper
There are 12 copper ports and 4 SFP+ ports, you can use the far right 4 copper or SFP+ ports but not both at the same time
๐๏ธ
Never mind, got it taken care of
Glad to hear!
finally getting around to automating a little of my administration
Speaking of which, if anyone on here hasn't updated any linux system you have in the past week or so... DO IT NOW.
Referring to the sudo vuln?
yup
I just think about all the escalation I've had to do through binaries with bad permissions, or unprotected crons, etc... and it was just sitting there the whole time .
Yeah, its pretty serious. Apparently affects MacOS too.
any and all things with sudo. going all the way back to 2011
think about all the embedded systems that will never be updated. All the servers that will never be updated. This is like eternalblue, but worse.
Embedded systems which wont be updated have different issues
Like kernel exploits ๐
That being said, embedded systems often dont have sudo
Its just not packed in their barebones install
I'm not saying all of them will have it. But I know some do.
Thats why you have utilities like busybox
Or stuff like a netgear router I keep around because its a great example device for embedded linux. Runs some linux kernel, can be accessed via default creds over ssh after sending it a debug command via http.
Hello
@oak night how many ports you need?
CRS305 is nice because its an entry level 10G switch
and RJ45 10G is very expensive
transceivers cost a lot
I have that CRS305 at home, quite happy with it
Well crystal is hosting minecraft servers on his home network ๐คช
Oh
He need good network gear
For minecraft?
Well i don't need it
@tame carbon am I right?
@thick minnow thats just the switch
minecraft minecraft minecraft
Ya and good network
Only sfps
I dont host minecraft on this
I doubt ya need 10gig to host MC, but iz a nice flex for sure
Minecraft is really low overhead
But i would love to have my own server for storage and for Apache and minecraft servers
minecraft needs like 2mbit/s per client
like, kb/s per connected host
๐
DO NOT run your own email server
Okl
K I didnt
its a dossier of headache
๐
self hosted email sucks
and dont mind possibly miss-configurating 10 things at once
I use gapps for bussiness :D

I set up my own email server, and got it all to work. But if it failed, I would not rebuild.
get to use my own domain, and still enjoy gmail's ease of use
Ok
and last thign you want
is your email ending up in spam filters
at the same time man, its a good practice. So ๐
That's true
learn from your mistakes and go for it
to complete v6 certification
Gaps to
@oak night that's the router i posted in that image
I have that paired with that CRS305
has a single 10G port
that's a pretty solid router
Basically i want to create a home network cuz when my house was built no one thought about internet
10G is a bit over the top
I know
I use it because my NAS is faster than gigabit allows
I used to work in cloud hosting company and one customer always got blocked by our gapps
But I'd like to create my server
yeah
Ya
like, short distances ( less than 3 meters) you can do with a direct-attach cable
I wish I could have fiber at home
those are like 20 bucks
Ok but only short ones
but longer distances, fiber modules cost like 10bucks each
What kind of server are you trying to run?
those SFP+ 10G modules with singlemode fibers cost like 20 bucks
and fibers are 
100 meters is like 30 bucks
5km?
I think I need 2/3km for connecting it to the ISP infrastructure out doors
23 euros
Didnt know fiber is that cheap
Anyone know what this is
@desert briar I went the slightly more expensive route, but easier with cabling
BiDi interfaces, use two wavelengths on single fiber
they cost 30~ instead of 23
but you only need simplex fibers
as you can see here ^
there's only a single fiber, instead of two for RX/TX
yeah, thats neato
its just 10G that is still affordable
i have sfp+ transceivers where i just plug in rj45
once you go to 25G and up
for 50 bucks each
it gets expensive
ouchie
I just want the fiber internet
At least i'm upgrading to 1gig internet
Instead this shitty ADSL
With FTTH
these are the transceivers I have ^
@desert briar on the product page, look at the types
@desert briar there's one model, with RX/TX flipped
10km
yeah, considerably more
cat6a is more expensive/meter than fiber
because the house electrician kinda shot himself in the foot and got a lot more, lol
its sexy
@oak night save yourself some headache and don't run 10G copper
Ok
its short distance cable and you need proper shielding or you get all kinds of interference
25 meters max I believe
You will want to run some cables anyways, might as well go cat6a. Honestly, if you spend 80k on a house dragging cables for 50$ is negligible
@oak night SFP+ network cards are cheaper than their RJ45 10G counterparts
+1 on that
that server I have in that image, just has a fiber going straight into the back
with an SFP+ module ofcourse
but you can just do that to a workstation :)
bend radius isnt terrible, as long as you dont jank on the cable
no problem running fiber to your desk
I have the network card but I can't connect it to my pc
I don't have enough space in my case for it my GPUs are too fat
That sucks
The problem with fiber is that it would have to go from my garage to my room and there are 3 floors between them
get that drill boy
30meters?
I cant
Something like that
I think that is too risky using fiber
That is why i would prefer to use copper
Well there is cat 8 for very long distances
Yeah you can't easily cut and put new connectors on fiber
I cant spend a lot
you can run fiber outside
as long as you put something around it
like a hard plastic tube
Ok but i cant pass it inside
fiber core is only like 9micrometers
It is concrete
the 2mm width of the plastic is mostly shielding
cat7 is not even a recognized standard
Oh oK
like it exists
40G xD
@oak night fiber lines are much more reliable also
like, if you have a connection
they have 0 loss.
The only thing would be the pcie card for attaching it
I know
yeah
That is hard cuz both have good PROs And both have bad Cons
I think cat8 is fiber under a mask ๐ท
I wish that will make me change all my network gear
I got one of these cards ^
Until i think that every device on my network has rj45
I have this
@lean pebble that card is more expensive than my router is
Haha
For sure man
Router costs 70$ shipping included or 250$ for enterprise equipment
I guess
This card can go from 500$ to 2.5k$ correct me if I'm wrong
@tame carbon
lol, a 10gbe sfp card?
Depends on the brand
because I know those work properly with RDMA
90 bucks, and I know there are better deals.
and virtual machine handling
I have one to that Support 2x10G
@thorny vector I bought this card like 2 years ago, hard to find alternative offerings
I'd not get that card again
root@servomat:~# ethtool -m enp10s0f0
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x20 0x00 0x00 0x00 0x20 0x00 0x01 0x00
Transceiver type : 10G Ethernet: 10G Base-LR
Transceiver type : FC: intermediate distance (I)
Transceiver type : FC: Single Mode (SM)
Encoding : 0x06 (64B/66B)
BR, Nominal : 10300MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 10km
Length (SMF) : 10000m
Length (50um) : 0m
Length (62.5um) : 0m
Length (Copper) : 0m
Length (OM3) : 0m
Laser wavelength : 1270nm
Vendor name : FS
Vendor OUI : 00:00:00
Vendor PN : SFP-10G-BX
makes me feel like a mad scientist tron-style.
Laser bias current : 41.502 mA
Laser output power : 0.7942 mW / -1.00 dBm
Receiver signal average optical power : 0.7433 mW / -1.29 dBm
Module temperature : 35.38 degrees C / 95.69 degrees F
Module voltage : 3.3096 V
I crossed 1 billion events not too long ago
This pic made me want to finish my full stack project
I regularly ingest over 10gb logs a day, with a peak of 26gb
Why
I log everything, on every system, then send everything to splunk
Windows event logs, active directory logs, syslogs from every linux host, application logs from every host
Are you a logging company?
It sure works
Hdmi to gardena xD
You can see everything in your pc
Ya
going underwater
Security?
Lol
So you basically log the log of the logs
Well, yeah
Why
you gotta be logging me
To much logs
To keep track of everything, monitor any errors, and for security
Log discord logs of isp logs and the log of steam logs
Log server, many enterprise things have options for a logging server. My eap225 has
He just logs everything not log server
Oh
cern has like a couple petabytes/day
@peak cloak Actually, for me its a logging cluster. 4 hosts that each ingest from other hosts, then replicate across each other. I log all of my network traffic, keeping the metadata forever, then keep full network captures for 14 days before roll over.
xD
Interesting
I actually need more
I'll take em, lol. I have massive JBOD's of old disks, in raid/replicated zfs
Linus have even more
doubt it
All different sizes?
Yep. I have one server dedicated to the purpose of using mismatched disks
I mean his archive is greater than petabyte
The LHC experiments produce about 90 petabytes of data per year, and an additional 25 petabytes of data are produced per year for data from other (non-LHC) experiments at CERN. Archiving the vast quantities of data is an essential function at CERN. Magnetic tapes are used as the main long-term storage medium and data from the archive is continuously migrated to newer technology, higher density tapes.
Lol
@lean pebble 90 PB/year
I just want 20tb no more
Me too
For games , tv shows , anime, movies and backups
Storage:
M.2: 2TB Kingston
2 x 250GB SSDs for OSs
1 x 1TB Sandisk Ultra SSD
2 x 1TB HDD
1 x 2TB HDD
1 x 3TB HDD
That's what I have in my pc now
OH
I want to get rid of the HDDs
I have 1 ssd 480gigs and external HDDs
I could make a list of storage
but I dont really want to list my stack of 3.5" diskettes
one with 4 tb and the other with 1
So you have more?
Only the HDDs and the 2x250gb SSDs moved each time
what do you use to combine them together?
Well now it's 1x250gb I switched the one that runs linux on it to a new one
a piece of tape
zfs isn't good for that is it?
I have 6 of 300/600sas 2.5inch in raid on old server that offline
Because it makes alot of noise
SSDs
Also for Storing photos?
or NVMe
Cause i might have a Buffalo terastation
And would like to use it
Does it make any sense?
What i sad
?
For that only the two crazy doctors here can answer you
@peak cloak Something I wouldn't reccomend any one else use
Who?
BTRFS on windows
Those terastations are actually pretty nice
I use btrfs on my 2x 4TB raid1 array
but is it on windows?
debian
why windows?
What does Btrfs mean?
@oak night its a filesystem
it's a file system
ok
more than a filesystem tbh
Because it was there. And I didn't want to do a lot of work. It's a temporary solution that became permanent
Do you know if i can use them as a webserver or for minecraft servers?
you can use anything for a webserver tbh
just install linux on it
mc on the other hand is a bit more intensive
and ur golden
Ok but does the default system allow me to create vm?
@oak night you can do virtual machines yeah, though there are more choices there
I wouldn't try to run anything like that on it. They're great for network storage, but their CPU's aren't great for serving any other kind of traffic
Webserver would be okay, MC would not.
Ok
minecraft needs a lot of memory and CPU
@thorny vector I ditched vmware
212 evo
@oak night @oak night installing a webserver on ubuntu is as simple as running the command: apt install nginx
I know that
I've used ubuntu before
I was talking about the terastation Os
Thank you for saying nginx and not httpd
nginx is just the best one
Ik
I know that
Are you sure?
But for now i use IIS on windows
configuring IIS is torture
Srry everyone
I have that cooler
I did find it easy
I've used it before to run .NET ASP apps
@oak night yeah I don't like GUIs to configure my software
I just need a config file
and preferably one that isnt xml
I'll look into it
xml, I hate it
My system and IDK why doesnt let me use it
nginx can't do php? it needs to pass it to another thing right?
I use nginx with php
My old nuctua got damaged on his way out
Fortunately i love both
You can connect it to php in other server too
I love it
Easy to configure
Phusion Passenger (informally also known as mod_rails and mod_rack among the Ruby community) is a free web server and application server with support for Ruby, Python and Node.js. It is designed to integrate into the Apache HTTP Server or the nginx web server, but also has a mode for running standalone without an external web server. Phusion Pas...
I'm not familiar with php at all
This is for Ruby on Rails ^
or ruby
Never used ruby
what's so good about it?
Especially Https
Know to handle cache better and stabler
@peak cloak Procedural, Object oriented, functional
And know to handle the requests in much better way
I want to try the enterprise version of nginx sometime
for now I just use nodejs everything but may look at other things latter
so express webserver
not running anything big so whatever
The creator of Ruby at a conference said, he wanted a language that was easy to use like python
You can connect then to each other
but be a true OO language, instead of the weird ducktyping that python does
ruby is dynamically typed
but a lot of it is implicitly
its like a mix between java and python
I need to finish my Java project I don't know how to continue it ๐
Jython?
there's lua, javascript, python and php interpreters for java
I hate php
it exists ยฏ_(ใ)_/ยฏ
and if I need to whip something simple together
๐
I'd use php
Like my project?
?
I'm stuck on generating stuff
Java
generating what
Some kind of lottery
I have to go Cya
@lean pebble you can just use Random
there's a JVM policy you can set, so the VM uses /dev/random instead of /dev/urandom
I did but I'm stuck in something else
Should I send it here or private or in development channel?
Lol
Here is the thing I'm trying to do with more accurate details.
Every two hours to conduct a lottery 10 different numbers in the range of 1-40.
Student writes randomly 6 arrays in size 7.
The values โโin the array are also in the range of 1-40.
The student performs this for each lottery.
Winning:
If you can guess from the ten numbers 4 numbers or more.
Each win entitles you to a flight to the destination you want.
There are 10 students, with names.
Everyone participates in lotteries.
Indicate how many flights each has won
And who got the most flights
And this is the code I already have.
https://pastebin.com/1kGs6ZC9
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
you should start by introducing some datatypes
lie
like
this is already spaghetti.
unreadable
I'm stuck with the names / gets the winner / get each user 6 arrays of 7 numbers
Ya ik I should choose better names that l / I /g
you're doing system IO
in the same functoin ,where you do calculations
you should create objects
to hold your data
and then give them methods
the scanner stuff
you should do in your main function
after that, you create a new instance of your Lotto class
Ya I changed it
Can I get example
Powershell is the true master language /s
package lotto;
public class Lotto {
public Lotto(int parameter) {
}
}
like, you can just create a parameter
put whatever information you have from the user input, and inside that class
you can then declare some fields
package lotto;
public class Lotto {
public int foo;
public Lotto(int parameter) {
foo = parameter;
}
}
for sake of simplicity
public fields
now, in your main class
you can do
public static void main(String[] args) {
Lotto myLotto = new Lotto(50);
System.out.println(myLotto.foo);
}
and you can then add calculations and such, either to the lotto object
or you create another object, and pass the lotto instance to it
@lean pebble methods should be concise in their naming and code
so more than 20-30 lines, you need a good reason.
lemme see some code here
where I wrote a simple program to do calculations for a runescape money making trick
yeah
main:
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Calculator: (1) Perfect Juju Prayer, (2) Perfect Juju Fishing");
System.out.print("Make your choice: ");
System.out.flush();
String choice = in.nextLine();
System.out.print("Amount of herbs: ");
System.out.flush();
int herbs = Integer.parseInt(in.nextLine());
if (choice.equals("1")) {
calcPerfectJujuPrayer(true, true, herbs);
}
if (choice.equals("2")) {
calcJujuFishing(true, true, herbs);
}
}
private static void calcPerfectJujuPrayer(boolean well, boolean cleansing, int herbs) {
GrandExchangeClient grandExchangeClient = new GrandExchangeClient();
int potionPrice = grandExchangeClient.getItemPrice(Item.PERFECT_JUJU_PRAYER_3);
int mossPrice = grandExchangeClient.getItemPrice(Item.HARMONY_MOSS);
float output = calculatePotionOutput(herbs, 2, well, cleansing);
float outputValue = potionPrice * output;
int mossUsed = calculateMossUsage(output, well, cleansing);
int mossValue = mossUsed * mossPrice;
float profit = outputValue - mossValue;
DecimalFormat df = new DecimalFormat("#.#");
df.setRoundingMode(RoundingMode.HALF_UP);
System.out.println("For " + herbs + " samaden herbs, the output would be: " + df.format(output) + " Perfect juju prayer potion (3)");
System.out.println("GE Price (each): " + potionPrice + ", with a total value of: " + df.format(outputValue / K) + "k");
System.out.println("Moss used: " + mossUsed + ", total cost of " + df.format(mossValue / K) + "k (" + mossPrice + " ea)");
System.out.println("Profit per herb: " + df.format(profit / herbs / K) + "k");
System.out.println("Profit total: " + df.format(profit / K) + "k");
}
and the client itself was just simple rest & json
less than 70 lines
package me.crystal.runescape;
public enum Item {
PERFECT_JUJU_PRAYER_3(32797),
JUJU_FISHING_4(20019),
PERFECT_JUJU_FISHING_4(35741),
HARMONY_MOSS(32947)
;
private final int id;
Item(int id) {
this.id = id;
}
public int getId() {
return id;
}
}
and all the items were just an enum
@lean pebble if you really structure your logic and your data seperately
makes for much easier time when developing
and also makes your code a lot more readable
@tame carbon this is the updated one
Ya that's it
Ik but my teacher want all in one Java file
ew
Yap
My teacher
you can declare a class inside a class
That's sounds awful
if you want a single file
I'll go sleep now it's 2:25am here
i did that yesterday and i got nightmares
wat
I stay up to like
3am every night
and sleep till like 10am
sunlight causes corona
7hrs at least. good.
@little schooner though lack of sleep
I know what that is like
once a year at festival lol, 6 days
you sleep maybe couple hours a night
and partying itself is quite exhausting
after a week, lack of sleep makes you hear a beat in basically anything,
engine of a car
xD
I think longest I've been awake was like 40 hours or something
not good for your mental health though
40 hours???? What would you do in 40 hours
Longest for me is 22
partying
probably something requiring infiltrating a network
and the first one to infiltrate/steal a piece of data would be rewarded
That sounds more like blackhat conference
Inb4 solitaire.exe
Lol
If not, maybe try and prove that the wife is cheating (hacking into her whatsapp)
That could also be fun
When a programmer plays modded minecraft
@tame carbon some kind of mmo, if they were a gamer at all
You end up with a fully computer controlled nuclear reactor
Most of the ones I know dont game
Nuclear reactors in modded minecraft are overrated, fluid cow energy 4EVA
I don't really game either. If I did, mmo
MMO? Why specifically mmo
I like strategy and base building
though, I also play Civilization quite often
If you like turn based strategy and boardgames, theres no better
One game in Civ takes like 6 hours to complete
I don't have 6 hours to game, and by that point my poor i7-8565u would be dying
Little ol 15w 4 core
Regardless, the map alone would be a lot
I don't have a system with more than 4 cores and a base clock of 3.6
I mean, I could play it in 2d but it just doesn't have the same appeal
I like my sims to be highdef 3d
Otherwise, they're not very appealing
Trust me though, as long as you dont move the camera fps is good
well obv lol
What happens if you move the camera tho
Frames drop a bit
To me, a game is only enjoyable if I can get at least a smooth 50fps
But you can reduce details
The thing is
You don't really need smooth frames for turn based stratgy
Fair point
Anything above 20 fps is playable
Regardless, Minecraft to me is more interesting
Open world is more my type of game
rather than turn based
Factorio is very lightweight
Only turn based game i rlly enjoyed was fire emblem on the 3DS
You can have a million machines without drop in performance
Minecraft is a killer for most laptops
Modded MC
Since its still a demanding game
Normal? Fast works fine
Yeah I only do modded