420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
How to approach DSP by Henry Merringstedging - Sat, 26 Nov 2016 11:16:55 EST ID:9QSfnS0r No.36315 Ignore Report Reply Quick Reply
File: 1480177015438.jpg -(158197B / 154.49KB, 1024x684) Thumbnail displayed, click image for full size. 158197
Do any of you have any tips in regards of how to learn DSP programming.
By that I don't mean architecture dependent idiosyncrasies or optimizations but learning to apply the theoretical stuff.
Things like
  • Digital Filters, IIR & FIR
  • Oversampling & anti-aliasing
  • Impulse Frequency domain transforms, FFT & co
  • Wavelets
  • Real time scheduling

Most of the theory out there seems to be written for people who have a math or engineering degree, or at least are working on one.
I don't mind if an algorithm is expressed via a formula if it's necessary but I'd like to see something where the math behind it is explained by example as well.
5 posts and 1 images omitted. Click Reply to view.
>>
Jack Daffingban - Wed, 30 Nov 2016 17:59:05 EST ID:9QSfnS0r No.36345 Ignore Report Quick Reply
>>36344
Thanks alot for the suggestion. Although I will probably not buy this book (have you looked on amazon, even the "used", really counterfeit copies are insane) I've found a few similarly named pdf and dvju files already on my hard drive. 'Signals and Systems' seems to generally point to more interesting stuff than 'DSP'. ;)
>>
Jack Daffingban - Wed, 30 Nov 2016 18:15:11 EST ID:9QSfnS0r No.36346 Ignore Report Quick Reply
>>36344
>There are examples in that book but you're going to need at least Calc 1 to understand what's going on.
I do, although probably a bit rusty.
The one thing I do remember is this and I still begrudge them for it:
They thought that differential equations are solved into other equations, that there are different kinds of them, but neither any practical applications nor methods on how to solve them (except the trivial shit.)
Asking for more always led to the condescending answer like "You won't understand that, it's only for college.
>>
Nathaniel Hoshcheck - Wed, 30 Nov 2016 20:43:16 EST ID:gA3E5l0l No.36347 Ignore Report Quick Reply
>>36346
You really do need a lot of advanced math to tackle most nontrivial differential equations. No one was trying to hide anything from you. It takes years to master the prerequisites and your teachers may not have even known enough about it themselves.
>>
John Dartstock - Wed, 30 Nov 2016 22:04:55 EST ID:US9Lx3Qr No.36348 Ignore Report Quick Reply
1480561495496.png -(25309B / 24.72KB, 1000x460) Thumbnail displayed, click image for full size.
>>36345
The counterfeit looking copies are international versions for markets where an $60-80 book cost is prohibitive. I paid $30 for one in school and was pretty happy considering I paid 80+ for about 4 books in a normal semester. It had cheaper paper and was not hard cover but that wasn't an issue for my use. Here's what I had
http://www.ebay.com/itm/New-Signals-and-Systems-by-Oppenheim-2ed-INTERNATIONAL-EDITION-/122196355379?hash=item1c73786933:g:hlkAAOSwT5tWIwk2

If you have an ebook version go with it. It's your decision whether or not a paper copy is worth the $20. The information is the same.

> 'Signals and Systems' seems to generally point to more interesting stuff than 'DSP'. ;)

It's a general book that is designed to give the reader an undergraduate level understanding of the subject in the title. It covers both continuous and discrete domains. It pays particular attention to linear time independent (LTI) systems because all kinds of neat things happen to make your life easier when you assume your system is LTI. All of the stuff in the OP is LTI. Not sure about wavelets but I think so. I haven't messed with them. If you understand that book you'll have a good foundation to build on in any application you want to get in to in signal processing. That's not to say you'll know everything you'll need to know but when you go to learn about a specific application you're going to need 90% of that book unless you're just copy and pasting stuff code or dropping in libraries.

>>36346
>I do, although probably a bit rusty.

That's okay. You can review as you go but largely what you need is things like an integral is an area under a curve and a derivative is a rate of change. Your signals aren't usually going to be well defined mathematically but if you amplify a signal by 2 and then integrate it you should know the result is going to be twice the integral of the original.
Comment too long. Click here to view the full text.
>>
Cornelius Blatherstone - Tue, 27 Dec 2016 04:55:12 EST ID:23ENyef2 No.36414 Ignore Report Quick Reply











