Slashdot Mirror


User: Hal_Porter

Hal_Porter's activity in the archive.

Stories
0
Comments
8,852
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 8,852

  1. What they need to do is send the corporate Gestapo to track this guy down

    "Hell yes. I definitely looked at my friends' rider history and looked at what drivers said about them. I never got in trouble."

    Then they'd tell al the employees to stand outside the company and watch him be shouted at by a Friesler style prosecutor and then hauled away for punishment.

    Only this will redeem the honour of Germany Army, err Lyft and cleanse them of the stain of privacy violations.

  2. I do like this album

    https://en.wikipedia.org/wiki/...

  3. Re:32-Bit is like what 16-Bit was in the late 90s on Apple Prepares MacOS Users For Discontinuation of 32-Bit App Support (arstechnica.com) · · Score: 1

    64 bit was very necessary for desktop and server OSs but it wasn't necessary for mobile. But it happened anyway.

    Now I don't think even Apple are going announce a "brave" move a "128 bit iPhone" in a keynote where Tim Cook does his best to dress up and sound like Steve Jobs. But it wouldn't surprise me if we see some other change that breaks binary compatibility. Hell look at Meltdown and Spectre. A new ABI which makes exploits like that impossible seems very likely. There are some very interesting Intel papers on things like Control Flow Enforcement which point to a binary compatibility break to work. E.g.

    https://www.theregister.co.uk/...

    CET works by introducing a shadow stack - which only contains return addresses, is held in system RAM, and is protected by the CPU's memory management unit. When a subroutine is called, the return address is stashed on the thread's stack, as per normal, and also in the shadow stack. When the processor reaches a return instruction, the processor ensures the return address on the thread stack matches the address on the shadow stack.

    If they don't match, then an exception is raised, allowing the operating system to catch and stop execution. Therefore, if exploit code starts tampering with the stack to chain together malicious instructions to install malware or otherwise compromise a system, these alterations will be detected and the infiltration halted before any damage can be done.

    The shadow stack must sit in memory that has a new shadow stack bit set in the page tables. Any attempts by software to access the shadow stack - such as with a MOV instruction - are blocked by the memory management unit and a page fault raised to alert the operating system that shenanigans are afoot. Any attempt to use a control-flow instruction - such as RET - when the shadow stack is not marked as a shadow stack in the page tables will also raise a page fault.

    The shadow stack pointer (SSP) for the running thread is stored in the Task state segment. There are various control registers that hold SSPs for privilege rings 0 to 2 (non-usermode rings) and for interrupts. You should really read the above PDF if you're interested in the detail - this is really only scratching the surface.

    For this sort of thing to work it must be done everywhere in the OS and applications and all the old insecure applications need to be EXTERMINATED in order to prevent them from tarnishing ze purity of the race, err security of the system.

    In fact you might see several binary compatibility breaks as new security features are added and support for applications which weren't compiled to use them is dropped.

  4. Re: Apple compatibility is a joke on Apple Prepares MacOS Users For Discontinuation of 32-Bit App Support (arstechnica.com) · · Score: 3, Informative

    You should go to Raymond Chen's Old New Thing blog and tell him this. I'm sure he'd be eager to hear one liner technical advice from Slashdotters on how Microsoft should handle back compatibility.

    https://blogs.msdn.microsoft.c...

  5. Actually Mekorama, one of my favourite Android games works like this too

    http://www.mekorama.com/faq/

    What game engine does Mekorama use?

    I wrote the engine myself, from scratch, in C. It is cross platform (iOS, Android, Windows, OSX), uses OpenGL for graphics, and integrates the Bullet Physics library.

    If you unzip the apk file you find most of the code is in libmekorama.so. Run arm-linux-androideabi-nm on it and grep for Java_com and you see all the JNI entry points. And it's stuff like Java_com_martinmagni_mekorama_Mekorama_add_1touch, Java_com_martinmagni_mekorama_Mekorama_remove_1touch, Java_com_martinmagni_mekorama_RendererWrapper_on_1draw_1frame , Java_com_martinmagni_mekorama_RendererWrapper_on_1surface_1changed and so on. Pretty much what you'd expect.

  6. Have you actually ever done this yourself?

    Yeah. This book describes it well

    https://www.wiley.com/en-us/Ga...

    You don't need much platform specific code to get an OpenGL capable window and redirect touch events into it. I've seen the same technique used for cross platform OpenGL Win32/Mac applications - platform specific code creates a window, listens for events and then makes callbacks into cross platform code.

    Admittedly I couldn't get breakpoints to work on any of my Android devices. But they did on iOS.

    Pleco is structured like this, even though Pleco must have a lot of native UI code - it's not just getting an OpenGL window and drawing into it

    https://www.plecoforums.com/th...

    And I bet a lot of games are like this - e.g. Angry Birds on Android is a native library and a small amount of Java

    Basically if your app resembles Angry Birds more than it does Pleco it's not a bad approach.

    But I'm not really satisfied with either the "mostly portable C/C++, platform specific wrapper" approach or the "Write in C# for Xamarin" one as I've said in each and every comment in this thread.

    So I was sort of hoping someone would come up with some concrete alternatives for a cross platform app.

  7. Notice the way he doesn't say "I've developed a cross platform application using [some language/framework] and it had [list of positives] and [list of negatives]".

    I'll start

    Xamarin/C#.

    Positives : For dialog box applications this works pretty well. C# isn't a bad language.
    Negatives : Last time I looked at it vector graphics was supported only via an extremely crack addled hack to use a bunch of BoxViews invented by Charles Petzold, though this has apparently changed. It's hard to make dialog applications look completely native. Xamarin was a bit expensive when I looked at it.
    Summary: It's a good environment for Line of Business type apps which are just a bunch of forms.

    Portable C/C++ with per platform veneers

    Positives : You can use OpenGL for vector graphics. OpenGL is really fast and IMO elegant and I'd honestly rather use it than Skiasharp. On iOS XCode works really well for debugging. You can pull in C/C++ libraries. OpenGL works on a lot of platforms and not just Android and iOS. C/C++ which is basically "C with classes" is a really fast and intuitive language.
    Negatives : C/C++ is a bit too low level. Building UIs in OpenGL is time consuming. The apps don't look native. Debugging on Android is a bit of a mess. C/C++ seems like a bit of second class citizen on Android compared to Java, though it seems like this is less true with newer Android releases.
    Summary: It's a good environment for games and graphically intensive stuff, particularly if you already know some OpenGL and C and have written some video game code. Performance is amazing because C translates very efficiently to native code for the CPU and OpenGL translates very effectively into GPU operations.

  8. Re:Wait, what? on Tim Cook: Coding Languages Were 'Too Geeky' For Students Until We Invented Swift (thestar.com) · · Score: 3, Insightful

    I dunno, I think he's smarter than he looks.

    Consider.

    Back when people wrote code in Objective C it was easy to have some Objective C for the iOS UI, some Java for the Android UI and a big gob of portable C/C++.

    Now if they write the whole app in Swift it will be easier to get it running on iOS. And it seems like there are various projects to get Swift running on Android too.

    E.g.

    https://medium.com/@ephemer/ho...

    I.e. Apple have something which is a competitor to writing everything in C# and using Xamarin to target both platforms.

    Xamarin has always seemed a bit horrid to me frankly. And doing the 'big gob of portable C/C++ with two sets of UI code is also horrid.

    If Apple can build a platform that people use for IOS apps knowing they can run well on Android they've got a pretty compelling platform. And if it turns out not to work very well on Android they've got more iOS exclusive applications.

  9. So it means that if the employees stay on and the stock price rises, they get more money. If they leave before the option vests they get nothing. If they stay on and the stock price falls they get less than $2500.

    I.e. it's designed to make employees stay on and try to do stuff which will cause the stock price to increase. Actually spending Apple money to buy shares should cause that to happen.

    I.e. it's a smart move which will tend to make Apple stock rise and ties employee compensation to that stock price rise.

  10. I dunno about 'no taxation'. But look at Taiwan.

    https://en.wikipedia.org/wiki/...

    Tax as a percentage of GDP is 13% compared to the US's 26%.

    Taiwan is a pretty civilised place to live. Hong Kong (13.0%) was but is gradually being turned into another region of China (20.1%) which is probably very bad in the long run. Singapore (14.2%) is authoritarian but not completely hellish.

  11. Re:The only downside I see to this ... on An AI-Powered App Has Resulted in an Explosion of Convincing Face-Swap Porn (vice.com) · · Score: 1

    Well it's like this

    https://www.ecenglish.com/lear...

    I cnduo't bvleiee taht I culod aulaclty uesdtannrd waht I was rdnaieg. Unisg the icndeblire pweor of the hmuan mnid, aocdcrnig to rseecrah at Cmabrigde Uinervtisy, it dseno't mttaer in waht oderr the lterets in a wrod are, the olny irpoamtnt tihng is taht the frsit and lsat ltteer be in the rhgit pclae. The rset can be a taotl mses and you can sitll raed it whoutit a pboerlm. Tihs is bucseae the huamn mnid deos not raed ervey ltteer by istlef, but the wrod as a wlohe. Aaznmig, huh? Yaeh and I awlyas tghhuot slelinpg was ipmorantt! See if yuor fdreins can raed tihs too.

    It probably works because most of the words are short enough you can brute force it. E.g. a four letter word with the first and last letters in the wrong place only has one valid jumbling ('read' to 'raed'). A three letter word can't be jumbled. And if you can read the four letter ones you've got pretty good hint to the rest.

    English has a lot of redundancy and humans are good at error correcting misspelled or mangled words.

  12. Re: A good first step. on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 1

    In the UK working through a limited company and being self employed are two different things. Basically if you have an option, pick limited company.

    This page shows how much tax you'd pay with each option. If you budget £1000 a year for additional accountancy costs you still come out ahead even for a relatively low annual income

    http://www.freelanceuk.com/run...

  13. Re:Beware the SECRET SOCIETY that permeates on Scientists Develop Glucose-Tracking Smart Contact Lenses Comfortable Enough To Wear (engadget.com) · · Score: -1, Offtopic

    There's a memorably nasty moment in Dune where Tleilaxu agents use a stone burner to blind Paul Atreides and a lot of other people. Paul offers to buy Tleilaxu metal eyes for his men but both he and them worry the Tleilaxu eyes might affect their perception in devious ways.

    http://www.readsbird.com/dune-...

    "They've fled Arrakis with the stolen worm," Paul said. "Even if I freed you now, Korba, Shai-hulud would have your water for your part in this. Why don't I free you, Korba? Think of all those men whose eyes were taken, the men who cannot see as I see. They have families and friends, Korba. Where could you hide from them?"

    "It was an accident," Korba pleaded. "Anyway, they're getting Tleilaxu ..." Again, he subsided.

    "Who knows what bondage goes with metal eyes?" Paul asked.

    The interesting thing about Dune is that the protagonist is a Messiah like character who plunges the galaxy into a hellish holy war. Meanwhile the antagonists are corrupt political types with access to advanced technology like AI which the more religious parts of the galaxy have banned following the 'Butlerian Jihad'.

    The similarity between Paul and someone like Bin Laden or Abu Bakr al-Baghdadi is kind of obvious now, even though Dune and Dune Messiah were written back in the 60's. Paul's holy warriors are even called Fedaykin, a mutation of the Arabic word Fedayeen. Saddam set up the Fedayeen Saddam which arguably mutated into ISIS.

    I.e. when you read it now you kind of sympathize with the devious Bene Gesserit, Tleilaxu and Ixians who attempt to tame or destroy Paul and stop his jihad from destroying their civilisation. Then again Frank Herbert wanted to deconstruct the idea of infallible heroes.

    https://en.wikipedia.org/wiki/...

    "The bottom line of the Dune trilogy is: beware of heroes. Much better [to] rely on your own judgment, and your own mistakes." He wrote in 1985, "Dune was aimed at this whole idea of the infallible leader because my view of history says that mistakes made by a leader (or made in a leader's name) are amplified by the numbers who follow without question."

  14. Re:The Death Tax Lie Again(was Re:A good first ste on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 1

    There is not, and never has been, an inheritance tax between spouses that causes middle class little old ladies to have to sell their houses

    And yet if you read this that problem has caused both Labour and Conservative governments to alter the rules on the nil band multiple times since 2007

    http://researchbriefings.files...

    Not to mention people who knew what they were talking about set up a trust to avoid the problem before 2007

  15. Re: A good first step. on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 1, Informative

    Crazed AC stalkers are the missing +5 Inciteful moderation for slashdot.

  16. Re:The Death Tax Lie Again(was Re:A good first ste on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 1

    The rules have changed multiple times. Back when I was dealing with it, there was inheritance tax from one partner to another. Hence the people in question set up a trust.

    https://en.wikipedia.org/wiki/...

    Prior to this legislative change, the most common means of ensuring that both nil-rate bands were used was called a nil band discretionary trust (now more properly known as NRB Relevant Property Trust*). This is an arrangement in both wills which says that whoever is the first to die leaves their nil band to a discretionary trust for the family, and not to the survivor. The survivor can still benefit from those assets if needed, but they are not part of that survivor's estate.

    If they had not have done that and the rules had not changed in 2007 the surviving partner would have lost the house

  17. Re:Company NE Meme on 'Memes Have Rights Too': Grumpy Cat Wins $710,000 In Copyright Lawsuit (thewrap.com) · · Score: 1

    NE != !=

  18. Re:"... made from silicon germanium" on Engineers Design Artificial Synapse For 'Brain-on-a-chip' Hardware (mit.edu) · · Score: 1

    If I'd Google "TSMC SiGe" before I hit submit I'd have worded it differently it's true.

    Still the technique described in the paper - depositing SiGe on top of crystalline Si to produce defects - probably isn't compatible with either the mainstream TSMC process or the SiGe one.

  19. Re: A good first step. on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 2

    Software contractors all do it. So do plumbers, gas fitters, dental hygienists and so on.

    Back when I did it it was only £70 to set up a company. For that price you'd be crazy not to. Companies cost money to run of course but it's easy to save enough by having a Limited Company that you come out ahead.

  20. The Wheeler version of Net Neutrality didn't block T Mobile's Binge On zero rating

    http://www.multichannel.com/ne...

  21. Re:The only downside I see to this ... on An AI-Powered App Has Resulted in an Explosion of Convincing Face-Swap Porn (vice.com) · · Score: 1

    My output:
    snw mxs wthrin,mymoher ees clligm byyboter nae

    My algorithm:
    Starting at the first character, I chose a random number between 0 and 3 to advanced the cursor, then chose a random number of 1 or 2 for how many characters to delete (Then repeat until end of sentence)

    Your challenge:
    You have my output and my algorithm. Please reverse it to provide the original sentence I used.

    Hint:
    The original was a 3 line haiku using commas to separate the lines.
    Unfortunately for you, one of the two commas looks to be one of the characters chosen to be deleted.

    snow mixes with rain,
    my mother keeps calling me,
    by my brother's name

    But I see your point - transformational algorithms are not necessarily easily reversible.

  22. Don't worry. We Kremlin trolls use TensorFlowski, the Russian version.

  23. Re:YOU! I learned it from YOU! on An AI-Powered App Has Resulted in an Explosion of Convincing Face-Swap Porn (vice.com) · · Score: 1

    Skynet will achieve consciousness reading the nastier parts of the Internet and nuke the crap out of us. Quite rightly so.

  24. Re:The Death Tax Lie Again(was Re:A good first ste on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 0

    The UK has estate tax. It works like this

    1) If you're very poor you don't pay it because your estate is under the allowance
    2) If you're very rich you use gifts, trusts foundations and offshore entities and make sure your residual estate is under the allowance
    3) If you're middle class and didn't do your research you get clobbered by it. Typical men die first and the estate tax bill forces the widow to sell her house.

    I.e. it does very little to prevent 'monied dynasties'. It does screw over middle class people who didn't have an accountant and/or didn't read the fine print of the tax code. The ones who did use gifts and trusts (offshore entities and foundations are usually too expensive) but they still end up with a larger bill than the very rich who have more financial room to maneuver and can usually get away with more aggressive tax minimization schemes.

  25. Re:A good first step. on Tax Change Aims to Lure Intellectual Property Back to the US (wsj.com) · · Score: 1

    There are other ways to do tax. For example a Land Value tax on Georgist lines advocated by Sun Yat Sen. SYS's Three Principles of the People was in a sense a Third Way ideology aiming for something between capitalism and socialism.

    https://en.wikipedia.org/wiki/...

    The Principle of Min2sheng1 is sometimes translated as "the People's welfare/livelihood," "Government for the People". The concept may be understood as social welfare and as a direct criticism of the inadequacies of both socialism and capitalism. Here he was influenced by the American thinker Henry George. Sun intended to introduce a Georgist tax reform. The land value tax in Taiwan is a legacy thereof. Sun Yat-sen said that land value tax as "the only means of supporting the government is an infinitely just, reasonable, and equitably distributed tax, and on it we will found our new system."

    Another option is a consumption tax like national value added tax. Or a Border Adjustment tax for filthy traitor companies who make stuff outside of ze fatherland

    https://en.wikipedia.org/wiki/...

    VAT tends to hit poor people more than rich ones because poor people spend a greater share of their income on things that are hit by it. Conversely a wealth tax tends to hit the wealthy more.

    Land value taxes still apply in Taiwan which is much more capitalist than either the US or UK in terms of how high tax revenue is as a percentage of GDP - it's 13% in Taiwan vs 26% in the US or 34% in the UK.

    https://en.wikipedia.org/wiki/...

    Of course modern Taiwan has individual and corporate income tax too. Actually, come to think of it the UK has property value tax and so do some US states.