Information Technology

Hackaday Dublin Unconference: Grab Your Tickets!

Hack a Day - Mon, 02/19/2018 - 02:31

Hackaday comes together in Ireland on April 7th and we want you to be there. Get your free ticket right now for the Hackaday Dublin Unconference!

An Unconference is the best way to put your finger on the pulse of what is happening in the hardware world right now. Everyone who attends should be ready to stand and deliver a seven-minute talk on something that excites them right now — this means you. The easiest thing to do is grab your latest hack off the shelf and talk about that.

Talks may be about a prototype, project, or product currently in progress at your home, work, or university. It could also be an idea, concept, or skill that you’re now exploring. The point is to channel your excitement and pass it on to others in a friendly presentation environment where everyone will cheer as your story unfolds.

Hackaday hosted an excellent Unconference in London back in September to a packed house for dozens of amazing presentations on a huge range of topics. We heard about bicycle turn signals, laser enhancing NES zappers, telepresence robots with IKEA origin stories, tiny-pitch LED matrix design, driving flip-dot displays, not trusting hardware 2-factor, and much more.

All the tickets for that event were scooped up in a few hours, and a huge waitlist followed. Don’t wait to grab your ticket!

We’re so happy to partner with DesignSpark, the exclusive sponsor of the Hackaday Dublin Unconference. DesignSpark is the innovation arm of RS Components and will have some staff on hand at the Unconference. They share our excitement in bringing together the Hackaday community throughout Europe. It is with their support that we are able to book an incredible venue and offer admission at no cost to all attendees. Hackaday events fill to capacity quickly, so get your ticket now before they are gone.

This Unconference is being held at Project Arts Centre, right at the heart of the Temple Bar area in central Dublin. The performing arts space has comfortable seating and is perfect for our presentation format. We’ll get started at 13:00. Tea, coffee, and snacks will be served throughout the afternoon and we’ll provide dinner as well. Anyone who is still standing when we close the doors at 21:00 is invited to join us at the pub afterward (we’ll get the first round).

As always, Hackaday’s success is based on the community of hackers, designers, and engineers that make it up. Please share the link to tickets on your social media and pester your friends to attend. Most importantly, don’t shy away from this speaking opportunity. We want to hear your story and this is the place to tell it. See you in Dublin in just a few short weeks!

College student looking for a laptop 1000$ USA

  • Total budget and country of purchase: 1000$ or less, USA

  • 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 want decent specs, something good enough to run Dota 2 and do my computer engineering work, as well as not look to over the top and "gamer"

  • How important is weight and thinness to you? I would like it relatively thin so I can travel around classes with it. I would also prefer no overdone "gamer" designs

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

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

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. I would like it to run dota 2, as that is usually the only game I play on my computer, and I need it for my computer science courses.

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? Dota 2 60 fps

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? not overdone "gamer" design and not to bulky

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. Looking for something to use on the side as I attend college. Also don't want a "gamer" look as I will need to use it at internships

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

Which one of HPs should i get ! please help

hi guys ...

i was wondering between two of these laptops

1- HP Pavilion - 15-cc101nx

2- HP Notebook 15-bs103nx

3- Acer Aspire

NB: this is same As the 2nd one with Nvidia 150MX

i need this laptop mainly for my Collage studies,

in addition playing some small games like Counter strike with good FPS

the main difference between both two is the Video graphics the first one is Nvidia Gefroce 940MX 2nd one is AMD Radeon 530

the 2nd difference is the RAM 1st is 12 gb

2nd is 8 gb The difference in price between 1st and second one is around 150$ "higher in the first one "

the main feautre in both which amazed me is both have the 8th gen Intel core i7 , comparing to their prices it would consider a good deal ----

thanks guys for help

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

Developer recovered deleted data with his face - his Poker face

The Register - Mon, 02/19/2018 - 02:02
Salesperson-suddenly-turned-coder learned social skills can be more important than technical skills

Who, Me? Welcome to the fifth edition of Who, Me? It's a new Register weekly column in which readers confess to times their skills fell just a little - or a lot - short of what was required to stop things going pear-shaped.…

Working with getopt in C

Learn Programming - Mon, 02/19/2018 - 02:00

I'm writing a C program where I need to take multiple options, plus multiple arguments at the same time.