New to js by Charles Blavinglock - Sun, 02 Oct 2016 16:36:03 EST ID:OijTI/50 No.36220 Ignore Report Reply Quick Reply
File: 1475440563324.png -(23416B / 22.87KB, 909x505) Thumbnail displayed, click image for full size. 23416
Hey /prog/

Can you help me out? I don't understand why this global variable won't change.
I want the user to change it through a pop up window, but when calling it in the main window, it says undefined.
1 posts omitted. Click Reply to view.
>>
Charles Blavinglock - Sun, 02 Oct 2016 17:30:28 EST ID:OijTI/50 No.36222 Ignore Report Quick Reply
>>36221
Yes! It works, thank you!
>>
Polly Worthingford - Sun, 02 Oct 2016 18:38:20 EST ID:xLz8+Ihk No.36223 Ignore Report Quick Reply
>>36220
Don't use global variable my man, that's some 90s shit.
It's ok if you are testing/learning, but it's considered very bad form these days.
>>
Lydia Pockhood - Tue, 04 Oct 2016 13:00:03 EST ID:9QSfnS0r No.36225 Ignore Report Quick Reply
>>36223
Still better than singletons.
>>
Edwin Dundlechidging - Wed, 05 Oct 2016 15:03:54 EST ID:xLz8+Ihk No.36229 Ignore Report Quick Reply
>>36225
No.
>>
BrU - Sun, 27 Nov 2016 15:08:43 EST ID:OEFE9/xF No.36330 Ignore Report Quick Reply
//Try declaring the variable like this.
var TEST=0;


Setup free online database and site? by Lydia Mallerworth - Wed, 31 Aug 2016 00:26:51 EST ID:x5udGzon No.36083 Ignore Report Reply Quick Reply
File: 1472617611556.jpg -(75412B / 73.64KB, 544x298) Thumbnail displayed, click image for full size. 75412
So I'm working on a to do list app project with some friends. It's just going to be for pc, and it's just a personal project. We're thinking that it'll run from a web site.
I'm hoping you guys can point me towards the easiest way to do this for free. I figured we could just send stuff to something like dropbox or gmail, and then have the program retrieve the data from there? Is there any other online database that we could use for free, or would it be easier to just setup are own server? Also, is there any free service that would let us put up a page for the app, or would it just be easier to write a desktop program for the app?

Thanks for any help you guys can offer, we've never done anything like this before. Hope I've made what I'm asking about clear.
4 posts and 1 images omitted. Click Reply to view.
>>
Lydia Mallerworth - Wed, 31 Aug 2016 18:00:04 EST ID:x5udGzon No.36090 Ignore Report Quick Reply
1472680804556.jpg -(92601B / 90.43KB, 1440x614) Thumbnail displayed, click image for full size.
Well, it's just a to do list, so I'm thinking simple text should be all we need.
>>
Edwin Coblinglurk - Wed, 31 Aug 2016 18:09:35 EST ID:+VFLIQ+z No.36091 Ignore Report Quick Reply
>>36090
I'm thinking you don't know what a database is.
>>
Edwin Hepperwater - Thu, 01 Sep 2016 12:14:52 EST ID:oD19VABU No.36093 Ignore Report Quick Reply
Use pythonanywhere.com, you get a free python web host+mysql database. Use flask and sqlalchemy to build your web backend and database stuff. There are tutorials on that stuff all around, enough to get you started. Flask comes with the jinja2 templating engine to make your html, add some javascript if you want things more interactive.
Ask questions for any specific problem you run into...
Happy hacking.
>>
Fucking Fiblingmod - Fri, 02 Sep 2016 14:20:48 EST ID:aJAX07lc No.36098 Ignore Report Quick Reply
>>36091
You can use a flatfile for a database, but you'd have to have a very good reason to.
https://en.wikipedia.org/wiki/Flat_file_database.

