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


Help with responsive design CSS+HTML? by Edward Sesslefield - Thu, 20 Aug 2015 14:08:14 EST ID:UL/DRHhm No.34465 Ignore Report Reply Quick Reply
File: 1440094094881.png -(153499B / 149.90KB, 1366x768) Thumbnail displayed, click image for full size. 153499
So I'm trying to help a friend out with making his site work with mobile, and since there are a great many pages on the site, I would much rather do responsive design than a separate mobile site. The problem is, I can't get things to work right.

Thumbnail is what site looks like, a quick mspaint mockup of what I'd like the mobile one to look like is at https://www.anony.ws/image/DW4V
HTML: http://pastebin.com/nCqenejj
CSS: http://pastebin.com/JJe21f3N

The less HTML changes, the better so that I don't have to edit all ~200 pages, but any advice is appreciated. Thanks in advance for any help!
4 posts omitted. Click Reply to view.
>>
Hannah Drinnerridge - Fri, 21 Aug 2015 14:40:57 EST ID:UL/DRHhm No.34479 Ignore Report Quick Reply
>>34478
Thank you very much for your help :)
I am however getting errors whenever I try to add the box-sizing. Also, the rows of images go from 3 in a row to 2 in a row just fine, but will not go from 2 in a row to 1 in a row. Thanks again!
>>
Hannah Drinnerridge - Fri, 21 Aug 2015 14:48:12 EST ID:UL/DRHhm No.34480 Ignore Report Quick Reply
btw I am OP, idk why my name changed :/
>>
Hannah Drinnerridge - Fri, 21 Aug 2015 14:55:05 EST ID:UL/DRHhm No.34481 Ignore Report Quick Reply
>>34479
Turns out that there was a min-width property that just needed removing for the second issue.
>>
Charlotte Nottinghork - Fri, 21 Aug 2015 15:29:14 EST ID:9vHdJ+Dd No.34482 Ignore Report Quick Reply
>>34480
Names change randomly/often but your ID (UL/DRHhm) stays the same :)

What's the error you're getting when you try to apply box-sizing?
>>
Hannah Drinnerridge - Fri, 21 Aug 2015 17:19:42 EST ID:UL/DRHhm No.34485 Ignore Report Quick Reply
>>34482
Turns out I'm just an idiot and had the schema set at CSS2.1 instead of CSS3.
Now the only parts left to do (at least for the homepage) are to remove the top image (easy), remove the yellow line that goes down the page (not sure what's even making the line), make the navigation list with Twitter and stuff scale (medium-hard), and make the menu collapse (hard)


C++ hints by C++ - Thu, 20 Aug 2015 14:42:22 EST ID:2j/vWnYO No.34466 Ignore Report Reply Quick Reply
File: 1440096142358.png -(37459B / 36.58KB, 254x256) Thumbnail displayed, click image for full size. 37459
Get 1 C++ hint every day http://cpphints.com/
>>
Cornelius Fosslepotch - Thu, 20 Aug 2015 16:59:49 EST ID:N0pGLuAq No.34468 Ignore Report Quick Reply
Here's a hint: use literally anything else.
>>
Jack Fandleham - Thu, 20 Aug 2015 18:02:56 EST ID:OheqWBBY No.34470 Ignore Report Quick Reply
1440108176882.jpg -(125355B / 122.42KB, 399x476) Thumbnail displayed, click image for full size.
>>34468


Help with SQL-report loop, please? by Hedda Denderstot - Wed, 19 Aug 2015 05:02:30 EST ID:DGztzgsT No.34445 Ignore Report Reply Quick Reply
File: 1439974950662.jpg -(96111B / 93.86KB, 1000x646) Thumbnail displayed, click image for full size. 96111
Please don't laugh. I know it's not normalized and the data is (supposed to) entered achronologically, but it looks something like this:

[code]
#01 2009-11-11 Bookstore Book Art 200.00
#01 2009-11-11 Bookstore Book History 50.00
#01 2009-11-11 Bookstore Paymt. Cash -100.00
#01 2009-11-11 Bookstore Paymt. Card -150.00

#02 2009-11-09 Gaym'aven Vidya Mario 20.00
#02 2009-11-09 Gaym'aven Vidya Zelda 25.00
#02 2009-11-09 Gaym'aven Vidya Sanic 28.00
#02 2009-11-09 Gaym'aven Candy Skittles 10.00
#02 2009-11-09 Gaym'aven Soda Cola 2.00
#02 2009-11-09 Gaym'aven Paymt. Cash 85.00
Comment too long. Click here to view the full text.


Post a useful script by Nigger Braddlehall - Wed, 19 Aug 2015 02:28:48 EST ID:svCCYw3P No.34443 Ignore Report Reply Quick Reply
File: 1439965728980.jpg -(14372B / 14.04KB, 640x480) Thumbnail displayed, click image for full size. 14372
Post a useful script you have any language welcome
Image scrapper for *chans (in ruby)
[code]
require "mechanize"
require "nokogiri"

unless ARGV.length == 1
puts "Usage: scrapper url"
exit
end

agent = Mechanize.new { |agent| agent.user_agent_alias = "Mac Safari" }

url = ARGV[0].chomp.lstrip
html_doc = Nokogiri::HTML(agent.get(url).body)
Comment too long. Click here to view the full text.


Where do I start? by Beatrice Sibblelock - Mon, 10 Aug 2015 10:56:48 EST ID:Lod/m/HN No.34398 Ignore Report Reply Quick Reply
File: 1439218608350.jpg -(18177B / 17.75KB, 256x177) Thumbnail displayed, click image for full size. 18177
So I am completely new to programming. I'll be taking a web developing course that will teach me pretty much everything except C. I know that there is C, C+, and C++ What is the real difference between these? Which one should I start learning first? If Are the pluses just more advanced versions of the previous ones? Like if I learn C++, will I automatically know C and C+ ?
12 posts omitted. Click Reply to view.
>>
Wesley Tootbury - Sat, 15 Aug 2015 15:03:04 EST ID:OheqWBBY No.34428 Ignore Report Quick Reply
>>34423
Oh, forgot to mention a company (not a major one, ~300 people) contacted me and asked me if I could come work for them. All because I have a tiny bit of haskell code in github.
>>
Archie Lightford - Sat, 15 Aug 2015 15:40:22 EST ID:bpem8ujQ No.34429 Ignore Report Quick Reply
>>34426
>And what exactly would that "same shit" be?
it means now that you have your tools you are capable of showing up to work, unless of-course your idea of work is actually pretty fun =]

>>34428
>Oh, forgot to mention a company (not a major one, ~300 people) contacted me and asked me if I could come work for them. All because I have a tiny bit of haskell code in github.

what kind of tiny haskell code????
>>
Wesley Tootbury - Sat, 15 Aug 2015 17:04:51 EST ID:OheqWBBY No.34430 Ignore Report Quick Reply
>>34429
>what kind of tiny haskell code????
Answers to a short haskell 101 course.
The most complex piece was an implementation of binary search tree, about hundred lines of code.
All the exercises combined there's probably between 600-800 lines of code.

