Information Technology

How are websites automatically hyperlinked when you post them on certain sites? (such as Twitter)

Learn Programming - Thu, 11/15/2018 - 20:03

Im building a website and i need the user to be able to enter a URL, click a "add source" button, then have the website be posted as a hyperlink (so it can be visited at any time). The best example i could think of is how twitter, or even reddit really, automatically hyperlinks the website like this :

submitted by /u/Zelnz
[link] [comments]

It's the age old question! Vue, Angular or React?

Learn Programming - Thu, 11/15/2018 - 20:03

Newcomer to JS frontend framework. I've worked with and like bootstrap. i know JS. so, what's ur pick if u have to be good with it in three days (full days) time?

submitted by /u/balne
[link] [comments]


Price: 1800 dollar limit

Thinness and form factor: I prefer heavier laptops, but still something that can fit in my bag.

What I'm looking for: I want something that can play games like league on high settings, overwatch on normal, and things like that. I'm not in it to play god of war or anything like that. I also want it to be good at video editing and photo editing. If it could play things like Roms of old games, that'd be cool too.

Specifics: I don't really want it to look insane or anything like that. Just normal black or gray is fine. Light up keys would be nice though. Again, I'm fine with bulky, but not a suitcase.

submitted by /u/Ola_oni
[link] [comments]

Stick with Software Engineering or change majors to Animation and Game Development?

Learn Programming - Thu, 11/15/2018 - 20:01

Right now I am about halfway through my degree in Software Engineering. I found out my college offers a major in Animation and Game Development, which I would be much more interested in. I generally feel more creatively inclined than algorithm inclined. Is there a substantial difference in expected annual salary for these two majors? What other factors do I simply not know because of my limited experience in the field?

submitted by /u/HawaiianSparrow
[link] [comments]

A college student looking for a good Windows laptop under 900$ for software programming (Java, C++, etc)

Total budget and country of purchase: $650-$850

Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply.

I would prefer a good battery life that lasts 7 - 9 hours at least, and would prefer a touch screen, but without is also fine. l prefer the laptop to have at least 8 GB RAM and 128 GB, and 8th generation i5 or i7 processor.

How important is weight and thinness to you

Very important, I would like to be portable, that is less than 3 pounds, but would still like it to be a strong built.

Which OS do you require? Windows.

Do you have a preferred screen size? If indifferent, put N/A. 13" to 14" is good enough.

Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. Eclipse, Steam, Microsoft Office, Adobe Photoshop.

Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)?

should be a good built simple back lit keyboard, with or without a finger print reader, and should be able to type comfortably as I need to write a lot for essays, coding, etc.

Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion.

I currently own a Acer chromebook 14, which was absolutely fine using Google Docs for my assignments, until I started taking computer science courses which required me to download actual software such as Eclipse for java programming. Luckily, Chrome OS added a new functionality of using Linux apps to run programs like Eclipse. However, my chromebook which only has 4GB RAM and limited storage could not handle it, and crashed a lot.

Through my research, some of my picks includes ultrabooks such as Asus Zenbook UX310UA, or the less expensive ASUS Vivobook series, Lenovo Yoga 730 as a 2 in 1 option. Would prefer the laptop to be light and portable as my chromebook, which is easy to carry around to travel, and do not care for applications that come with Windows, but I have found most of the laptops suggested for software programming has been on the heavier side. Would prefer the laptop to be quiet, which does not heat up too. Would love to hear any recommendation !

Thank you!

submitted by /u/rohie98
[link] [comments]

School notebook under 300$

Hi, I am looking for a school notebook, here are some of my requirements:

  • under 300$
  • weight under 2,5 kg
  • battery life 4+ hours
  • screen size 13" and bigger

As I was searching, I found that completely new and decent notebooks with some performance are almost impossible to buy under 300 bucks. I will gladly appreciate any of your ideas! I want something I can carry my whole day in school bag but also something what will last more than 2 years without loss in performance.

I was thinking about Lenovo T430 for 250$ from a second hand.

Your ideas? Thanks a lot for your time! :)

submitted by /u/Zuckee
[link] [comments]

Laptop help

I was looking for laptops that suit my needs, so I looked around and was unsuccessful. I'm looking for a laptop that'll play games, make games, and edit pictures and videos. I prefer larger ones, since smaller ones cost more and are generally less powerful. I'm hoping to get it in late 2019, so if there are any good ones on the horizon, pleases let me know. For price, I'll stop at 1800 dollars. Thank u!

submitted by /u/Ola_oni
[link] [comments]

Quick overview of computer science?