>So I'm working on a to do list app project with some friends.
OP, if you just need a todo list use Wunderlist. If you want to make a todo list AS the project look at cheap MySQL and PHP hosts for something quick and dirty.
>>
Martin Pellyford - Thu, 24 Nov 2016 02:35:16 EST ID:hLaCgUd1 No.36313 Ignore Report Quick Reply
>>36083
If you don't want to get your hands dirty with the db, Firebase can store your data and make it easily accessible as a JSON object.
https://firebase.google.com


Send SMS through Python? by Charles Chinkinbadging - Sat, 14 Nov 2015 16:41:32 EST ID:7tlwV1lw No.34829 Ignore Report Reply Quick Reply
File: 1447537292602.jpg -(57138B / 55.80KB, 640x449) Thumbnail displayed, click image for full size. 57138
I have been trying to code a text messaging program, for when I don't have a phone. I have so far experimented with smtplib and such, but it just doesn't work..

I have used this example from this page
http://alextrle.blogspot.com/2011/05/how-to-send-sms-message-with-python.html

I have managed to send through my gmail account, but not with the program script? Am I missing something. My code looks just like the one there. Nothing happens though.
>>
Cedric Shakebury - Sat, 14 Nov 2015 17:17:14 EST ID:+Pttg+YM No.34830 Ignore Report Quick Reply
That's old as fuck. You shouldn't be surprised if it doesn't work without modification. Google's really big on OAUTH2, maybe they require you to use it now?
>>
Henry Turveyman - Sun, 15 Nov 2015 04:07:29 EST ID:c06WQfKp No.34831 Ignore Report Quick Reply
If your IP address isn't blacklisted, you can send the e-mail yourself over one of those e-mail to SMS bridges.
>>
Basil Pittspear - Sun, 15 Nov 2015 16:50:40 EST ID:en0VEAtu No.34832 Ignore Report Quick Reply
Python you can just put a wrapper around C functions, and the SS7 API only has a handful of functions to implement which is what you want, a Signaling System 7 stack. Beware these are wide open to abuse to secure it properly
>>
Frederick Peblingbutch - Wed, 23 Nov 2016 15:15:35 EST ID:QFj3NJQM No.36311 Ignore Report Quick Reply
>>34829
twilio python API
>>
Edward Chummerwudge - Thu, 24 Nov 2016 02:39:46 EST ID:ZleOgm/Q No.36314 Ignore Report Quick Reply
>>36311
November 2015


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

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

until not IsMouseButtonPressed(4)
end
end

is what i have now but I would like to be able to have the script trigger when I press mousebutton 1 + mousebutton 3
3 posts omitted. Click Reply to view.
>>
Nathaniel Creffingfetch - Tue, 08 Nov 2016 16:47:36 EST ID:imZrmU2Q No.36290 Ignore Report Quick Reply
>>36286

source is in SA not atrap sadly


>>36288

just a quick lua for a mouse pulldown script and I am shit at coding since I have been doing it for about a week.
>>
Isabella Shakecocke - Tue, 08 Nov 2016 22:17:22 EST ID:ftzGhvag No.36291 Ignore Report Quick Reply
>>36290
I don't know LUA so I can't help, but we aware that 'quick hacks' often have a way of sticking around. Might be better to go with something clickable or a keyboard shortcut instead.
>>
Angus Greendock - Wed, 09 Nov 2016 20:45:19 EST ID:imZrmU2Q No.36292 Ignore Report Quick Reply
>>36291

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 ID:8AGoqQnQ No.36295 Ignore Report Quick Reply
>>36292
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 ID:uJY5Antv No.36300 Ignore Report Quick Reply
Who is that cute girl?


Connect me to the IoT by Eliza Tillingdock - Thu, 29 Sep 2016 04:30:17 EST ID:kp+BhG+A No.36205 Ignore Report Reply Quick Reply
File: 1475137817948.png -(1013306B / 989.56KB, 1920x1080) Thumbnail displayed, click image for full size. 1013306
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
3 posts omitted. Click Reply to view.
>>
Cornelius Tootwater - Thu, 29 Sep 2016 17:13:12 EST ID:VF6SQKpL No.36209 Ignore Report Quick Reply
>>36208
Alright nyiguh nyiguh, I have read a shit ton of iot papers, but all they talk about is the usual buzzwords like M2M, P2M, what have you.
All I wanted to know is if there's an easy way to connect my fucking night light to wifi, but I guesss that's not a good enough question for your frekin board.
Maybe if I had asked, "hey /prog/, what's a good book to learn python?" or "what's your favorite part about Haskell?" but holy frekin Damn if someone comes here looking for an actual technical solution to something.
>>
Martin Clayworth - Thu, 29 Sep 2016 18:01:06 EST ID:9QSfnS0r No.36210 Ignore Report Quick Reply
These days everything is "iot", while it's really not.

