|
7 is worse. 9 is the victim.
|
|
|
|
|
|
Yep, and those error messages arent covered.
|
|
|
|
|
Are you sure? Might it be that this is just another case that you disagree with what is written in the manual and so choose to visit Code Project to have a rant about it instead.
It could be that error messages are made up there are no error messages, all these people have been wrong about error messages for years, there is evidence to support that error messages are not real and if we all just ignore them everything will be fine in the end.
|
|
|
|
|
I googled the error messages, and the one place I wasnt taken to was the manual.
I did find a comment about checking system resources, so I grew the disk again, and limited the concurent tasks to 6, which has averted that error at least.
Of course now I have new ones....
|
|
|
|
|
My programs (/processes) always have an outermost exception handler catching all otherwise uncaught exceptions. My support library provides a ComeFrom function used by exception handlers to traverse the stack to pick up whatever information is available.
True enough: There is a standard "Print stacktrace" option. But first: Handling the exception programmatically is far easier when the information is provided as a data structure, rather than in console output format. Second, there is often more information available in the binary stack traversal than what is printed on the console.
If the code is not yours, so you cannot insert an exception handler, this option may be unavailable. But in those cases, you often cannot do anything about it anyway. (Our Bamboo build system generates at least a handful of stack traces every day, often 250-300 stack frames deep. We can read the function names, so what? We can do nothing but ignore it. Mailing the stack trace to Atlassian is futile.)
|
|
|
|
|
Without his king, the champion leads descent into darkness (9)
|
|
|
|
|
NIGHTFALL
Champion = Knight -> without king = NIGHT leading descent = FALL
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
|
|
It's not the wrong answer!
|
|
|
|
|
0) Got a Windows 7 and Lubuntu VMs stood up. Tried to install SQL Server 2017 installed, but an arbitrary decision of the part of Microsoft prevents you from installing it on Win7. On the bright side, DVDFab works fine in the VM, and I got VS2017 installed (took a couple of hours).
1) I experienced the most painless hardware transition I can recall (the media file server went tits up last weekend). Swapped out motherboard, memory and CPU (Gigabyte AX370 w/ 8 SATA ports, Ryzen 2600, 16GB DDR4 RAM). I also changed over from an old 60GB SSD to a 128GB nVME drive. I used CloneZilla to move the existing Lubuntu instance to the nVME drive. It took less than 5 minutes, and booting is LIGHTNING fast. I have all of my drives connected to the motherboard (including the DVD drive), and I stil have one SATA port free. Life is good.
3) Linux Mint comes with some bastardized version of xScreesaver installed. I say "bastardized" because the settings screen for the XMatrix scrensaver doesn't have all of the possible settings for that screensaver. Namely, density and frame rate. Still trying to work that out.
4) My wife was concerned that she wouldn't be able to do her web-based jigsaw puzzles, but I allayed her fears. I think her transition to linux is going to be fine. I told her she's been using some form of linux for at least the last 12 years (android phone and iPad). Her reply, "Yeah, but I didn't notice." That, ladies and gentlemen, is the ultimate hurdle.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: "Yeah, but I didn't notice." That, ladies and gentlemen, is the ultimate hurdle.
"The user shouldn't notice what OS you're using" should be hammered into every developer. Personally, I think our Linux-based phones are years ahead of where the Linux desktop is. Given that to do most anything, I still have to use the CLI.
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
The Linux desktop is like the wild west.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: Tried to install SQL Server 2017 installed, but an arbitrary decision of the part of Microsoft prevents you from installing it on Win7.
SQL Server on Linux is fantastic, and faster to set up. We use SQL Server in a Docker container for local development, but you could also just install it on a Linux computer or VM.
|
|
|
|
|
Do they have different editions like on Windows?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
Looks like the Linux version is a no-go for me. I need agents and SSIS, but those things are listed as "unsupported". So I guess it's nothing newer than 2014...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: "Yeah, but I didn't notice." That, ladies and gentlemen, is the ultimate hurdle. ... and quite a compliment on your skills as the household IT guy.
Software Zen: delete this;
|
|
|
|
|
I've written a full iOS app that even does some drawing to the main View. I actually published it to the App Store (and suffered all the things that means) a little over a year ago. Then I was too cheap and I let my $99 dev account expire so you can't see it on App store now.
Here's a quick snapshot of the app just for reference:
https://i.stack.imgur.com/EmHYw.png[^]
When I wrote that app I learned just enough to get it going because my target was the app, not necessarily learning to develop apps perfectly.
Anyways, I have read/been reading a couple of iOS development books.
One, I really liked because the author is a very good writer:
iOS 12 Programming Fundamentals with Swift: Swift, Xcode, and Cocoa Basics: Matt Neuburg: 9781492044550: Amazon.com: Books[^]
But as I got further in the book (unfortunately later parts of chpt 2) I found that the book just went off in tangents of Swift code that I'm probably not going to see until much later.
It really bugged me. I want to learn iOS Dev not necessarily every nuance of Swift.
It's kind of like a carpenter with a hammer. I need to be great with a hammer but I don't need to know how the they build the hammer head from molten iron.
I've also read a bit of iOS Programming: The Big Nerd Ranch Guide (6th Edition) (Big Nerd Ranch Guides): Christian Keur, Aaron Hillegass: 9780134682334: Amazon.com: Books[^] and it's good too.
But after those books I don't find much.
My Point and Question
I also find that when I go to write an app and start searching I don't find much documented or documented well enough or current enough to get things working on iOS. It's quite difficult to find solid resources that are up to date.
Comparing Android App I Wrote To iOS
A very good example is that I wrote a very simple Android app that:
1. allows user to add a list of URLs
2. allows user to make a call to getHostAddress() on background thread and measure how much time it takes to turn the URL string into the ipAddress.
It's a little utility that is very easy and simply basically measures the time to resolve the Domain Name. It looks like this : https://i.stack.imgur.com/3fRbw.png[^]
But when I try to search to write an app like that on iOS, I find nothing. Does the iOS not have a similar call to getHostAddress()? Is the API more limited for security reasons?
Xcode : Not My Favorite IDE
Also Xcode IDE is not my favorite. It seems like there is just a lot of noise in it as I look at it. I also think iOS storyboard and UI layout is annoying and difficult (especially compared to WinForms, XAML, and Android) and it feels kind of like magic is going on.
Anyone else have good resources for learning?
modified 2-Dec-18 17:09pm.
|
|
|
|
|
I program in Objective C because my apps use a lot of system and media APIs. Swift didn't seem to have easy access to those libraries. I will probably stick with Objective C for the forseeble future.
Anyway, to your question here is the codez :
NSURL *validURL = [NSURL URLWithString: yourUrl];
NSString *host = [validURL host];
NSString *ipAdress = [[NSHost hostWithName:host]address];
Here is the Host class to get you started:
Host - Foundation | Apple Developer Documentation
modified 20-Oct-19 21:02pm.
|
|
|
|
|
That's cool. Thanks for showing me that code. I will check it out.
|
|
|
|
|
|
That's an interesting article. I wish they'd go back and update it now that Swift 4.2 has released and see if there are any changes in dev attitudes.
I also wonder if for those of us who are new(er) to iOS dev that learning Swift is probably easier.
I really don't care for the look of Objective-C syntax - since it seems like an oddball version of C and I'm an old C++ dev.
I also notice that the things I actually don't like about Swift are the Functional language parts that I also don't like about C# but those things I just have to accept.
Thanks again for sharing.
|
|
|
|
|
It's almost a law that a language/framework/OS/IDE/whatever is mature with version 6 and up.
That's my point when I will switch.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Take a look at one of the Beginning iPhone Development books by David Mark and Jack Nutting. It only deals with the iOS SDK, not so much language.
Raywenderlich.com has excellent, solid tutorials that build out concepts from simple to complex, in both Obj-C and Swift, including games. You get to know the platform and the language over time. They've also published a few books.
I'm surprised you struggle to find information; sites like Medium.com are thick with Swift / iOS tutorials, and you'll find complete language and UI documentation at developer.apple.com.
Apple of course also publishes a free language guide on Swift, which is a handy reference. Mattt Thompson (NSHipster) and others (objc.io) write about iOS extensively.
Storyboards also use a form of XML, but I agree there is some dark voodoo going on in Layouts
|
|
|
|
|
Thanks for the feedback. I will check out the Mark/Nutting book.
I have stumbled upon Wenderlich and he definitely does have some good stuff too.
I think it's also because API names in iOS are so odd -- seem so different (compared to what I find in Win APIs).
Ri_ wrote: but I agree there is some dark voodoo going on in Layouts
Thanks for the confirmation on that.
EDIT
Oh, I see the nutting/mark books are quite old (latest one pubbed 2014). A lot has changed since then. Maybe that is part of it too. Thanks again.
|
|
|
|