Hopefully you do understand if I do not wish to link my personal information here.
>>
Esther Hurrywudging - Sat, 15 Aug 2015 20:46:38 EST ID:19DuHLgF No.34431 Ignore Report Quick Reply
>>34430
Link to that course? Is is Learn you a Haskell? I heard that was good from a guy going to work at Google.
>>
John Pockwell - Sun, 16 Aug 2015 01:46:33 EST ID:OheqWBBY No.34434 Ignore Report Quick Reply
>>34431
Unfortunately the I took course was taken down.
LYAH itself is just a book (a free one at that: http://learnyouahaskell.com/chapters), but doesn't include any exercises. Someone has produced a few, quality varies, but I guess they're better than nothing at least: https://github.com/noelmarkham/learn-you-a-haskell-exercises
Then there's https://wiki.haskell.org/H-99:_Ninety-Nine_Haskell_Problems which are reasonable as long as you skip all the randomness questions on your first go.
No, I haven't solved all these, less than half IIRC.

Also sorry for OT.


Self Learning Computer Science by Ernest Seshmon - Fri, 24 Jul 2015 06:26:39 EST ID:R1bcGa0b No.34294 Ignore Report Reply Quick Reply
File: 1437733599954.jpg -(67364B / 65.79KB, 640x426) Thumbnail displayed, click image for full size. 67364
I've always been interested in computers. Even messed around with coding a little bit when I was younger making Adobe Flash games. Would it be possible to learn programming/computer science by myself instead of getting a degree and get hired by a major tech company? I want to get an accounting or finance degree (currently in college) because I have family in the industry and I feel like I fit well for it. However I can't help but want to pursue my interest in technology. I want to make good money from whatever I decide to do and would like to explore computer science and learn programming languages by myself while I'm in school but only if tech companies will take me seriously if I choose to go that route. Thanks guys

Pic unrelated random one off the family computer
15 posts omitted. Click Reply to view.
>>
Henry Noggleford - Fri, 07 Aug 2015 20:24:23 EST ID:2Vb7Tojw No.34380 Ignore Report Quick Reply
>>34350
Eh, you forgot consulting. Though admittedly that's not a job you start in, it's a job you end in if you get sick of working for other assholes and also know your shit. Something to work towards I suppose if you are so inclined.
>>
David Gottingfudging - Sat, 08 Aug 2015 16:28:07 EST ID:OheqWBBY No.34389 Ignore Report Quick Reply
>>34380
We live in different worlds.
Where I live consulting is said to get its name since it's part being a con-artist and part just insulting.
Students laugh at graduatees (or even students) who start as consults in big companies.
Sure the pay is good, but the companies are known to produce shit and only the most braindead
people seem to manage there.
>>
Nell Bebberketch - Sat, 08 Aug 2015 18:22:31 EST ID:iuxgME01 No.34390 Ignore Report Quick Reply
>>34389
Why would you laugh at someone for getting paid?
>>
Ernest Drengersedging - Sun, 09 Aug 2015 05:54:38 EST ID:OheqWBBY No.34391 Ignore Report Quick Reply
>>34390
Because we consider them to be selling their life, morality, sanity and eventually their passion for the field.
We actually really believe there is more to life than just money.

The guys who don't want to be braindead and sick of their life in their 30's usually take a little less paying
job in a smaller product company (don't know if that's a word, a firm that has its own product(s)).
>>
Isabella Shakeway - Sun, 09 Aug 2015 14:34:26 EST ID:6r8vjRPv No.34393 Ignore Report Quick Reply
1439145266711.png -(90501B / 88.38KB, 460x300) Thumbnail displayed, click image for full size.
>>34389
Consultants where I live specialize in something, like trading optimization or algorithm development or security code review and charge $2,000 per day. It's the top tier of contractor developer jobs.

Full Stack Developers are also in high demand remotely, you can make about $160k USD per year just maintaining some startup web app or online store. Pretty easy to get into this work, look up what flavor du jour these startups are all using like Coffeescript, AngularJS, Ruby, Chef or Ansible, Docker, version control (git) ect.

If you want extra money, move into security by running basic security tests to expose bugs. Read about how to safely set up an AWS account so if it gets jacked you don't lose all your servers. https://cloudonaut.io/your-single-aws-account-is-a-serious-risk/

Read why Gmail can't be trusted as your only authentication method since it's so easy for somebody to reset the password by just spoofing the phone number. Disable SMS for 2-step and SMS for password resets and use a 2-step mobile app. It's little advice like this that the company 'founders' will have no idea about and will save them massive PR humilation should they lose their Gmail account to some Polish hacker holding it for ransom.

After finding bugs, and being proactive in priv segregating your infrastructure to prevent easy attacks you'll get rewarded with "Chief Security Engineer" position because literally nobody knows anything about security, it's just a vast field of clueless devs who are doing things like directly pulling in ruby gems and installing them with full privs blindly on the command line piping them to sh

Now that you're good at security tests, and implemented all the OWASP recommendations start reading advanced books on web app security, and get everything you can on security code assessment http://taosecurity.blogspot.ca/2011/09/impressions-art-of-software-security.html to further expose bugs.

If your startup grows, you will now be parachuted into "CISO - Chief Information Security Officer" which means you are power business suit guy making huge executive cash with private corner office and major corporations calling you w…
Comment too long. Click here to view the full text.


Github? by Charlotte Gocklebetch - Sun, 04 Jan 2015 20:12:23 EST ID:1iRWw49z No.33134 Ignore Report Reply Quick Reply
File: 1420420343851.jpg -(38128B / 37.23KB, 600x400) Thumbnail displayed, click image for full size. 38128
hello_prog();

>github thread?

post interesting projects, share your own, ask questions, etc
22 posts and 2 images omitted. Click Reply to view.
>>
Samuel Burringnock - Wed, 01 Apr 2015 22:16:16 EST ID:etKi90nT No.33715 Ignore Report Quick Reply
>>33713
But that's just because it's more efficient, right? I guess my question is, does anyone ever think "huh, interesting, they forked my code"? Or is it a complete non-issue.
>>
Molly Billinggold - Wed, 01 Apr 2015 22:37:06 EST ID:6DDVyI/E No.33716 Ignore Report Quick Reply
>>33715
I don't think people are generally aware when someone clones their public repository. I don't even know if that's possible on Github.
>>
Walter Niggerwell - Wed, 01 Apr 2015 23:33:06 EST ID:CXejOq2I No.33717 Ignore Report Quick Reply
>>33716
Doesn't github show the pulls? So it probably shows the clones, right? I'm just guessin
>>
William Buzzdale - Thu, 02 Apr 2015 15:03:44 EST ID:2iN6l/iJ No.33724 Ignore Report Quick Reply
>>33716
You can see the number of clones under Traffic if you're the admin of a repo. There's not a perfect way of figuring out how many people are using your project though.
>>
Matilda Fuckingbanks - Fri, 07 Aug 2015 15:49:52 EST ID:M3D6ke1f No.34379 Ignore Report Quick Reply
>>33715
Forking is cloning. Github specifically makes the distinction because you can't push upstream unless you're listed as a contributor, but to git itself, and version control in general, there's no "technical" difference (and there's no special command for it either). Intuitively, it's just cloning with the intent to modify the code without pushing all the changes back upstream. But in git's understanding of the world, there is no upstream. There's just the code here, and the code there, and a difference of hash values.
Thus, forking then cloning is nonsense, since you're doing the same action twice.

