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


What language to learn? by Thomas Didgemug - Wed, 07 Oct 2015 14:01:37 EST ID:+OtdvYbS No.34707 Ignore Report Reply Quick Reply
File: 1444240897724.gif -(2520690B / 2.40MB, 190x150) Thumbnail displayed, click image for full size. 2520690
Hey guys,

The language I started with and am the most familiar with is C++.

I coded in VB thanks to school (horrible experience), some web development oriented languages which is something I don't care about, and well.. That's mostly about it.

I was thinking about learning some C# but it doesn't seem to be much liked over here. I'm way far from being a Windows fanboy but it does seem to be a language that's rather in demand these days.

What do you think? Should I avoid C# and go with something else, and why?
11 posts and 1 images omitted. Click Reply to view.
>>
Matilda Hummerpon - Fri, 30 Oct 2015 22:29:19 EST ID:OheqWBBY No.34791 Ignore Report Quick Reply
>>34781
It absolutely does.
But the same goes for intermediate compilers that I can only assume >>34749 meant in his post, when he said:
>Scheme can also translate itself into any language you tell it to

>>34784
True, it's how compilers and decompilers work.
>>
Faggy Chinnernen - Sat, 31 Oct 2015 14:01:30 EST ID:SFwGSzW3 No.34792 Ignore Report Quick Reply
>>34791

You can't just tick a box on a decompiler and tell it to spit out some PHP code or whatever. Chances are you're going to get code that's very primitive C code, to the point of being illegible and impossible to understand. Then when you go to re-compile that code you're going to get some kind of monster binary that wastes more resources than a rap star on food stamps.
>>
Hedda Pevingsock - Sun, 01 Nov 2015 16:32:00 EST ID:L53HyYnX No.34794 Ignore Report Quick Reply
>>34792
Still true, a decompiler is not a magical device. One decompiler can usually decompile into just one language.
The output of the decompilation is pretty much illegible, save for the selected few who understand the compiler
that the binary was created by and the decompiler that was used.

Intermediate compilers are usually not much better. They might be able to save some symbol names, but the
resulting source code can't be considered sane, at least if the two languages are not similar in paradigms.

I'm just saying that there is no such language that can be translated to all others (in a meaningful way).
>>
Jenny Biblingson - Sun, 01 Nov 2015 18:23:40 EST ID:VtZq2tO3 No.34796 Ignore Report Quick Reply
>>34792
nice said. People need to learn whats possible and whats useable.
>>
Phyllis Pemmernock - Tue, 03 Nov 2015 00:59:50 EST ID:c06WQfKp No.34797 Ignore Report Quick Reply
>>34707
Either C++ or C# should be fine in today's market.


RPG Structure by Henry Cunderdurk - Wed, 29 Apr 2015 19:26:15 EST ID:Ky+8GJE7 No.33865 Ignore Report Reply Quick Reply
File: 1430349975613.png -(14774B / 14.43KB, 368x240) Thumbnail displayed, click image for full size. 14774
It seems like it would be somewhat easy to create an RPG structure, but it starts to get confusing fairly fast.

I was creating a Character class for a PlayableCharacter class and a Monster class etc. to inherit from. It's simple for the basic stats like HP, Level, Attack, Defense, but then for things like movesets it gets a bit complex. I could create a Move class and then create a list of made Move objects, but then where do I store the moves, in another class, or do I have them loaded externally from some format?

Searching around people suggest more of "compositional, property based" programming rather than inheritance. There's also suggestions to create interfaces for these properties.

I feel I am a rather intermediate programmer, and can create basic structures with class inheritances, but trying to build something of this scale without some proper knowledge and planning seems a bit hard. I just want to build a framework now that I could use with whatever, which will be Windows Forms at first.

Although I should move to something like Unity, I'd really like to get this down for general programming practice in plain Visual C#.

Any data structure tips, experience, sound interesting? I mean even stuff like an Item class, there could be weapons, helmets, body armor. I guess once again just have a general Item class and fill it in with relevant properties, but how do I store these properties?
18 posts and 1 images omitted. Click Reply to view.
>>
Esther Buzzshaw - Fri, 29 May 2015 08:15:04 EST ID:OheqWBBY No.34048 Ignore Report Quick Reply
>>34046
Got any of those vanquished complex problems available in github (or somewhere) to back your crap up?
>>
Martha Bovingbotch - Fri, 29 May 2015 10:32:31 EST ID:0fDyrctt No.34049 Ignore Report Quick Reply
>>34046
>I know that, but I also know that OOP is a plague on the programming world, and is responsible for the majority of errors in programs.

