Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists


Discord Now Fully Linked With 420chan IRC


View Thread Reply
- Mon, 07 Nov 2016 19:02:44 EST imZrmU2Q No.36284
File: 1478563364717.png -(211453B / 206.50KB, 500x500) Thumbnail displayed, click image for full size. LUA
How do I trigger a script by pressing 2 buttons at the same time?

function OnEvent(event, arg)
if IsMouseButtonPressed(4) then

until not IsMouseButtonPressed(4)

is what i have now but I would like to be able to have the script trigger when I press mousebutton 1 + mousebutton 3
5 posts omitted. Click View Thread to read.
Angus Greendock - Wed, 09 Nov 2016 20:45:19 EST imZrmU2Q No.36292 Reply

its for a g502 mouse the game i am using it in cannot detect these scripts nor would they even bother trying to.
Reuben Dissleson - Fri, 11 Nov 2016 08:30:38 EST 8AGoqQnQ No.36295 Reply
i've never used lua, but, wouldn't this be as simple as
if isMouseButtonPressed(1) and isMouseButtonPressed(2)
Simon Bennermig - Wed, 16 Nov 2016 13:51:25 EST uJY5Antv No.36300 Reply
Who is that cute girl?

Connect me to the IoT

View Thread Reply
- Thu, 29 Sep 2016 04:30:17 EST kp+BhG+A No.36205
File: 1475137817948.png -(1013306B / 989.56KB, 1920x1080) Thumbnail displayed, click image for full size. Connect me to the IoT
Hey /prog/,
In the Internet of Things, how do people get all these devices connected to their internet? Do the devices need a keyboard interface of some sort so users can enter their wifi info? I just don't understand how you can achieve connectivity without having some local relay that handles the internet part for you - which seems ridiculous...
I'm just trying to get a nightlight connected and it seems ludicrous to have to program a display and pushbuttons just for password entry. I hope I'm missing something
5 posts omitted. Click View Thread to read.
Shitting Blythecocke - Thu, 29 Sep 2016 18:01:57 EST cyPUa9oe No.36211 Reply
I don't even know where to start with you. Everything about this is retarded. Buy a kit from Sparkfun and follow some tutorials or something. That sounds like more your speed.
Sophie Gunkinbury - Sat, 01 Oct 2016 20:02:10 EST WLOo3E7i No.36216 Reply
>comes here looking for an actual technical solution to something
Try /tech/
Reuben Dissleson - Fri, 11 Nov 2016 08:28:34 EST 8AGoqQnQ No.36294 Reply
OP, one way to do it would be to have your device connect to your phone via bluetooth, then do the wifi setup for your device from your phone. You could make a simple app for this, or you could just use a pre made app to send information across bluetooth.

Excel and Java

View Thread Reply
- Mon, 31 Oct 2016 23:05:50 EST AuWKAElz No.36269
File: 1477969550782.png -(70558B / 68.90KB, 1143x530) Thumbnail displayed, click image for full size. Excel and Java
I work as an administrative assistant for a life insurance agent so I need to make calls to clients and keep a somewhat detailed record (in the form of an excel file such as pic related). Is there a way I can create a program, preferably in java, which extrapolates data from the individual sheets into a single cohesive database which I can make a GUI for to search for specific phone number, name, etc. and see the results associated with it? My Java skills are basic to moderate but if you point me in the right direction, I'll probably get how to do it. thanks y'all
5 posts omitted. Click View Thread to read.
Nell Bollerhitch - Thu, 03 Nov 2016 13:56:07 EST AuWKAElz No.36278 Reply
I'm going to look into your second suggestion and probably just write and read the files in excel. What I wanted to do though is read the information from the files into a map or list of 'client'-data type objects that have their first and last name as well as the date and time called and also the results of that call. That way I can make a program through which I search a client's name and it uses the name as a key for the map and returns the associated information, you feel?
Nell Bollerhitch - Thu, 03 Nov 2016 13:56:43 EST AuWKAElz No.36279 Reply
I mostly just want to do it for a fun project because I'm taking an intro java course at my cc right now
Ebenezer Mavingshit - Thu, 03 Nov 2016 15:11:53 EST gEtE4wNA No.36280 Reply
Sure, go wild with it, making something practical is a great way to learn. Just start with figuring out how to read excel files in Java and go from there. Then you can dive into the world of relational databases, so you can run SQL queries on your data, maybe you wanna do different queries, like look for a client by phone number, or find all the appointments for next thursday, or whatever.
SQLite is a great starting point, single file database so you won't have to worry about setting up a server and all that stuff, just focus on learning SQL.

