Information Technology

Condition under 'if' without '='

Learn Programming - 3 hours 57 min ago

In some tasks I've run into some conditions under 'if' that do not have equal sign.

first one was if(i%2)... and that's easy, it will be 0 (false) or 1 (true), but what about if(a-b)... or if(i%3) when will that be true and when false?

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

Updated Cura, can't get a successful print

3D printing news - 3 hours 58 min ago

So, I updated my version of Cura (from 3.0 to 3.1) right before I went on vacation last month and just got back to my printer yesterday. Once I figured out that there was a filament width override that was causing dramatic underextrusion, I've been trying to figure out why my prints won't stick and the printer keeps driving the nozzle into the side of my print, knocking it off the bed when I eventually do get something to stick. I tried some of my old GCodes that I had generated before and they still work. Is there a "screw everything up" toggle that I need to turn off on version 3.1?

Thanks

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

Wifi Enabled at Work

Is there a tasker profile that keeps my Wi-fi enabled if I'm already connected to my work's Wi-fi network?

My current setup uses the "Cell Near" condition where it checks the closest cell towers before enabling/disabling my Wi-fi connection.

However, it seems like there are many new signals that keep showing up which disables my Wi-fi since it does not recognize these new signals.

Is there a workaround solution to this? Can I configure it so that if I'm already connected to my work's Wi-fi network, that my tasker won't disable Wi-fi?

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

Looking for a portable, everyday user; programming, occasional light video editing, 14" ideal, USA, $1000 ish.

  • Total budget and country of purchase: Looking to spend around $1000, can do a bit more if something fits my wants.

  • Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply. Not against a 2 in 1, but also don't foresee any uses that would require it. Good battery life for use during travel or while on the go would be nice.

  • How important is weight and thinness to you? This would be a high priority. Light and thin are good! I would rather sacrifice a bit of performance for more portability. I have a powerful desktop at home for the really intensive projects.

  • Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows.

  • Do you have a preferred screen size? If indifferent, put N/A. After some consideration I think 14" is the sweet spot for my wants. Some of the portable 15" seemed alright as well, not against considering those. 13" seems too small.

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. This laptop will mostly be used for general daily computer stuff; web browsing, YouTube, etc. It will also be used for some programming, and occasional light video editing. Current program for video editing is Power Director, but that could change to another option such as Premier or Final Cut in the future.

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? N/A. Will not be used for gaming.

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? A nice keyboard is bonus, but not a huge concern. SD card reader would be useful, but not required. Both USB C and A would also be nice to have, but again not required. Pretty flexible on the ports.

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. As expressed previously, having a light and thin laptop is more important than performance. I would love to find a balance between portability and performance to handle light video editing. I also value a good looking laptop. Thank you in advance!

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

Shopping for general purpose/light gaming laptop; question about upgrading CPU

Hi guys, thanks ahead of time.

I need a laptop for a class coming up, and I'm not looking for anything too fancy yet (I have a desktop for most of my heavy-lifting.) Primary use of the laptop is for basic internet/Office applications, but I would love if I could also use it to play Civ VI on trips.

So far, I've found the Acer Aspire E 15 E5-576G-5762 to be a good fit. My question is, is it worth the extra $200 to upgrade to the Core i7-8550U-8GB? I honestly don't see myself using it for much else besides Civ VI (and games with lower specs).

  • Total budget and country of purchase: $1000 max

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

  • How important is weight and thinness to you? 6/10

  • Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows, possibly Chrome OS

  • Do you have a preferred screen size? If indifferent, put N/A. Smaller is better

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. Gaming, primarily Civ VI. Nothing too involved, since I have a desktop for that. Mostly for travel gaming.

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? Civ VI; not sure. Not planning on anything with super-high reqs.

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? Keyboard that isn't too unwieldy; enough USB ports for plug-ins (mouse, hard drive, etc)

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

Thanks!

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

Facebook vows to simplify Messenger in 2018

Engadget - 4 hours 7 min ago
Today, Facebook released an outline of its priorities when it comes to Messenger, and one thing is clear: The organization wants to simplify the service. Over the past few years, the company built many new features that it packed into Messenger, and...

Chayora Breaks Ground on First of Two Hyperscale Data Centre Campuses in China

Chayora Limited, a Hong Kong-based data centre infrastructure company, announces today it has finalised agreements with the government of Beichen, Tianjin, to begin construction of the company's first hyperscale data centre campus in China. The 300MW, 32-hectare / 80-acre campus will serve the greater Beijing region that is home to more than 150 million people in the JingJinJi mega-metropolitan area of northern China....(read more)

Min/Max using recursion

Learn Programming - 4 hours 9 min ago

