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


File: email.jpg (31KB, 600x500px) Image search: [Google] [Yandex] [Bing]
email.jpg
31KB, 600x500px
In JavaScript RegExp how to return what is match so far.

For example:

"123567890".match(/1234567890/i) returns "123"
"abcede".match(/abcdef/i) return "abc"

In another word return what is matched so far and disregarding the rest even if the whole regexp doesn't match.
14 posts and 4 images submitted.
>>
>>54929162
it returns an array and it ony returns one item in the array since you have ony one match
>>
>>54929289
Close but not quite. Look at the examples again.
The flag might be wrong, but you'll get the idea.

Even if the whole regexp doesn't match it should still return what is matched so far starting from the left once it stop matching.

So "abcedeabc".match(/abcde/i) will only return "abc" because that is what it was matched so far.
>>
>>54930035
it returns null to me in chromium

File: c++.png (322KB, 583x725px) Image search: [Google] [Yandex] [Bing]
c++.png
322KB, 583x725px
Sup /g/ I am looking to learn C++ and have been gifted this book, just wanted to know what /g/ thinks of it? Also good C++ books thread.
8 posts and 1 images submitted.
>>
>>54929135
My intuition tells me something with that many editions is to be avoided. Granted, that's just my uninformed opinion, but I can't recall any Nth-edition books I've read being nothing but garbage meant to be make a killing on schools and students. I also don't like how specific it is about OOP, because a lot of books waste your time with shitty and non-real-world OOP practices on you.

Honestly anon, the book you use isn't really that important. Just dive in, use the internet, and try out any books you can. Get into a cycle of learning, applying what you learn (say, working on projects), and repeating until you get your shit down.

Also expect to be confused as hell to read and reread the same thing over and over again, and not understand. That is normal, and one day it'll click. And once you're over your first programming language, any other language is clear sailing.
>>
>>54929532
cheers mate, that is actually a very helpful post!
>>
>>54929135
I find the cover of this book disturbing.
It's like they copy O'reily but can't take animals again so they decide to go with fruits.

How do you store your tools and partsnso as not to misplace them?
8 posts and 2 images submitted.
>>
>>54929091
Organization. I use my laundry room for my servers and tools.
>>
>>54929091
A toolbox?
>>
Toolboxes with cutouts for each item so that you can tell what hasn't been put back when you finish a job. Rolls Royce does it so a missing socket doesn't tear apart a plane engine when they fire it up.

File: 1444489414812.png (1MB, 1688x2000px) Image search: [Google] [Yandex] [Bing]
1444489414812.png
1MB, 1688x2000px
Who else /given into the botnet/ here?

I don't have anything to hide, what's the point of getting all flustered and inconvenienced about ideals?
26 posts and 2 images submitted.
>>
Well I don't have anything to show, so suck it Jew.
>>
File: 1464842368810.webm (24KB, 2048x2048px) Image search: [Google] [Yandex] [Bing]
1464842368810.webm
24KB, 2048x2048px
>>54929069
Google botnet is too comfy to resist desu. Chrome, Maps, Gmail, YouTube, Calendar, Keep, Translate are all so useful.
>>
>>54929069
>I don't have anything to hide
then please send me your credit card information at [email protected]

File: 1449395892533.png (55KB, 578x383px) Image search: [Google] [Yandex] [Bing]
1449395892533.png
55KB, 578x383px
So i wanna spend ~500 pounds for a new phone.
I never had a phone except old nokia,now that amazon uk delivers s7 to my country should i spend an extra 50 pounds for edge?
Also ,what color would you say looks best?
im thinking silver>gold>black.
14 posts and 4 images submitted.
>>
>>54928893
Do you still live with your parents?
>>
>>54928905
i do cause i live in eastern Europe,but i buy my own phone.
>>
Both phones are garbage. Samsung is about to sink with apple this year.

I say wait for the next OPPO, One Plus, and Asus line ups. Get the Zenfone 3 deluxe/ultra in agust, or buy a 32gb Moto X style - literally the best phone.