Python, Celery and threading/async

View Thread Reply
- Wed, 02 Nov 2016 10:36:00 EST gEtE4wNA No.36274
File: 1478097360593.jpg -(59959B / 58.55KB, 900x587) Thumbnail displayed, click image for full size. Python, Celery and threading/async
What is a good proper way to asynchronously run multiple http requests from within a celery task?
Some background; I am coding a web API with Flask, when the API receives a request it spins up a celery task in the background.
The celery task itself needs to run several (>100) outbound web requests, and the problem is, the whole process is too slow. But since most of the waiting time is just waiting for web requests to return, what I want to do is run some of those requests in parallel to speed things up.

I know how to use multiprocessing.ThreadPool and whatnot, but how would this work if I have a bunch of celery workers spawning multiple threads at the same time? I don't wanna kill the server if I get a spike in traffic, and I assume if I throw some of those requests over to one of the other celery workers (nest the tasks) I'll end up with a deadlock.
Can I have something like a shared threadpool across all celery workers, or what is the proper way to handle this?

Jack Mungergold - Wed, 02 Nov 2016 23:10:00 EST 2i397rxA No.36276 Reply
If you're asking a question like this, I would tell you to stay away from the multiprocessing module. Eventlets are probably what you want. If you're worried about the thread count or network resources, mock it up and try to run the server into the ground before you over engineer anything. The more realistic concern is probably rate limiting with third party services. I'll bet you can do that more confidently with Redis than what Celery gives you out of the box.
Ebenezer Mavingshit - Thu, 03 Nov 2016 08:59:50 EST gEtE4wNA No.36277 Reply
The main reason I'm using celery is because the requests are gonna be coming in through a mobile app from users who are potentially on shoddy connections, so requiring to keep an open http request for >30 seconds doesn't seem very reliable. So once I get the request, I just send it off to celery and respond right back with a task ID and the app polls for the result every x seconds.

I'm looking into gevent and eventlet right now, sounds like it's what I need. Should give me some concurrency, without out the complications of spawning multiple threads on each celery worker. Then if I can speed things up enough, I might not even need celery at all.

its not about the language, just the logic

View Thread Reply
- Mon, 24 Oct 2016 08:33:25 EST CRO9Njb3 No.36253
File: 1477312405053.jpg -(30129B / 29.42KB, 284x177) Thumbnail displayed, click image for full size. its not about the language, just the logic
Fuck moving shit from one language to another.

building a universal translator for this shit.
so im going to pass everything to, lets say a .txt file since it's universal as shit.

what's a comparable attempt at this? I need to see where they stopped on the path of it being a truely universal translation.
5 posts omitted. Click View Thread to read.
Phoebe Sammerstone - Mon, 24 Oct 2016 17:10:28 EST xLz8+Ihk No.36259 Reply
I used to work for a modernization/migration company.
We would take your existing source code, parse it into a language agnostic model, then convert it to a language specific model, then generate into the new language. For example we'd parse COBOL, put it in a transitional model, then translate that model to any other language you wanted, i.e. C++. The process seems like voodoo, and it basically fits your idea of a universal language. Trans-piling is something different.
Hannah Denkinfeck - Tue, 25 Oct 2016 21:12:18 EST fI0+sbkd No.36260 Reply
You do realize that all programs ultimately run on one of three(-ish) instruction sets, right? And that all three of those could be mapped to a turing machine?

