Information Technology

How do I put a UI over my spring microservice?

Learn Programming - 9 hours 28 min ago

I built a spring-boot microservice but I want to put my own UI over it rather than using swagger's doc UI. How do I achieve that? I know HTML and some css as a front end. I know basic javascript. Is there any framework or library that can help me get started quickly using what I already know. My UI need not be very complicated.

submitted by /u/ML-newb
[link] [comments]

Is the Acer Nitro 5 FullHD?

I want to buy an Acer Nitro 5, but I was looking the specs of this famous spanish website ([]) (I'm from Spain) and it says the following: Display 15.6" LED FullHD (1366 x 768) 16:9 Non-Glare. Is that true? It says FullHD but it's not 1080... I'm confused.

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

U.S $900 Looking for Ultrabook

$900 Usa

Need good battery life 8-9 hours, traditional and light

I don’t care about the weight and thinness

I need windows OS

I don’t mind screen size but 15 inch would be nice

Mostly heavy browsing, doing excel, light gaming

Need a backlit keyboard and reliable build

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

Trying to make my Wanhao I3 Heater Cartridge easily-detachable, can't figure out wire gauge for connectors.

3D printing news - 9 hours 39 min ago

I have a very old model Wanhao i3 (Just barely not Version 1.0... closer to a Version 1.01 or so, definitely not V2 or later) which I have been doing several modifications to (a few of which were mandatory for safety reasons that were fixed in later models), and I have wound up needing to replace the heater cartridge. Since the Wanhao i3 uses a somewhat less common 6.35mm (or rather, 1/4"... odd since the rest of the printer is metric) heater cartridge instead of the more common 6mm variant, I used Uncle Chuck's store to purchase one as that site specializes in Wanhao i3 parts.

I used the slightly aftermarket one that was listed as being "better" than the stock design, named "UC3DPS Fill 1/4" Heating Tube 12V" with the model number "Ixx - CHT - 1240 - 250" listed here:

Removing my old one was a complete and total pain, since it was around 6+ feet/2+ meters of wiring going through all sorts of cable chains, cable wraps, and zip-ties. I don't want to have to deal with that again (and neither does my back) if I ever need to replace it again in the future, so I wanted to figure out a way to make it easily removable as it's the only part of my entire extruder that is not easily detachable or uses a connector.

After discussing with multiple people about the best kind of connector to use, I found out that the best way to go about it would be to use crimping connectors since solder would be a bad idea near components that could heat up, and also due to heat I was recommended to use connectors made of nylon. The best fit seemed to be Nylon "Quick Disconnects" (or sometimes called "Spade" connectors) like these:

However, I ran into the issue that the smallest wire gauge these support is 22AWG, and I wanted to make sure that the wiring in the Heater Cartridge was thick enough to use a crimp connector. When I looked at the connector itself however, I was very confused. The wire itself is thicker than my old heater cartridge's.... but the actual copper inside is significantly thinner, the wire is mostly insulation. I am very unfamiliar with this type of wire, though I was told it was apparently "High Voltage" wire... but I don't understand how reducing the amount of actual wire and adding insulation allows for better high voltage applications.

I know this isn't the best example to use, but I am not sure how else to try to show what kind of gauge I am trying to work with, so here are some images I tried to take of the end of wire:

As well as it compared to my previous heater cartridge:

Does anyone have any idea how I can find out what type of gauge this wire is? And beyond that, if it would even be possible to use those Quick Disconnects 22AWG crimps I mentioned? If not, any idea what I can try so I can use those crimps or any others that don't require soldering and can handle high temperatures?

Also, I was tying to figure out what brand of connectors to use since I don't really work with these much and have no idea which ones were good... and I saw many complaints in just about every one I saw on Amazon about the crimps failing. I understand user reviews should be taken with a grain of salt, though some of them mentioned that they had a lot of experience in working with electronics and crimping wires. Regardless, I have no idea how to find any actual information on what brand or types of crimps would be any good, if there is even such a thing and they all aren't pretty much the same.

Basically, any ideas on what would be the best way to make this Heater Cartridge go from being a single wire to having connectors that I can easily connect/disconnect in the future? And what brand or where to buy good quality ones?

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

Nest reveals the first truly connected home

The Register - 9 hours 44 min ago
Begun, the battle of the home eco-systems has

Comment After years of hype, the connected home is finally here thanks to a range of new products available this week from Google-owned Nest.…

adding objects to arrays in c#

Learn Programming - 9 hours 44 min ago

Hello! I'm rather new to programming and have pretty much just gotten to the object oriented part of C#. I'm currently trying to create a box(array) that holds predefined objects that the user chooses from an invetory array. I want it to be a two dimensional array with both the name of the item aswell as the weight of the item.

How would i go about something like this? I know that a list is pretty much superior in every way, but my uncle suggested that I should try playing with arrays a bit aswell, just so I get a grasp of the benefits and limitations of them.

Thanks in advance!

submitted by /u/-reallycoolguy
[link] [comments]

Flutter for iOS is nearing takeoff!

iOS Programming - 9 hours 47 min ago

Hey reddit!

You may recall a couple of months ago I posted about a new and beautiful twitter app that I was working on called Flutter, I just wanted to update my progress on that. The list of features is ever-growing, with more added every day.

I've been working on this almost every day for 5/6 months now and am nearing a stage where it's almost feature-complete and just ironing out a bunch of bugs and crashes (push notifications are currently a hit or miss, works great when they do, but seldom do).

You can see how the app looks and more here:

And you can follow for progress on my twitter @JPEGuin:

And you can sign up for the beta if you'd like to try it out for yourself here:

A small list of testimonials from current users include:

"Looks extremely clean. I love being able to adjust text size and night mode without going to a different page. Also really dig force touch to love/retweet! It doesn't seem like something that would make a difference but not having the little icons below each tweet is so visually pleasing to me."

"Love the app! Very well put together. I love the beautiful menu that pops up when you long press a tweet that lets your RT or like a tweet."

"Man this is looking slick. I’ve tried a lot of Twitter apps for iOS and have basically settled on Tweetbot as my client of choice, but so far Flutter is definitely looking like a contender to topple TB."

"It’s like Apollo for Twitter, nice job man!"

"Holy shit. One fast app, the default twitter app takes for ever to open and is slow. So far I’m liking it a lot!"

"I absolutely love the dark mode and looks stunning on my iPhone 8 Plus. This is how dark mode should be, congratulations man! Being able to change the app icon is wonderful."

"I will be using this as my daily twitter client from now on."

"The interface is absolutely beautiful, and I am definitely going to be using this over the stock twitter app!"

"You are killing it! This is really becoming one powerful Twitter client."

"This is shaping up to be “community” twitter app. Everything on everyone’s wish lists, that most apps don’t dare to do."

I'd love to know what you think, and how I could improve further!

Best, Shihab

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

3D Printed Stethoscope Makes the Grade

Hack a Day - 9 hours 54 min ago

On the off chance that initiatives like the Hackaday Prize didn’t make it abundantly clear, we believe strongly that open designs can change the world. Putting technology into the hands of the people is a very powerful thing, and depending on where you are or your station in life, can quite literally mean the difference between life and death. So when we saw that not only had a team of researchers developed a 3D printable stethoscope, but released everything as open source on GitHub, it’s fair to say we were pretty interested.

The stethoscope has been in development for several years now, but has just recently completed a round of testing that clinically validated its performance against premium brand models. Not only does this 3D printed stethoscope work, it works well: tests showed its acoustic performance to be on par with the gold standard in medical stethoscopes, the Littmann Cardiology III. Not bad for something the researchers estimate can be manufactured for as little as $3 each.

All of the 3D printed parts were designed in OpenSCAD (in addition to a Ruby framework called CrystalSCAD), which means the design can be evaluated, modified, and compiled into STLs with completely free and open source tools. A huge advantage for underfunded institutions, and in many ways the benchmark by which other open source 3D-printable projects should be measured. As for the non-printed parts, there’s a complete Bill of Materials which even includes links to where you can purchase each item.

The documentation for the project is also exceptional. It not only breaks down exactly how to print and assemble the stethoscope, it even includes multi-lingual instructions which can be printed out and distributed with kits so they can be assembled in the field by those who need them most.

From low-cost ultrasounds to truly personalized prosthetics, the future of open source medical devices is looking exceptionally bright.

[Thanks to Qes for the tip]

The Infiniti QX80 is too pricey to have this little tech

Engadget - 9 hours 54 min ago
I'm not kidding (okay, I'm sort of kidding) when I say that the Infiniti QX80 (starting at $64,750) is only slightly smaller than a studio apartment I used to live in. It's a very large SUV that's packed to the gills with luxury features. It's certai...

Angular 4+ sorting and filtering of html/data tables best practice.

Learn Programming - 9 hours 59 min ago

Is the best practice here to just write your own filter/sort service and use it in a component? It seems as though that is what they are encouraging, i'm just new and i'm used to built in order and filter functions.

Does anyone have any tips for best practices? Specifically, i'm looking to add filter buttons to the headers of my table in html which is an ng-repeat bootstrap table of an object i'm retrieving from WebApi/SQL db as a list of objects. I am using the built in .sort function js provides but I have lists of strings where some of the strings are numbers and I need everything sorted properly, as well as provide feedback to the user that they have in fact sorted the column.

Should I be trying to move the sorting and filtering to the server side? Seems contrary to SPA principles so I sort of doubt it but please correct me if I am wrong.

Pipes seem messy to me, but I could try that route.

Apologies for rambling, just not sure how to proceed. Thanks for any help you are able to provide

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

Is the cr-10(s) still a good printer?

3D printing news - 10 hours 45 sec ago

Hey /r/3dprinting! I was originally going to get an Anet A8 for about 160 but after researching I want to steer clear of that. I see some cr-10s for 380 new with the 300x300x400mm build volume which looks really nice. Is there anything I should be aware of before spending about $400 on it?

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

Hi, I'm working on a micro-satellite prototype, and I've been tasked with building a webapp to display images taken from the satelllite's camera, along with other data. What would be a fairly simple approach to creating a webapp to do this?

Learn Programming - 10 hours 14 min ago

I have an intermediate experience with C and Matlab, but I've never done anything like a webapp. The image will be saved automatically as Jpeg to a desktop PC. So I'm looking for way to automatically have the webapp display the latest received image. Thanks in advance for any recommendations! Also i am a student so I am looking for free options

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

[HELP] [C] For implementing a Round Robin scheduling, how to have fn a run instead of fn b every n seconds? Threads and mutexes? Clock and timer?

Learn Programming - 10 hours 16 min ago

I'm trying to create a simulation of Round Robin scheduling in C. I've made its non-preemptive version, First-Come First-Serve and now trying to adjust my code to accommodate rotating the linked list every n seconds to simulate the Round Robin part. From what I've read (and yet to understand,) in C, you can use a thread to do something every n seconds. You can also use mutexes to make resources exclusive to a thread or something (but the examples I've seen are just two or more threads doing the same function with a lock and unlock). What I think I need to do is to have 2 threads, one doing the FCFS scheduling, and one doing the rotate every n seconds. These two of course access the same linked list, so I would like to have it in a way such that if rotate thread executes, the FCFS thread waits until it's done. Hopefully my understanding of this is right. Correct me if I'm wrong, please.

My current implementation is that processes are in a singly linked list, with the head considered as the one currently in run-time, the rest at waiting time. To simulate doing a round robin, I "rotate" the linked list such that head becomes tail, and head->next becomes head. Now I need to do that every n seconds, so I tried to use a thread (the rotate thread). But the thread only runs after the FCFS thread is done. :/

Another thing I've read but am seriously confused about in this context is using a clock. Record the time, subtract it with current time, if its difference is equal to n, do rotate instead. Something like that. But there are things I don't understand. What if the loop runs at a time where its multiples will skip n a few times? What if it skipped rotating a few times, will it still be a Round Robin? Basically, for me, having a timer in a while loop sounds flimsy, at least for things like this.

What I'm really asking is this:

  • if using threads and mutexes is feasible, how to do it in a way that a thread will yield to another every n seconds?

  • if using a clock, would it do well with a loop?


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

Can a 44 yo be successful in programming?

Learn Programming - 10 hours 22 min ago

So I’m thinking about changing careers to something a little more challenging and rewarding. I’ve always dabbled in code in Linux, but now I think I’d like to do it for a living. I’ve signed up for code academy and have completed the html course and am currently working through the JavaScript course and am LOVING it. I plan on doing CSS next and Jquery after that. My questions are: after I learn the basics, what should I do next? Look for some freelance work? I already have a couple ideas for websites I’d like to design that I could add to a portfolio. Thanks for the help!

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

