[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 - 2526. page


File: isla2.jpg (213KB, 1360x765px) Image search: [Google] [Yandex] [Bing]
isla2.jpg
213KB, 1360x765px
Can anyone help me with this Python program?

>have a bunch of names
>need first char of each name to be printed on same line in uppercase

Code:
#!/usr/bin/env python

def get_upper(string):
new_string = ''
for char in string:
new_string = new_string + char.upper()
if new_string:
return new_string
else:
return False

def get_lower(string):
new_string = ''
for char in string:
new_string = new_string + char.lower()
if new_string:
return new_string
else:
return False

def get_name(name):
return name

def get_first_letter(name):
first = None
for letter in name:
if get_lower(letter) == get_lower(name[0]):
first = get_lower(letter)
if first:
return first
else:
return False

def operations():
name_list = []

counter = 1

while counter < 8:
if counter == 1:
name_list.append("get_name('terry')")
elif counter == 2:
name_list.append("get_name('rose')")
elif counter == 3:
name_list.append("get_name('opie')")
elif counter == 4:
name_list.append("get_name('luke')")
elif counter == 5:
name_list.append("get_name('larry')")
elif counter == 6:
name_list.append("get_name('eddie')")
elif counter == 7:
name_list.append("get_name('derrik')")

counter = counter + 1

if counter > 7:
break

for name_func in name_list:
name = eval(name_func)
first_letter = get_first_letter(name)
print get_upper(first_letter),

operation()


Getting this error though:
Traceback (most recent call last):
File "lol.py", line 65, in <module>
operation()
NameError: name 'operation' is not defined


operation() clearly is defined though, so what's wrong?
13 posts and 2 images submitted.
>>
You defined operations and you are calling operation
>>
OPERATIONS

not OPERATION
>>
>>52401027
Nice code.

File: 1434175606381.jpg (21KB, 480x600px) Image search: [Google] [Yandex] [Bing]
1434175606381.jpg
21KB, 480x600px
>he connects to 4chan via the https:// protocol
>the same protocol used to secure financial transactions and other critical communications worldwide
>he thinks he's not "safe" from eavesdropping
>he thinks he's "being watched"
12 posts and 2 images submitted.
>>
You do realise the authorities can court order your financial records, that you sent using HTTPS? You do realise that HTTPS says not enough about a Web server's security as it says nothing about whether it still uses SSL (deprecated as per IETF RFC 7568) instead of TLS (namely 1.2), or which weak cipher suites the Web server supports?
>>
>living in amelica where any of this matters
loving every laugh
>>
>>52401055
There's not really even any proof that it matters in America... well until TPP passes but then a lot of countries will be fucked.

File: images.png (2KB, 112x112px) Image search: [Google] [Yandex] [Bing]
images.png
2KB, 112x112px
Why do a lot of people on /g/ hate Fedora linux? The fedora meme is no valid reason unless you are a child and can't objectively judge a distro.
17 posts and 1 images submitted.
>>
>>52400870
I kinda like not to be guinea pig for corporations.
Also I do work on my computer,can't afford for unstable unnecessarily bleeding edge stuff meant to be a testing ground.
Its called a fucking FEDORA.
>>
"There's two kinds of linux distros. Those that people hate, and those that no one uses."
>>
>>52400870
A lot of people here use it. You need to stop listening to the loud memers

File: 20151130105546.png (15KB, 663x376px) Image search: [Google] [Yandex] [Bing]
20151130105546.png
15KB, 663x376px
Reminder
24 posts and 2 images submitted.
>>
>>52400849
Automatic every 12 hours, but thanks for the advice never the less, Anon.
>>
>>52400849
Thanks for the reminder. I do need to set-up a back-up system.
>>
>>52400954
do you back up to a physical hard drive or a cloud server?

File: images.jpg (10KB, 526x279px) Image search: [Google] [Yandex] [Bing]
images.jpg
10KB, 526x279px
One 480 GB SSD or two 240 GB SSD?
36 posts and 1 images submitted.
>>
One 2TB SSD
>>
50 50 GB PATA drives
>>
240 if its just for operating systems and small programs/small games. Get external for files. Games/programs. At least 1Tb

File: CYAU-EUWsAEp5q_.png (53KB, 600x600px) Image search: [Google] [Yandex] [Bing]
CYAU-EUWsAEp5q_.png
53KB, 600x600px
What is functional programming good for except writing one-liners?
13 posts and 1 images submitted.
>>
Writing entire programs
>>
Writing clickbait blog posts.

Making ideas from the 60's and 70's seem new by changing their name and syntax.

Abusing mathematical terminology.

Confusing the map with the territory.
>>
What is provability?

File: arch-logo.png (117KB, 2000x1499px) Image search: [Google] [Yandex] [Bing]
arch-logo.png
117KB, 2000x1499px
>bleeding edge
>kernel 4.3

hue!

**https://github.com/torvalds/linux/releases**
11 posts and 3 images submitted.
>>
File: 1449098213682.jpg (242KB, 700x504px) Image search: [Google] [Yandex] [Bing]
1449098213682.jpg
242KB, 700x504px
>>
I'm sorry you're too much of a noob to install Arch, anon. Best stick to ubuntu, eh?
>>
>not compiling your own kernel <br/>
>being this much of a faggot <br/>

File: 2016-01-13 21.26.18.png (797KB, 2560x1600px) Image search: [Google] [Yandex] [Bing]
2016-01-13 21.26.18.png
797KB, 2560x1600px
Guys what should I choose out of these two:

Core 2 Duo E4700 $170
FSB 800 MHz

Core 2 Duo E7600 $165
FSB 1066 MHz

The most important thing is that the cpu will run at FSB speed of 800 MHz in both cases ,due to chipset limitation.

Ofcourse I will buy used so prices will be less.
39 posts and 1 images submitted.
>>
Depends on the multiplier and cache sizes.
>>
>>52400499
Please elaborate,
I will list any details you need ,just tell me.
>>
If you even can get that e7600 working in a 800fsb motherboard it will run at 2.3ghz at stock. It does have 1mb more of l2 cache though.

I'd just use the e4700 desu senpai.

File: 1450103342586.jpg (98KB, 808x805px) Image search: [Google] [Yandex] [Bing]
1450103342586.jpg
98KB, 808x805px
Someone explain function pointers in C to me
11 posts and 2 images submitted.
>>
Explains function pointers in C to OP.
>>
It is a pointer to a function.
>>
They're a pointer to the subroutine that they abstract. The type and calling convention are responsible for setting up the call correctly.

File: homeless programmer.jpg (26KB, 329x379px) Image search: [Google] [Yandex] [Bing]
homeless programmer.jpg
26KB, 329x379px
Hi /g/, if I don't start making money within a month I'll go homeless. Due to legal reasons, I cannot legally get a job. What can I do on cash or bitcoin to make quick to sustain myself? I know Java, C#, SQL, HTML, Javascript, Swift, CSS, DevOs, Linux, Windows and general computer shit very well.

Help me out here /g/
I'm in Burgland
21 posts and 4 images submitted.
>>
>>52400021
Make a porn game.
VERY.
WELL.
Open patreon.
>>
>HTML
>coding

no wonder he's homeless
>>
Go back to your own country you illegal immagrant scum

File: Liberation-fonts.svg.png (59KB, 2000x675px) Image search: [Google] [Yandex] [Bing]
Liberation-fonts.svg.png
59KB, 2000x675px
What does /g/ use?

https://fedorahosted.org/liberation-fonts/
https://github.com/pravins/liberation-fonts
http://www.fontsy.com/font_details_21967.html
16 posts and 4 images submitted.
>>
Times New Roman is the best typeface.
>>
San Francisco, Helvetica Neue and Lucida Grande :^)
>>
File: nokia_oure_font.gif (95KB, 630x840px) Image search: [Google] [Yandex] [Bing]
nokia_oure_font.gif
95KB, 630x840px
>>52399899