An example would be ./argParser -ab path1 path2 path3, where -ab are two separate options.

I'm having a ton of trouble trying to understand how to actually use getopt. The documentation isn't very clear about how to grab the "path" arguments after the options. A lot of the examples out there are overly complicated.

What I have right now is here:

int main(int argc, char *argv[]) { int c; int flag = 0; int index = 0; char *args[argc]; while ((c = getopt(argc, argv, "abc")) != -1) { switch (c) { case 'a': flag = flag + 1; break; case 'b': flag = flag + 2; break; case 'c': flag = flag + 4; break; default: args[index] = optarg; index++; break; } } printf("%d\n", flag); for (int i = 0; i < index; i++) { printf("%s\n", args[i]); } }

This really doesn't work at all. It doesn't take any more than one option, and doesn't parse the arguments at all. IT does however parse the options correctly if I change the default block to simply break.

Edit: A way to "cheat" is to just do something like this:

#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <utmp.h> #include <time.h> int main(int argc, char *argv[]) { int c; int flag = 0; int index = 1; char *args[argc]; while ((c = getopt(argc, argv, "abc")) != -1) { switch (c) { case 'a': flag = flag + 1; index++; break; case 'b': flag = flag + 2; index++; break; case 'c': flag = flag + 4; index++; break; default: index++; break; } } for (int i = index; i < argc; i++) { args[i] = argv[i]; printf("%s\n", args[i]); } printf("%d\n", argc); }

This works, but I'm wondering if there is a way directly through getopt.

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

C recvfrom segfault

Learn Programming - Mon, 02/19/2018 - 01:55

I have a procedure that takes a bound socket, Message, and sockaddr_in.

Message is a struct that simply contains a length and a char array. SocketAddress is a typedef of sockaddr_in.

// In calling function Message* message = (Message*)malloc(sizeof(Message)); ... receive(socket, message, clientSA); ... void receive(int socket, Message* m, SocketAddress* origin) { ... int aLength = sizeof(SocketAddress); m->length = recvfrom(socket, m->data, SIZE, 0, (struct sockaddr*)&origin, &aLength) ... }

Doing some basic debugging has shown that before the call to recvfrom, m is a valid memory location. AFTER recvfrom, m becomes 0x0. So, it seems like recvfrom is causing m to be set to 0x0? Using

int mLen; char recvData[SIZE]; printf("%d, %d, %d\n", socket, origin); mLen = recvfrom(..., recvData, ...); printf("%d, %d, %d\n", socket, origin);


3, 8118288, -2123736352
3, 0, -1247346686

And mLen and recvData get the correct values from the client.

What's causing m to be set to 0x0?

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

Need a laptop for Uni Architecture

  • Total budget and country of purchase: ~$1600NZD

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

  • How important is weight and thinness to you? Not incredibly but appreciable

  • Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows or Mac (Architecture so either can be managed)

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

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. AutoCAD, Revit, Rhino

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? Currently have a desktop for that.

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? Intend to largely use the laptop for typing up notes as any real archviz or 3D work will be on my desktop or lab computers. A tactile and non-obnoxious keyboard would be good as I'm used to cherry reds but want to not sound like a 1940s typewriter in lectures.

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

Visual C#: Debugging Penny Program... Crashes because of improper input?

Learn Programming - Mon, 02/19/2018 - 01:46

I fixed most issues with this program I believe. The problem occurs when it is supposed to ask me to input some information. I looked at it and can not find the error. Can anyone guide me in the right direction?

// How much money will you have // after 30 days if you get a penny on the // first day and it doubles every day? using System; class DebugFive4 { static void Main() { const double LIMIT = 1000000.00; const double START = 0.01; string inputString; double total; int howMany; int count; Console.Write("How many days do you think "); Console.WriteLine("it will take you to reach"); Console.Write("{0 starting with {{1}", LIMIT.ToString("C"), START.ToString("C")); Console.WriteLine("and doubling it every day?"); inputString = Console.ReadLine(); howMany = Convert.ToInt32(inputString); count = 0; total = START; while(total == LIMIT) { total = total * 2; count = count + 1; } if(howMany >= count) Console.WriteLine("Your guess was too high."); else if(howMany <= count) Console.WriteLine("Your guess was too low."); else Console.WriteLine("Your guess was correct."); Console.WriteLine("It takes 0 days to reach {1}", count, LIMIT.ToString("C")); Console.WriteLine("when you double {0} every day", START.ToString("C")); }


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