Weekend Reading: All Things Bash

Linux Journal - 10 hours 28 min ago
Bash is a shell and command language. It is distributed widely as the default login shell for most Linux distributions. We've rounded up some of the most popular Bash-related articles for your weekend reading.


MK2.5 idler assembly

3D printing news - 10 hours 36 min ago

Just a friendly tip for all people that are going to install there MK2.5 update. The holes in the idler are very small. I read some people broke them. The drillbit from the MK2S update was the right size to carefully make the hole bigger.

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

[HELP] Zaxis keeps misaligning itself

3D printing news - 10 hours 42 min ago

The printer has a z-endstop on one side (left). Ive been moving the Z axis to try levelling the bed. When I press the home-Z button, if I then accidentally hit the [-] button to lower it, the right motor spins, the left motor grinds (sound will be helpful). This results in the Z axis coming out of alignment.

This seems like something that shouldn't be happening. When I press home-Z, the endstop is depressed, so it shouldn't try to lower.

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

Creating a video streaming program/script

Learn Programming - 10 hours 44 min ago

Let's say i am watching a video in my desktop and suddenly i have to go to the bathroom or I decide to lie down on my bed. Now i want to open up my android phone and continue watching the video. How would i go about to solve this problem ?

I have novice python and java skills and can get by with documentation.

submitted by /u/Chaos-Lightining
[link] [comments]