#development
1 messages · Page 35 of 1
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: ...



The next Paint for mobile
@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.
@tropic sapphire We had that too. And still keep it for some core services.
We are moving most of our stuff to lambda and going almost serverless.
Front ends being served from s3.
Your front ends are SPAs?
I haven’t worked in a web app that is not an SPA for at least 4 years
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
@tropic sapphire Good size 😃
@lapis pebble very good. Been there 9 months now and just got a pay increase
@tropic sapphire congrats!
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 :(
@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.
@lapis pebble I didn't know node at all when I started here. now i know node, express, docker, serverless and angular 5.
@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.
yeah I am super happy about it too lol
There are very few companies that hire in that way.
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.
@tropic sapphire I'd apply to where you work but Glasgow weather is not my type
I got wet on the way to work 😦
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
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
my guess would be that it redirects to itself?
as in index.html returning a location header pointing at itself.
Yeah, it could be a redirect loop if all routes are having that appended to it
or I think another possibility is that you're trying to do a protocol downgrade (serving the redirect to a http:// URL from https://)
From what I've just tested Chrome didn't throw any issue when redirecting https -> http
@jade nova Are you using rails?
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
HTTP/2 in any modern browser requires it to be served over a secure connection (https) so your code likely won't work.
wow, raw serving http
It still reckons that it's not configured correctly
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.
I remember that HTTP needed two new lines in the end of the header
at least for the request... but I'm very rusty
From what I'm reading .puts adds the trailing newline which is needed.
I'm planning on using this web server for production so I'm soon gonna get an SSL certificate configured
it seems like this may be a redirect loop from the full script
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
(the server in the script only sends the redirect and redirects to itself, leading to an infinite redirect)
Yeah, it is a redirect loop
Yep, that too. But it won't redirect if there is no extra new line
if the error says the redirect isn't configured properly that extra new line is sent.
else it'd be a network timeout
I’m gonna get Ruby on Rails and change the script up because it appears like it can be easily intercepted or attacked
What's the end goal of the script @jade nova?
@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
@weary knoll All I intend for it to do is listen for any requests and redirect them securely to the index HTML page
Also served by the same application or on a different webserver?
it also has to serve index.html >_>
Same application
imo I would just use a NGINX server with a basic configuration
nginx can do that
Port forwarding is a head ache
hmmmm is not port forwarding, but HTTP redirects
Uhh, you also would need to for your ruby solution
since you're listening on port 2000
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
Hello?
hi.
@nova bronze Alo
@lapis pebble 2 things. One you could have used nodes built in http
const http =require('http')
And 2 not using express :/
@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 😃
Oh my bad :)
No worries 😃
@tropic sapphire have you tried Koa?
No what is it?
@tropic sapphire express 5 with a lot of breaking changes
Oh I'll have a look at that.
Koa looks a lot like http://serverjs.io
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
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.
In the end you needed the versatility of a modular framework
Also a modular framework with modules. I'm working with vert.x these days and I miss spring boot. It has modules for everything.
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
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)
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.
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?
you could place the file off path and then use code to push the file to the web browser on request
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.
Jquery is Javascript
Right, but I don't want to include the jquery.js library at all. One little cosmetic thing like this isn't worth it.
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.
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.
@tropic grail https://jsbin.com/fihodehiga/
there you go
You can see the code clicking on the "edit in JSBIN" button in the top right corner
Now, time to take a morning shower at this side of the pond
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.
Use and abuse of jquery I guess
commands are expected to be string, but you gave it a map (tabulation)
@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.
In the university?
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)
@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 -.-
Ouch, CS degree I'm doing in England has had C++, PHP and Java 😦
php ew....
did that too on my HND, also did flash.....
I managed to convince my lecturer to let me use Node instead since that's what I'm familiar with :>
Lol
@weary knoll get out your comfort zone 😛
I've used PHP before and ended up going around the class helping those with issues 😛
@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 😋
needs to stop using PHP, is too lazy to
In devops (development and operations) it’s sorta critical to use git 🤔
But yes it’s no tool
You use version control. Git is not the only tool for that.
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
I’d say many tools force you to use git. So many people think git is the rule.
There isn't a downside to using git rn so no reason not to use it - being the most popular
@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.
I guess that's the problem when you're friends with half your class :p
@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 😃
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
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
@jade nova This may help you : https://stackoverflow.com/questions/62289/read-write-to-windows-registry-using-java
Or if you don't want to use a Java "hack" to do it, there is a library to do it : http://www.rgagnon.com/javadetails/java-read-write-windows-registry-using-jna.html
Real's JAVA JAVASCRIPT WSH and PowerBuilder How-to pages with useful code snippets
Yeah, don't use reflection unless you really have to. If there is a library then use it
@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 😛
I liked this video about it: https://www.youtube.com/watch?v=W71BTkUbdqE
This talk will outline the scale of Google’s codebase, describe Google’s custom-built monolithic source repository, and discuss the reasons behind choosing t...
@weary knoll yeah that would a problem lol
@tropic sapphire use Brainfuck.
@proper gale tbh the people in my class didn't know any programming languages so anything works lol
@tropic sapphire did the people in your class learn any programming in the end?
Not really they kinda just copied just other, enough to pass.
No teacher trolled them? Or they didn't care?
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.
JWT cookies or just a cookie saying: You're a good boy.
Just a cookie.
Great teachers, great university/school/coffee shop
So I was talking about darcs some days ago and yesterday twitter greeted me with this: https://twitter.com/ecampidoglio/status/1030118882093268992
darcs – another one I didn't know about.
A DVCS released in 2003 and written in Haskell. 😵 https://t.co/1xXLKWl42B https://t.co/11FXjRYHCM
Is it possible to program Python to pull DEB packages off of an FTP server and install them automatically in the background?
@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
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
Yeah, it sounds like that. Have you tried things like ansible, saltstack, chef? The two first are extensible with python.
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)
To provision more basic infrastructure you can try "terraform"
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 😃
You may want to look for the Dell Precision 7530 : https://www.dell.com/en-us/work/shop/workstations-isv-certified-dell/precision-7530/spd/precision-15-7530-laptop/xctop7530hwus
Dell or lenovo have good ones. I was just now checking on dell: https://www.dell.com/en-uk/work/shop/scc/sc/laptops?~ck=mn
@little knoll out of price range - they list prices without VAT
so it's over my 1560 with VAT limit
@opaque terrace
link it 😃
the dell site has many filters to play with and find the laptop you need
basically what I was looking for 😃
The dell looks cheaper :?
dell does not include VAT tax
on the site
so add 20%
Also, I'd like to direct your attention at the battery capacity 😃
As soon as you start to compile and run stuff, you're gonna run for the charger
and wish for an i7
amen
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
@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.
@tropic sapphire BFG rated toy. We use it with AWS infrastructure, but in a previous job we made it work with ESXi without vcenter
@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.
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)
Nope :/ new front end and back end needs to be done.
That's due end of this month.
After that I can relax lol
Working on weekends is not good man/woman/<insert here>
work is never ends, software is never finished...
@tropic sapphire Read the small description of the book after the cover https://basecamp.com/books/calm
Trusted by millions, Basecamp puts everything you need to get work done in one place. It’s the calm, organized way to manage projects, work with clients, and communicate company-wide.
@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
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.
normally it isn't like this but we have had set backs that make us need to push out lots of stuff
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 😃
@lapis pebble thanks :) it's gonna be fine. The team is pulling together as it should. After this it'll relax a lot.
Will a load balancer help with layer 7 attacks?
Like 2 - 3 servers?
With constant 4k users on?
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
@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.
static image files?
Yes
Put a CDN in front and they will take care of it
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
the issue with the main page?
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
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"
are you doing it manually?
No
Using fail2ban
And if fail2ban doesn't ban them
I wrote a script that takes the IP and bans it on cloudflare
what happens with cloudfare, why they don't stop the DDoS?
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?
@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..
something like good game empire. mostly 2d
@charred sleet from scratch with no engine?
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.
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.
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
@swift hearth You don't know programming at all?
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
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 😃
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?
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.
OOP you mean?
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.
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
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.
I'd love to see that. I haven't seen UML in ages.
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
What can I say, if it works for you... good 😃
@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
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
Looking for a php developer who isn’t really expensive if you are one hit me up
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 🤔
@swift hearth for a free site I recommend SoloLearn, that’s how I learnt c#
@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.
@timber root yeah, of course link it here 😃 I don't do Discord stuff, but you never know who is reading here.
@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.
@lapis pebble work gets finished when it's finished :P
Its not, that's why I said functional style.
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.
@lapis pebble I like rambda pack and es6 single line function. Makes it clear what's going on.
currying almost everything was one of the issues.
Hey people, what programming language should i start with/ how do i get started with programming/coding
@nocturne galleon
go with python, since the syntax is very easy and english-like, available at python.org
and look up tutorials on youtube
Thanks!
@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 :(
@tropic sapphire that's sad 🙁
@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.
Thank you 🙏🏻
@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. ^
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.
@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
Wow! That is far away from getting started. You will need some patience if you really need to get started.
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
@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?
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
Is the utmost query efficiency always needed? Was it implied in the question? You might be digging yourself into a hole
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
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.
ah you might be right there
I had attached EF and ORM together making it interchangable
EF is an ORM, nothing bad there
so might've been "would you trust any ORM to be an efficient query executer"
...but does the ORM query
In a general way, I guess you got it right. How was the face of the interviewer?
well yeah i did pass that interview
fortunately, and later today I'm meeting up with a different head dev and software archi
Congrats 😃
though after i gave the answer to the interviewer's question, it was a mild approval i guess with the response 'yeah'
🤷
Perhaps adding LINQ there mixed things up. Who knows.
best I approach the interviewer when I get the job
Good luck with the next interview. And good idea to get some feedback. Although you're too sure you will get the job 😛
well i won't be able to approach the interviewer if i get declined, right?
Of course you will be able to ask for feedback, another issue is if the company/hr/interviewers will respond to your request
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
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.
Quite right us devs will always be learning
what is the programming language used for fortnite? @ me when ansering
is programming a good route to take in life?
@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 😛
@lapis pebble idk a viable path in life where i will not be homeless
@nocturne galleon If you get good at reading code, finding errors, and writing good code, and are always willing to learn, then yes.
alrighty, thank you
@nocturne galleon and dont forget the most important part, not absolutely hating it. that matters a lot.
@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.
Hey what's up. Anyone wants to help me with jquery/js?
best way to learn swift and C++ ?
a real life course.
Self dedication... a book... and the internet
@nocturne galleon cant speak for swift, but i highly recommend against C++ as a first language.
My school teaches vb as a first language
how good is this chat for asking programming help?
@summer eagle how can we measure that?
@nocturne galleon how do i use playgrounds when i have 0 programming experience
Learn Java or C# as a first language
python
you want to learn python first
its super easy but will get you used too programming concepts
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.
@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.
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.
@rotund bramble Once you learn one language, the rest are a piece of cake.
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.
@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.
@timber violet C++ is a lot harder.
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.
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.
i see a lot of people get discouraged by c and cpp
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;
}
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?
@nova bronze
Ubuntu abandoned
Unity in 17.10.
They now use
Gnome in all new versions.
How could I create an electron app in Python with the PyQt GUI framework?
@jade nova electron only work with node.js, not with python
@proper gale Down the road, only for recruiters and perhaps for some specific jobs.
ubnuntu
is it easier to learn coding languages when you already know javascript?
@dapper laurel spot on
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?
My guess it whould deppend on the amount of traffic it would generate.
hmm
@nova bronze you probbaly dont want traffic filling up your home network, you can rent a VPS for about £5 a month.
You could run it behind a proxy like Cloudflare, just get their free plan.
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
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.
@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
@unique minnow I got a server on Scaleway, the cheap ones are ARM, In some edge cases you might end up compiling a lot.
They also have x86 😃
I like doing something different (I've eaten my words many times though)
The amazing world of arm64v8
I would not choose ARM without there being a reason for using it. Like developing for ARM 😂
They use ThunderX processors by Cavium, and I have a friend working at Cavium. At least I can blame him.
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 😛
ARM not being practical? How is that?
Well I guess it depends on the usecase, but like you said yourself you end up compiling a lot 😂
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
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..
google has cloud print, nice use for MQ queues though 😛
Is it possible to ddos or flood any serverless service? Using AWS lambda and API for example
I know it's a weird reques but anyone that develops minecraft mods? 😅
Tag me or dm me if interested
@mild patrol What's up?
@ionic hull, sure -- Though AWS does throw their "shield" service in front of it (ref https://aws.amazon.com/answers/networking/aws-ddos-attack-mitigation/)
I need someone to update a simple mod from 1.11 to 1.12
Could you link me to a page/repository for the mod?
Sure let's talk in dms though
Alright, you should be able to send me a message. Same request as above (:
@split condor thanks
@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.
@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
@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
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...
@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
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.
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 😄
@nocturne galleon if that calc line would work, i would congratulate the browser engine able to understand that thing and make sense of it 😄
Oh I've done much worse in the past that are on live versions of my sites
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
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...
@opaque terrace write a simple extension to fix it. Or just a tampermonkey script
@ionic hull People shouldn't have to write or use a script to make your website usable.
@ionic hull does not fix the core issue though, especially for others 😃
Is flushing a specific section of the CPU cache very low-level and would require a language like C or Assembly?
@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
In the WAN show they said something about live streaming and chat, as new FP features.
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.
@nocturne galleon Sure.
Nice SSD
In Java, can I listen if a private variable's setAccessible property is changed to true and if so throw a new SecurityException?
I’m waiting for Java 11 to be released since it’s the next LTS version @proper gale
@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.
I am developing a meme do any of you guys want to support it
no
Is it possible to create OpenGL Games using python? Or Java?
Minecraft java edition is java and uses openGL, so sure.
Why not just Google: python opengl
That shit triggers me
Is Google blocked in your country?
1st search result:
PyOpenGL -- The Python OpenGL Binding
pyopengl.sourceforge.net
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 😃
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.
@vestal glen Minecraft*, Minecraft Java Edition is bullshit
@proper gale yes, but I enjoy using it as a silly addition when referring to it being written in java.
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.
love this https://www.ietf.org/rfc/rfc2324.txt
Ah yes, like IP over Avian carriers - now with QoS https://tools.ietf.org/rfc/rfc2549.txt
@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.
A guy is offering 100€ to bypass his waf, anyone interested?
Lol
^
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
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 ?
Yes
If you are using a shared hosting, search for a server host on the "database" tab or something in cpanel
but where can i fine my new hostname ? in phpmyadmin, i think thats what i missing
or in the ubuntu server ?
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..)
@ornate yoke
yes
@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
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.
i have no i idea, i used i ip and all the info needed to connected and also open mysql port on the firewall
You are hosting this on your own servers yes?
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.
@ornate yoke you're fucked, ask for help....
Like
Someone who has access to the servers
😛 🙈
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
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 😅
Oh well, wtf is happening
Hey, i just started learning python. Which things should i look out for?
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 :)
@hollow field look out for? That depends on what you're planning to do with python.
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).
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
damn .. this is gonna be hard on some companies i recon
@upbeat folio Yeah, what's your question?
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.
Alright. Are you able to show us the models and what you're trying to do? Any stack trace will help out too.
no go on the stack trace - TypeScript, but I can approximate the models. Need a minute.
Ok. Just to let you know you can get readable stack traces with TS by using source maps.
did not know that. Easy to find on Google?
Yeah, typescript stack traces should get you what you need (:
// 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
What pl should i start with ? I want to know how to use fiddler , reverse engineer software etc.
No programming experience at all
None
probably c/c++
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
What pl do i need to master fiddler
???
And reverse engineering a game (fortnite)
General knowledge of assembly
Watch this
Pwn Adventure 3: Pwnie Island: https://www.youtube.com/playlist?list=PLhixgUqwRTjzzBeFSHXrw9DnQtssdAwgG
Is that for me @ionic hull
I have no programming experience
Then you shouldn't try to reverse a game
Learn basic programming, almost any language will do
@hollow field look out for snakes

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
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.
@dreamy finch I’d say Eclipse but a lot of people are going to disagree with me on that
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.
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
What do you use IDEA for @proper gale ? Android Development?
Java
And you've never messed with GUI stuff?
Wait. Then what do you use?
im using Vaadin right now, because web ui
Interesting. Didn't know there was more out there besides Swing or JFX
and usually when i do graphics things, i work directly with the API (GL/VK) from C++
no, its not easier, its leaner.
Our professor made us use Swing so it's been beaten into my head.
But He told me JFX is more powerful.
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.
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.
have you seen like 1300 lines of code for a single rotating square? ive wrote that, it sucks
Buddy Requests, and lists.
anyway, IDEA has stuff for both JFX and Swing
Oh trust me... we had to make a project once where we had to have a bunch of random stars bounce on our screen.
no no, let me get this across, this https://vulkan-tutorial.com/code/15_hello_triangle.cpp draws this
Wow. Vulkan also powers the Doom Game.
no, DOOM cannot do DX
GL or VK
Yeah... That's right. My bad.
also, as a technicality, DX is a library, D3D is the 3d API
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.
myFrameClass()
if you were russian it would be
ourFrameClass()
I hate that
When my TextEditor collapses the functions it does it like
Function()
{ ... }
That's why we did it like that I guess.
when I code in projects that involve multiple people, I usually overwrite the function() { }
As apposed to:
Function() { ... }
and let the war begin
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.
great, bot will delete that
if a professor tried that BS, i would not so politely tell them to GFT
Bot will delete what?
And by BS what do you mean?
DM it to me?
If the bot keeps removing it?
forcing a style on you
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.
i first learned Java, then C++, then python.
C++ > Java > Python for me
i dont care for python
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
C++
complicated
🤔
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.
I self-teach myself everything, because my school doesn’t provide technology classes for my year
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?
http://imgur.com/a/i3A9M4k opinions?
All using a CMS I made for movie / tvshow streaming
@upbeat folio if you need to ask that question here, no.
Transparent Side Panel Displays
A startup campaign on indiegogo that takes case modding to the next level. Transparent side panel displays aimed...
Transparent side panel displays, the new RGB custom era for PCs.
@warped inlet = is set, == is compare.
:
Ah...
that makes sense
I tried both of them
just not at the same time
Thanks.,
Visual Studio Code is fairly good
@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
I'd probably use VS Code, but the C# plugin checks for .Net Core.
And not Framework. :|
@proper saddle https://www.jetbrains.com/rider/
I've heard about that, but I think I'll just stick to Visual Studio proper.
I have a cheap 300$ laptop for programming. Just in case cops come busting my shit and I need to break it fast
@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?
can visual studio make swift apps?
How much storage will i have left if i get a 128gb macbook pro and download xcode?
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
because it uses sleep
if the app gets closed or similar during the sleep the interrupt gets thrown
no, like interrupting the sleep
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
Secure Socket Layer (SSL) Secured Login. Login to RapidSSLonline.com SSL control panel.
@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.
@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.
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
Exciting, code is great fun, and decent pay. Good luck with it man.
nah i have programmed before
i understand the concepts of programming more or less
But not this lol
Thanks btw
np, understandable, it's a deep rabbit hole you can keep learning new things for life.
@obtuse night well, read the error.
type 'int' is not subscriptable
that all the help someone can give without the code, and a debugger.
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
Braintree has one of the best payment gateway API's on the planet, or there's Square's API too.
Has anyone used this: https://pay.g2a.com ?
How long are .aspx.cs files usually?
Just today I found myself editing a 20,000+ line one.
@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
@limpid reef but I'm not selling products, just subscriptions
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.
Oh, .aspx.cs is Web Form stuff. 
How to write in a box?
@nocturne galleon like this or like this?
@south gust mistakes were made https://dooleylabs.com/?🍌=a3ul4g.png
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.
Thanks, maybe I'll check it out if I still cant get anywhere with the resources online
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
best way to learn swift for beginners?
@tropic grail i can show you de wae
Already got all my Python libraries added 
@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.
@proper gale bot dev.
Right, are you using intellij idea for python?
Yeah, but probably moving to VSCode. Was using Notepad++ to do minor work, but I need an IDE.
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
@proper gale because I took over a dead bot. Wasn't my choice, but I'm rewriting it.
If you are rewriting it, why rewrite in python?
I write my bot in Java with Discord4J, it's not an API bound bot.
Can VScode make swift apps or does it only edit code?
There might be a swift plugin
Any chance anyone's worked with Bamboo + ASPNET builds before?
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.
does it work on Stack Overflow?
sold
So fucking beautiful. I'm in love.
i have a nice dark background, dark IDE, dark FF theme, dark ubuntu theme, now i can have everything else be dark aswell.
What's your ubuntu theme? Arc Dark?
Because mine is https://dooleylabs.com/?🍌=aztv8.png 
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.
Google Arc Dark for Windows.
Ooooh, thank yew
looks quite good
its not ubuntu
Original author died, but there's another maintainer.
drive letters give it away.
I thought it was an Ubuntu theme that made it look like windows, but dark
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```
?```java
i *= j;
what the fuck did you do to C?
@tired bridge probably integer rollover.
rollover/overflow
i prefer dark night mode: https://chrome.google.com/webstore/detail/dark-night-mode/bhbekkddpbpbibiknkcjamlkhoghieie?hl=en
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

@deep scarab even lua is not as bad as that.
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.
@tired bridge lol, what a meme
not sure why you're trying to make c into a high level language
tbh, your "language" makes it hard to read the code
@tired bridge Sorry buddy I honestly thought you were messing with us
The technical problems you are specifically having are:
- You are telling
printfthat you want to print an integer, then you are passing in a float - You are starting your iteration of
jat 0, the first iteration will setito 0, then it will remain at 0. - The float only holds 8 bytes, it is probably overflowing as you are multiplying it by a higher number each iteration. This will produce
infor 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
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();
{
*}
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.
Here is an excellent Layout Cheat Sheet
https://www.cs.dartmouth.edu/~sergey/cs65/cheatsheets/Layout.pdf
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.
TY big ❤
np man
@winged obsidian using CLion for C++ myself, just, DO IT!
specifically what C++ would you be doing though, that does matter.
@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.
no, i mean that VS has better tools for shit, like Nsight
@winged obsidian
i use CLion for C++17, works fine for me.
ok that will be fine, I don't mind swapping back to VS to use those tools for particular projects
also, i hope you know cmake, because thats how CLion does all its building.
Yes, it actually looks very nice too, I've just been looking into it.
Have you used IntelliJ IDEA?
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.
I look forward to the consistency across languages. Sounds like that is a real selling point
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.
Of course, thanks for the info man
i have the free student license, i fully plan to buy the IDEs once i get a job.
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.
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.
I'm just going to go with a monthly licence and give them all a shot
Ohhhh right
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?
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
ahh, well, no free license then.
rip, thanks man, awesome advice
see this for the fallback license details https://sales.jetbrains.com/hc/en-gb/articles/207240845-What-is-perpetual-fallback-license-
work provisioned a monthly licence for me 
I'll put up some notes on Rider for others after I try it out for a bit.
Anyone played with Scriptable and Shortcuts on iOS to run arbitrary code?
No but that is interesting, some neat things are possible with this for sure
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
the JS lib im using freaks out if I set the date to 1 February but has absolutely no problem with the 32nd of January
https://img.fanman03.ml/O2MmJ.png
lol
Nice lol
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
there are already more of those
i know
but how do i add/edit them
I know that to see all available ones i do cmd+J
Ah no idea, never needed to add another one
ah
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
thanks!
Developing a variation of ZeroMatter kernel for oneplus 5/5t, current stable oc is 2.75 on small cluster and 3.2 on big cluster
a surprising 6 hours ish SOT
Any one have real world development experience with GraphQL? I am curious about what advantages and disadvantages it has
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
@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
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
}```
🤔
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
@twin arch i do
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
ok i just ran the installer earlier and it didn't work
vm is restarting ill check in a sec
do you agree this looks right?
didn't work
thats not a problem of the runtime, thats you.
to be more specific, you should put your code into a jar.
in an IDE?