What problem are you trying to solve?
Basil Blollypadging - Fri, 28 Oct 2016 22:41:35 EST gA3E5l0l No.36268 Reply
I am inclined to say that this is impossible. First of all, some languages have referential transparency while some do not, so any universal translator will need to "understand" what it's translating in a relatively deep way. For anything that touches memory directly you have not one model of computation but many depending on what type of machine the program is being run on and what state it's in. For purely functional languages you could spew out an equivalent program in a different purely functional language, but that program might not have anywhere near the same meaning to a human programmer, since in general there are many sources that compute the same function.

Actually, this might just reduce to the halting problem. If I had a universal program translator then it would send source code for a program that does not halt to source code for another (equivalent) program that does not halt. However, we know by the halting problem that there is no finite-length program which can make this determination in a finite amount of time, so the universal translator cannot exist.

Could i be a proffessional programmer?

View Thread Reply
- Tue, 18 Oct 2016 20:47:22 EST smMtB5CL No.36249
File: 1476838042100.jpg -(51659B / 50.45KB, 409x293) Thumbnail displayed, click image for full size. Could i be a proffessional programmer?
I work in a McJob. I had to control key lends of a building and send email when the badge arrives.
I made a program in Java, that reads the excel file .xlsx with the key numbers and name and put it on a sqlite3 db.
I don't have access to the enterprise database, so II use a webscrapping lib to get the name of the employee by the internal id.
It was possible to play with sql and get some usefull stuff as search for people or keys. All employee was registered with date/hour that got the key, when got it and when delivered.

About the badge, I made a program that reads the input of a badge reader, that I found on reception deskt. Remember I used a web scrapping lib? I got the number of the badge, figure out how to get the registry by the badge number, search the website of intranet got the name and email. Put the email on a sender list and set the program to open a new email, openniing the default email program, calling all to get the new badge with a default message. Much less painful than typing all emails.

I think that my MVC wasn't very good, but it worked like a charm.
The ugliest code was on webscrapping because it was try and error, since the site didn't named any tags!

Do you think I could work coding? I'm I good programmer? I do it just for fun and hobby.
I don't know how professional programmers job is.
In level of difficulty, what my program is?
Charlotte Dishkud - Wed, 26 Oct 2016 03:27:30 EST 27ni4VQG No.36261 Reply
> I think that my MVC wasn't very good
Does your program have a UI? Did you even try to separate the UI into a logical model, presentation and user interaction components?

If not, you're not doing MVC. That's not necessarily bad, if you don't have a UI, you don't need it anyway. Don't be a framework fanboy that has to tick off all the buzzwords on every project.

It sounds like you could work as a coder. I've worked with people who couldn't do as much on their own. Why not apply for a job as a junior/trainee programmer? You'll get trained much quicker in the trenches than experimenting on your own.


View Thread Reply
- Wed, 26 Oct 2016 19:49:39 EST ntxuGVLh No.36263
File: 1477525779957.jpg -(19272B / 18.82KB, 256x455) Thumbnail displayed, click image for full size. Facebook
How can I get someone to unblock me on Facebook.
The girl took my virginity I need to talk to her
Basil Bobbermotch - Wed, 26 Oct 2016 23:09:01 EST rBqpmoLn No.36264 Reply
You've never had sex don't fucking lie to us OP
Beatrice Buzzdock - Thu, 27 Oct 2016 09:49:24 EST CUa5MQaI No.36265 Reply
>The girl took my virginity I need to talk to her

Why, do you need her to give it back?

python noob

View Thread Reply
- Mon, 22 Aug 2016 04:28:41 EST w6YT+uIi No.36039
File: 1471854521962.gif -(2052859B / 1.96MB, 446x252) Thumbnail displayed, click image for full size. python noob
Give me a good noob programmers book to programming in Python 3

im rusty since i havent programmed since highschool

a link to a torrent or a link to an online site would be appreciated
6 posts omitted. Click View Thread to read.
Archie Bosslewell - Tue, 18 Oct 2016 02:50:22 EST fdIwp4pX No.36247 Reply
Python is an awesome language, however I would not wish it on my worst enemy as a first language. Yes, it's easy to understand and the syntax is logical. Yes, many things are vastly simplified by how easy they are to implement with just a few lines of code. However:

The community sucks, the tutorials suck, and the flexibility sucks.

Everybody wants to force on you their way of doing things but they never explain their reasoning(which is usually wrong or just a preference anyway).

Tutorials are bad for this reason also, and there's a very limited selection of them.

There's not much you can do on a learner's level besides print Fibonacci

Want to make a game? Learn new syntax using shit libraries
Want to make a gui? Learn new syntax using shit libraries.
Portability and multiple platforms? Nightmare.
Multiple "official" python versions = Libraries incompatible, tutorials inconsistent

If you get decent at it but don't want to use it for what it's designed for you are screwed and must learn another language again.
-Anyone can read your code
-Can't make modern games without severe performance issues and lack of support
-No multi threading
-Difficult to make portable

Honestly I could rant for hours. I also can't comprehend how anyone would want to learn something the "hard way" but that pretty much sums up the community for you
Esther Dipperhane - Tue, 18 Oct 2016 08:08:09 EST 9QSfnS0r No.36248 Reply
Python just isn't a language that is widely used for game development.

In scientific computing and somewhat in the web backend development things look quite different. For web development you can pretty much choose any language that is widely used enough.

Python is the best tool if you want to write your own command line utility and to generate and manipulate data that is stored to be used by another program.
Want to calculate a lookup table for rgb LEDs based on spectrometer images?
Want to parse a logfile for certain error messages?
Call a web API or scrape some data?
Need to generate some proprietary XML like file format?

All things python is simply the best tool.

If you want to use python in game development properly you can, using ctypes and C/C++. Write the game logic in python and the engine and game loop in C/C++.

I know there are weird people who are obsessed with it and use it for stuff it shouldn't be used like GUI programs and games. This also brings me to the performance "issue"...

The sane part of the python community doesn't do performance critical code in the language itself, but rather takes the approach I mentioned above.
But I think python is probably better equipped to make a game than most other languages except C, C++ and C#. Try to write a game in Go for instance...

PS: If you want just to develop games, like pythons syntax but don't want to deal with the issues associated with a hybrid design or performance issues take a look at

It has a pythonic scripting language built in, along with an editor and so on what game frameworks provide. It's no unity or unreal engine, but still...
Graham Hecklebury - Wed, 19 Oct 2016 10:31:07 EST CUa5MQaI No.36250 Reply
1476887467203.jpg -(42344B / 41.35KB, 960x540) Thumbnail displayed, click image for full size.

Invent Computer Games With Python is a pretty good book for beginners, and you can read it all online for free on their website (https://inventwithpython.com/chapters/). It's focused on writing simple games, but the stuff you learn can be applied to anything else, and writing games is a very rewarding way to learn programming IMO.

Now I'll start unnecessarily editorializing: Python is decent as an introductory language, just to learn the very basics of programming like conditional statements and loops and arrays, but if you already know that stuff (and it seems like you do) you should just jump right into something like C++ or Java because there's vital stuff you need to learn there that you won't learn with Python; dealing with static typing, memory management, optimization, etc. And as much as it tries not to be, Python is pretty lenient and lets you get away with doing a lot of stuff you shouldn't do and you'll end up having to get out of a lot of bad habits. Same thing happened to me when I first started programming in BASIC (I'm old) - when I moved on to Pascal and C++ I had to unlearn all the stupid things BASIC let me do.

Learning HTML/CSS/JS for UX/UI Design?

View Thread Reply
- Thu, 29 Sep 2016 21:17:39 EST Wfn6QLML No.36212
File: 1475198259621.jpg -(108407B / 105.87KB, 750x938) Thumbnail displayed, click image for full size. Learning HTML/CSS/JS for UX/UI Design?
Is it worth it to learn HTML/CSS/JS/jQ if i wanted to design user interfaces and do human-computer interaction shit as a career? Or could I get away with just Adobe Creative Suite and mockup tools like Balsamiq or Axure?
Emma Sottingpure - Thu, 29 Sep 2016 21:34:53 EST cyPUa9oe No.36213 Reply
In addition to being the lingua franca of structured design, you really don't want to lock yourself into a bunch of proprietary shit.
Molly Pecklefudge - Mon, 17 Oct 2016 17:44:53 EST bQyU08lo No.36244 Reply
> you really don't want to lock yourself into a bunch of proprietary shit

