#development

1 messages · Page 35 of 1

lapis pebble
#

total failure = no developer/manager trust it for "hot path"/critical services

nocturne galleon
#

One time, I asked a friend to help me work on a new website so that I can attend to other things. He agreed, and off I went to deal with household chores. Once I came back, I am met with a towering pyramid of colourful blankets and towels.

Me: What the heck is this?
Friend: your website.
Me: What the ** does a pile of blankets have to do with my website?
Friend: You had said in your instructions that I need to make a CSS file. I googled what it was; cascading style sheet, and that is exactly what I made.
Me: You idiot! That is neither my website nor is it even computer-related.
Friend: Well... It is a pile of sheets, they are all styleish, and the are all cascading like a pyramid. All things considered, this isn't really incorrect.
Me: ...

wise cobalt
proper saddle
nocturne galleon
tropic sapphire
#

@lapis pebble yeah, we are currently setting up code pipe lines to build test and push to fargate, but I'm not currently working on that.

I am working on the rebuild of our front end and back end, I'm building a http service that interacts with the back to make the front end guys job easier.

#

We have all are services in ECS with a ELB doing the routing.

lapis pebble
#

@tropic sapphire We had that too. And still keep it for some core services.

tropic sapphire
#

We are moving most of our stuff to lambda and going almost serverless.

Front ends being served from s3.

lapis pebble
#

Your front ends are SPAs?

#

I haven’t worked in a web app that is not an SPA for at least 4 years

tropic sapphire
#

Yeah angular 6 for the new stuff, the old front end is angularJS.

I'm basically the only person who still works on it will also working on the new stuff.

We are a small team for 10, though growing in the next few months

lapis pebble
#

@tropic sapphire Good size 😃

tropic sapphire
#

@lapis pebble very good. Been there 9 months now and just got a pay increase

lapis pebble
#

@tropic sapphire congrats!

tropic sapphire
#

Yeah all good. The beauti of working at a start up lol.

#

Yeah it's 6 am and I'm just getting ready to leave :(

lapis pebble
#

@tropic sapphire It is a beautiful thing, make sure you squeeze that opportunity. New companies can teach you a lot (and challenge you a lot). Your work (and not only technical work) can make a difference in a new and small company.

tropic sapphire
#

@lapis pebble I didn't know node at all when I started here. now i know node, express, docker, serverless and angular 5.

lapis pebble
#

@tropic sapphire My kudos to the hiring team for focusing not on skills that you can learn in a few weeks, but on what you can do and learn.

tropic sapphire
#

yeah I am super happy about it too lol

lapis pebble
#

There are very few companies that hire in that way.

lapis pebble
#

Things usually go like this:

  • founders choose a language without being experts: they research about what is good and choose one option.
  • They gain expertise, the product gets better, they need help.
  • They forget how they got to that point and recruit for the specific language/tools.
  • Rinse and repeat when they introduce a new language tool.
lapis pebble
#

@tropic sapphire I'd apply to where you work but Glasgow weather is not my type

tropic sapphire
#

I got wet on the way to work 😦

jade nova
#

Have I set up my redirect to the index.html page correctly in Ruby?

@session.puts "HTTP/2.0 301 Moved Permanently"
@session.puts "Location: http://192.168.0.67:2000/index.html"
@session.close
#

Firefox and Chrome keep reporting that the redirect isn't configured properly

weary knoll
#

Hard to say without a bigger view @jade nova
A working example I threw together with Node and Fastify with no errors reported had the response body being the following:

HTTP/2 301
location: http://www.google.co.uk
vestal glen
#

my guess would be that it redirects to itself?

#

as in index.html returning a location header pointing at itself.

weary knoll
#

Yeah, it could be a redirect loop if all routes are having that appended to it

vestal glen
#

or I think another possibility is that you're trying to do a protocol downgrade (serving the redirect to a http:// URL from https://)

weary knoll
#

From what I've just tested Chrome didn't throw any issue when redirecting https -> http

lapis pebble
#

@jade nova Are you using rails?

jade nova
#

Nope

#

Just plain Ruby

#

@weary knoll Here's the complete script

require 'socket'
require 'thread'

class RequestHandler
    def initialize(session)
        @session = session
    end

    def process
        while @session.gets.chop.length != 0
        end
        @session.puts "HTTP/2.0 301 Moved Permanently"
        @session.puts "Location: http://192.168.0.67:2000/index.html"
        @session.close
    end
end

server = TCPServer.new("192.168.0.67", "2000")
while (session = server.accept)
    Thread.new(session) do |newSession|
        RequestHandler.new(newSession).process
    end
end
weary knoll
#

HTTP/2 in any modern browser requires it to be served over a secure connection (https) so your code likely won't work.

jade nova
#

ah

#

I'll try 1.1

#

I'm still learning how to integrate SSL certificates into Ruby

lapis pebble
#

wow, raw serving http

jade nova
#

It still reckons that it's not configured correctly

weary knoll
#

It is pretty gnarly handling raw http so something like rails would be a good idea but if you're creating a basic redirector, it may be a bunch of bloat which isn't needed.

lapis pebble
#

I remember that HTTP needed two new lines in the end of the header

#

at least for the request... but I'm very rusty

weary knoll
#

From what I'm reading .puts adds the trailing newline which is needed.

jade nova
#

I'm planning on using this web server for production so I'm soon gonna get an SSL certificate configured

vestal glen
#

it seems like this may be a redirect loop from the full script

lapis pebble
#
const net = require('net');

const handler = (socket) => {
  console.log(`Connection: ${socket.remoteAddress}:${socket.remotePort}`);
  socket.write('HTTP/1.1 302\nLocation: http://www.google.com\n\n');
}

net.createServer(handler).listen(1234, () => console.log('LISTENING'));
#

This works, with the TWO new lines

#

if you put only one, the browser stays on waiting

vestal glen
#

(the server in the script only sends the redirect and redirects to itself, leading to an infinite redirect)

weary knoll
#

Yeah, it is a redirect loop

lapis pebble
#

Yep, that too. But it won't redirect if there is no extra new line

vestal glen
#

if the error says the redirect isn't configured properly that extra new line is sent.

#

else it'd be a network timeout

jade nova
#

I’m gonna get Ruby on Rails and change the script up because it appears like it can be easily intercepted or attacked

weary knoll
#

What's the end goal of the script @jade nova?

lapis pebble
#

@jade nova I would use rails because not for that reason but because you're implementing an HTTP server from zero

#

Unless you want to learn (cool thing BTW), it is usually not needed

jade nova
#

@weary knoll All I intend for it to do is listen for any requests and redirect them securely to the index HTML page

weary knoll
#

Also served by the same application or on a different webserver?

vestal glen
#

it also has to serve index.html >_>

jade nova
#

Same application

weary knoll
#

imo I would just use a NGINX server with a basic configuration

lapis pebble
#

nginx can do that

jade nova
#

Port forwarding is a head ache

lapis pebble
#

hmmmm is not port forwarding, but HTTP redirects

weary knoll
#

Uhh, you also would need to for your ruby solution

#

since you're listening on port 2000

lapis pebble
#

And yes, they are a pain in the ass

#

@jade nova How are you serving that rails app?

#

@vestal glen BTW, you're right, I didn't read his description of the browser error about the redirect being wrong

nova bronze
#

Hello?

vestal glen
#

hi.

lapis pebble
#

@nova bronze Alo

tropic sapphire
#

@lapis pebble 2 things. One you could have used nodes built in http

const http =require('http')

And 2 not using express :/

lapis pebble
#

@tropic sapphire I wrote that as an specific example of raw HTTP. Later we discussed about never doing that an using a framework.

#

Specifically I was testing the "two new lines" at the end to tell the browser that headers were finished. So even without closing the connection, the browser redirects.

#

Well never.... you can always do it to learn 😃

tropic sapphire
#

Oh my bad :)

lapis pebble
#

No worries 😃

lapis pebble
#

@tropic sapphire have you tried Koa?

tropic sapphire
#

No what is it?

lapis pebble
#

@tropic sapphire express 5 with a lot of breaking changes

tropic sapphire
#

Oh I'll have a look at that.

tropic sapphire
lapis pebble
#

One thing I like and dislike from koa is that batteries are NOT included, so sometimes you search for something express or any other framework has, and other times you are happy that doesn't include the kitchen sink

tropic sapphire
#

We have quite a few middle wares now that are all wrote in express, I did use the server js I posted but ended up having to change it to express.

lapis pebble
#

In the end you needed the versatility of a modular framework

lapis pebble
#

Also a modular framework with modules. I'm working with vert.x these days and I miss spring boot. It has modules for everything.

tropic sapphire
#

Yeah, on Monday I doing a massive data migration, well creating the script that will do the migration.

#

On theplus side I got my bosses old laptop so I now have 4c/4t over 2/4

lapis pebble
#

They don't give good hardware to devs?

#

2/4 is my wife's laptop (and now my home laptop too as my previous one broke)

tropic sapphire
#

They are i7 laptops, 8gb of ram.

I got upgraded to 16 gb as I hit 8 gb often with all the docker stuff I do.

The laptops are fine biggest problem is monitors are rubbish.

tropic grail
#

Any tips on preventing a file from being accessed via the web?

#

I have a file that is required internally, but not externally. I'd like to prevent this file from being web accessible. .htaccess is the only plausible way, right?

chilly flicker
#

you could place the file off path and then use code to push the file to the web browser on request

tropic grail
#

Decided to use the .htaccess method as that's the cleanest way without messing things up. The next thing I'd like to do is hide the cursor cleanly with js (not jquery) when the mouse isn't moving.

chilly flicker
#

Jquery is Javascript

tropic grail
#

Right, but I don't want to include the jquery.js library at all. One little cosmetic thing like this isn't worth it.

lapis pebble
#