As for caring, the whole point of OSS is that anyone can come in and modify the code to suit their own purposes. Fundamentally, being free to fork code without a care in the world is the whole point. And the ideal of the so-called hacker is that his code is forked often, as it means he has written good code, and done good work, such that his fellow hacker can appreciate and utilize his efforts.

There are some politics in the matter, but for the most part not really. the future's /g/ throws a fit every now and then about a repo being cloned, and it being "unfair" to the original authors, but its mostly nonsense.
And then you have the scenario when, in a scene where there really isn't any competition or "major" forks, such a fork suddenly comes about, and you have controversy. Like neovim, and xemacs. In this case the changes are so drastic, codewise that the fork can't contribute back to the mainline, yet use-wise, they fulfill the exact same niche.
But thats not something you need to worry about.

Fork as much as you like, no one cares. Ideally, if your changes are good, contribute back upstream, but there's nothing that actually compels you to do so.a


Time programming by Ernest Niggleworth - Tue, 04 Aug 2015 07:55:05 EST ID:XRZi9q6B No.34365 Ignore Report Reply Quick Reply
File: 1438689305653.jpg -(902720B / 881.56KB, 2448x3264) Thumbnail displayed, click image for full size. 902720
I want to write a function in python using time.
The gist of what I want to do is to design a loop that only activates after 4:20pm but I don't really know how to mess with time yet .

I'm using python to program btw.
I want to say "While time.localtime() >4:20pm:
Activate party.

