[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming

Catalog  Archive

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 1456812984336.png (40.21 KB,685x723,685:723,seamsbotsms.png)

26f369 No.3991 [Open thread]

What projects are you guys working on?

I got a not-yet-conforming to PEP8 Python project.

https://github.com/keithstellyes/Seams-Bot

I have unlimited SMS but limited data, figured I'd just run a script using Twilio for texting. It also can run in a terminal and can be easily ported as an IRC bot or email interface.

Pic related, show me your cool stuff.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

26f369 No.3992

Each time it polls for new SMS, it prints _, when it detects a new one, it prints !, shows the message received, and the one it sends.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

26f369 No.3993

Easy as hell to make new commands for it too

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1426132970503.png (334.97 KB,812x458,406:229,1426107755599.png)

7b38cf No.1643 [Open thread]

Anyone wanna learn Android programming with me?

Add meow@hot-chilli.net on XMPP

Use OTR. We can do this.
5 postsomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7b38cf No.2095

>>2085
>congratulations, two terminal commands, one minute of configuring and 1-5 minutes of googling for a server allow you to defeat the NSA's multi-billion-dollar surveillance mechanism.
Not if one of the computers is rigged.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7b38cf No.2111

>>2095
alright, but cracking weakened encryption is still more expensive than just looking at the packets.

there is not yet an english sauce available but:
>thx to snowden there's moar encryption
>nsa can't decrypt
>representatives of google, cisco m$ and university of zürich are trying to help by suggesting a new protocol that puts information about the content into the packet header so middleboxes can check for bombs or whatever they do.
http://www.heise.de/netze/meldung/Friedensangebot-oder-Kniefall-IETF-streitet-ueber-Auskunftspflicht-von-Datenpaketen-gegenueber-2597342.html

some encryption is always better than no encryption and it requires virtually no effort to get started.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7b38cf No.2119

>>2111
I'm speaking of things like keyloggers and screenrecorders.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7b38cf No.2120

>>2119
lmao, right.
well, spend an afternoon to set up linux then if you want to be on the safe side.
sage because not sure if serious.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

7b38cf No.3985

>>1643

I'm a bit late to the party, but I want in. I created a hot-chilli account and added you.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1455323149655.png (164.37 KB,800x846,400:423,Konqui.png)

96305e No.3938 [Open thread]

Let's play a game.

>Pick a open source project you like/hate/think is horribly buggy or bloated

>post example code on how to make something it does better

>Hard Mode: Test and commit the change to the project.

>Damn Fine Autism Mode: Show profiled proof that your change made it better. Valgrind.

8ch shut the fuck up this isn't even flooding yet

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

96305e No.3939

https://github.com/chromium/chromium

README.md

 The main Chromium project is located at https://www.chromium.org/.
The source code is available at https://chromium.googlesource.com/.
Instructions for contributing can be found at https://www.chromium.org/developers.

BETTER VERSION

 The main Chromium project is located at https://goo.gl/i55pmC/.
The source code is available at http://goo.gl/zB2JyD/.
Instructions for contributing can be found at https://goo.gl/shpwff/.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

96305e No.3950

File: 1455410517009.jpg (26.84 KB,275x142,275:142,e.jpg)

How does one find a project to contribute, granted that all the software I use on daily basis is usually too mature and complex for any minor fixes.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

96305e No.3956

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

96305e No.3957

File: 1455560118305.png (77.86 KB,433x331,433:331,his-smile-and-optimism.png)

>>3938

>post example code on how to make something it does better

In many cases that would be a complete purge/redesign/rewrite so you see this isn't feasible.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1437170965130.jpg (72.38 KB,600x300,2:1,mathslide.jpg)

6887e0 No.2843 [Open thread]

/prog/ why the people say that math is so importan for programming… I started programming in the last year, and I didn't need more than the basics operation.

>ohggg faggot u don't know nothing of programming, kill u plz.

9 postsomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6887e0 No.2899

>>2868

>>2892

In my experience, the concept surrounding modulo is taught in elementary school as a way to avoid fractions when learning division (because they haven't covered fractions yet).

After that, the concept doesn't come up until you take a course containing a number theory unit.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6887e0 No.2910

Programming is an art not a science.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6887e0 No.2912

>>2868

This board has IDs, you samefag retard.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6887e0 No.3919

>>2843

Don't be intimidated by math. Just think of it as formalized logic. ;-)

There's an endless debate on what makes an algorithm run faster. There's plenty of external factors. But a rule of thumb is that an elegant written algoritm is faster than a sloppy one. E.g. a * (b + c) instead of (a + b) * (a + c).

>>2910

There's no conflict between art and science.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6887e0 No.3928

>Started programming last year

>This makes me an expert on programming, enough to assert certain things

The things posted here about math and programming are fairly consistent. I'll repost something I posted a while back:

>Can I learn programming even though I suck at math?

Sort of.

Firstly, you may think that you suck at maths, and be mistaken. See: https://www.maa.org/external_archive/devlin/LockhartsLament.pdf

tl;dr: most mathematicians agree that maths is grossly misrepresented in school, with the wrong things emphasized. Yes, what you do is important for 'real maths', but most teachers up until university won't tell you how something works, or how it was discovered, or why we know it's true. They'll just give you a formula or a rule.

Coding is logic and problem solving. So is maths. You can be mathematically mediocre, but still be a great programmer. You can write lots of code and barely encounter anything above basic highschool maths, depending on the kind of coding you're doing. But people who are good at programming tend to be the sort of people who could be good at maths.

If you want to write database applications, all you'll really need is arithmetic and an understanding of percentages. That, as well as logic, and the ability to think somewhat abstractly.

I used to think I was shit at maths until I started coding. It made me look at maths a different way, and then I went to university to study maths, and they actually taught the beauty behind it. I found that I was decent at high-level abstract maths.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1438816683135.png (95.39 KB,680x478,340:239,093.png)

4026af No.2978 [Open thread]

…syntax doesn't matter, but that's obviously bullshit, since programming languages are just another user interface.

However, is there serious research about effectiveness, readability etc pp.?

Not necessarily limited to programming, but also text in general?

2 postsomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4026af No.3004

>>3003

>Lisp user telling you syntax doesn't matter

They probably didn't know what they were talking about. Lisp's syntax is the major reason why it's so useful.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4026af No.3005

>>2991

>>3003

>>3004

That's all pretty dank and meme'd, but could we go back to topic?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4026af No.3030

Most likely the person who told you this was talking about abstract concepts, in which it isn't so much the syntax of the language you need to focus on, but the core idea. At least that is my best guess.

For example, you could describe rocket mechanics in English, German, or Russian, and while the syntax is different, the abstract concepts are the same.

It is possible that the language could inhibit your understanding of a concept, and this is a case where syntax does matter. For instance it would be quite hard to talk about rocket propulsion in Swahili.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4026af No.3031

Syntax matters for learning programming, which is why SICP chose a language with almost no syntax so you could focus on programming and not get hung up on whitespace/syntax.

Syntax also matters to Don E Knuth who invented literate programming so you wouldn't need comments (since almost nobody properly comments) and you could read a program like a book.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4026af No.3910

>>2991

>Technically, every language capable of being turing complete is a programming language, so English could be a programming language.

True. But what separates languages from programmming languages is that they are not 100% literal.

>>3031

But that requires that there's no ambiguity in the names of the variables, yes?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1452381678522.jpg (61.78 KB,396x264,3:2,Linux .jpg)

46b5cd No.3839 [Open thread]

Hello there people with no lives and girlfriends.

I've this question that I would like you to answer for me, please.

This Linux+ book came out just recently and I there is this other 2 books that are a bit older but not that much, should i buy the newest or not? I know new =/= good.

>1.CompTIA Linux+ / LPIC-1 Cert Guide BY Ross Brunson and Sean Walberg (thats the newest one)

http://www.amazon.com/CompTIA-Linux-LPIC-1-Cert-Guide/dp/078975455X/ref=sr_1_1?s=books&ie=UTF8&qid=1452380509&sr=1-1

>2.Linux+ Guide to Linux Certification 4th Edition by Jason W. Eckert (I was told it's good)

http://www.amazon.com/gp/product/1305107160?keywords=Linux%2B%20Guide%20to%20Linux%20Certification%20eckert&qid=1452380460&ref_=sr_1_1&sr=8-1

and finally…

>3. CompTIA Linux+ Study Guide: 2nd Edition by Roderick W. Smith (seems like everyone advises this one and that it's the best and easy to follow.

http://www.amazon.com/gp/product/1118531744?keywords=linux%2B%20roderick&qid=1452380558&ref_=sr_1_1&sr=8-1

Now what do you think guys?

ps before you mention RHCSA is much better, don't worry thats on my mind too but everything in its own time.

3 postsomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

46b5cd No.3879

>>3878

Getting a "Linux certification" means about as much as a B.A. in philosophy. All you need is to know your shit and preferably have a CS degree, and you can start making shekels.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

46b5cd No.3886

>>3879

What about CS degree + certifications?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

46b5cd No.3889

>>3886

degree + work expierence works much better

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

46b5cd No.3890

>>3886

>>3889

Needless to say since you likely won't have much if any experience right out of uni, the degree itself is still highly appealing to potential employers. Better than applicants with degrees in other fields or none at all.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9355ac No.5270

alacrity

log into Anyone with password 0

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1453177111172.png (94.86 KB,337x450,337:450,403.png)

c6be61 No.3852 [Open thread]

I wrote a python script to download images from tinyboard/vichan imageboards.

It works on every imageboard I try except 8ch, which gives me a 403 forbidden error. I tried changing my user agent within the script (perhaps unsuccessfully), but still 403. What gives?


#!/usr/bin/env python3

import argparse, bs4, os, urllib.request, urllib.parse

parser = argparse.ArgumentParser()
parser.add_argument("url", help="Link to thread")
parser.add_argument("-d", help="Directory to download to")
args = parser.parse_args()

if args.d:
if not os.path.exists(args.d):
os.makedirs(args.d)
os.chdir(args.d)

soup = bs4.BeautifulSoup(urllib.request.urlopen(args.url))

domain = urllib.parse.urlparse(args.url).netloc
http = urllib.parse.urlparse(args.url).scheme + "://"

for link in soup.find_all("p", class_="fileinfo"):
image = http + domain + link.next_sibling.get("href")
filename = image.rsplit("/", 1)[1]
if not os.path.exists(filename):
urllib.request.urlretrieve(image, filename

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c6be61 No.3853

Note that I accidentally removed a parenthesis to close the very last line.

- urllib.request.urlretrieve(image, filename

+ urllib.request.urlretrieve(image, filename)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c6be61 No.3882

>>3852

If I had to guess,

>image = http + domain + link.next_sibling.get("href")

href of link is is https://media.8ch.net/prog/src/1453177111172.png for 8chan. Look at in in a page inspector.

I think it's because hotwheels has some weird hacky shit with the servers due to bui and/or site growth.

You might have figured this out by yourself already, since this was a while ago.

I might try writing my own version in javascript or bash for 8chan specifically. I'll prob post it here if I do

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c6be61 No.3883

>>3852

If I had to guess,

>image = http + domain + link.next_sibling.get("href")

href of link is is https://media.8ch.net/prog/src/1453177111172.png for 8chan. Look at in in a page inspector.

I think it's because hotwheels has some weird hacky shit with the servers due to bui and/or site growth.

You might have figured this out by yourself already, since this was a while ago.

I might try writing my own version in javascript or bash for 8chan specifically. I'll prob post it here if I do

fak you flood detection

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1453522198030.jpg (27.65 KB,311x475,311:475,SICM.jpg)

f720d4 No.3862 [Open thread]

Hey /prog/, I'm looking for some compsci-related physics books other than pic related. Discovered it thanks to the godlike sticky.

Even RMS got his B.A. in the field. There must be at least a few others that are useful for programmers.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f720d4 No.3863

>>3862

P.S. I already checked out /sci/'s directories, and I didn't see any undergrad textbooks worth the gorillion shekels they usually go for. Nor did I find any good paperback texts akin to "What is Mathematics?" (R. Courant) or "How to Solve It" (G. Polya).

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f720d4 No.3872

>>3862

> compsci-related physics books

you mean computational physics? that is heavy numerical analysis for physics problems solutions?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1453418162765.jpg (19.9 KB,225x350,9:14,292080.jpg)

78ff58 No.3859 [Open thread]

/prog/, have you worked on a distributed extensible autonomous REPL before? How would I go about it?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

78ff58 No.3867

What the fuck does that even mean?

How would you make an autonomous REPL? Autonomous means self functioning without input. A REPL is a user input/output interface.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

78ff58 No.3870

>>3859

i am actually working on the same thing. have you done any work at all. maybe we can collaborate

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

78ff58 No.3881

>>3859

>distributed extensible autonomous REPL

This sounds like a manager trying to buzzwordily say "AI hive mind" who only sort of knows what each word means.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1451939639934.jpg (57.03 KB,851x315,851:315,Anonymous One Team To Save….jpg)

1b208c No.3807 [Open thread]

ADVANCED HACKING TOOLS.zip DOWNLOAD

https://archive.org/details/ADVANCEDHACKINGTOOLS

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b208c No.3850

>>3807

Thanks

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b208c No.3851

omg thx op i cum on cat she hiss at penis

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b208c No.3854

>not just downloading Backtrack

Anyone that downloads this is an idiot and has no business doing what they are attempting to do.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b208c No.3868

>>3807

oh boy I can finally be a hacker

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1b208c No.3869

/prog/ humor, like /tech/ humor except several orders of magnitude slower.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1451855068740.gif (454.97 KB,242x318,121:159,Stu Loses Control.gif)

a13374 No.3804 [Open thread]

How plausible is finding a remote job as a middle C++ dev?

One of my internet buddies works through upwork, but based on what I've heard from him, it's not very pretty. Remote jobs are mostly web-related and very few job propositions that are there quite often are small, low pay contract jobs that have tons of indians competing, promising that they'll make it for free and this instant.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a13374 No.3806

>>3804

I'd recommend using upwork as something you just regularly keep up with, but don't be in any rush to land work on it, because you'll either end up under selling your work or giving up out of frustration.

I know people who have found solid clients that they regularly work with from there and I would say I get contacted by what I consider to be legit companies once every couple months and I don't even network there, that is just from companies finding my profile.

You just have to position yourself as professional software developer who is interested in finding the ideal client, you're not some desperate curry nigger who will work for third world wages.

Unfortunately, it will take some time and you'll have to keep at it, but once you find a few legit clients, it is all worth it.

If you're needing to pay the bills right away, then obviously you're just going to have bite the bullet and find whatever you can locally.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a13374 No.3812

>>3806

Can you give me some advice on making my profile?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a13374 No.3842

>>3812

Stuff it with keywords relevant to the types of work you'd like to do so when they're searching for contractors your profile shows up.

Just talk about your experience, your knowledge, the type of work you are capable of doing and the type of opportunities you are personally interested in. Mention that you are a native english speaker because this will matter to your ideal clients.

Include a picture regardless of your opinion of your looks, just like on dating sites, profiles with pictures draw more attention.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



5eb464 No.3829 [Open thread]

Alright, faggots. You're going to take a first-year computer science class at MIT.

https://www.edx.org/course/introduction-computer-science-mitx-6-00-1x-6

Register. It starts next week.

>But Python is for plebs!

Well, good thing that Harvard is running a course that uses C and recommends Linux. No excuses. This one is even self-paced.

https://www.edx.org/course/introduction-computer-science-harvardx-cs50x

>But muh blub languages

I SAID NO EXCUSES. Here's a course that uses Scheme. This one is also self-paced.

https://www.edx.org/xseries/systematic-program-design

Those are your choices. If you don't choose any of these, you're a lazy sack of shit.

Even if you already know the basics of programming, you will almost definitely get something out of these if you haven't had a formal education yet.

If we do it together, we can make threads about it and encourage each other. I'm doing the third one, and I've been programming for 2 years.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5eb464 No.3836

Sure.

I'll join you through Systemic Program Design.

I'm going to check out the Harvard one, I initially passed on it because it seemed like they use a multiple languages meant they wouldn't really get that deep into the subject, but the reviews seem to be very positive.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5eb464 No.3837

>>3836

the use of multiple languages*

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5eb464 No.3840

>>3836

It's pretty popular. I was talking to a woman at my university who helps put things on EDX, and she had heard of it and wanted to take it.

I started on it last year, but life got in the way. From what I saw it was pretty good, but obviously it's still only a first year introductory course. I would have been taking it this time, but I just couldn't resist a modern course in Scheme.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1452310435251.png (145.99 KB,1920x1125,128:75,based.png)

6aff7f No.3833 [Open thread]

Guys, I had this script which enabled me to make my computer write whatever I chose, using Chrome. It no longer works. Why? and how to fix it?

I'll copypasta the script in the thread.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6aff7f No.3834

Here's the post from the anon who taught me how to do this:

in google chrome do this:

1. press ctrl-shift-j

2. paste this script, DO NOT FUCKING HIT ENTER YET

(function() {

var text = prompt("Enter some text.");

var width = $(".active-cursor").width();

var height = $(".active-cursor").height();

var start = $(".active-cursor").offset();

var current = {

top: Math.round(start.top + height / 2),

left: Math.round(start.left + width / 2)

};

var i = 0;

function next() {

var c = text.charAt(i);

if (c === "\n") {

current.left = start.left;

current.top += height;

} else {

$(document.elementFromPoint(current.left, current.top)).click();

w.typeChar(c);

current.left += width;

}

i++;

if (i < text.length) {

setTimeout(next, 10);

}

}

next()

})();

3. copy the ascii you want to post

4. press enter, a prompt will come up, paste your ascii into the prompt

5. profit!

for repeat pastes you only need to go to the java console and press the up arrrow, it will recall the last script you used even if you have closed chrome and opened it again

if you don'Post too long. Click here to view the full text.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6aff7f No.3838

>>3834

What is the error message you are getting in the javascript console?

I'm getting a TypeError: cannot read property 'top' of undefined.

That 'undefined' is start.

$('.active-cursor').offset() returns undefined when I try to run your script

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1451590124908.jpg (46.65 KB,500x670,50:67,starfox.jpg)

18059a No.3787 [Open thread]

Lads I have been trying to teach myself c++ and this exercise from my book is driving me crazy!

"Write a program in which you create a Text class that contains a string object to hold the text of a file. Give it two constructors: a default constructor and a constructor that takes a string argument that is the name of the file to open. When the second constructor is used, open the file and read the contents of the file into the string member object. Add a member function contents() to return the string so that you can display it. In main(), open a file using Text and display the contents."

I have a full solution that compiles but does not actually store any information from the inputed file (it prints empty lines or sometimes a single } )

http://coliru.stacked-crooked.com/a/d1ab2c2ad4e1b05d

Help me obi-wan you are our only hope

4 postsand1 image replyomitted. Click reply to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

18059a No.3795

>>3792

It's a great example of why you should never write it either his way or the way you suggested - it's so easy to accidentally leave a stray line terminator in that changes the logic. A better style is


while(...) {

as it resists these types of bugs (which are actually rather common in real code by good programmers). People get super stubborn about this even though this style is objectively better due to the lowered error rate. It's also a good example of why python got it (mostly) right with its spacing.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

18059a No.3799

>>3795

> this style is subjectively better

> FTFY

If you use Allman style and always use braces, even when there is only one statement, then you don't make these sorts of errors.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

18059a No.3831

The first thing you should do is fix all warnings and then quickly go fuck yourself for not using plain C.

Also write in some if statements to check whether or not you variables actually have any /value/.

guday m8

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

18059a No.3832

>>3795

Or you could format code in a decent way and not be a retard/faggot.

If you are used to writing shit this way you shouldn't have errors. It also makes you look 1337 as fuck.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

18059a No.3856

>>3792

Never Python. Not even once.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1452304624517.jpg (43.29 KB,526x526,1:1,kista.jpg)

6e4d85 No.3830 [Open thread]

i need some serious help. i was in court today and the prosecutor asked the secretary if it was possible to run the vin and see when that vehicle had insurance and when it was canceled and so on. she said no. got me thinking if i can write a code and bring it maybe i can get off. what language would be best for this do you guys think. basically i need the prog to have a search bar to put in the vin. then i need it to search the databases of the insurance companies (with permission of course) just wondering what language and where i should start. writing the code or getting permission. i think i should write the code show it to them then they can get the companies databases since they wouldnt want to give it to a criminal. please help. here is a pic of my baby shaking her bones to trey and the gd at fare thee well gd50

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6e4d85 No.3835

>(with permission of course)

You won't get direct access to the database, ever. Even if you have a court order for something from the database, they won't give you access, they will instead search the database themselves and then give you only the data that was specifically ordered. Don't even write a single line of code until they give you an account on a database server.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6e4d85 No.3848

This thread is retarded. Insurance company databases don't just sort of have public interfaces you can plug into to pull arbitrary information about arbitrary VINs. You would have to either contact the company and have them give you the information or get the info off their website customer portal.

Furthermore, if there was a standard public interfaces for this, there would already be 50 different programs to pull the information.

It's pretty telling that you only describe the search function as "have a search bar". You either have no idea how to program or just know minimal bits of web design.

This is " code a GUI in Visual Basic to trace the killer's IP" level of retarded.

tl;dr: not only is it not possible, you also have no idea what you're talking about in the first place.

Your baby is a hippy retard and you probably are too, fuck back off to Reddit r/reiki/ or whatever stupid fucking spirit science board you come from.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



Delete Post [ ]
[]
[1] [2] [3] [4] [5] [6] [7] [8]
| Catalog | Nerve Center | Random
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]