Learn Programming - Thu, 11/15/2018 - 19:25

I was wondering if anyone can give a quick overview of computer science, I know a good understanding of web dev through udemy, but I still would like to know a good overview of it too follow along, thanks.

submitted by /u/Srk7654321
[link] [comments]

Super Micro chief bean counter: Bloomberg's 'unwarranted hardware hacking article' has slowed our server sales

The Register - Thu, 11/15/2018 - 19:15
CEO insists Chinese spy chip bombshell 'impossible'

Super Micro Computer on Thursday reported net sales in the range of $952m to $962m for the first quarter of its fiscal 2019, which ended September 30, 2018. That's higher than company guidance of $810m to $870m, and up roughly 40 per cent on the year-ago period.…

collatz sequence in python

Learn Programming - Thu, 11/15/2018 - 19:12

hey there,

can somebody please help me understand why it's necessary to add the int() in the last line of this code which is supposed to generate the collatz sequence?

def collatz(number): if (number%2==0): print(number//2) return number//2 elif(number%2==1): result=3*number+1 print (result) return result y=input("enter a number") while y !=1: y=collatz(int(y))

i understand how this works but i don't see why i have to convert y to an integer value when i call the collatz function.

submitted by /u/BlueNightShade
[link] [comments]

SpaceX gets FCC approval to deploy thousands more internet satellites

Engadget - Thu, 11/15/2018 - 19:12
SpaceX's plan to build a global, high-speed wireless internet network using satellites has taken another step forward. The FCC approved the company's request to deploy more than 7,000 very-low-Earth orbit satellites for its Starlink network. It follo...

In light of the Call/SMS fiasco (call recorder, sms backup, Tasker), are there any alternatives to begging for relief from Google ?

Tasker: Total Automation for Android - Thu, 11/15/2018 - 19:09

As has been discussed in this thread regarding the new discretionary layer Google is inserting specifically for Call/SMS features (while none exists for contact harvesting etc.), and the gaps in the privacy argument for the change:

Recently the Tasker developer has reported some activity at Google - a human has contacted him and they have had a discussion:

That discussion suggests that developers resubmit their Permissions Declaration Form, and give more details in the process, and it may be reconsidered.

This does not address the question of why Google is inserting this extra discretionary layer (which in some cases is removing offline methods of doing things like SMS Backup apps for power users), when no such discretionary layer exists for contact harvesting (this simply requires only run-time permission).

Since the process of begging by developers is ongoing, I was wondering if there is some alternative means developers have available to voice their concerns, when humans are lacking at Google.

If you are in the EU, you have the option to air your views to Margrethe Vestager, the EU competition commissioner (who has a history of prosecuting Google) - or send her a tweet at:

Practically in all likelihood, even the EU competition commissioner will want the harm to first have been caused i.e. companies to be affected and fail - that will give them a better case. So they will probably act after the damage has been done. Although there is no harm in contacting her.

What are the other ways for developers to get redressal where Google is unable to deliver - if you can share your points of contact etc. Those who fear they cannot speak openly against Google, can send me their suggestions.

submitted by /u/stereomatch
[link] [comments]

Laptop suggestion

Hey peeps!

I'm waiting for a Black Friday deal and have found a few laptops but i'm not sure which one is the best.

Would you guys be able to tell me which of these is the best, or suggest a better one please.

Budget: £700 max

Usage: Entire Adobe Suite, streaming and light gaming

Needs: At-least a 15 Inch screen and numerical keyboard


ASUS Vivobook A556UQ-DM1469T

DELL Inspiron 15 5000

LENOVO IdeaPad 330S

DELL Inspiron 15 3000

LENOVO IdeaPad 330s

submitted by /u/lipslikemorphinee
[link] [comments]

Measuring The Cooling Effect Of Transformer Oil

Hack a Day - Thu, 11/15/2018 - 19:00

Transformer oil has long served two purposes, cooling and insulating. The large, steel encased transformers we see connected to the electrical grid are filled with transformer oil which is circulated through radiator fins for dumping heat to the surrounding air. In the hacker world, we use transformer oil for cooling RF dummy loads and insulating high voltage components. [GreatScott] decided to do some tests of his own to see just how good it is for cooling circuits.

He started with testing canola oil but found that it breaks down from contact with air and becomes rancid. So he purchased some transformer oil. First, testing its suitability for submerging circuits, he found that he couldn’t see any current above his meter’s 0.0 μA limit when applying 15 V no matter how close together he brought his contacts. At 1 cm he got around 2 μA with 230 VAC, likely from parasitic capacitance, for a resistance of 115 Mohm/cm.

Moving on to thermal testing, he purchased a 4.7 ohm, 100 watt, heatsink encased resistor and attached a temperature probe to it with Kapton tape. Submerging it in transformer oil and applying 25 watts through it continuously, he measured a temperature of 46.8°C after seven minutes. The same test with distilled water reached 35.3°C. Water’s heat capacity is 4187 J/kg∙K, not surprisingly much better than the transformer oil’s 2090 J/kg∙K which in turn is twice as good as air’s 1005 J/kg∙K.

He performed a few more experiments but we’ll leave those to his video below.

We’ve run across a number of tests running boards submerged in various oils before. For example, we’ve seen Raspberry Pi’s running in vegetable oil and mineral oil as well as an Arduino running in a non-conductive liquid coolant, all either overclocked or under heavy load.

Counting dice rolls using Loops

Learn Programming - Thu, 11/15/2018 - 19:00

Hi reddit!

I'm teaching myself about loops right now and am trying to make a program that rolls a dice 100 times and counts the amount of times a number is rolled! Ideally the output should look something like this

Total rolls: 100 1 was rolled 10 times 2 was rolled 35 times 3 was rolled 5 times 4 was rolled 15 times 5 was rolled 10 times 6 was rolled 25 times

Of course the values rolled would differ. Anyway, I know that the coding for this should be fairly simple but I can't seem to figure it out. Here is what I have so far

import random roll = random.randint(1, 6)

I know that's not a lot to go off of, but I can't seem to get an idea of what I need to do to make this program work! Any help/advice would be much appreciated!

Thank you all!

submitted by /u/Forward_Caregiver
[link] [comments]

C++ How do I tell if I'm overengineering my project?

Learn Programming - Thu, 11/15/2018 - 18:58

I'm working on cleaning up a pet project of mine and I'm trying to make it as readable and professional as possible, as it's going to be a big resume item. Because I'm trying to keep it so clean, I'm worried that I'm going from poor design to designs that are far more than necessary.

For example, I'm emulating some hardware and some of the components store their own memory. I wrote a memory template class that takes one of the template parameters as the size (which is a compile-time constant). A catch, however, is that the memory can be 'mirrored' in certain locations such that an access at address 0x1000 actually just reads 0x0000. To overcome this, I've added more template parameters to specify a mirroring region, and the size of each section that's mirrored.

template <int size, uint16_t... ranges> class Memory { public: inline uint8_t Read(const uint16_t& address) { // Implementation.... };

Then to specify the ranges, I have a header with just this

namespace CPU { constexpr int MemSize = 0x10000U; constexpr uint16_t RAMMirrorLow = 0x0000U; constexpr uint16_t RAMMirrorHigh = 0x2000U; constexpr uint16_t RAMMirrorSize = 0x0800U; constexpr uint16_t PPUMirrorLow = 0x2000U; constexpr uint16_t PPUMirrorHigh = 0x4000U; constexpr uint16_t PPUMirrorSize = 0x08U; typedef Memory<MemSize, RAMMirrorLow, RAMMirrorHigh, RAMMirrorSize, PPUMirrorLow, PPUMirrorHigh, PPUMirrorSize> CPUMemory; }

And then in my CPU class I just have

CPUMemory mem_;

as a member.

Is this too much?

submitted by /u/girandsamich
[link] [comments]

Laptop suggestions?

My budget is $1000 max but would like to spend lower of course. I just want a reliable computer for programming (college) and gaming (mainly Fortnite but I might get into other shooters). Preferably it would have a discrete look but I'm willing to take a gamey-look for a good deal.

I was looking at the refurbished Acer Nitro 5 for $550 but it has an i5-8300 and reviews say the screen quality is bad? I saw some laptops with GTX 1060 but 60hz monitor. Is that a waste (as far as I know the frames will be capped at 60 fps)? A GTX 1050 Ti with i7-8750 and an SSD for $700 would be ideal. The ASUS TUF FX705 GM was $999 a couple days ago and Dell G7 was around $920 open box but I was hesitant.

submitted by /u/AmbitiousCommunist
[link] [comments]

Looking for a gaming laptop in the US with good display, refresh rate and cooling system. Budget 1300$

I watch a lot of movies and would really like one with a good display and refresh rate.

I'm not a hardcore gamer, mostly just games like dying light, dota 2, witcher 3, but I'd really like something that can maintain a high fps on most games like witcher 3.
I can stretch my budget a little if needed

submitted by /u/vongolaivi
[link] [comments]