About the file the safest thing is to leave it outside the public accessible path. .htaccess or any webserver filter is an error waiting to happen.

#

About the cursor, the css to hide it is cursor: none, but the js you need is to detect not movement but, no-movement

#

The first thing that comes to my mind is to respond to mouse movement events by setting a variable with the timestamp of when that movement happened (and making the cursor visible), then have a settimeout running all the time every, let's say 200ms' to check if there was movement in the last x time, if not, hide the cursor

#

Thinking more about it, perhaps with just a shared flag this can be done.

#

on move: show cursor & set the flag to true
on timeout: if flag is false, hide cursor. Set flag to false and wait again.

tropic grail
#

Yeah, that's what I'm thinking, but I'm much too tired to write that tonight, so it'll probably wait until next week or something.

lapis pebble
#

there you go

#

You can see the code clicking on the "edit in JSBIN" button in the top right corner

tropic grail
#

Not bad. Looks good.

#

Even cleaner than the jsquery version.

lapis pebble
#

Now, time to take a morning shower at this side of the pond

tropic grail
#

I'm surprised people don't use this method to hide the mouse instead. Literally cleaner, shorter, and more efficient than the jquery method. That baffles me...

#

Either way, thanks for your help. The code works exactly as intended and outsmarts hundreds of posts across stackexchange and code-snippet sites.

lapis pebble
#

Use and abuse of jquery I guess

cloud knot
#

commands are expected to be string, but you gave it a map (tabulation)

nocturne galleon
tropic sapphire
#

@nocturne galleon here in the UK your not taught to use git. I had to learn that myself when I left.

They still use visual basic as the programming material.

lapis pebble
#

In the university?

mental hemlock
#

prob. wrong study then, @tropic sapphire

#

As I did my master degree in software engineering in the UK, and we were taught how to use DevOps (3 steps more in-debt to continuous deployment over GIT)

tropic sapphire
#

@mental hemlock that was software development and then computer science degree.

I am speaking of scotland so maybe we are just behind. literally all of the teaching material is in VB.

#

My CS degree web servives unit all the exmplae code was in VB though we could use any langaue we liked.

#

typing is super bad -.-

weary knoll
#

Ouch, CS degree I'm doing in England has had C++, PHP and Java 😦

tropic sapphire
#

php ew....

did that too on my HND, also did flash.....

weary knoll
#

I managed to convince my lecturer to let me use Node instead since that's what I'm familiar with :>

lone monolith
#

Lol

tropic sapphire
#

Es6 I hope.

#

Running in docker :P

lapis pebble
#

@weary knoll get out your comfort zone 😛

weary knoll
#

I've used PHP before and ended up going around the class helping those with issues 😛

lapis pebble
#

@mental hemlock I’m sorry to be annoying. DevOps is a culture, not a tool you use or a role. But I’m old fashioned so ignore me 😋

devout lava
#

needs to stop using PHP, is too lazy to

mental hemlock
#

In devops (development and operations) it’s sorta critical to use git 🤔

#

But yes it’s no tool

lapis pebble
#

You use version control. Git is not the only tool for that.

mental hemlock
#

Yeh I know

#

But when you go deeper (CI) you’ll find the best tools most likely use git

#

There’s exception to the rule tho

#

Exceptions*

#

I also had svn but boy did I hate that 😱

#

Matter of flavor that is

lapis pebble
#

I’d say many tools force you to use git. So many people think git is the rule.

civic mountain
#

There isn't a downside to using git rn so no reason not to use it - being the most popular

tropic sapphire
#

@weary knoll that happened to me in college, later on I just stopped helping because at the end of day. They are competition for jobs :P

Did still help my friends out though.

weary knoll
#

I guess that's the problem when you're friends with half your class :p

lapis pebble
#

@civic mountain I found darcs much better at working with email instead of ssh/http. Sending an e-mail patch with git is a bit of a pain in the ass.

#

Also, due to being another pain in the ass? not being the default?, not many people does "interactive" commits with git, where you choose which lines to commit from each file. In Darcs it is the default, it is very easy, and it encourages semantic commits instead of "whatever I touched in that file till now"

#

I'd say there is at least one reason not to use git, and it is getting out your comfort zone and try different technologies. You never know what you will discover 😃

granite fog
#

How well does darcs scale? both in terms of repository size and number of contributors to a project. How well does it handle binary files? (e.g. does it have a solution like git-lfs). Darcs lack of true branches also means for a large repo you need to have multiple copies of the codebase downloaded to get 'branches'. The whole 'patch sets' are 'branches' notion means that trying to swap between work in progress is a multistep process when you're touching the same files where as git is a quick branch change. From this I don't feel darcs is suitable for any large collaborative project. gits branching system means that the pull-request model is very powerful for collaboration

jade nova
#

How can I add a registry key called DisableTaskMgr under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System and set it’s value to 1 in Java? I’m using this for a locked down browsing environment application

#

For more specific information I’m using the version 8 JDK with update 181

little knoll
granite fog
#

Yeah, don't use reflection unless you really have to. If there is a library then use it

lapis pebble
#

@granite fog https://trunkbaseddevelopment.com/ and stop worrying about branches. If your argument is that branches are needed for large scale development... then the unique repository without branches that google uses for all their source code is the huge exception 😛

tropic sapphire
#

@weary knoll yeah that would a problem lol

proper gale
#

@tropic sapphire use Brainfuck.

tropic sapphire
#

@proper gale tbh the people in my class didn't know any programming languages so anything works lol

lapis pebble
#

@tropic sapphire did the people in your class learn any programming in the end?

tropic sapphire
#

Not really they kinda just copied just other, enough to pass.

lapis pebble
#

No teacher trolled them? Or they didn't care?

tropic sapphire
#

They didn't care, all they cared about with pass rates of their class.

In our php class we were given examples where you set a cookie for logins.... not even php sessions.

lapis pebble
#

JWT cookies or just a cookie saying: You're a good boy.

tropic sapphire
#

Just a cookie.

lapis pebble
#

Great teachers, great university/school/coffee shop

lapis pebble
jade nova
#

Is it possible to program Python to pull DEB packages off of an FTP server and install them automatically in the background?

lapis pebble
#

@jade nova why not? I guess even with a shell script with some curl you can do that

#

But perhaps it is better if you share with us your goal. May be coding it from scratch is not the only option

jade nova
#

It's a Software Management application which manages application and operating system updates, it's going to be used in an enterprise environment @lapis pebble

lapis pebble
#

Yeah, it sounds like that. Have you tried things like ansible, saltstack, chef? The two first are extensible with python.

jade nova
#

Hmm, I'll search up what they are, I haven't heard of them before

#

Interesting

lapis pebble
#

There are many tools to automate provisioning, deployment and maintenance. In my current job we use ansible and chef (we have a flame war there about these two tools), years ago I was using saltstack (even with windows hosts)

lapis pebble
#

To provision more basic infrastructure you can try "terraform"

opaque terrace
#

Hello everyone 😃 So, I need help searching for a proper developer laptop that is not a thin and light and is an actual developer workstation grade with 16GB of RAM, a proper powerful CPU and preferably does not include a 1060 graphics card because at that price range they always shove one down your throat. 14-15" , it can be somewhat thick 😃

#

and it has to be anything but a macbook pro - me and MacOS cannot get friendly after 2.5 months 😃

#

looking for windows based machine

#

price limit is 1560 GBP or 1800 eur 😃

little knoll
lapis pebble
opaque terrace
#

@little knoll out of price range - they list prices without VAT

#

so it's over my 1560 with VAT limit

lapis pebble
opaque terrace
#

link it 😃

lapis pebble
#

the dell site has many filters to play with and find the laptop you need

opaque terrace
#

basically what I was looking for 😃

opaque terrace
#

whoa

#

Lenovo to the resque

#

Now that's what I call a dev machine 😃

lapis pebble
#

The dell looks cheaper :?

opaque terrace
#

dell does not include VAT tax

#

on the site

#

so add 20%

#

Also, I'd like to direct your attention at the battery capacity 😃

lapis pebble
#

As soon as you start to compile and run stuff, you're gonna run for the charger

minor bluff
#

and wish for an i7

lapis pebble
#

amen

opaque terrace
#

I'm not compiling

#

Webdev

#

Charger is a given

#

But mobile i7 vs mobile i5- I don't really see too big of a diff :)

#

If you want compile - you want full fat desktop cpu's anyway

tropic sapphire
#

@lapis pebble basic? Terrforma is amazing we use it to depley multiple services, oauth and set up our whole infrastructure.

Terraform is a big boy toy :P

#

At work I have a ThinkPad t520 i7, 16gb of ram, quadro gpu and two 256 ssds, one is my own personal one.

#

4 cores 8 threads. It's actually the most powerful power in the office other than our cto who has a surface.

lapis pebble
#

@tropic sapphire BFG rated toy. We use it with AWS infrastructure, but in a previous job we made it work with ESXi without vcenter

tropic sapphire
#

@lapis pebble we use it at work with was too. I don't use it personally bit our dev ops guy does.

I'm more of a docker/back end/ database guy and that's what I end up doing most of the time.

#

I'm literally going to be working over the week end to get all my work done for Monday.

lapis pebble
#

So you can slack the rest of the week?

#

I was the syseng guy in my previous job so I was able to get my hands dirty with terraform.

#

That also helps to have a good relation with the syseng team where I work right now (as a dev)

tropic sapphire
#

Nope :/ new front end and back end needs to be done.

That's due end of this month.

After that I can relax lol

lapis pebble
#

Working on weekends is not good man/woman/<insert here>

#

work is never ends, software is never finished...

tropic sapphire
#

@lapis pebble I agree but the board has a deadline for the change to mongo DB and thats monday. there is no choice but to have it done for then

lapis pebble
#