I'd agree that OOP is overapplied, but I don't know that "responsible for the majority of errors in programs" is a falsifiable statement. My hunch is that programmers who don't know what the fuck they're doing (ie. newbies) are responsible for the majority of errors in programs. Your points concerning functional programming are valid, which is why I agree with teaching functional programming to beginners at first, but I can't agree that OO should just be totally abandoned.

What makes me most sad about object-orientation is that its evangelists have painted it as a silver bullet for software engineering. It's not. No paradigm is, not even declarative programming. Some backlash against hype is understandable, but it does have a use even in a more functional world. The best use of objects is to enforce the design contract of a chunk of state.

Either way, OP has chosen to use C#, which is traditionally thought of as an OO language. that is written with OO idioms. Leave him to his choice if that's what he wants.

>So instead, you're going to copy-paste a bunch of similar "level+x, maxHealth+y,..." code for each character?

Which is exactly why I told him to make his program data-driven, so he's not creating a new character class in code for every character type he wants.

>How is this relevant? I don't follow your logic of "I need random growths, therefore I cannot write declarative code.".

Pseudo-random number generation generally works by applying a function to the previous number generated or a given seed value. That generally means mutable state somewhere, in this case in a RNG object, and a sequential order of operations.
>>
Hamilton Croppershaw - Sun, 31 May 2015 08:01:01 EST ID:HnxlUmLD No.34060 Ignore Report Quick Reply
>>34046
>My code was hard to write, hard to read, and filled with countless bugs. It was a miracle when my program worked as I intended it to.
Don't blame OO for being a shit programmer
>>
Edwin Dummlewit - Sun, 18 Oct 2015 08:01:41 EST ID:idROnM/G No.34758 Ignore Report Quick Reply
>>33865

try taking it slow work on one thing at a time and when it feels right put 2 and 2 or all at once
>>
Shit Fabblewell - Thu, 22 Oct 2015 17:23:11 EST ID:Ey5194CH No.34770 Ignore Report Quick Reply
>>34060
Hahaha if this is what he thinks about OO, could you imagine him writing in C?


least friendly linux distro by Matilda Denningstock - Sat, 29 Aug 2015 16:50:12 EST ID:A9aEYzQo No.34518 Ignore Report Reply Quick Reply
File: 1440881412757.jpg -(83079B / 81.13KB, 508x627) Thumbnail displayed, click image for full size. 83079
what is the least user friendly linux distro?
3 posts omitted. Click Reply to view.
>>
Faggy Blackfield - Mon, 31 Aug 2015 23:53:14 EST ID:ALghvMIf No.34530 Ignore Report Quick Reply
>>34526
That's called Linux From Scratch (LFS) and it's not a distro.
>>
Caroline Pessledock - Sun, 13 Sep 2015 21:46:52 EST ID:YPNmCKxq No.34618 Ignore Report Quick Reply
arch linux. In return you get exacting control over every minute detail of everything, which is exactly what I require, demand, and expect from my computer.
>>
Samuel Chundlefield - Thu, 08 Oct 2015 08:52:37 EST ID:Ic3BPiW/ No.34711 Ignore Report Quick Reply
Temple OS.
>>
Edwin Hurringkeg - Thu, 08 Oct 2015 16:03:00 EST ID:OheqWBBY No.34714 Ignore Report Quick Reply
>>34518
Not sure about today, but mandriva was the crappiest I've tried. I remember it was the first release with that name, after a change from mandrake.
Software installed through its package manager had about 50/50 chance of creating start menu items. If it did, it was more than likely to point to an non-functioning executable.
I think I ended up switching to SuSe in less than a week. That worked well enough for me.
>>
William Hembleman - Sat, 17 Oct 2015 21:44:24 EST ID:pJjrJHcU No.34755 Ignore Report Quick Reply
>>34530
There's a difference between LFS and creating a new distro.

>>34711
http://www.codersnotes.com/notes/a-constructive-look-at-templeos