File: key.jpg (1MB, 1728x1152px) Image search: [Google] [Yandex] [Bing]
key.jpg
1MB, 1728x1152px
Are phones with keyboards gone for good? Would you use one?
27 posts and 4 images submitted.
>>
Hell yeah i would use one. Typing on screen is not my side.
>>
File: Priv.jpg (386KB, 1920x1080px) Image search: [Google] [Yandex] [Bing]
Priv.jpg
386KB, 1920x1080px
I'm finally back using a physical keyboard after years of going without and I couldn't be happier.
>>
>>54928821
I would love to use a phone with a horizontal keyboard like that. Problem is nobody makes them. Best we have is the Blackberry priv. I'm on a v10 right now and i love it. Would love it more if the horizontal keyboard didn't take up literally the entire screen when typing.

File: webprogrammerkek.jpg (28KB, 473x315px) Image search: [Google] [Yandex] [Bing]
webprogrammerkek.jpg
28KB, 473x315px
this is why i refuse to work with women
6 posts and 2 images submitted.
>>
>implying you work at all
>>
>>54928764
>""""""women""""""
>>
Cold fusion MAAAAAAN

File: shiggy.png (432KB, 783x739px) Image search: [Google] [Yandex] [Bing]
shiggy.png
432KB, 783x739px
If Linux is so great, why is Windows used to make Chinese Cartoons?
9 posts and 3 images submitted.
>>
It's used to host the servers you download it from.
>>
I draw my Chinese cartoons on windows because my yiynova tablet doesn't have driver support for Linux
>>
checkmate athiests

File: image.gif (85KB, 540x786px) Image search: [Google] [Yandex] [Bing]
image.gif
85KB, 540x786px
[spoiler]i don't get it
19 posts and 3 images submitted.
>>
>>54928696
There are weirdos that install doom on everything
>>
Scientist: Theoretical analysis and design.
Engineer: Practical application.
>>
>>54928696
CS is for niggers.
CE is for white males.

File: LED.jpg (130KB, 310x310px) Image search: [Google] [Yandex] [Bing]
LED.jpg
130KB, 310x310px
/g/ what are some good resources to research and or buy LED strips specifically designed to go into computer cases.
15 posts and 7 images submitted.
>>
File: 1464986193844.jpg (228KB, 700x1094px) Image search: [Google] [Yandex] [Bing]
1464986193844.jpg
228KB, 700x1094px
here is everything you need to know
>>
hurr durr my PC is beast cause I got cool light up LEDs.
>>
>>54928710
in only just noticed the subtle rice background
quality meme

Sup /g/uys! I'm on my way to build a new PC but can't really choose optimal hardware. I'm not too much into modern PC gaming (multiplats on ultra serrings and 60+ fps and so on), emulation is a priority. In this case, CPU is much more important than GPU I guess (as well as IPC), especially the fact that my Sony TV's upscaler shows 480p content pretty decent and I'm not going to up the resolution 3-4 times and more. The dilemma is choosing between something like i3 6100 (2 cores, 4 threads, 3,7 Ghz clock speed) or i5 6500 (4 real cores, 3,2 Ghz clock speed with turbo boost to 3,6). I know that Dolphin emulator is 2 thread app and very demanding on clock speed (pretty much as any emulator) but I want a little futureproof here... What about emulators like Cemu (when it will be more optimised of course), will it get any benefit from i5 CPU? Is there any significant difference in performance betwen i3 or i5 (speaking about + 0,2-0,3 Ghz in "faster" i3 of course) or games will work 60 fps on both CPUs and i 5 is a better and more future proof option? Should I spend more on i5 6600? I'd like to clarify that overlocking is not an option for me (budget motherboard + I want to go as "stock" and as low in power consupmtion as possible), so i dunno if paying for extra Mhzs would be overkill or it is crucial. Right now im going to get a new cpu + 16 gigs od RAM and using INTEL gpu until I'm getting a midrange GPU like radeon x 480. Is it a good idea to use intel graphics for native res (and without enhancement) on dolphin and pcsx2 for a while? Thank you guys in advance and sorry for my awful english
14 posts and 1 images submitted.
>>
>>54928539
yes no yes yes no yes no yes no no yes no no no yes yes yes yes no yes no no yes no yes yes no no yes yes no yes yes no yes no yes no no yes no no no yes yes yes yes no yes no no yes no yes yes no no yes yes no yes yes no yes no yes no no yes no no no yes yes yes yes no yes no no yes no yes yes no no yes yes no yes yes no yes no yes no no yes no no no yes yes yes yes no yes no no yes no yes yes no no yes k tnx bye
>>
LEeE hackingnation.org xdDD!!!
>>
>>54928539
Not reading all that shit, but a G3258 is the best cheap CPU for emulation. Get one with the cheapest Z97 board you can find, overclock it past 4GHz and you're golden.