I know that isn't how im going to write it but I want some help, as I have no idea what arguments this function takes even after reading over all the documentation. All i get is error messages instead
>>
Shit Ninkinfoot - Tue, 04 Aug 2015 11:09:30 EST ID:bv1+PRnR No.34366 Ignore Report Quick Reply
Check out time.mktime(), you can use that to change human time to seconds since January 1, 1970, making comparison easy.
>>
Whitey Darrychere - Tue, 04 Aug 2015 12:56:46 EST ID:OheqWBBY No.34367 Ignore Report Quick Reply
>>34365
I would use datetime:
http://www.saltycrane.com/blog/2008/06/how-to-get-current-date-and-time-in/
>>
Albert Fippersitch - Tue, 04 Aug 2015 15:09:10 EST ID:ye2oh+to No.34368 Ignore Report Quick Reply
1438715350609.jpg -(38417B / 37.52KB, 694x801) Thumbnail displayed, click image for full size.
DICKS EVERYWHERE
>>
Martha Megglewell - Fri, 07 Aug 2015 10:13:36 EST ID:0IC9zbFe No.34377 Ignore Report Quick Reply
>>34368
That's beautiful.
>>
Matilda Fuckingbanks - Fri, 07 Aug 2015 14:05:13 EST ID:M3D6ke1f No.34378 Ignore Report Quick Reply
>>34365
time.localtime() converts unix time, to, well, local time.
If you don't give it an argument, it will simply use time.time() (which produces the current unix time, in milliseconds), which is presumably what you want it to do.
Now the question is, how in the hell do you represent time? 4:20pm simply isn't enough information to cover all cases and needs that localtime() might be used for, or any other time function.
The problem you're having is that "4:20pm" does not conform to the same structure as time.localtime (which produces a struct_time object), and thus the comparison is invalid.

From there, you have multiple options, but since localtime() produces an object, you could simply compare against its attributes.
ie
a = time.localtime()
if a.tm_hour == 17 and a.tm_min == 20:
...

The datetime method is basically the same.


Help with pointers by Sofa King We Todd Ed - Thu, 30 Jul 2015 22:39:21 EST ID:TYWzUgM/ No.34341 Ignore Report Reply Quick Reply
File: 1438310361652.jpg -(186973B / 182.59KB, 600x443) Thumbnail displayed, click image for full size. 186973
Hey guys, going to school and pointers are difficult because I'm apparently retarded.

Why does a function
int doSomething(int x, int y)

do the same thing as
int doSomething(int &x, int &y)

Whats the difference in calling the variable and it's address if the result is the same?
3 posts and 2 images omitted. Click Reply to view.
>>
Graham Fuckinghall - Fri, 31 Jul 2015 00:00:14 EST ID:Ew1xe7Or No.34345 Ignore Report Quick Reply
1438315214216.jpg -(51391B / 50.19KB, 500x604) Thumbnail displayed, click image for full size.
>>34344
Those aren't actually pointers, btw. Pointers look like this:

void foo( int *bar )


>When you pass a reference as a parameter, it directly manipulates the variable itself.

Yes.

> Therefore to return data from a function that manipulates data from pointers, you have to return the *variable since there's no local data to return.

Returns are copies as well, you can do
int foo( &a ) {
return a;
}
Comment too long. Click here to view the full text.
>>
Ernest Clurryson - Fri, 31 Jul 2015 10:45:47 EST ID:fsld9AGU No.34346 Ignore Report Quick Reply
>>34344

One thing to note is that pointers (int *x) and references (int &x) are not quite the same thing. A pointer is a variable that represents a memory address. You can dereference it, take pointers to it (int **x), and even perform arithmetic on it.

You can do none of those things with references, which are basically declaring to the compiler that you want a variable to represent some other variable without explicitly having to deal with that fact. This means that the compiler might optimize things around behind your back, so your reference variable might not even exist in the optimized code. Eg.

int x = 5;
int &y = x; // the compiler might just go "hey, this just points at x, I'll replace y with x wherever I see it"

>>34345
>Returns are copies as well,