That reminds me of my first job. How many deadlines we had to work our ass off just to deliver something because someone said so. I remember my first "business" email answering a manager that he got the schedule and I needed more time. He came to the dev pit to find me...

#

And it happened in other teams too at that place. I remember a Saturday dropping by the office to pick up some stuff, I found the entire BI team (around 25 ppl) there, doing nothing, waiting for some instructions about some job that had to be done before Monday (but they didn't know the details yet). What a waste.

tropic sapphire
#

normally it isn't like this but we have had set backs that make us need to push out lots of stuff

lapis pebble
#

You might not be in the position to be able to change anything and even if you rise an issue, your boss might dismiss it. But it is something to think and read about. Anyway, my best wishes for a colleague working during the weekend 😃

tropic sapphire
#

@lapis pebble thanks :) it's gonna be fine. The team is pulling together as it should. After this it'll relax a lot.

ionic hull
#

Will a load balancer help with layer 7 attacks?

#

Like 2 - 3 servers?

#

With constant 4k users on?

jade nova
#

How could I manually overwrite a decrypted string with ??? and wipe it from memory in Java? I’ve tried com.sun.Unsafe but I’m anxious to use that method

lapis pebble
#

@ionic hull probably not much, throttling will do more if the service is public

#

I understood as a layer 7 attack as a DDoS that exploits or over uses a feature.

ionic hull
#

They were attacking images

#

Then they were attacking the main page

lapis pebble
#

static image files?

ionic hull
#

Yes

lapis pebble
#

Put a CDN in front and they will take care of it

ionic hull
#

I thought of storing them in another server

#

But that doesn't resolve the issue with the main page

#

I thought that load balancer will help a little

lapis pebble
#

the issue with the main page?

ionic hull
#

There is no issue, just a shit ton of traffic from the ddos attack

#

And cpu jumps to 100%

#

And I can't have cloudflare ddos protection always on

lapis pebble
#

so the line is not overloaded.... you can add servers till you overload the line...

#

line = internet connection

#

Throttling per ip, ip banning, automatic ip banning

#

"hit me X times in Y secs and you're out"

ionic hull
#

I'm doing that

#

But there are too many ips

lapis pebble
#

are you doing it manually?

ionic hull
#

No

#

Using fail2ban

#

And if fail2ban doesn't ban them

#

I wrote a script that takes the IP and bans it on cloudflare

lapis pebble
#

what happens with cloudfare, why they don't stop the DDoS?

ionic hull
#

they stop

#

but It is anoying the 5 seconds before

charred sleet
#

I'm currently working on a new game in c# and i heared that it would be best if i had done it in c++ because of the features for game creators. can someone say, if there's any difference between c# and c++ in the point of creating games?

tropic sapphire
#

@ionic hull 5 seconds is nothing to pay for the increase security you get.

It's like 2step auth, added time and and annoying but the beifites outweigh this.

#

@charred sleet that highly depends on what type of game it is..

charred sleet
#

something like good game empire. mostly 2d

lapis pebble
#

@charred sleet from scratch with no engine?

charred sleet
#

at the moment i'm not using any engine only c# with windows forms (visual studio)

#

I planned using tiled to create the map and/or maybe XNa tile editor/ graphics egine thing.

lapis pebble
#

It seems to me that you're learning, any language will do 😃

#

On the current market side of things, companies like nvidia and EA use C++, so if you plan to apply there, using C++ can help you more.

swift hearth
#

how much time it might take me to learn C# if I don't know anything and from which (free) site should I learn it form

lapis pebble
#

@swift hearth You don't know programming at all?

swift hearth
#

I learnt a bit of python but now I also forgot that

#

and I also learnt HTML and CSS

#

I learnt these about a year ago and now I hardly even remember anything

mental hemlock
#

Get a course from udemy

#

study object orientated coding

#

Switch to dotnet when you're confident with traditional C# applications (and SQL)

#

And from there make the projects you desired to love 😃

lapis pebble
#

udemy has those courses from the start with C#

#

but it depends a lot what kind of learner are you

#

@swift hearth how do you learn?

mental hemlock
#

C# is a very reachable language, you can start off by doing it yourself

#

However I highly advice you focus on OOC as soon as possible

#

If you don't know OOC from the beginning, your applications won't be as modular.

#

also without ooc your code is likely to be spaghetti code == very bad.

lapis pebble
#

OOP you mean?

mental hemlock
#