File: 1464888258774.png (272KB, 1280x800px) Image search: [Google] [Yandex] [Bing]
1464888258774.png
272KB, 1280x800px
Redpill me on the amount of RAM, /g/.
2GB in my tablet/laptop is more than enough. It allows to me to open 15 firefox cards + poobar in the background + active data transfers through wifi + movie from home server IN THE SAME TIME. Why should I need more? Should I upgrade it to the 4GB model?
My G3258 powered desktop has 4GB and it's fine. I play fallout 4 on it and test virtual machines and it's completely fine. Why should I need more?

Also please explain the 16GB RAM meme. Why do people get so much RAM? Do people really enjoy giving developers an excuse to produce unoptimized shitware?
15 posts and 1 images submitted.
>>
muh video games
>>
>redpill
>>>/pol/
>>
>>54928297
I hate this retarded argument.
Fallout 4 works fine at 2560x1080 and everything set to medium/high on 4GBs of RAM and Windows 10. The only thing that is needed is disabling stupid unused shit running in the background like telememetry. This frees a lot of resources.

File: IMG_20160605_114608.jpg (2MB, 2432x3286px) Image search: [Google] [Yandex] [Bing]
IMG_20160605_114608.jpg
2MB, 2432x3286px
Just added 500gb to my Nexus 5. Ask me anything.
23 posts and 3 images submitted.
>>
>>54928250

Will you carry it like that?
>>
>>54928322
Nah. Mainly gonna use it on trips and in the car. Might fashion the drive and battery together later on
>>
>>54928250
Can jet fuel melt steel beams?

Hello /g/ you may have seen my posts compressing large images of OPs or other anons in threads to static Webms, that was me.

Anyway the point was to show how good VP8 compression is and how we missed out big time not adopting WebP. Sadly 4chan likes staying in the past and catering to icucks so Webp support will probably never arrive here.

I want to share with you all the scripts I have been using, just save them as .BAT, put them in the directory of images, and run them. You must have FFMpeg to run them ofc.

PNG:
for %%f IN (*.png) do (
ffmpeg -loop 1 -i "%%~nf.png" -an -c:v libvpx -qmin 16 -qmax 16 -quality best -threads 4 -t 2 -r 1 "%%~nf.webm"
)


JPG:
for %%f IN (*.jpg) do (
ffmpeg -loop 1 -i "%%~nf.jpg" -an -c:v libvpx -qmin 16 -qmax 16 -quality best -threads 4 -t 2 -r 1 "%%~nf.webm"
)


These scripts will generate a static 2 second Webm which will have reduced file sizes and nearly the same visual quality. VP8 is a lossy codec so you will lose some quality but it won't be much. You can change the -qmin and -qmax values to 4 if you want as close to lossless as possible (not recommended).

pic related is first static Webm example.
323 posts and 89 images submitted.
>>
Now here is the JPG from which the static Webm was extracted from. This JPG was saved in 100% quality
>>
File: 67580008.jpg (181KB, 587x625px) Image search: [Google] [Yandex] [Bing]
67580008.jpg
181KB, 587x625px
>>54928193
And i was thinking why always one retard would repost the fucking pictures.

But actually thanks OP for showing me how shit 4chan is. That Webm loaded really fast even tough im in eu. It's really quick compared to jpg and png.
>>
>>54928193
>using windows
Fuck off newfag

Can someone recommend me some chrome extensions that will unlock pandora fm? since media hint want a monthly pay i cant really use it.
9 posts and 1 images submitted.
>>
>>54928051
>chrome
>being this comfortable with constant data collection by the biggest advertising corporation in the world

Son...
>>
>>54928078
thats not what i asked for
>>
>>54928051
>>54928119

>/g/ is NOT your personal tech support team or personal consumer review site

Pages: [First page] [Previous page] [900] [901] [902] [903] [904] [905] [906] [907] [908] [909] [910] [911] [912] [913] [914] [915] [916] [917] [918] [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