considering proprietary shit is the only thing used in industry, there's not really an issue with locking yourself in
Fucking Gockledirk - Mon, 17 Oct 2016 18:52:12 EST l4yKp8I5 No.36245 Reply
I wasn't aware UX was an industry unto itself.

D is cool

View Thread Reply
- Mon, 10 Oct 2016 19:38:59 EST CUa5MQaI No.36241
File: 1476142739772.png -(7964B / 7.78KB, 317x317) Thumbnail displayed, click image for full size. D is cool
I started messing around with D recently and I have to say, I really like it. I tried Go before this and it's pretty awful, it's like a dumbed down, verbose version of C for the retarded web 2.0 cloud computing generation. But D seems like it could be a worthy contender to C++ if people were interested enough in it (but unfortunately they're not and never will be)
Fucking Shakewell - Mon, 10 Oct 2016 20:07:48 EST WegIBFzD No.36242 Reply
I don't think anything will unseat C++ as the de facto systems-application language, but I have hopes for Rust. D doesn't look attractive to me.
Augustus Honeystone - Wed, 12 Oct 2016 17:55:44 EST CUa5MQaI No.36243 Reply

I would like Rust more if it didn't have weird syntax

Imperative was a mistake, OOP was a mistake

View Thread Reply
- Sat, 05 Dec 2015 21:40:59 EST RGQiywhV No.34856
File: 1449369659078.png -(19671B / 19.21KB, 400x300) Thumbnail displayed, click image for full size. Imperative was a mistake, OOP was a mistake
Haskell paves the way to the future, though cabal is shit. Something like backpack, which aims at a versioning system which accounts for library functionality rather than human hur-de-dur-I'll-just-increment-this-position versioning is the future. Stack is okay but curating is not good enough unless you have massive involvement.
33 posts and 2 images omitted. Click View Thread to read.
Charles Worthingham - Sun, 18 Sep 2016 22:57:24 EST RPCblsN0 No.36166 Reply
No. I'm not going to let you force that shitty meme.
Nell Sidgelan - Mon, 10 Oct 2016 19:10:42 EST CUa5MQaI No.36240 Reply
Haskell is for enthusiastic manbabies


View Thread Reply
- Fri, 23 Sep 2016 19:29:38 EST caKG/2O4 No.36196
File: 1474673378851.png -(286389B / 279.68KB, 395x575) Thumbnail displayed, click image for full size. Imageboard
I am looking to learn how to program an imageboard, I would love some help
1 posts omitted. Click View Thread to read.
Frederick Clayson - Wed, 28 Sep 2016 15:32:41 EST xLz8+Ihk No.36204 Reply
If you're taking input from users and putting it in a database you should bear this in mind;
the user cannot be trusted
the user is an enemy
the user wants to kill you, your family, your database and your webhost
the user wants to spread malware and cp
the user wants to spam their retarded message everywhere
Only when you truly see the user as your mortal foe will you know the user.

Object serialization in C++

View Thread Reply
- Sun, 02 Oct 2016 00:42:54 EST CUa5MQaI No.36217
File: 1475383374511.png -(7997B / 7.81KB, 634x396) Thumbnail displayed, click image for full size. Object serialization in C++
So I'm writing a tile-based platformer game with SDL. I just wrote a level editor, but the only thing missing is save functionality. I'm pretty new to serialization, the only time I've done it in the past was in a roguelike game I wrote in Python ages ago that used a YAML serialization library, and I've never done it in C++. Everyone says to use Boost, but I'm running Codeblocks on Windows and trying to compile it for that has been nothing but trouble, and all the information I've found on how to do it is out of date. Is there another decent library for serialization, preferably one that has pre-compiled builds available?
2 posts omitted. Click View Thread to read.
Angus Hiblingstone - Mon, 03 Oct 2016 11:40:38 EST 9QSfnS0r No.36224 Reply
Don't use codeblocks, if you want a decent open source c++ IDE get
qt creator
You don't have to use qt with it and are perfectly fine if you're just using SDL.

But honestly if you don't own a premium IDE package doing a full project in C++ is a pain. Why not make the game loop/engine in C++ and use Ctypes and python for the high level stuff. Even more so persisting and serializing data would make much more sense to be done in python.
Nathaniel Pedgechadging - Sat, 08 Oct 2016 04:11:24 EST 4AC8OQBZ No.36236 Reply
OP you should use Visual Studio now that you can get a free version of it that doesn't have all of the features stripped out. It's what most other people use to build large projects on Windows.
Shitting Bidgeridge - Sat, 08 Oct 2016 07:42:00 EST OheqWBBY No.36237 Reply

Oh, and don't forget to setup a CI environment, because that's also a must in large projects.

Xamarin app design

View Thread Reply
- Tue, 04 Oct 2016 17:38:21 EST ZvbVja19 No.36226
File: 1475617101731.jpg -(40442B / 39.49KB, 450x287) Thumbnail displayed, click image for full size. Xamarin app design
Hello, I've got a project as a paid job. It is basic Android app. I do it in Xamarin. I have no experience with Xamarin whatsoever, but I really need money so I take any jobs. Can you, guys, please help me out with some advice before I start doing it more deeply?

What's it used for?
10+- people in clubs scanning QR codes, that are uploaded to some internet storage in real time under their ID. Purpose is to determine how many QR codes were scanned in each club during the night.

-QR code scanes
code is compared to the list of possible codes and list of existing codes. Which means, code must match the list of possible codes and cannot be scanned more than once.
-code is then sent to some internet storage under curren ID

This is it. Of course I downloaded components for scanning QR codes, some uploader etc.. But I would like to ask some questions on best design possible used for this app.

Log in - Since there is only a certain number of accounts and we don't need any high security. (I higly doubt that some club bouncer would disassemble the app to do some scam) Is it enough and even the best way to authenticate via local database of users? Even so local that the login-password combos would be stored in code?

Now user is logged in and can start scanning.
Scan is successful -
  1. It needs to look up in some file, whether the code is valid. What way should I store the file? As JSON? XML? plain text?
  2. It needs to look up in some file, whether the code hasn't been scanned yet.

Is it wise idea to make some local storage of scanned codes and whenever it is possible (being online) to send it to the internet storage?

What is the best way to again to store already scanned codes? Again JSON XML?

And finally, what is the best way to send the data to the net storage? Should I send the whole file and replace it every time new scan is scanned?

I would be able, of course, to implement these things in some way or another to provide the functioning needed. This way, however, I would learn nothing, since I doubt I would use good/recommended/standard techniquies to do such basic work.

I will appriciate all the help :) Thank you very much for even reading the post :)
Basil Honeyham - Wed, 05 Oct 2016 14:10:35 EST 9QSfnS0r No.36227 Reply
>Hello, I've got a project as a paid job. It is basic Android app. I do it in Xamarin. I have no experience with Xamarin whatsoever,


Also the whole point of qr codes is to just have a short string of numbers, you "upload" the strings using a simple http request and the string url encoded to some endpoint. You store the string using SQL(ite).
The backend then replies with a 201 (created) message if you got an empty result to a simple query and a 409 (conflict) if it's already there.

Again, I'm baffled how you managed to convince somebody to pay you with that little knowledge.
Basil Honeyham - Wed, 05 Oct 2016 14:29:46 EST 9QSfnS0r No.36228 Reply
Also storing anything local doesn't make sense, you have to connect to a sort of service either way to know if the code has been scanned.

Codes can be just a random number stored in a table, but it might turn out that doing it the right way is just as easy (or easier) using
json web tokens
for instance.

I still can't fathom how somebody would pay somebody that clueless for an app that would basically replace 4-6 people's labor, worth 5 figures in reality.
George Nickleworth - Fri, 07 Oct 2016 15:39:03 EST xLz8+Ihk No.36235 Reply
And I wonder why there is so much shit software around...

Report Post
Please be descriptive with report notes,
this helps staff resolve issues quicker.