OOP == OOC (I just remember it via my native language's naming) 😛

#

Also a big plus is to focus on Version Control. It saved my ass a couple dozen of times.

lapis pebble
#

knowing OOP doesn't ensure you won't write spaghetti code. In fact people that learn the theory first and fall in love to it tend to write super complex stuff for the sake of it

#

Then they learn the practical side while cleaning up the mess

mental hemlock
#

It's not a guarantee: but it's likely to save you a ton of work

#

I've went back to applications I made before I turned to OOP, and rewrote them using UML and OOP. The code shrunk by 78% in lines on average.

lapis pebble
#

I'd love to see that. I haven't seen UML in ages.

mental hemlock
#

UML is pretty neat, and I love to work with it. There's more variants on it so it's whatever flavor suits your boat

lapis pebble
#

What can I say, if it works for you... good 😃

tropic sapphire
#

@lapis pebble I agree with the OOP stuff in some cases, but in others its super usfuly to have a class you can extend from.

I tend to wrote in a function style in nodeJS

lapis pebble
#

Usually you do not extend much, composition over inheritance is a useful principle/pattern in OOP.

#

In JS you compose the s*** out of everything. The more functions, the more composition

leaden nimbus
#

Looking for a php developer who isn’t really expensive if you are one hit me up

timber root
#

Almost at a stage where my new Discord library for GoLang is usable. Is anyone interested in that btw?

#

idk if I can link that without getting banned 🤔

nocturne galleon
#

@swift hearth for a free site I recommend SoloLearn, that’s how I learnt c#

tropic sapphire
#

@lapis pebble I try to write only pure functions but you know sometimes stuff just needs to be working :P

Oh btw we managed to get most of it done but the deadline got pushed back so less of s rush this week.

lapis pebble
#

@timber root yeah, of course link it here 😃 I don't do Discord stuff, but you never know who is reading here.

lapis pebble
#

@tropic sapphire congrats for the hard work and pushing through the weekend. I guess there is a personal lesson to be learned about "deadlines" :P
On the JS side of things. The language is not very functional, so you can get so far without making a mess.

tropic sapphire
#

@lapis pebble work gets finished when it's finished :P

Its not, that's why I said functional style.

lapis pebble
#

I had to improve a JS project were the devs added every library that made JS more like haskell... And it was a mess. Even haskell code is easier to understand than that thing. Thanks to luck we killed it after discontinuing that feature.

tropic sapphire
#

@lapis pebble I like rambda pack and es6 single line function. Makes it clear what's going on.

lapis pebble
#

currying almost everything was one of the issues.

nocturne galleon
#

Hey people, what programming language should i start with/ how do i get started with programming/coding

slow frost
#

@nocturne galleon
go with python, since the syntax is very easy and english-like, available at python.org
and look up tutorials on youtube

nocturne galleon
#

Thanks!

regal nest
#

I’d recommend python as well

#

It’s just a really pleasant language to use

tropic sapphire
#

@lapis pebble I like currying let's you build bigger functions from little ones and then just drop you data in after.

#

Another vote for python here, I miss python since moving to node for work :(

keen hawk
#

@tropic sapphire that's sad 🙁

lapis pebble
#

@nocturne galleon ruby or python are easy ones and very powerful.

#

@tropic sapphire JS needs and extra library, and many times you just need a closure. JS has nice closures.

nocturne galleon
#

Thank you 🙏🏻

proper gale
#

@nocturne galleon what do you want to do?

#

python is great, python is simple, python lets you do things.
C is great, C is not simple, C wont let you do things, C is powerful, C is everywhere, C is hard to move to from python... (applies to C++, Java, C#, Kotlin, Objective-C, etc as well)

#

@tropic sapphire @slow frost @regal nest keep that (see above message) in mind when suggesting a language to start with.

#

@lapis pebble you too. ^

lapis pebble
#

She wants to get started with programming. But you got a point there that we don’t know more details to give a better answer.
To get started with programming I used to teach python in a local hackerspace, plus mentoring django girls events. From experience (n=1) people get the concepts easily.

tropic sapphire
#

Welcome to JavaScript

nocturne galleon
#

@proper gale im going to start with swift once i get a macbook
Then i want to learn how to create games like fortnite with unreal engine and how to hack / datamine them

lapis pebble
#

Wow! That is far away from getting started. You will need some patience if you really need to get started.

ebon light
#

Hi any dev here with experience?

#

sorry I meant .NET dev

#

So I'm a junior dev with rougly a year's experience
and in an interview I was asked, do I rely on the ORM for query execution efficiency?
I wasn't sure about querying DB with ORM (not too sure on the whole thing whether ado.net does it or an orm) so in the end I thought the interviewer was asking linq vs sql

lapis pebble
#

@nocturne galleon the thing is that apple is making swift very very accesible. But I haven’t checked it. So you might find useful info to get a handle of programming.

#

@ebon light So did you ask for clarifications or you just assumed and continued?

ebon light
#

up to that point I gave an answer that overrided the whole ORM querying
and said if I really wanted the utmost query efficiency you could take a look at
the SQL converted LINQ query and see if any optimisations could be applied

#

Though for the entire year this thought never really came to mind, the enterprise project we used only had LINQ

lapis pebble
#

Is the utmost query efficiency always needed? Was it implied in the question? You might be digging yourself into a hole

ebon light
#

The whole question was quite bizarre

#

I interpreted it as "if you wanted a LINQ query to be more optimised would you leave it at that or look at the SQL query converted from LINQ"

#

the nobrainer answer would be ofc to look at the SQL query, what else you're gonna look at

#

unless they wanted more stuff like normalisation but that's entirely off-scope

lapis pebble
#

I guess that they were asking an ORM (any ORM) is a trusty tool or the right place for query efficiency

#

They never asked what you prefer, or what you usually do.

ebon light
#

ah you might be right there

#

I had attached EF and ORM together making it interchangable

lapis pebble
#

EF is an ORM, nothing bad there

ebon light
#

so might've been "would you trust any ORM to be an efficient query executer"
...but does the ORM query

lapis pebble
#

In a general way, I guess you got it right. How was the face of the interviewer?

ebon light
#

well yeah i did pass that interview

#

fortunately, and later today I'm meeting up with a different head dev and software archi

lapis pebble
#

Congrats 😃

ebon light
#

though after i gave the answer to the interviewer's question, it was a mild approval i guess with the response 'yeah'

#

🤷

lapis pebble
#

Perhaps adding LINQ there mixed things up. Who knows.

ebon light
#

best I approach the interviewer when I get the job

lapis pebble
#

Good luck with the next interview. And good idea to get some feedback. Although you're too sure you will get the job 😛

ebon light
#

well i won't be able to approach the interviewer if i get declined, right?

lapis pebble
#

Of course you will be able to ask for feedback, another issue is if the company/hr/interviewers will respond to your request

ebon light
#

just that if I approached the interviewer before the employment decision it might have an effect on the decision itself

#

as for the question it was like being asked if I could open a jar with a pickle
or at least the current state of my knowledge

#

anyways thanks for the chat graffic, much appreciated

lapis pebble
#

Yes, wait till the decision is done. But do approach for feedback, it is good for you

#

My jaw dropped after some interviews I didn't pass after getting the feedback. It is not only about learning from mistakes, it can be about if it deserves your time to apply again there after one or two years.

#

I'm still really bad at choosing companies to apply to.

ebon light
#

Quite right us devs will always be learning

nocturne galleon
#

what is the programming language used for fortnite? @ me when ansering

plush pollen
#

@nocturne galleon C++

#

It's made in Unreal Engine 4 which uses C++

nocturne galleon
#

is programming a good route to take in life?

lapis pebble
#

@nocturne galleon It is true that you need to start with one language, but do not worry too much about it. Languages come and go and the important, as @ebon light said, is to be always learning.

#

@nocturne galleon #define good 😛

nocturne galleon
#

@lapis pebble idk a viable path in life where i will not be homeless

upbeat folio
#

@nocturne galleon If you get good at reading code, finding errors, and writing good code, and are always willing to learn, then yes.

nocturne galleon
#

alrighty, thank you

proper gale
#

@nocturne galleon and dont forget the most important part, not absolutely hating it. that matters a lot.

lapis pebble
#

@nocturne galleon it is doable then, even if you hate your job, there are so many companies willing to hire anyone that you will be able to rent a place and eat in the worst case scenario.

north hare
#

Hey what's up. Anyone wants to help me with jquery/js?

nocturne galleon
#

best way to learn swift and C++ ?

plush pollen
#

a real life course.

timber violet
#

Self dedication... a book... and the internet

proper gale
#

@nocturne galleon cant speak for swift, but i highly recommend against C++ as a first language.

timber violet
#

My school teaches vb as a first language

summer eagle
#

how good is this chat for asking programming help?

lapis pebble
#

@summer eagle how can we measure that?

nocturne galleon
#

@nocturne galleon how do i use playgrounds when i have 0 programming experience

rotund bramble
#

Learn Java or C# as a first language

red rain
#

python

#

you want to learn python first

#

its super easy but will get you used too programming concepts

rotund bramble
#

My brother made a good point

#

You should learn Java or C# first to understand type and the complexities of languages.

#

Then when you move to JS or Python, it is easier to understand.

#

Once you learn one language, the rest are a piece of cake.

timber violet
#

it's a great resource for learning java

nocturne galleon
#

Thanks

#

Internet

proper gale
#

@rotund bramble let me tell you, that is wrong.

#

from personal experiance.

#

while its an easier jump from Java vs Python, C++ is still a clusterfuck.

rotund bramble
#

What do you mean? It makes perfect sense.

#

I learned JavaScript first, and it wasn't until Iearned about Java and C# that I truly understood programming and was able to make my JavaScript programming better.

proper gale
#

@rotund bramble Once you learn one language, the rest are a piece of cake.

lapis pebble
#

I stand by what I said in the beginning: Python or Ruby 😛

#

@rotund bramble you become a better programmer when you learn to take ideas from one language and apply them to another one. Also you become even a better one when you know when to that and when NOT to do that.

#

Writting JS as it was Java looks a bit strange IMHO.

rotund bramble
#

@proper gale That means that when you can fully understand the core conecpts of one language, the rest are a piece of cake.

In my case, I was learning JavaScript, but didn't really understand it. Learning Java and C# pointed out many things that I wouldn't have been able to learn with JS. It was at that point that when I understood how Java and C# worked that it was much easier to work in JavaScript, hence, once you learn one, the rest are a piece of cake.

proper gale
#

no

#

i personally well understood Java.

#

C++ was a dick to learn

timber violet
#

the underlying concepts are similar

#

c++ is a bit harder than java

proper gale
#

@timber violet C++ is a lot harder.

timber violet
#

i agree with that statement

#

do most people agree that it better to start with higher level languages? at my school the professors always talk about how it would be better if we started with something like assembly.

proper gale
#

i think it depends on what end things you want to do

#

if you want to go into C++, then i would say start with C.

#

if you want to do Java or C#, start with those.

#

Web programming, start with Java (odd, yes, i have my reason).

#

if you are super interested in AI, python is a fine choice.

#

if you have no idea, start with C.

#

ofc, way down the road it wont really matter that much.

timber violet
#

i see a lot of people get discouraged by c and cpp

proper gale
#

C is fine, C++ is the dick.

#

mostly because of this bullshit ```cpp
typename vector<_Tp, _Alloc>::iterator
vector<_Tp, _Alloc>::
_M_erase(iterator __position)
{
if (__position + 1 != end())
_GLIBCXX_MOVE3(__position + 1, end(), __position);
--this->_M_impl._M_finish;
_Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish);
return __position;
}

nova bronze
#

Hello, I would get quite a few advantages in using Linux Ubuntu instead of Windows, including the fact it is free. However one thing is stopping me from using Linux as my primary OS - Unity stability. Apparently Unity is way too unstable on Linux for proper use but I want to clarify is it actually so unstable and I would be better off with Windows (or maybe MacOS if I manage to install it) or can I get away with using Unity on Linux?

tropic grail
#

@nova bronze ubuntuUbuntu abandoned unityUnity in 17.10.

nova bronze
#

oh

#

did they?

tropic grail
#

They now use gnomeGnome in all new versions.

nova bronze
#

Ohh, sorry, I meant Unity 3D

#

(The software)

jade nova
#

How could I create an electron app in Python with the PyQt GUI framework?

nocturne galleon
#

@jade nova electron only work with node.js, not with python

lapis pebble
#

@proper gale Down the road, only for recruiters and perhaps for some specific jobs.

worldly plank
#

ubnuntu

sharp cipher
#

is it easier to learn coding languages when you already know javascript?

lapis pebble
#

@dapper laurel spot on

nova bronze
#

Hello, my ISP allows to host a website at home however not with commercial nature. If I make a website for an app I am making or something do you think that would be allowed?

spiral ore
#

My guess it whould deppend on the amount of traffic it would generate.

nova bronze
#

hmm

tropic sapphire
#

@nova bronze you probbaly dont want traffic filling up your home network, you can rent a VPS for about £5 a month.

north blaze
#

You could run it behind a proxy like Cloudflare, just get their free plan.

tropic grail
#

Don't host from home.

#

OVH has very nice VPS offering starting at $3 USD/month.

spiral ore
#

HAd a look at OVH's plans, and they look really good bang for the buck. the offer for 3.35 shoyld be enough for a start up, and it looks dead simple to scale later

#

*should

#

I need to learn how to spell :S

unique minnow
#

Scaleway also have a lot of cheap options for servers, I think the cheapest is around 2,5EUR pr month. Run by OVHs competition Online.net.

tropic sapphire
#

@spiral ore If i were doing it personally I would just make it serverless. front end is S3 and it does API calls to lambdas. would be super cheap

lapis pebble
#

@unique minnow I got a server on Scaleway, the cheap ones are ARM, In some edge cases you might end up compiling a lot.

unique minnow
#

They also have x86 😃

lapis pebble
#

I like doing something different (I've eaten my words many times though)

#

The amazing world of arm64v8

unique minnow
#

I would not choose ARM without there being a reason for using it. Like developing for ARM 😂

lapis pebble
#

They use ThunderX processors by Cavium, and I have a friend working at Cavium. At least I can blame him.

unique minnow
#

I mean Scaleway started with being ARM-only, and introduced x86 slowly, so they are quite different.

#

Yeah but the ARM architecture is just not practical. I would much rather have a RISCV based VM. Maybe in the future some time 😛

lapis pebble
#

ARM not being practical? How is that?

unique minnow
#

Well I guess it depends on the usecase, but like you said yourself you end up compiling a lot 😂

lapis pebble
#

In some edge cases 😛 I'm all in for edge cases... like installing a docker swarm on arm servers...

#

and then requiring myself the latest version of erlang/elixir

unique minnow
#

Yeah, I have been using some Rasperry Pis for automation of printers (printing via MQ queues and APIs when you press a button on a website). Had to compile a lot of drivers, and holy shit that was not made for ARM, or even worse not made for Linux..

tropic sapphire
#

google has cloud print, nice use for MQ queues though 😛

ionic hull
#

Is it possible to ddos or flood any serverless service? Using AWS lambda and API for example

mild patrol
#

I know it's a weird reques but anyone that develops minecraft mods? 😅

#

Tag me or dm me if interested

split condor
#

@mild patrol What's up?

mild patrol
#

I need someone to update a simple mod from 1.11 to 1.12

split condor
#

Could you link me to a page/repository for the mod?

mild patrol
#

Sure let's talk in dms though

split condor
#

Alright, you should be able to send me a message. Same request as above (:

ionic hull
#

@split condor thanks

tropic sapphire
#

@ionic hull Yes. Aws set a limit of the total number of containers that can be ran. You can get this increased but the part that really hits hard is when you can hit the database hard.

Lambda will scale up and will handle all the requests databases not so much. Though you can use things like dynamo db, which just < 10 ms data retrieval.

ionic hull
#

@tropic sapphire ye I was thinking not using lambda and dynamo. Currently my app is php but not that hard to make it node.js. and dynamoDb is the perfect DB for this

tropic sapphire
#

@ionic hull even mongo is good enough for lambda it is what we currently use at my work. We plan on maybe moving to dynamo at some point

nocturne galleon
#

Yeah, I do CSS

height: calc(calc(80vw / 5) - calc(calc(2vh * 4) + calc(calc(2vh * 2) * 5))) * 0.66);

I don't have a clue why i wrote that line of CSS so I got rid of it because it doesn't work...

opaque terrace
#

@fervent orbit can I bitch about keyboard navigation? Some smart guy decided that keyboard navigation focuus should have a CSS rule that removes outline on the keyboiard focus when navigating by it. Now, when I don't have a mouse, I cannot watch any floatplane video because I have no idea what is focused. Besides me not being a disabled person, the actual WCAG compatibility is utter shit and someone has to be spanked publicly on a floatplane exclusive video for that.

#

not that i'm mad, but that is one thing I actually put a lot of focus and make my fellow web devs take into considiration and make sure we are actually complying with WCAG rules

#

I got to open floatplane videos by just mashing the TAB key and seeing when links change and hitting CTRL + Enter on a video link by context

#

because i'm a dev and I know how the link should look like

limpid reef
#

Although I don't have Floatplane access since I'm not a subscriber, I 100% appreciate your attention to detail on web development in this matter @opaque terrace . So many sites I visit have little design quirks that make me want to headdesk so hard it cracks my desk in two. A lot of the time these are simple CSS tweaks too, so it really makes me wonder if QA testing actually thought things through.... or if there was QA testing done at all.

opaque terrace
#

y'r welcome

#

and thanks to my forgetfull head since I forgot my wireless mouse at home 😄

#

and have no mouse to replace it, so i'm a keyboard warrior to the bone right now 😄

cloud knot
#

@nocturne galleon if that calc line would work, i would congratulate the browser engine able to understand that thing and make sense of it 😄

nocturne galleon
#

Oh I've done much worse in the past that are on live versions of my sites

cloud knot
#

i mean, why do you have viewport WIDTH and HEIGHT in same line ? 😄

#

how did vw get in there ?

#

also vh is a risky thing to use

#

cause Safari

#

which then got transplanted to other browsers too

#

as that is aparently the correct functionality

#

that 100vh doesn't take the address bar into account

nocturne galleon
#

I scale the elements based on vh to fit on most landscape displays regardless of aspect ratio because i thought it was a good idea 😐 , I still need to make a mobile css and get rid of all the vh and vw i use. The vw was an attempt to add a maximum amount of <td>s that could display per row, but because i found that css lacked a floor function, i gave up on that idea

#

i'm not a web developer

#

This is another thing i did that is even worse:

left: calc(calc(100% - calc(20% + calc(calc(2.3vh * 2) + calc(1.85vh * 2)))) /2 );
right: calc(calc(100% - calc(20% + calc(calc(2.3vh * 2) + calc(1.85vh * 2)))) / 2);
#

and that's on one of my sites that's online...

ionic hull
#

@opaque terrace write a simple extension to fix it. Or just a tampermonkey script

tropic sapphire
#

@ionic hull People shouldn't have to write or use a script to make your website usable.

opaque terrace
#

@ionic hull does not fix the core issue though, especially for others 😃

jade nova
#

Is flushing a specific section of the CPU cache very low-level and would require a language like C or Assembly?

deep scarab
ionic hull
#

@tropic sapphire , @opaque terrace sometimes you have to do things yourself. Because no one will fix it soon.. I know that it is a problem but if you want to use the website you'll need to write some scripts or wait for fix

lapis pebble
#

In the WAN show they said something about live streaming and chat, as new FP features.

nocturne galleon
#

Hey

#

Uh

#

So I recently began learning C++

#

Do ya'll mind checking my code every once in a while?

#

Not forced or anything just wondering if ya'll mind me posting some really really bad code and getting some constructive criticism.

plush pollen
#

@nocturne galleon Sure.

wise cobalt
#

Nice SSD

jade nova
#

In Java, can I listen if a private variable's setAccessible property is changed to true and if so throw a new SecurityException?

proper gale
#

@jade nova yes

#

just use Java 9

jade nova
#

I’m waiting for Java 11 to be released since it’s the next LTS version @proper gale

tropic grail
#

@opaque terrace what you tagging my bot for.

#

Complain about keyboards in the appropriate channel, but as this is the #development you shouldn't do it here.

nocturne galleon
#

I am developing a meme do any of you guys want to support it

coral bison
#

no

nocturne galleon
#

Is it possible to create OpenGL Games using python? Or Java?

vestal glen
#

Minecraft java edition is java and uses openGL, so sure.

ionic hull
#

Why not just Google: python opengl

#

That shit triggers me

#

Is Google blocked in your country?

mystic steeple
#

Quick python sanity check if someone can make sure I'm thinking about this right. Let's say I have the following:
while True:
if blah:
while True:
if blah-1:
exit(0)
else:
else:

Once the outer if statement is hit it will drop into that and stay in there because of the second "while True" statement until if hits the second if statement and then exit?

What I want to do is have a loop running and checking output and printing that output and once it finds what's in the outer statement, drop into another if statement that will look for the end of that output (denoted by an end of frame text line) and then stop printing, close the file, and exit. I've got most of it but I can't get it to stay in the inner if statement so before I spin my wheels I wanted to ask 😃

arctic sequoia
#

Thats a really clunky way to do it if i'm understanding what you are trying to do correctly.

#

Python is horrible anyway, I don't know much about it, so can't help you.

proper gale
#

@vestal glen Minecraft*, Minecraft Java Edition is bullshit

vestal glen
#

@proper gale yes, but I enjoy using it as a silly addition when referring to it being written in java.

proper gale
#

also, only the win10/xbox versions use D3D afaik

#

@nocturne galleon, JOGL, LWJGL, PyOpenGL, directly using JNI or the Python C API (or wrappers boost::python).
JMonkeyEnging is a 3d engine built on LWJGL, and libgdx is good for 2d (can do 3d as well). Not familer with python engines.

#

now that if you can is answered, there is still if you should

#

which you should not.

#

if you start out using the old immediate mode interface, there is a shitload of overhead with the JNI, and even more with the python language itself.

#

newer OpenGL is ok-ish in this regard, but is still not great as data still needs to be translated, and other legwork done.

#

new GL from C/C++ is the best option, not to say you couldn't code in a hybrid of C/C++ and Java to get some of the benefits of both.

tropic grail
limpid reef
proper gale
#

@arctic sequoia while i am included to agree with you that python is bad, it does what it is designed to do really well.

#

one of its requirements, was not speed.

#

@mystic steeple condition variables.

ionic hull
#

A guy is offering 100€ to bypass his waf, anyone interested?

carmine timber
tropic grail
#

^

thin cobalt
#

Haha lol

#

First clue that the company has no clue about programming

cloud knot
#

Objective X, Interface builder etc are Jobs payback to humanity, there is no other explanation

#

no reasonable person could come up with such shitty programmer experience

ornate yoke
#

hi, have a database on phpmyadmin with a wordpress setup and i need to move only the database to another server, witch i have done but need to turn of the original mysql server and need to change the info in wp-config.php file,

#

is it only database name, usename, password and host name ?

ionic hull
#

Yes

#

If you are using a shared hosting, search for a server host on the "database" tab or something in cpanel

ornate yoke
#

but where can i fine my new hostname ? in phpmyadmin, i think thats what i missing

#

or in the ubuntu server ?

ionic hull
#

I just told you how...

#

What kind of server do you have?

#

What host do you use?

unique minnow
#

You could also just enter the IP of the new database server as a hostname. (yes, hostname != ip, but hey, why do I need to explain this..)

ember torrent
#

@ornate yoke

ornate yoke
#

yes

ionic hull
#

@unique minnow if he has shared hosting, it's not that easy

#

Because they usually have all the databases in one server

#

Not the same as the website

unique minnow
#

But I mean, why would it not be that easy? Enter the IP of the shared SQL server and boom it works?

#

I am not saying "Enter any IP, works everytime!"

#

I am saying; "Enter the IP of the database-server, will probably work just fine"

#

As long as there is no fancy load balancing based on DNS or something crazy it should really work just fine.

ornate yoke
#

i have no i idea, i used i ip and all the info needed to connected and also open mysql port on the firewall

unique minnow
#

You are hosting this on your own servers yes?

ornate yoke
#

yes

#

both

unique minnow
#

Because by default MySQL (or MariaDB for that sake) is configured to not accept connections from other sources than 127.0.0.1

#

So you need to enable remote connections, preferably by allowing the IP of your webserver only.

#

How to do this depends on what server version you are running and on what OS, but in short you need to change the bind-address (or just comment out that line in the config), restart the mysql/mariadb service and add the IP of the web-server to the user that you are using to authenticate with. Only then will the connection work (oh, and you still need the right IPs and all that stuff..)

#

Oh and another thing, if the firewall you spoke of is a firewal out onto the internet (and not internally on the server) you really should not allow connections on port 3306 from the internet in general. Please limit it to the IP of the webserver and make sure you stay safe.

ionic hull
#

@ornate yoke you're fucked, ask for help....

#

Like

#

Someone who has access to the servers

unique minnow
#

😛 🙈

ornate yoke
#

its a task for a jobb i might get, am not working in IT or have servers. the servers are virtual but i did the setup. thats why am asking so i can do the task and maybe get a job

unique minnow
#

It is probably not a great idea to base a job of getting help on Discord 😆

ionic hull
#

@ornate yoke if you can't do the job, you shouldn't take it

#

Just sayin

ornate yoke
#

they are looking for someone young, we are not to expenise and they can train us up in what they need us to do. when i was on the interview they sad that they as looking orignal for people with 10years experience. or 2 years if its very relevant experience 😅

ionic hull
#

Oh well, wtf is happening

hollow field
#

Hey, i just started learning python. Which things should i look out for?

hollow crescent
#

http://volstarter.utk.edu/robotics
If any of you are interested or have parents who would be interested, my Robotics team is fundraising in order to be able to buy the necessary parts and electronics to compete this year. We have a VolStarter, which is like a Kickstarter but for our Univeristy. Anything helps :)

tropic sapphire
#

@hollow field look out for? That depends on what you're planning to do with python.

upbeat folio
#

Anyone know anything about setters in Sequelize? Would just write the query myself, but boss-man wants me to use the ORM (even if I hate it).

brittle bay
jade nova
#

How am I meant to send email in Java 11 when the EE modules were removed?

#

I’ve tried adding the JavaMail API and Java Activation Framework JARs to the module path but it still won’t resolve the import

nocturne galleon
#

damn .. this is gonna be hard on some companies i recon

split condor
#

@upbeat folio Yeah, what's your question?

upbeat folio
#

A bit complicated, but the gist is that I've set my models up right and declared the associations right as far as I can tell, but when I try to call the setter, the code is failing by saying it doesn't exist.

split condor
#

Alright. Are you able to show us the models and what you're trying to do? Any stack trace will help out too.

upbeat folio
#

no go on the stack trace - TypeScript, but I can approximate the models. Need a minute.

split condor
#

Ok. Just to let you know you can get readable stack traces with TS by using source maps.

upbeat folio
#

did not know that. Easy to find on Google?

split condor
#

Yeah, typescript stack traces should get you what you need (:

upbeat folio
#
// asset
const asset = {};
asset.define('asset', {
    /* Many fields */
}, { paramoid: true });

// team
const team = {};
team.define('team', {
    /* Many fields */
}, { paramoid: true });

// requirement
const requirement = {};
requirement.define('requirement', {
    percent: {
        type: DECIMAL(5, 2),
        allowNull: false,
        defaultValue: '0.00',
        validate: { min: 0, max: 100 },
    },
    // Pretty sure this and teamId are unnecessary
    assetId: {
        type: INTEGER,
        allowNull: false,
        primaryKey: true,
    },
    teamId: {
        type: INTEGER,
        allowNull: false,
        primaryKey: true,
    },
    method: {
        type: ENUM,
        values: ['some','methods','here'],
        allowNull: false,
        defaultValue: 'methods',
    },
}, { paramoid: true });

// Set associations
asset.belongsToMany(team, { as: 'requirements', through: requirement });
team.hasMany(requirement, { as: 'requirements' });

// Where we have requirements as an array of valid requirements with assetId and teamId...
const anAsset = await asset.findById(assetId);
anAsset.setRequirements(requirements);
#

the asset.setRequirements() call doesn't work

#

and what's particularly annoying about it is that there are other models set up in exactly the same way that work (only difference being that they don't have a compound primary key)

#

actually, let me amend that

#

there

proper saddle
nocturne galleon
#

What pl should i start with ? I want to know how to use fiddler , reverse engineer software etc.

#

No programming experience at all

#

None

deep scarab
#

probably c/c++

undone portal
#

If you're just wanting to learn, Python is good for starting out. You'll want to move onto C/C++ or Java after learning the basics of writing code. Most things you learn will transfer between languages

#

Afterwards you can start diving into more complicated things

nocturne galleon
#

What pl do i need to master fiddler

#

???

#

And reverse engineering a game (fortnite)

ionic hull
#

General knowledge of assembly

#

Watch this

nocturne galleon
#

Is that for me @ionic hull

ionic hull
#

Y

#

@nocturne galleon

nocturne galleon
#

I have no programming experience

ionic hull
#

Then you shouldn't try to reverse a game

#

Learn basic programming, almost any language will do

tropic grail
#

@hollow field look out for snakes kappA python2

jade nova
#

How could I run a Java application in kernel mode?

#

I want only the graphical interface to be part of the user mode but it communicates with the kernel mode service to perform certain tasks

dreamy finch
#

I know this is probably going to spark some debate, but which IDE would I want to use to get into Java Development?

When I took java programming classes in college, the professor forced us to use only a text-editor with syntax highlighting and only the documentation. No IDE's that auto-generates code.

But since I'm no longer taking any java classes as I've taken all the classes that college offers, I want to use an IDE that save me some of the headache.
I definitely want something that lets me build the GUI's with a drag and drop interface since my professor forced us to build the GUI's for our programs by hand by coding the GUI's.

jade nova
#

@dreamy finch I’d say Eclipse but a lot of people are going to disagree with me on that

proper gale
#

@jade nova i am one of those people

#

@dreamy finch i recommend IntelliJ IDEA

dreamy finch
#

I just downloaded IntelliJ as many of my college friends told me to get it also.

#

Is it hard to transition from Swing to JavaFX? We did a lot of stuff in Swing and I'm used to Swing, but it's outdated.

proper gale
#

as for Eclipse vs IDEA, people will disagree on all sorts of shit.
a very well versed Eclipse developer i know, switched to IDEA because they thought it was better.

#

idk, i dont use either of them

dreamy finch
#

What do you use IDEA for @proper gale ? Android Development?

proper gale
#

Java

dreamy finch
#

And you've never messed with GUI stuff?

proper gale
#

i have, hell, i am right now.

#

but not much with swing or jfx

dreamy finch
#

Wait. Then what do you use?

proper gale
#

im using Vaadin right now, because web ui

dreamy finch
#

Interesting. Didn't know there was more out there besides Swing or JFX

proper gale
#

and usually when i do graphics things, i work directly with the API (GL/VK) from C++

#

no, its not easier, its leaner.

dreamy finch
#

Our professor made us use Swing so it's been beaten into my head.

#

But He told me JFX is more powerful.

proper gale
#

it is

#

its a lot more powerful

#

GL is even more powerful (few orders of magnitude), and VK above that.

#

but stepping past JFX you pay for that power, a lot with Vulkan.

#

pay with your sanity ofc.

dreamy finch
#

I'm no master at Java. I just know a lot of stuff on Networking with Java and Swing.

#

We built basically a knock-off of Discord without the voice stuff in Java as our Final Project.

#

Sockets, File Transfers, all kinds of stuff.

proper gale
#

have you seen like 1300 lines of code for a single rotating square? ive wrote that, it sucks

dreamy finch
#

Buddy Requests, and lists.

proper gale
#

anyway, IDEA has stuff for both JFX and Swing

dreamy finch
#

Oh trust me... we had to make a project once where we had to have a bunch of random stars bounce on our screen.

proper gale
dreamy finch
#

Wow. Vulkan also powers the Doom Game.

proper gale
#
  • shaders
#

that it does

dreamy finch
#

Well it's there as an option.

#

It can do DX or Vulkan.

proper gale
#

no, DOOM cannot do DX

dreamy finch
#

No?

#

I thought it did.

proper gale
#

GL or VK

dreamy finch
#

Yeah... That's right. My bad.

proper gale
#

also, as a technicality, DX is a library, D3D is the 3d API

dreamy finch
#

Feel free to have a look at this if you want. Laugh too, if you want. I was bad at coding at this time, lol.

#

Project3.java is the main file. It launches everything.

#

All of this in Swing.

ionic hull
#

myFrameClass()
if you were russian it would be

ourFrameClass()

dreamy finch
#

Haha. ikr.

#

Our Professor also made us do it like that too.

#

Function()
{
}

ionic hull
#

I hate that

dreamy finch
#

When my TextEditor collapses the functions it does it like

Function()
{ ... }

#

That's why we did it like that I guess.

ionic hull
#

when I code in projects that involve multiple people, I usually overwrite the function() { }

dreamy finch
#

As apposed to:

Function() { ... }

ionic hull
#

and let the war begin

dreamy finch
#

As long as the code compiles I guess, haha.

#

These programs were written to please the professor, so really anything he taught we had to be sure to include in the programs... So any habits he introduced, we all did to make sure it met his approval. Some of us adopted our own styles.

#

And some of use used IDEA/Eclipse/NetBeans like he said not to for the projects.

proper gale
#

great, bot will delete that

#

if a professor tried that BS, i would not so politely tell them to GFT

dreamy finch
#

Bot will delete what?

#

And by BS what do you mean?

#

DM it to me?

#

If the bot keeps removing it?

proper gale
#

forcing a style on you

dreamy finch
#

Ah. The bot will remove it if you say GFT in it's entirety. Got it.

#

And yeah, I agree.

#

I self-taught myself LUA going into College. The first language they showed us was C++, and then we moved to Java.

#

I also self-taught myself Python.

#

I'm better at Java, then C++, then Lua, then Python.

#

I just started teaching myself Python since I have no programming classes this semester.

proper gale
#

i first learned Java, then C++, then python.

#

C++ > Java > Python for me

#

i dont care for python

dreamy finch
#

Java > C++ > LUA > Python

#

My order of how good I am at it.

jade nova
#

For me JavaScript > Java > PHP > VBS > VB > C# > Lua > Ruby > Python > Perl and then the list continues

#

That’s the order I learnt my languages in

#

Gave up on C++ and Assembly, too complicated for me

deep scarab
#

C++
complicated
🤔

dreamy finch
#

Yeah screw assembly.

#

They tried to teach us that.

#

I failed that class.

#

Like I literally got an F in it.

#

I never fail classes.

jade nova
#

I self-teach myself everything, because my school doesn’t provide technology classes for my year

upbeat folio
#

So do you think it might be worth teaching myself to be an expert in Nvidia’s RTX APIs so I can contract myself out to various game studios to help them adapt their games to support it?

ionic hull
#

All using a CMS I made for movie / tvshow streaming

proper gale
#

@upbeat folio if you need to ask that question here, no.

upbeat shadow
#

Transparent side panel displays, the new RGB custom era for PCs.

warped inlet
#

Anyone know why this python 3.7.0 code is saying thats an invalid syntax

proper gale
#

@warped inlet = is set, == is compare.

warped inlet
#

Tried ==

#

it does this

#

Says thats an invalid syntax

proper gale
#

:

warped inlet
#

Ah...

#

that makes sense

#

I tried both of them

#

just not at the same time

#

Thanks.,

proper saddle
#

Updating Visual Studio! apartyblob

#

Haven't really programmed that much this year. :|

timber violet
#

Visual Studio Code is fairly good

proper gale
#

@nocturne galleon should have just installed linux, problem solved.

#

@timber violet anything VSCode is good at, NP++ is better.

#

also, why do you need VS?

#

fair nuff with getting a macbook, they are good school machines.

#

ill take my cheap thinkpads instead, but i would prefer a mac for what i use it for.

#

PyCharm

#

i have two laptops, and two desktops.

#

battery life and performance laptops, and two different locations for the computers, though one is literally twice as powerful.

#

my CLion folder is 1.1GB, worth it IMO

#

my IDEA-U is 1.3GB

#

and PyCharm-P is 759MB

#

also, its 1GB vs 20GB

#

do you know what IntelliJ stands for?

#

Intelligent Java IDEAdvanded

#

how?

#

i use it for Java, does a damn good job at it.

#

i find the suggestions to be better on IntelliJ

#

and as for speed, ill give you that, it uses a shitload of resources, i have a 1700x for a reason

#

my main computer is a Ryzen 7 1700x, 64GB of ram, and a Vega 64

#

secondary is a 4790k with 32GB and a GTX 1080

#

primary laptop is a 7700hq, 16gb, and a GTX 1060 6gb
secondary lapotop is some haswell dual core with 12GB of ram.

#

i really want to double my primary laptops ram.

#

all my computers are 1080p

#

just, 4 montors for main, i need to get more but should be three for secondary, and only internal for my laptop

#

secondary laptop is not, but that doesnt matter

proper saddle
#

I'd probably use VS Code, but the C# plugin checks for .Net Core.

#

And not Framework. :|

proper gale
proper saddle
#

I've heard about that, but I think I'll just stick to Visual Studio proper.

ionic hull
#

I have a cheap 300$ laptop for programming. Just in case cops come busting my shit and I need to break it fast

winged obsidian
#

@ionic hull lol if they are there for your computer, that won't help.
Yeah VS Code for .NET sounds like a PITA, but proper VS is so nice IMO anyway, is it the lightweight-ness of it that you like?

nocturne galleon
#

can visual studio make swift apps?

#

How much storage will i have left if i get a 128gb macbook pro and download xcode?

kind portal
#

java question here

#

Im a beginner, were doing java at school

#

my question is the following:

#

buddy made a calc program, simple, also pretty cool

#

the only thing i dont get is why does he need a throws InterruptedException after the class line

#

heres the code

vestal glen
#

because it uses sleep

kind portal
#

oh?

#

And why do you need to use it then? what doe it do?

vestal glen
#

if the app gets closed or similar during the sleep the interrupt gets thrown

kind portal
#

meaning?

#

like interrupting you closing the app?

vestal glen
#

no, like interrupting the sleep

kind portal
#

ohhhh

#

ok, thanks!

fleet sable
#

ATTENTION: The SSL Certificate(s) you purchased from RapidSSLonline.com. need to be renewed or re-issued before the dates below. This ACTION is REQUIRED to keep your website showing as secure.

Major browsers like Google Chrome, Mozilla FireFox, and Internet Explorer will be discontinuing support for Symantec’s Root Certificates by the end of 2018! This means that if you don't renew or re-issue your SSL by the below dates, your visitors will get "unsecure" warning messages while trying to visit your site.

Beta Release of Chrome 70: September 13th, 2018
Full Release of Chrome 70: October 16th, 2018

https://www.rapidsslonline.com/dashboard/orders/symantecreplacementorders

^^^ Just a friendly reminder

proper gale
#

@kind portal more accurately from what Freak explained, he uses sleep (which can throw a InterruptedException) and does not catch the exception. That throws *ExceptionName(s)* syntax is saying that an exception of that type may propagate back out of/be thrown from that function.

winged obsidian
#

@kind portal
Probably not best to propagate back past the main function though.
Wouldn't you want to catch the exception and handle it in main as this is the entry point?
Arguably, a better option would be something like this.

try
{
    TimeUnit.MILLISECONDS.sleep(500);
}
catch(InterruptedException ex)
{
    System.out.printf("Caught the exception, handle it and inform the user");
    return;
}

It's longer yes, but you can put this in a separate function. Something like:

public static void neatSleep(long msTimeout)
{
    if (msTimeout > 0)
    {
        try
        {
            Thread.sleep(msTimeout);
        }
        catch (InterruptedException ex)
        {
            //handle the exception
            //notify the user perhaps
            System.out.println("Sleep was interrupted...");
            //optionally print the exception or log it
            System.out.println(ex);
        }
    }
}

Becomes a neat one-liner.

public static void main(String[] args)
{
    neatSleep(1000); //1 second
}

Lots of ways to handle different time units also (an enum parameter maybe?).

I would guess your friend just bashed this up as a quick example. Choosing to rethrow rather than handle the exception to save time.

kind portal
#

I have NO fucking clue what you just said

#

We started java at school like last week

#

No idea what exceptions are

#

But ill save this for future reference

#

yeah he just mashed it up together in a quickie

winged obsidian
#

Exciting, code is great fun, and decent pay. Good luck with it man.

kind portal
#

nah i have programmed before

#

i understand the concepts of programming more or less

#

But not this lol

#

Thanks btw

winged obsidian
#

np, understandable, it's a deep rabbit hole you can keep learning new things for life.

obtuse night
#

can someone help with my python code?

proper gale
#

@obtuse night well, read the error.

#

type 'int' is not subscriptable

#

that all the help someone can give without the code, and a debugger.

ionic hull
#

Does anyone know a good payment gate? That has an API or something?

#

And a lot of payment options

#

That is because I don't have the time to play around PayPal and any others payment services

limpid reef
#

Braintree has one of the best payment gateway API's on the planet, or there's Square's API too.

ionic hull
#

Braintree : 30 cents per transaction :/

#

Is that high?

#

For 2$ virtual products

ionic hull
timber violet
#

How long are .aspx.cs files usually?
Just today I found myself editing a 20,000+ line one.

limpid reef
#

@ionic hull out of principle I will NOT touch anything from G2A due to their deceptive practices. 30 cents per transaction, plus a percentage is the norm in the payment processing industry. If you want to avoid this, you're either dealing with a shady payment processor (which means I'll never be buying from you) or you'll have to accept cash only transactions.

#

@timber violet I don't write code / websites using ASP/X because that requires Microsoft Server technology (I'm a linux guy for webhosting) but I'd imagine aspx.cs files are asbout as long as is required for the code contained inside them

ionic hull
#

@limpid reef but I'm not selling products, just subscriptions

limpid reef
#

OK, coolio. Payment processor fees are still applicable. You're paying for the service of processing your payments. They have to make money. This is how they do it.

proper saddle
#

Oh, .aspx.cs is Web Form stuff. thanking

nocturne galleon
#

How to write in a box?

proper gale
#

@nocturne galleon like this or like this?

ionic hull
#

Use ` 2 or 3 times for start and close box

#

Or check discord's docs

tropic grail
midnight stag
#

anyone have any advice for learning tensorflow? Ive gone through a lot of the tutorials already, but I feel like Im still not getting it.

midnight stag
#

Thanks, maybe I'll check it out if I still cant get anywhere with the resources online

midnight stag
#

hey I'll take free, thank you! Most of everything ive been working with so far has been with keras on tensorflow so that should be fine

nocturne galleon
#

best way to learn swift for beginners?

south gust
#

@tropic grail i can show you de wae

tropic grail
#

Already got all my Python libraries added kappA

proper gale
#

@tropic grail idea for python?

#

@midnight stag to understand tensorflow you need to understand the underlying math, the library itself is quite simple (assuming you are using it for AI).

#

If your goal is not AI, see tensorflow documentation.

tropic grail
#

@proper gale bot dev.

proper gale
#

Right, are you using intellij idea for python?

tropic grail
#

Yeah, but probably moving to VSCode. Was using Notepad++ to do minor work, but I need an IDE.

proper gale
#

Pycharm, jetbrains dedicated python ide.

#

Unless you are doing simple scripting, it is the best for python, from JB.

#

Also, why write a bot in python?

#

it's such a slow language

tropic grail
#

@proper gale because I took over a dead bot. Wasn't my choice, but I'm rewriting it.

proper gale
#

If you are rewriting it, why rewrite in python?

#

I write my bot in Java with Discord4J, it's not an API bound bot.

nocturne galleon
#

Can VScode make swift apps or does it only edit code?

proper saddle
#

There might be a swift plugin

fresh jacinth
clever frigate
#

Any chance anyone's worked with Bamboo + ASPNET builds before?

tropic grail
#

I'm in love with this Chrome (and firefox) extension I've found. It's called "Dark Reader" and it gets rid of "light mode" on all websites without being an eyesore! Surprised I didn't find this sooner. For all you nocturnal devs out there (like me), maybe give it a try.

proper gale
#

does it work on Stack Overflow?

tropic grail
proper gale
#

sold

tropic grail
#

So fucking beautiful. I'm in love.

proper gale
#

i have a nice dark background, dark IDE, dark FF theme, dark ubuntu theme, now i can have everything else be dark aswell.

tropic grail
#

What's your ubuntu theme? Arc Dark?

proper gale
#

thats not ubuntu

#

i believe it is Arc Dark

#

i need to reinstall and update my kernel to the AMD git anyway, so ill know when i do that.

plush pollen
#

@tropic grail how does one do that

#

Oh, that's an Ubuntu theme?

tropic grail
#

Google Arc Dark for Windows.

plush pollen
#

Ooooh, thank yew

static harness
#

looks quite good

proper gale
#

its not ubuntu

tropic grail
#

Original author died, but there's another maintainer.

proper gale
#

drive letters give it away.

plush pollen
#

I thought it was an Ubuntu theme that made it look like windows, but dark

tired bridge
#

why am i getting a negative numnber from my code??

#

#define begin {
#define end }
#define iterate for
#define decide if
#define show printf
#define is_odd %
#define give_back return
#define whole_number int
#define decimal_number float
#define N 100

whole_number main (void)
begin
    decimal_number i = 1.7;
    iterate (whole_number j = 0; j < N; j++)
    begin
        decide (j is_odd 2 == 0)
        begin
            i *= j;
        end
    end
    show ("i = %i\n", i);
    give_back 0;
end```
tropic grail
#

?```java
i *= j;

proper gale
#

what the fuck did you do to C?

#

@tired bridge probably integer rollover.

#

rollover/overflow

deep scarab
#

dark reader seems to just invert the colours

#
#define begin {
#define end }
#define iterate for
#define decide if
#define show printf
#define is_odd %
#define give_back return
#define whole_number int
#define decimal_number float
#define N 100
proper gale
#

@deep scarab even lua is not as bad as that.

winged obsidian
#

Looking at switching from VS2017 to Rider for .NET development and CLion for C++ any opinions or info that might help with this decision?
Disassembly/reflection tools isn't a selling point for me there is plenty of free options for this that I already have excellent workflows for.
Any info greatly appreciated, cheers.

winged obsidian
#

@tired bridge lol, what a meme

deep scarab
#

not sure why you're trying to make c into a high level language

#

tbh, your "language" makes it hard to read the code

winged obsidian
#

@tired bridge Sorry buddy I honestly thought you were messing with us

The technical problems you are specifically having are:

  1. You are telling printf that you want to print an integer, then you are passing in a float
  2. You are starting your iteration of j at 0, the first iteration will set i to 0, then it will remain at 0.
  3. The float only holds 8 bytes, it is probably overflowing as you are multiplying it by a higher number each iteration. This will produce inf or an exception or the overflow result, depending on the compiler.

Also, a few of those macros are actually hurting you and make the code read incorrectly.

For example:
decide is (arguably) harder to understand than if and it is actually less sane than if. The modulo operator (%) is not the same as is_odd that is not correct.

It's tricky but you seem to be diving in the deep end without testing the waters, I would suggest doing some reading and trying some simple example code without the #define trickery.

Hope that helps

nocturne galleon
#

Hey guys

#

I need a help with Xamarin

#

I can't make any "usable" UI, because once I place a button on builder, it fits up all of the app screen, so if(thereIsAXamarinDev() ){
helpMe();
{

#

*}

winged obsidian
#

Xamarin.Forms application?
In a Xamarin.Forms application, XAML is mostly used to define the visual contents of a page and works together with a C# code-behind file.

nocturne galleon
#

Xamarin.Android

#

I am not good with XML so, I tried to use Visual Builder

winged obsidian
#

Also you don't need to make the changes to the view attributes in XML if you don't feel comfortable

#

Instead of editing your view attributes in XML, you can do so from the Attributes window (on the right side of the Layout Editor). This window is available only when the design editor is open, so be sure you've selected the Design tab at the bottom of the window.

nocturne galleon
#

TY big ❤

winged obsidian
#

np man

proper gale
#

@winged obsidian using CLion for C++ myself, just, DO IT!

#

specifically what C++ would you be doing though, that does matter.

winged obsidian
#

@proper gale
I'm sold, I will give it a shot, thanks.
Are you referring to the partial C++17 support?

I hope Rider is as good as I am hearing from reviews. Not bad pricing either for all of them. Love working with C#, VS is cumbersome. Ready to try something different.

proper gale
#

no, i mean that VS has better tools for shit, like Nsight

#

@winged obsidian

#

i use CLion for C++17, works fine for me.

winged obsidian
#

ok that will be fine, I don't mind swapping back to VS to use those tools for particular projects

proper gale
#

also, i hope you know cmake, because thats how CLion does all its building.

winged obsidian
#

Yes, it actually looks very nice too, I've just been looking into it.

proper gale
#

Have you used IntelliJ IDEA?

winged obsidian
#

no, what's your thoughts on it?

#

I will get it with the bundle

proper gale
#

i was just going to use it for comparison

#

all of Jetbrains IDEs are very similar

#

CLion is IDEA for C++
Pycharm is IDEA for Python
Rider is IDEA for C# (i have not personally used it, friend has)

#

etc

#

Android Studio is IDEA for Android

#

if you have used one JB IDE, you have used them all.

winged obsidian
#

I look forward to the consistency across languages. Sounds like that is a real selling point

proper gale
#

just small language specific differences

#

such as to/from header to/from impl for C++, which doesnt exist in Java

#

also, learn the shortcuts, its a keyboard centric IDE.

winged obsidian
#

Of course, thanks for the info man

proper gale
#

i have the free student license, i fully plan to buy the IDEs once i get a job.

winged obsidian
#

Nice, I will be trying to convince work to provision the licence for me, otherwise it will be a personal expense too, but looks like it is worth every cent from what I've seen.

proper gale
#

you can try them first.

#

also, the things that they dont tell you straight out

#

if you buy the yearly license, you will have access to the current version, forever.

winged obsidian
#

I'm just going to go with a monthly licence and give them all a shot
Ohhhh right

proper gale
#

and, while the first year is $250, second is $200, 3rd+ $150

#

if you do monthly, then you get it once you pay for a year (or pay the partial for a yearly license)

#

is what you work on an open source project or for a non-profit?

winged obsidian
#

no, commercial mostly, I have a lot of hobby projects though, only a handful are open source

#

not for lack of wanting to make them open source, they are just very niche

proper gale
#

ahh, well, no free license then.

winged obsidian
#

rip, thanks man, awesome advice

proper gale
winged obsidian
#

work provisioned a monthly licence for me adawg
I'll put up some notes on Rider for others after I try it out for a bit.

wise oriole
#

Anyone played with Scriptable and Shortcuts on iOS to run arbitrary code?

winged obsidian
#

No but that is interesting, some neat things are possible with this for sure

wise oriole
#

I’m testing how long it’ll run in the background right now

#

If it never times out, man the possibilities are insane

#

However loops are indexed at 1 so that’s kinda annoying

thin cobalt
winged obsidian
#

lol

lone monolith
#

Nice lol

kind portal
#

question to anyone who uses IntelliJ IDEA
so you know how if you do psvm and then enter it autocompletes to public static void main
how do i add more of these

fallow lantern
#

there are already more of those

kind portal
#

i know

#

but how do i add/edit them

#

I know that to see all available ones i do cmd+J

fallow lantern
#

Ah no idea, never needed to add another one

kind portal
#

ah

fallow lantern
#

Yeah, you can do it. Just open Settings -> Live Templates. Create new one with syso as abbreviation and System.out.println($END$); as Template text.

#

I guess you can look over there

#

Didn't try myself

kind portal
#

thanks!

modern nest
#

a surprising 6 hours ish SOT

ionic hull
#

Following 304

glossy forum
#

Any one have real world development experience with GraphQL? I am curious about what advantages and disadvantages it has

solar spade
#

Im using graphql at work along with Vue and Rails

#

It has been a real treat to use so far especially when the data on the backend is thrown about on different apis/dbs

#

Authentication/error handling has been something that I am getting stuck on though. Not that straight forward as with REST

tropic sapphire
#

@glossy forum a Little we sure it at work to pull some page data and we plan to move out api over to it thought thats a future future

torn remnant
#
public enum SubscriptionMethod : short
{
    [Display(Name = "Do not subscribe")]
    DontSubscribe = 0,
    [Display(Name = "Don't notify, show replies in my feed")]
    NoNotification = 1,
    [Display(Name = "Private messages")]
    EmailNotification = 2,
    [Display(Name = "Email Notifications")]
    PmNotification = 3
}```
#

🤔

twin arch
#

anyone have experiance with getting java working on headless linux?

#

jre that is

#

i don't need to compile on linux

#

doing my development elsewhere

#

i just need to start working on my backend

proper gale
#

@twin arch i do

twin arch
#

how do you setup your classpath

#

ubuntu 18 cloud

proper gale
#

you just need to run on it, so its the same as any other OS

#

just installing it (on ubuntu) is sudo apt install openjdk-*version*-jre-headless

twin arch
#

ok i just ran the installer earlier and it didn't work

#

vm is restarting ill check in a sec

proper gale
#

thats not a problem of the runtime, thats you.

#

to be more specific, you should put your code into a jar.

twin arch
#

oh

#

but

#

it works on windows

#

says in whiny voice

proper gale
#

in an IDE?

twin arch
#

maby

#

yes