how do i make more elegant? by Alice Comblefodging - Wed, 07 Oct 2015 16:59:36 EST ID:DUWnh8mJ No.34709 Ignore Report Reply Quick Reply
File: 1444251576232.jpg -(183595B / 179.29KB, 1920x1080) Thumbnail displayed, click image for full size. 183595
I have run into a clumsy programming with haskell. Depending on the value provided by user at stdin/commandline, the program terminates when sufficient accuracy is reached. I have a seperate function when checks this , lets say isconv

isconv :: [Int] -> Double -> Bool
isconv list eps = all (<eps) list

Now my issue is the code goes through 5-8 functions before isconv is reached and eps is tagging along for a run through all those functions. For example if there are 10 functions between main and isconv , i have to pass eps as a argument to all those functions eventhough it is only needed at the last stage. Is there a more elegant solution for this?

thanks a lot.
2 posts and 1 images omitted. Click Reply to view.
>>
George Nicklestone - Sat, 10 Oct 2015 11:07:34 EST ID:+xbYsaU7 No.34726 Ignore Report Quick Reply
>>34709
If your intermediate functions don't have anything to do with eps, other than to pass it forward to the next function, you can just remove eps from the parameters and have the functions return functions, last of which is then actually interested in eps, to which you pass it.

I know nobody is going to understand what I just wrote (I wouldn't, I suck at explaining), so if you could pass the whole code you have and I'll try to use it as an example.
>>
Phoebe Duckson - Mon, 12 Oct 2015 17:11:36 EST ID:LGSLUQqj No.34735 Ignore Report Quick Reply
>>34726

alright here is a quick example, finding roots of a number by newtons method

newton :: Double -> Double -> Double -> Double
newton r1 r2 eps | isconv r1 r2 eps = r1
| otherwise = newton r1 r2 eps

isconv :: Double -> Double -> Double -> Bool
isconv r1 r2 eps = eps > abs $ r1 - 0.5*(r1+(r1/r2))

thanks .
>>
Esther Dunderpin - Mon, 12 Oct 2015 18:59:11 EST ID:OheqWBBY No.34736 Ignore Report Quick Reply
>>34735

You are correct, since the newtonian step function has nothing to do with eps,
it should not know a thing about it.

The cleanest way imo would be to use until in Prelude.
until :: (a -> Bool) -> (a -> a) -> a -> a
This would require you to make r1 and r2 into a tuple.

newton :: (Double, Double) -> (Double, Double)
newton (r1, r2) = ...

isconv (Double, Double) -> Bool
...
Comment too long. Click here to view the full text.
>>
Esther Dunderpin - Mon, 12 Oct 2015 19:09:27 EST ID:OheqWBBY No.34737 Ignore Report Quick Reply
>>34736
ffs, of course I had to make a stupid ass mistake.

isconv :: Double -> (Double, Double) -> Bool

and

until (isconv selectedEpsValue) newton (initial, value)
>>
Beatrice Pellywodge - Tue, 13 Oct 2015 07:34:22 EST ID:cANzwptg No.34740 Ignore Report Quick Reply
>>34737

Thanks a lot. ofcourse, i made a lame ass mistake too

newton (r1 r2) = (r1, 0.5*(r2 + $ r2/r1))


eBay Scraping + Sniping? by Hannah Pammerstone - Mon, 28 Sep 2015 09:25:35 EST ID:+OtdvYbS No.34661 Ignore Report Reply Quick Reply
File: 1443446735364.jpg -(21091B / 20.60KB, 726x406) Thumbnail displayed, click image for full size. 21091
Hey guys,

Since I way too often forget about eBay auctions and almost systematically end up missing deals I'd have without a doubt taken, I was thinking about making a simple program in C# that would keep track of the items I follow (no sniping, yet). Something very basic that would show how much time is left, the highest bid, number of bids, etc.

Retrieving data from webpages through a language like C# is completely new to me. I've never done anything even remotely similar but it sounds easy enough at first glance although I may very well be completely off about its complexity. So I was thinking of the most straight-forward way: scraping the source code to retrieve and isolate the data I want, which doesn't seem too hard to me when I look at that source code from the auctions webpages. But again I've never done it, so I may be completely off and/or forgetting something.

Now, I really didn't have a Sniper project in mind at all at first. But I figure that if I complete that first part and if the rest is not too difficult (just got one additional step, sending a request to bid, right?), then I might try it. Apparently eBay doesn't care one bit about sniping. No one ever gets or got banned. But I heard it does care about their catalog getting scrawled, among other things. I suppose this is to avoid dumbasses refreshing results non-stop. Otherwise, there should be no reason to be under their radar and be at risk, right?

What I found unbelievable is how many free sniping tools are out there and how many use them. It's ridiculous. It does mean though, that either eBay indeed doesn't give a shit, or that those sniping tools are using methods different from the ones I would like to try using, even though it seems like the most straight forward and easy way to do things.

Thanks for reading me friends, any help is welcome.

I haven't programmed in a damn while and it'd really be cool if this project could get me started again.
1 posts and 1 images omitted. Click Reply to view.
>>
Hamilton Clibblechitch - Sat, 03 Oct 2015 22:58:39 EST ID:+OtdvYbS No.34682 Ignore Report Quick Reply
>>34663
Damn, that's a shame. I've never coded in Python but have considered trying it before. What if you space out the rate at which you request the page source enough? E.g. Only make a request once an hour or so, except towards the last 2 minutes when you start speeding it up a bit, but still not too excessively.

Also, what methods do they use the most to catch users running such applications?

One could always use proxies to make those requests while obviously not being logged in.

What would then be a safe method to place your bid?

There seem to be quite a few cloud-based sniping tools that users are quite happy with and don't seem to get into trouble with either. Though no matter how well rated such a service may be (most especially a free one) I could never give out my personal information to such a third party that damn easily. I'm quite amazed at how many people do.

Still, those people remain unbanned.
>>
Phyllis Droddlebury - Sat, 03 Oct 2015 23:30:37 EST ID:Ey5194CH No.34683 Ignore Report Quick Reply
>>34682
eBay has to protect their reputation among people who don't program. If you allow people to bypass their API, there's no sense in non-Programmers even logging into eBay (same with Amazon). It'd be like middle class people investing in anything but index funds (retarded). Sure, plenty of ignorant people would still use eBay/Amazon but eh. Also, maybe eBay / Amazon have their own corrupt shenanigans that could be detected with external mining. Obviously eBay could see your max possible bid and make fake bids below that to up their revenue. When you see how big name poker sites have skimmed extra and how dating sites make tons of fake accounts, it becomes obvious how Amazon and eBay would be leaving billions on the table if they didn't do similar things. I hope they don't, but I would guess that it's more likely than VW scamming emissions testing.
>>
Reuben Duckwill - Thu, 08 Oct 2015 15:51:30 EST ID:2ApJWF0u No.34712 Ignore Report Quick Reply
This used to happen, then Ebay put a stop to it.

What they do now is they stop the auction at t = 00:00 but they wait a while and keep collecting bids for a few more moments. Then they choose the highest bidder. So it's useless to be a smart-ass.

Also they have an options for buyers where they can up their bid by a fixed amount until a certain maximum is reached. In that case you will still need to bid higher than their maximum.

Basically, sniping is not possible.
>>
Eliza Hinningfoot - Sat, 10 Oct 2015 21:52:34 EST ID:SFwGSzW3 No.34730 Ignore Report Quick Reply
1444528354785.jpg -(714700B / 697.95KB, 1280x800) Thumbnail displayed, click image for full size.
>>34663

I completely forgot about this thread. I found my code. I don't remember what it does or what it's supposed to do though. Its from the junkyard of abandoned projects so I don't have any documentation.

But I'll post it anyway just for anyone who is curious to decrypt it.
>>
Eliza Hinningfoot - Sat, 10 Oct 2015 21:54:14 EST ID:SFwGSzW3 No.34731 Ignore Report Quick Reply
>>34730

import re
import requests
from lxml import html
from time import time
from math import floor
from hashlib import md5
from data.mysql.ebaylistingsraw import EbayListingsRawDatabase

class EbayListingSearchException:

def __init__ (self, estr):
self.estr = estr
Comment too long. Click here to view the full text.


Real Time Systems by Graham Sinnerson - Sat, 10 Oct 2015 21:45:06 EST ID:OIiPQNei No.34729 Ignore Report Reply Quick Reply
File: 1444527906982.jpg -(164936B / 161.07KB, 1680x1050) Thumbnail displayed, click image for full size. 164936
Watsup everybody? So I'm taking a Real Time Systems class this semester and we're gonna start working on a big project in a bout a week. My team has to come up with an idea for a Real Time System and then implement it. My team has decided on making a thermostat/air conditioner. The thermostat needs to be able to respond to differences in the temperature and either turn on or turn off the air conditioner. I think this isn't a bad project to implement but I also think it's boring. Decided to make this post just to see if anyone out their has any ideas that are more interesting than an thermostat that is a Real Time System. Thanks.


When to give up on programming by Martha Buzzdale - Sun, 04 Oct 2015 16:07:15 EST ID:SjxEtXHK No.34687 Ignore Report Reply Quick Reply
File: 1443989235956.jpg -(185736B / 181.38KB, 1024x828) Thumbnail displayed, click image for full size. 185736
I've been trying to become a programmer for the past 5 years off and on because it's pretty much the only career left that enables you to raise a family and live above the poverty line. I've tried college courses, online courses, and self-teaching. I feel like I have the fundamentals really down pat, but as soon as you put something new in front of me, I need at least 2 days to process it.

Am I doomed to be un/underemployed for the rest of my life?
9 posts and 2 images omitted. Click Reply to view.
>>
Reuben Duckwill - Thu, 08 Oct 2015 16:21:23 EST ID:2ApJWF0u No.34715 Ignore Report Quick Reply
You bought into the hype.

Let's put it simple.

If you don't have >3.0 CS degree then forget about it. If you cannot afford to go to college, figure out some other career path. It's very likely that you won't be that good of a programmer anyway and there is an abundance of shitty programmers around.

And without a degree you do not want to work as a programmer. It's risky.

  1. You will be working only the shitty jobs, pretty much 100% doing webdev because you don't have the education to actually do anything else. And no you cannot learn everything by yourself. You don't have the time for that nor the dedication nor the guidance. Plus nobody will hire you to do anything more than write some JS/PHP code.

2. If you are lucky and get hired, you'll be fired when you're 35 and never hired again. Ageism is going to be brutal to you because you will be working with the most fast changing technologies (webdev) and because experience counts for shit in that domain. Plus why would I hire you over the guy with a 3.5 GPA straight out of college? The young guy will cost less, complain less, work more and complain less about long working hours and will not have other responsibilities.

As for a career. There's plenty of decent careers, if unglamorous ones.
>>
Nathaniel Blackgold - Fri, 09 Oct 2015 12:15:20 EST ID:SjxEtXHK No.34718 Ignore Report Quick Reply
>>34715
>There's plenty of decent careers, if unglamorous ones.
Well, not in 20 years, but I appreciate your honest insight anyway.
>>
Sidney Supperwat - Fri, 09 Oct 2015 17:10:04 EST ID:ezkFV80h No.34722 Ignore Report Quick Reply
>>34704
Sounds like you've come here not to learn how to succeed, but to soften your failur.

You won't get any sympathy. Please know the failure is your own. It is important to recognize what has failed. Every task you do must be aimed toward your goal; anything else is wasted effort. What are you doing to succeed, and why? If you list out your actions, with their intended result, we may be able to determine your point of failure.
>>
Martha Nurringditch - Sat, 10 Oct 2015 03:42:58 EST ID:V2ZsfKL6 No.34725 Ignore Report Quick Reply
1444462978240.jpg -(11150B / 10.89KB, 990x500) Thumbnail displayed, click image for full size.
>>34704
>>34687

You spent 5 years learning the wrong material. All you need is 2 books. First book is either SICP, or HtDP, both were designed to avoid all these problems (IDE complexity, typos) and just teach you programming. Second is the book Practice of Programming, teaches you tests, debugging strategies, how professional development is done. https://lwn.net/Articles/293037/

Just do it
>>
Priscilla Mommlefuck - Sat, 10 Oct 2015 12:50:35 EST ID:2ApJWF0u No.34727 Ignore Report Quick Reply
>>34718

What? Programming is being outsourced today whereas there are plenty of jobs that cannot even be auto sourced at all.

Here's what you do:

  1. Get a trade union type job.
  2. Learn the field well enough.
  3. In 20 years, open your own fucking shop.

Much better prospects than being a webdev.


Monies by Reuben Duckwill - Thu, 08 Oct 2015 15:58:23 EST ID:2ApJWF0u No.34713 Ignore Report Reply Quick Reply
File: 1444334303236.jpg -(23446B / 22.90KB, 450x304) Thumbnail displayed, click image for full size. 23446
I'm a smart-ass faggot who knows lots of programming related shit and know my way around GNU/Linux.

I want to make money. I have a set few hours a week to dedicate to it. Say 5 hours a week. That's not much. Can I somehow use my 1337 skillz in some way to earn a few dollars/week?

I've already tried webdev. Did not work well. Too time consuming for my schedule. Plus I feel like I'm not actually using my skills. Everybody can write some crap in JS. No real problem solving involved.
>>
Nell Degglestock - Thu, 08 Oct 2015 22:12:41 EST ID:5ap2D6Ru No.34716 Ignore Report Quick Reply
What schedule do you have?
>>
Matilda Doshbeck - Fri, 09 Oct 2015 08:24:50 EST ID:2ApJWF0u No.34717 Ignore Report Quick Reply
>>34716

I have a few hours of free time during the weekends, say 5-7 hours each Saturday evening.


dir vs ls by Samuel Femmlebick - Wed, 23 Sep 2015 05:07:50 EST ID:U+wWNs50 No.34650 Ignore Report Reply Quick Reply
File: 1442999270830.png -(21672B / 21.16KB, 640x400) Thumbnail displayed, click image for full size. 21672
Truly, the debate of our generation
6 posts and 2 images omitted. Click Reply to view.
>>
Jack Clablingpack - Sun, 04 Oct 2015 13:20:45 EST ID:fsld9AGU No.34686 Ignore Report Quick Reply
>>34684
>windows is much safer because nobody can see how its built.

Come on, that's not an excuse anyone actually uses, is it? Windows is usually chosen because of bureaucratic inertia and the fact that all the company's existing tools run on Windows.
>>
Alice Fidgeville - Mon, 05 Oct 2015 18:50:39 EST ID:/AP87H59 No.34694 Ignore Report Quick Reply
>>34686
my entire post was sarcasm :[
>>
Priscilla Greenfuck - Mon, 05 Oct 2015 23:11:45 EST ID:Ew1xe7Or No.34695 Ignore Report Quick Reply
>>34684
>MySQL is the best database

One of these things is not like the others.
>>
Nigger Billingshit - Tue, 06 Oct 2015 15:23:09 EST ID:rU4BYvYe No.34700 Ignore Report Quick Reply
>>34684

>confusing MSSQL with MySQL/MariaDB

Are you fucking kidding me?
>>
Barnaby Crablinghood - Wed, 07 Oct 2015 04:26:06 EST ID:jZbJHlyO No.34703 Ignore Report Quick Reply
>>34686
>>34695
>>34700

Today I learned that /prog/ is dumb.


Fucking CSS by Betsy Naffingstut - Thu, 16 Jul 2015 23:03:38 EST ID:4n8jKPBU No.34262 Ignore Report Reply Quick Reply
File: 1437102218572.jpg -(111374B / 108.76KB, 460x315) Thumbnail displayed, click image for full size. 111374
I know this isn't exactly programming, but trying to wrangle CSS into doing something useful makes me want to kill myself. What kind of guide would you guys suggest for learning how to into CSS?
12 posts and 2 images omitted. Click Reply to view.
>>
Caroline Pessledock - Sun, 13 Sep 2015 21:54:30 EST ID:YPNmCKxq No.34619 Ignore Report Quick Reply
>>34448
what is this shit even saying?

Anyway, there is nothing to it but to get results on the screen as you seem them. It's a black art. I generally fuck around in the chrome web inspector until I get the magic spell that somehow produces anything that works. display: flex; is AMAZING, and you should be using it if at all possible. Use sass or less so that you can nest rules. Don't use ID's for anything; at least use attribute selectors -- [id='whatever'] { } -- instead. Make specific class names instead of lazy generalised ones. Don't be a retard and type vendor prefixes - use grunt/gulp/whatever to generate those for you automatically. And of course, you'll be doing double the work (or more) for each version of IE you support. Avoid using !important if you can. Don't postfix zeros with a unit specifier, ever. Selectors with commas go on new lines, every time, last one has the opening brace. Bootstrap's padding/margin is insane. I don't care to use it, but it's present at every job I've had lately.
>>
Caroline Pessledock - Sun, 13 Sep 2015 21:57:12 EST ID:YPNmCKxq No.34620 Ignore Report Quick Reply
>>34293
border-box: box-sizing is extremely useful. You get a comp from a designer, do you think it's going to have the size of the content specified? Fuck no. It's going to have the size of the border, and maybe the margins / padding. Using this gets you inline with how things actually work, less cognitive dissonance.
>>
Martha Dosslehork - Mon, 14 Sep 2015 02:38:43 EST ID:VyG4e/nw No.34621 Ignore Report Quick Reply
Search for CSS3 books on libgen.io
http://libgen.io/book/index.php?md5=1bd735f342bcba600afd5856a7f7d459
The Book of CSS3 NoStarchPress is good
>>
Nell Sessledurk - Fri, 02 Oct 2015 07:23:12 EST ID:+6d1kOO+ No.34675 Ignore Report Quick Reply
>>34293
The codepen.io guy right? does this stufff have anything todo with the Native DOM Functions? Webinspector ruined my life and taught me alot about the way a browser (chrome) works not by my own choosing
>>
Emma Dopperman - Sun, 04 Oct 2015 10:21:37 EST ID:ohHqcyiy No.34685 Ignore Report Quick Reply
This --> http://learnlayout.com/


BASH: how to delimit groups of lines by Doris Sammerware - Fri, 02 Oct 2015 15:05:23 EST ID:hb9jYMZ/ No.34676 Ignore Report Reply Quick Reply
File: 1443812723535.jpg -(11873B / 11.59KB, 329x400) Thumbnail displayed, click image for full size. 11873
Inspired by this http://boards.420chan.org/tech/res/117464.php post, I am trying to write my own, hash based "duplicate file finder" for the BASH.

So far it works pretty fine:
find . -type f -execdir md5sum \{\} \; | sort | awk '{ print $2 "\t" $1}' | uniq -D -f 1 | cut -f1


BUT: For improved clarity, how would I delimit the groups of associated lines (files), e.g. by a newline? Any other ideas for a similar one-liner?
>>
Doris Sammerware - Fri, 02 Oct 2015 16:07:38 EST ID:hb9jYMZ/ No.34677 Ignore Report Quick Reply
oops, improved to the worse while posting: /execdir/exec/ won't swallow the file's path.
>>
Graham Grimbanks - Sat, 03 Oct 2015 13:13:56 EST ID:hb9jYMZ/ No.34679 Ignore Report Quick Reply
Replying to myself: Overthinking it brought me to the conclusion, that this is not solvable with a one-liner.

It will need a loop (recursive for the case that a file is duplicated more than once).
>>
Graham Grimbanks - Sat, 03 Oct 2015 13:41:19 EST ID:hb9jYMZ/ No.34680 Ignore Report Quick Reply
>>34676
>>34679
And yes, it is possible, uniq is more versatile than I thought:
find . -type f -exec md5sum \{\} \; | sort | awk '{ print $2 "\t" $1}' | uniq --all-repeated=separate -f 1 | cut -f 1

Note to myself: RTFM!


Turing Completeness by Walter Memmerway - Wed, 30 Sep 2015 13:46:55 EST ID:9iIGnK/9 No.34666 Ignore Report Reply Quick Reply
File: 1443635215479.jpg -(618348B / 603.86KB, 1920x1200) Thumbnail displayed, click image for full size. 618348
What does Turing completeness imply?
Is there a problem which can only be solved by a turing-complete machine?
I think that for any problem, some computationally trivial machine could be devised to solve it. But I feel that this does not qualify that machine as Turing complete.
I think I understand what a turing machine is, I just don't understand why it is Turing Complete.
Any ideas?
>>
Eliza Denningdone - Wed, 30 Sep 2015 18:09:18 EST ID:cn/vUEbB No.34668 Ignore Report Quick Reply
>I think that for any problem, some computationally trivial machine could be devised to solve it.

The big deal about Turing completeness is that there doesn't exist a solvable computational problem that would require such a machine.
>>
Cedric Clobberbore - Wed, 30 Sep 2015 20:24:11 EST ID:bDkZFMmj No.34670 Ignore Report Quick Reply
>>34666
Coq (Math proof assistant) is not turing complete, it uses induction instead of recursion. System F, which is typed lambda calculus, is also not Turing complete and provably halts.

Turing completeness when used to describe a language is an abstract statement about it's abilities. Can it do repitition/loop and fully simulate a Turing machine. If it provably halts then no.
>>
Fuck Hackleshit - Wed, 30 Sep 2015 21:33:54 EST ID:fsld9AGU No.34671 Ignore Report Quick Reply
Turing-completeness just refers to the property of being computationally equivalent to a Turing machine. It has been proven that a Turing machine can compute anything that is computable, so a Turing-complete machine can also compute anything that is computable.


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