Forced hot air cooling for ABS

3D printing news - Mon, 02/19/2018 - 01:28

Im planning to do a lack enclosure for my mk2s but I'm curious as to if this would be a good idea or not.

I wanted to put a thermoelectric heater in there to bring the space up to around 40° C or so (if the printer can't do that already with it's bed and nozzle.

Assuming I located the LCD, PSU, and control units outside the printer, would this cross any thresholds with the belts, or stepper motors as far as Max temps are concerned?

The main reason I want to heat the chamber is to be able to use a layer cooling fan similar to how stratasys does with their printers on ABS parts without warping. In order to do that I need to essentially throw hot air on the part.

Let me know.your thoughts!

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

Strange over-extruded pillars on retracts (CR-10 Marlin Firmware, Micro Swiss Hotend)

3D printing news - Mon, 02/19/2018 - 01:09

Hello all - I own 3 printers and have been using them quite well for several months now. Suddenly my CR-10 with Micro-Swiss flex friendly all metal hotend starting having this issue. Fresh CR-10 Marlin firmware, fang fan and capricorn tubing as well as upgraded aluminum extruder are all the notable mods I have.

Changing filaments helped a bit but did not clear it up. I've been googling for several days now and can't figure out the right word combination to use so I come here to ask.

What would you call these weird extra pillars? And what settings should I adjust? I'll list settings below. Thank you all, I hope this isn't a post you all see day after day...

Speed: 3600mm Temp: 205 Bed: 60 Retract: 4mm @2400/min Z-hop: .1mm Coast: .4mm Wipe: 2mm Extra Restart: .05mm Fan @60%

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

Air Force security hackathon leads to record payout

Engadget - Mon, 02/19/2018 - 01:08
The US Air Force's second security hackathon has paid dividends... both for the military and the people finding holes in its defenses. HackerOne has revealed the results of the Hack the Air Force 2.0 challenge from the end of 2017, and it led to vol...

3D Printed Violin Bow

3D printing news - Mon, 02/19/2018 - 01:02

3D Printed Violin Bow with integrated led strip. This bow can light up and be controlled remotely, looks like a lightsaber

Pics also with 3d printed electric violin:

Files for download to make your own:

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

Microsoft guts doc on 'Limitations of apps and experiences on ARM'

The Register - Mon, 02/19/2018 - 01:02
Over the weekend it said no Windows customisation, no Hyper-V. That's gone now

Microsoft has altered a document that listed Windows 10's "Limitations of apps and experiences on ARM".…

Photographing Starman From a Million Miles Away

Hack a Day - Mon, 02/19/2018 - 01:01

Love it or loathe it, launching a sports car into space is a hell of a spectacle, and did a great job at focusing the spotlight on the Falcon Heavy spacecraft. This led [Rogelio] to wonder – would it be possible to snap a photo of Starman from Earth?

[Rogelio] isn’t new to the astrophotography game, possessing a capable twin-telescope rig with star tracking capabilities and chilled CCDs for reducing noise in low-light conditions. Identifying the location of the Tesla Roadster was made easier thanks to NASA JPL tracking the object and providing ephemeris data.

Imaging the Roadster took some commitment – from [Rogelio]’s chosen shooting location, it would only be visible between 3AM and 5:30AM. Initial attempts were unsuccessful, but after staying up all night, giving up wasn’t an option. A return visit days later was similarly hopeless, and scuppered by cloud cover.

It was only after significant analysis that the problem became clear – when calculating the ephemeris of the object on NASA’s website, [Rogelio] had used the standard coordinates instead of the actual imaging location. This created enough error and meant they were looking at the wrong spot. Thanks to the wide field of view of the telescopes, however, after further analysis – Starman was captured, not just in still, but in video!

[Rogelio]’s work is a great example of practical astronomy, and if you’re keen to get involved, why not consider building your own star tracking rig? Video after the break.

[Thanks to arnonymous for the tip! If that’s a nickname and not just a request to be anonymous but misspelled.]