Hey /g/, beginner-intermediate programmer here wondering if I should bother picking up C or C++ as a programming language.

Some things I already know:
- Java
- Ruby
- Python
- PHP
- Javascript/HTML/CSS
- Bash

Discuss C vs. C++ and your opinion on if I should pick one (or both) of them up.
16 posts and 1 images submitted.
>>
>>52399771
Knowing how to write for loop, doesn't mean you know the language. Focus on them a little more, instead of jumping on the new one
>>
>>52399798
I have basic to intermediate programs written in each of them using basic data structures.

I would be learning C/C++ for educational purposes rather than utility. Mainly to get a grasp on more complex data structures (binary tree, graphs, etc)
>>
>>52399771
Learn how to program, not the language themselves.
Just use Python or whatever and do projects in it.

When you have learned programming then picking up syntax is piss easy.

File: applel.jpg (90KB, 600x804px) Image search: [Google] [Yandex] [Bing]
applel.jpg
90KB, 600x804px
meymey thread only the dankest memes
23 posts and 8 images submitted.
>>
File: Optimized.png (530KB, 618x968px) Image search: [Google] [Yandex] [Bing]
Optimized.png
530KB, 618x968px
>>
File: 1433694169620.jpg (139KB, 720x960px) Image search: [Google] [Yandex] [Bing]
1433694169620.jpg
139KB, 720x960px
>>52399763
The meme is MacBath, you dumb motherfucker.
>>
>>52399805
i would prolly buy it
[spoiler]just for shitposting on /g/[/spoiler]

is this a good service? or is it trash
35 posts and 3 images submitted.
>>
It's pretty solid, senpai
>>
>>52399577
If you dont mind google spying on you or loosing your files when your account gets hacked or suspended, it's not too bad. Fairly competitive pricing too if you need lots of storage.
>>
>>52399601

>loosing

disregarded

File: 1356323479537.jpg (35KB, 500x433px) Image search: [Google] [Yandex] [Bing]
1356323479537.jpg
35KB, 500x433px
Best laptop for taking notes/writing papers?

Best laptop for work?

Also interesting link in relation to taking notes via a laptop
https://hbr.org/2015/07/what-you-miss-when-you-take-notes-on-your-laptop

I'll start

Best laptop for taking notes/writing papers?
Asus Zenbook UX305

Best laptop for work?
T450S
24 posts and 5 images submitted.
>>
t420
>>
>>52399525
I'd also be embarrassed if my co-workers saw my desktop having icons on it.
>>
for notes: pen plus paper (article) but keep the laptop ready (in standby mode) to quickly look sth. up

Pages: [First page] [Previous page] [2517] [2518] [2519] [2520] [2521] [2522] [2523] [2524] [2525] [2526] [2527] [2528] [2529] [2530] [2531] [2532] [2533] [2534] [2535] [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