The crux of the matter is ISPs still don't allow their private customers to a) run their own router and b) assign ipv6 addresses to their devices.
For instance the Philips Hue gateway may be a nifty contraption and it let's you control the illumination of a room using zigbee light-bulbs, but they are not INTERnet of things because they do not have a publicly accessible ip address.

Enough of the rant, if you want to do "IOT" stuff get a Raspberry PI 3, if you know python you are all set.
>>
Shitting Blythecocke - Thu, 29 Sep 2016 18:01:57 EST ID:cyPUa9oe No.36211 Ignore Report Quick Reply
>>36209
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 ID:WLOo3E7i No.36216 Ignore Report Quick Reply
>>36209
>comes here looking for an actual technical solution to something
Try /tech/
>>
Reuben Dissleson - Fri, 11 Nov 2016 08:28:34 EST ID:8AGoqQnQ No.36294 Ignore Report Quick 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 by Cornelius Gandlewill - Mon, 31 Oct 2016 23:05:50 EST ID:AuWKAElz No.36269 Ignore Report Reply Quick Reply
File: 1477969550782.png -(70558B / 68.90KB, 1143x530) Thumbnail displayed, click image for full size. 70558
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
3 posts omitted. Click Reply to view.
>>
Beatrice Blommerwill - Tue, 01 Nov 2016 20:30:25 EST ID:WLOo3E7i No.36273 Ignore Report Quick Reply
>>36272
Then you could either just save your worksheet as a csv file to easily read it in, or use the Apache POI.
>>
Phineas Pattingfun - Wed, 02 Nov 2016 10:48:28 EST ID:gEtE4wNA No.36275 Ignore Report Quick Reply
>>36269
Trust me, any kind of GUI you or anyone writes is gonna be vastly less powerful than Excel. I suggest learning how to use it better, learn some VB scripting or whatever you use in Excel these days.
However, if you're dealing with shit tons of data (more than you can reasonably fit in one excel sheet), then maybe you need a database backend. I actually think MS added a feature for using MS SQL server as a database backend for Excel, it sounds ridiculous, but it might be what you need.

If the data across all excel files is small enough to keep in memory on your workstation, then what I would do is simply create a script to concatenate all the sheets. Look up how to read and write excel files in your programming language of choice (Java) and start by combining all the files.
>>
Nell Bollerhitch - Thu, 03 Nov 2016 13:56:07 EST ID:AuWKAElz No.36278 Ignore Report Quick Reply
>>36275
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 ID:AuWKAElz No.36279 Ignore Report Quick Reply
>>36275
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 ID:gEtE4wNA No.36280 Ignore Report Quick Reply
>>36278
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 by Phineas Pattingfun - Wed, 02 Nov 2016 10:36:00 EST ID:gEtE4wNA No.36274 Ignore Report Reply Quick Reply
File: 1478097360593.jpg -(59959B / 58.55KB, 900x587) Thumbnail displayed, click image for full size. 59959
Hey
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?

Thanks
>>
Jack Mungergold - Wed, 02 Nov 2016 23:10:00 EST ID:2i397rxA No.36276 Ignore Report Quick 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 ID:gEtE4wNA No.36277 Ignore Report Quick Reply
>>36276
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 by Lydia Pevingridge - Mon, 24 Oct 2016 08:33:25 EST ID:CRO9Njb3 No.36253 Ignore Report Reply Quick Reply
File: 1477312405053.jpg -(30129B / 29.42KB, 284x177) Thumbnail displayed, click image for full size. 30129
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.
3 posts omitted. Click Reply to view.
>>
Lillian Clunderhidging - Mon, 24 Oct 2016 12:06:41 EST ID:9QSfnS0r No.36257 Ignore Report Quick Reply
goddamn ampersands
https://scholar.google.com/scholar?q=generative+metaprogramming
>>
Jarvis Sangerbanks - Mon, 24 Oct 2016 16:19:54 EST ID:Wtf4I+m0 No.36258 Ignore Report Quick Reply
I remember being 18.
>>
Phoebe Sammerstone - Mon, 24 Oct 2016 17:10:28 EST ID:xLz8+Ihk No.36259 Ignore Report Quick Reply
>>36253
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 ID:fI0+sbkd No.36260 Ignore Report Quick Reply
>>36253
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 ID:gA3E5l0l No.36268 Ignore Report Quick 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? by Martha Cribberpit - Tue, 18 Oct 2016 20:47:22 EST ID:smMtB5CL No.36249 Ignore Report Reply Quick Reply
File: 1476838042100.jpg -(51659B / 50.45KB, 409x293) Thumbnail displayed, click image for full size. 51659
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 ID:27ni4VQG No.36261 Ignore Report Quick 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.
>>
Hedda Snodhood - Wed, 26 Oct 2016 07:18:49 EST ID:xLz8+Ihk No.36262 Ignore Report Quick Reply
>>36261
Probably means MVP


Facebook by St - Wed, 26 Oct 2016 19:49:39 EST ID:ntxuGVLh No.36263 Ignore Report Reply Quick Reply
File: 1477525779957.jpg -(19272B / 18.82KB, 256x455) Thumbnail displayed, click image for full size. 19272
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 ID:rBqpmoLn No.36264 Ignore Report Quick Reply
You've never had sex don't fucking lie to us OP
>>
Beatrice Buzzdock - Thu, 27 Oct 2016 09:49:24 EST ID:CUa5MQaI No.36265 Ignore Report Quick Reply
>>36263
>The girl took my virginity I need to talk to her

Why, do you need her to give it back?
>>
Nell Sablinghall - Fri, 28 Oct 2016 11:35:16 EST ID:xLz8+Ihk No.36266 Ignore Report Quick Reply
>>36263
Wow, you must have been a shit lay.


python noob by Alice Shakeforth - Mon, 22 Aug 2016 04:28:41 EST ID:w6YT+uIi No.36039 Ignore Report Reply Quick Reply
File: 1471854521962.gif -(2052859B / 1.96MB, 446x252) Thumbnail displayed, click image for full size. 2052859
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
4 posts omitted. Click Reply to view.
>>
Oliver Hippergold - Sat, 27 Aug 2016 20:17:03 EST ID:9QSfnS0r No.36074 Ignore Report Quick Reply
>>36067
I did forget to quote, so I meant the http://www.diveintopython3.net/ site & book which I think is one of the worst way to begin leaning python.
>>
Simon Sengerbury - Wed, 28 Sep 2016 13:10:20 EST ID:KqbzNpbE No.36203 Ignore Report Quick Reply
I learned to program with the python tutorial on codeacademy, which was great having an interactive system tell me when iwas fucking up. Afew months ago i was told about this book:

https://learnpythonthehardway.org

It changed the whole way I write python code. Before I was writing a while bunch of extraneous shit that could have easily been done with stuff already built into python. This book teaches you not only the basics of programming in Python and in general, but also how to implement simple and concise code.

This is available in an ebook on the Web if you know where to look. I think the whole thing is on that site too tho
>>
Archie Bosslewell - Tue, 18 Oct 2016 02:50:22 EST ID:fdIwp4pX No.36247 Ignore Report Quick 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
Comment too long. Click here to view the full text.
>>
Esther Dipperhane - Tue, 18 Oct 2016 08:08:09 EST ID:9QSfnS0r No.36248 Ignore Report Quick Reply
>>36247
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++.
Comment too long. Click here to view the full text.
>>
Graham Hecklebury - Wed, 19 Oct 2016 10:31:07 EST ID:CUa5MQaI No.36250 Ignore Report Quick Reply
1476887467203.jpg -(42344B / 41.35KB, 960x540) Thumbnail displayed, click image for full size.
>>36039

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.


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.