For a programming assignment I'm a little confused on where to start. "Function maxArrayIndex() operates as follows. If subarray X[p...r] contains just one element, its index is returned. If subarray X[p...r] contains more than one element, the middle index is computed as q=(p+r)/2, the indices of the maximum elements in subarrays A[p...q] and A[q+1...r] are computed recursively, then the index of the larger of the two maxima is returned."

How would we recursively call this function?

Edit: We call the function using maxArrayIndex(A, 0, A.length-1); With A being the array, 0 being the index 0 of the array, the A.length-1 being the length of the array.

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

Should I buy a tablet for school?

A little bit of background from me: I'm a software engineering major currently in my second semester of my return to college. I left a pretty decent job before returning to school, so finances are absolutely not an issue. Shortly before my first semester, I bought a 15.6" performance/gaming laptop (this exact laptop, to be precise). I love my laptop. It's very low profile for a gaming laptop (until I turn on the customized lighting on the keyboard ;p) and it doesn't scream "gaming laptop". However, I have noticed that some of my classes have TINY desks. My laptop still fits, but it takes up the majority of the desk space.

So, what would be some advantages of buying a tablet? Are there any tablets that would allow me to write on the screen with a stylus? Are there any operating systems that I could not use OneDrive on? If I'm only using my tablet for web-browsing, viewing (and editing) PDFs, and note taking, what would you recommend? Is there a significant difference in performance between a $100 tablet and a $400 tablet? Also, if it makes any difference, I have an iPhone (6s) as my cell phone. I'm not sure if that would give me certain perks if I were to buy an iPad.

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

DigitalOcean Announces New Compute Plans to Provide Best Price-to-Performance for Production Applications

DigitalOcean, the cloud for developers, today announced new pricing to deliver more memory, compute power and flexibility for customers at every price point. The offering will help businesses more confidently scale their deployments by providing the best value for performance and a flexible, predictable pricing model that makes billing simple....(read more)

City of Milpitas Deploys BackupAssist CryptoSafeGuard to Protect Against Ransomware Attack

BackupAssist, a leading provider of automated Windows server backup and recovery software for small and medium enterprises (SMEs), today announced that the City of Milpitas, California has deployed its CryptoSafeGuard software to protect its data and city services from a ransomware attack. ...(read more)

Looking for laptop for grandma

Total budget and country of purchase:* $500, US

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

  • How important is weight and thinness to you? Prefer something light

  • Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows

  • **Do you have a preferred screen size? If indifferent, put N Around 15”

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. She’s a big fan of solitaire, that’s about it.

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? Not important

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

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. She only wants either a Dell or HP. It’ll be used for basic browsing such as Facebook and reading the news. Thank you for any suggestions.

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

Firefox Release, Xen, KDE's Plasma and More

Linux Journal - 4 hours 21 min ago

News highlights for January 16, 2018.

Set your calendars for January 23, 2018, to download the latest Firefox 58 release packed with performance/bottleneck and bug fixes, an even better site source code debugger and more. more>>

Levandowski faces fresh accusations of stealing trade secrets

Engadget - 4 hours 24 min ago
The Waymo v. Uber trial is set to finally get started next month, but Anthony Levandowski, the man who has been accused of taking 14,000 files from Google's self-driving outfit when he left the company for his own startup Otto, has been hit with a la...

Remember Your Birthday For Fifty Years

Hack a Day - 4 hours 26 min ago

Our Coin Cell Challenge competition has turned up some amazing entries, things that we wouldn’t have thought possible from such meagre power sources. Take [Vishnu M Aiea]’s entry for instance, a device which he claims can light up as a birthday reminder every year for up to fifty years.

At its heart is a modified Arduino Nano clone that draws a measured 608 nA from a CR2450N. From the specification of the cell he has calculated the 50 year maximum figure, as well as a possible 29 years for a CR2032 and 64 years for a CR2477. He does however note that this does not take self-discharge into account, but you can probably afford a new battery in a decade or so.

The Arduino clone carefully selected for its “P” version low-power processor has had its serial bridge IC removed to achieve this power consumption, as well as a voltage regulator and some discrete components. Interestingly he notes that the ATMega168P is even more frugal than its 328 cousin, so he’s used the former chip. A selection of internal flags are set for minimal power consumption, and the internal oscillator is selected to use as low a clock speed as possible. There is an Intersil ISL1208 low power RTC chip mounted on a piece of stripboard to provide the timing, and of course an LED to provide the essential birthday alert.

When the LED lights for the big day there’s always the hope you’ll receive another coin cell, this time powering an edge-lit musical birthday card.

Coin Cell Challenge   Build something cool powered
by a coin cell, win prizes!

 

How to use the share extension to get a websites link?

iOS Programming - 4 hours 30 min ago

Can anybody help me with this? Im trying to learn how to use the share extension but I can only find assistance with sharing and savings photos. I would like to do the same thing but with websites and videos.

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

Pages