Unless you're returning a reference to something:

  
Comment too long. Click here to view the full text.
>>
Ernest Clurryson - Fri, 31 Jul 2015 10:49:23 EST ID:fsld9AGU No.34347 Ignore Report Quick Reply
>>34346

Note: NEVER return a reference or pointer to a non-static variable declared inside a function! That memory effectively disappears when the function returns. It might appear to work some of the time but it's a really terrible idea.
>>
Nathaniel Picklemut - Sun, 02 Aug 2015 21:12:30 EST ID:PW18fUqr No.34362 Ignore Report Quick Reply
>>34346
Under the hood, references may be compiled down to pointers. Also, you *can* take a pointer to a reference variable just fine (it will end up taking a pointer to the original reference, not a pointer to the local reference if that makes sense).

Also never return a reference or pointer to a local variable! This always ends poorly!!!
>>
Ian Challykatch - Tue, 04 Aug 2015 21:26:42 EST ID:fsld9AGU No.34369 Ignore Report Quick Reply
>>34362

What I meant was, you can't take a pointer to the reference itself - you CAN take a pointer to the thing the reference is referencing.


Moving from Delphi and Pascal to C by Reuben Budgepodge - Wed, 29 Jul 2015 23:20:53 EST ID:fDsXpBG0 No.34339 Ignore Report Reply Quick Reply
File: 1438226453007.jpg -(192525B / 188.01KB, 500x635) Thumbnail displayed, click image for full size. 192525
If I know both Pascal and Python (out dated I know but it's what I cut my teeth on) then how much more difficult is it to move to any of the C languages.also which C is used most in game programming and which is used more in the business world.

I know a few other languages like perl and python (but I know only enough of each to get by) among numerous web languages but I want to get more into developing computer games and programs (mainly for fun but it would be good if I can expand from web design/administration to other things). Thanks for the help.
>>
John Mongerson - Sun, 02 Aug 2015 20:26:30 EST ID:19DuHLgF No.34361 Ignore Report Quick Reply
>>34339
C++ or C# for games. Biz world is getting very C#.


How to build a game engine by Fuck Nollerbury - Fri, 31 Jul 2015 20:01:09 EST ID:9CC1LTdp No.34348 Ignore Report Reply Quick Reply
File: 1438387269227.jpg -(67912B / 66.32KB, 550x367) Thumbnail displayed, click image for full size. 67912
Is here any programmer who can give me a good advice?
>>
Phoebe Brookforth - Sat, 01 Aug 2015 06:46:52 EST ID:S2vTLPe0 No.34352 Ignore Report Quick Reply
>>34349
You know, there are a tons of licensing shit, we want to build our own engine to make games on it without any problems.
We want to start from 2D engine (similar to mario).
>>
Nigger Ponningdane - Sat, 01 Aug 2015 11:05:35 EST ID:ye2oh+to No.34356 Ignore Report Quick Reply
>>34349
This.
Make a game in an existing engine you pirated and then if it actually works and people enjoy it, only then think about making your own engine and even then you probably shouldn't bother.
>>
Ian Bardcocke - Sat, 01 Aug 2015 11:21:50 EST ID:OheqWBBY No.34357 Ignore Report Quick Reply
>>34352
For 2d games I would recommend looking at http://www.glfw.org/ and its tutorials.
Unless you want to go deeper then just use pure opengl and figure out how to capture user input in a meaningful way. And if using frameworks such as OpenGL is too high level then I guess you are left with software rendering (or developing your own hardware).


RVA to file offset by Oliver Chovingmick - Tue, 28 Jul 2015 23:19:45 EST ID:uDo1PSNc No.34336 Ignore Report Reply Quick Reply
File: 1438139985454.jpg -(620888B / 606.34KB, 1024x768) Thumbnail displayed, click image for full size. 620888
I'm writing a program to dump the import table for learning purposes. I would like to use file offsets instead if using the Win32 memory mapping API because I'm more familiar with fopen/fread/fseek and would like to make it cross platform. I'm having trouble translating an RVA to a file offset. Here is my code http://pastebin.com/TqyQMhgd The Section Headers should be right after the PE header but I'm getting garbage values.


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