[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Archived threads in /g/ - Technology - 1199. page


File: javascript.png (2KB, 225x225px) Image search: [Google] [Yandex] [Bing]
javascript.png
2KB, 225x225px
I'm brand new to programming, and I wanted to make a simple JavaScript program to add two numbers that were entered into the prompt. When I run it, it just combines the digits and doesn't add them. Can anyone tell me what I'm doing wrong?

var a = prompt("First Number?")

var b = prompt("Second Number?")

function add () {
add = a + b
alert(add)
}
19 posts and 3 images submitted.
>>
try replacing
add = a + b

with
parseFloat(a) + parseFloat(b)


JS is weird with how it handles types, apparently it's assuming a and b are strings so it's interpreting the '+' operator as concatenation rather than addition.
>>
>>54679000
Oh and the second piece of code should actually be
add = parseFloat(a) + parseFloat(b)
>>
oh no, not this imperative bullshit again! I thought we should be doing functional reactive programming in this day and age.


var a = prompt("First Number?")
var b = prompt("Second Number?")

var num1 = Rx.Observable.just(parseFloat(a));
var num2 = Rx.Observable.just(parseFloat(b));

addedNumber = Rx.Observable.combineLatest(num1, num2, (left, right)=>{return left+right})
addedNumber.subscribe((val)=>{alert(val)});


File: image.jpg (21KB, 292x173px) Image search: [Google] [Yandex] [Bing]
image.jpg
21KB, 292x173px
Hey guys I want to create a script heavy JRPG that is 2D.

I want to be able to have lots of freedom but not have a super performance heavy game engine. Any suggestions? I thought about using Unreal engine 4 but i'm not sure if it is well optimized for 2D games...

Even though its 2D I also want it to look good (1080p etc)
10 posts and 1 images submitted.
>>
>>54678931
rpg maker xp and up.
>>
>>54678943
is VX ace good? I got that one on sale
>>
Bumparoo

File: Untitled.png (23KB, 1070x316px) Image search: [Google] [Yandex] [Bing]
Untitled.png
23KB, 1070x316px
>Use Chrome.
>Was using shitty ass 2 year old 4Chan X.
>As of today it made 4Chan blink/strobe.
>Can't enable native extension on site, always defaults and stays disabled.

wat do?
12 posts and 3 images submitted.
>>
File: 1450061076593.jpg (145KB, 491x491px) Image search: [Google] [Yandex] [Bing]
1450061076593.jpg
145KB, 491x491px
>>54678830
>not using Appchan X
>>
1. Install Gentoo
2. Kill yourself.
3. ???
4. 4chan-x.net
>>
>>54678843
nvm I fixed it.


Adblock was blocking dem save buttonz n shiet

File: blue.jpg (136KB, 1175x1500px) Image search: [Google] [Yandex] [Bing]
blue.jpg
136KB, 1175x1500px
Yo, what's up /g/? I'm the same guy who was asking about the 598's and I was wondering what on desk mic I should get. I really don't have he budget to get one over 70-80$ so really I just want one that doesn't sound like I'm talking into a garbage disposal with 45 dicks in my mouth..I was thinking a Blue snowball iCE. /g/'s thoughts?
9 posts and 4 images submitted.
>>
File: 1462735881425.gif (2MB, 576x324px) Image search: [Google] [Yandex] [Bing]
1462735881425.gif
2MB, 576x324px
I am monitoring this thread.
>>
File: 1462125837940.jpg (108KB, 884x800px) Image search: [Google] [Yandex] [Bing]
1462125837940.jpg
108KB, 884x800px
>>54678771
glad to have you
>>
>>54678759
I have the iCE and it works fine. It sounds nice.

File: s-l1600[1].jpg (140KB, 1024x1024px) Image search: [Google] [Yandex] [Bing]
s-l1600[1].jpg
140KB, 1024x1024px
I'm not posting this topic in /sqt/ because it is not a stupid topic.

Let's share knowledge about the possibilities of using server and workstation motherboards in standard cases and with standard power supplies.
84 posts and 19 images submitted.
>>
As of right now the Xeon e5-2670 has the best price/performance ratio for any CPU on the used market. You can read about it here:

http://ark.intel.com/products/64595/Intel-Xeon-Processor-E5-2670-20M-Cache-2_60-GHz-8_00-GTs-Intel-QPI

Ideally you want two of these in a dual CPU configuration. If you can set this up you have an an outrageous amount of computational power in your hands with 32 threads, and a combined 40mb of cache. And 80 PCI-E lanes.

The cheapest motherboard which will support two of these CPUs is the motherboard found within the Dell Precision 5610.

If this motherboard keeps with standard Dell designs I am going to guess it uses a non-standard power supply connector. The question is whether or not an adapter can be found or if a power supply can be sourced from one of Dell's other product lines which may be considerably cheaper than the official 5610 PSU.
>>
>>54678789
These motherboards require a card which looks like this to receive power.
>>
File: 31-cWMxgegL[1].jpg (14KB, 300x300px) Image search: [Google] [Yandex] [Bing]
31-cWMxgegL[1].jpg
14KB, 300x300px
>>54678816
This board appears to use the standard Dell 24+16 power supply connectors.

It is my theory you can use an ATX to Dell PSU adapter to adapter the connector from a standard power supply to the Dell standard. If you do this you can use a generic PSU and drastically cut down on prices of components.

http://www.amazon.com/ATX-Dell-Adapter-Converter-Cable/dp/B001I3WW68

File: Black civ.png (420KB, 831x285px) Image search: [Google] [Yandex] [Bing]
Black civ.png
420KB, 831x285px
>find my windows 7 laptop
>think fuck yeah I have a second laptop to use for shit
>cant remember the password I used
JUST
26 posts and 3 images submitted.
>>
>>54678719
fuck off to /pol/ with your racist shit.
>>
File: 1463124467830.png (11KB, 211x246px) Image search: [Google] [Yandex] [Bing]
1463124467830.png
11KB, 211x246px
>>54678719
Gib id bab Tyrone
>>
>>54678719
Give it back tyrone

What's your honest opinion about Technigger?
34 posts and 5 images submitted.
>>
>>54678683
Fuck of shill, saged
>>
>>54678683
>phones
>tech
pick none
>>
A bit simplistic, but he's good at reviewing the important bits for normies. And he has a very good sense of style which improves his reviews.

File: skelly.jpg (3KB, 106x125px) Image search: [Google] [Yandex] [Bing]
skelly.jpg
3KB, 106x125px
Hello /g/. I have exactly one thousand dollars to spend in building a PC. I want to play games with this PC. Could someone suggest to me a list of parts for this PC so I can mod the fuck out of skyrim and stuff. Thank you.
26 posts and 1 images submitted.
>>
http://www.logicalincrements.com/

http://pcpartpicker.com/

there you go
>>
>>54678655
I am aware of PCpart picker, I thank you for your suggestion of logicalincrements as I have not heard of that website before. Thank you.
>>
just get a ps4

File: seinhauser.jpg (45KB, 407x679px) Image search: [Google] [Yandex] [Bing]
seinhauser.jpg
45KB, 407x679px
What's up /g/? I'm a dumb nigger when it comes to headphones and I was wondering what everyone's personal preferences are. I'm trading out my shit headset for a on desk snow ball mic and I was thinking of getting the 598's. What does everyone think?
6 posts and 1 images submitted.
>>
>>54678473
I got some 558's from Amazon on sale, they're pretty good.
>>
>>54678473
598's master race.

I've had these puppies for coming on three years now, and everything else sounds like shit in comparison.
>>
>>54678494
So these just hear lows and highs better? Or is it just more crisp all together

File: lPui4Wp.png (271KB, 1043x1207px) Image search: [Google] [Yandex] [Bing]
lPui4Wp.png
271KB, 1043x1207px
>tfw when Linux LITERALLY works for Intel
6 posts and 3 images submitted.
>>
File: 1448328581326.gif (236KB, 314x320px) Image search: [Google] [Yandex] [Bing]
1448328581326.gif
236KB, 314x320px
>>54678397
>Linux
You can't even shitpost right, son.
>>
>>54678397
>Linux
>too much linux shitposting
Top kek
>>
>>54678440
>>54678878
man it's past midnight here. cut me some slack.

File: ded.jpg (32KB, 680x453px) Image search: [Google] [Yandex] [Bing]
ded.jpg
32KB, 680x453px
>He runs non-free software
10 posts and 5 images submitted.
>>
File: FB_IMG_1463436980871.jpg (69KB, 938x632px) Image search: [Google] [Yandex] [Bing]
FB_IMG_1463436980871.jpg
69KB, 938x632px
>>54678375
>he spends all his free time patching useless free software made by retards
>>
Hi stallman
>>
File: 1462046257949.png (230KB, 640x360px) Image search: [Google] [Yandex] [Bing]
1462046257949.png
230KB, 640x360px
>ishiggy

File: potato clock.jpg (764KB, 2048x1536px) Image search: [Google] [Yandex] [Bing]
potato clock.jpg
764KB, 2048x1536px
my potato clock doesnt work
did I do something wrong?
13 posts and 2 images submitted.
>>
Did you try turning the potato off and on again?
>>
>>54678367
You should run it on gentoo, that will make it work
>>
>>54678367
You forgot to put it in a box with wires.

File: 1419214263068.gif (498KB, 450x338px) Image search: [Google] [Yandex] [Bing]
1419214263068.gif
498KB, 450x338px
Why do Google and Microsoft only hire people from top universities? Is there any reason not to hire independent programmers with degrees from lesser institutes, or degrees in different fields with significant experience? Anyone wants to share their experience?
34 posts and 3 images submitted.
>>
>>54678359
No one wants neet basement dwellers from an anime board
>>
>>54678359
>Why do Google and Microsoft only hire people from top universities?
False
>>
>>54678359
Back-door dealings

File: 1405311070329.jpg (537KB, 1759x1018px) Image search: [Google] [Yandex] [Bing]
1405311070329.jpg
537KB, 1759x1018px
Is space colonization possible?
20 posts and 2 images submitted.
>>
>>54678295
It's possible but I think the human race will go back to the dark ages before that happens.
>>
>>54678295
yes, but we are too busy trying to exterminate ourselves.
>>
>>54678315
This, we will have a cyber punk era battle angel Alita style before that happen

File: IMG_2216.jpg (1MB, 3648x2048px) Image search: [Google] [Yandex] [Bing]
IMG_2216.jpg
1MB, 3648x2048px
I'm considering a MBP if the skylake refresh finally happens in July.

I want a premum laptops regardless of the brand

My main reasons for going MBP over another laptop(Like that neat Dell with the thin bezel) is the fact that it has great battery life, amazing screen, and it won't devalue as quickly as a none apple Laptop.

In 3-4 years I can likely still sell it for only 30%~ less then I paid for it and upgrade to a new Macbook cheap enough and repeat the cycle.

What's your opinion /g/?
12 posts and 3 images submitted.
>>
>>In 3-4 years I can likely still sell it for only 30%~ less then I paid for it and upgrade to a new Macbook cheap enough and repeat the cycle.

okay!
>>
>wont devalue as quickly
unless they drop another generation of mbps ofcourse, then you're fucked.
if I were you I'd go for an ultrabook. if I were me I'd ofcourse buy a refurbished thinkpad and swap out some of its specs to make an equivalent computer for like a third the cost of a mbp but "muh retina" sure sure
>>
>>54678328
>unless they drop another generation of mbps ofcourse, then you're fucked.

Core2Duo MBPs still go for like $400-500

There are modern used laptops with far higher specs that sell for less used.

Pages: [First page] [Previous page] [1190] [1191] [1192] [1193] [1194] [1195] [1196] [1197] [1198] [1199] [1200] [1201] [1202] [1203] [1204] [1205] [1206] [1207] [1208] [Next page] [Last page]
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK