How to implement AVCam using Swift 3? - swift3

This sample code covers implementation only for ios11.
Can someone provide some example and/or hints for me to understand and code further?

I found a repo where version 6.1 of AVCam was commited before 7.1
https://github.com/Lax/iOS-Swift-Demos
here's the state of the repo on the commit for version 6.1 (Xcode 8.0, iOS 10.0)
https://github.com/Lax/iOS-Swift-Demos/tree/2a92c00b6d800165f29be6a525b5e98424bc5843
It's a shame Apple doesn't make it easier to access previous versions of their code examples.

Related

Eclipse - set the C++ standard

ALL,
I'm worjking under RHEL 8 with the latest (2021-09) Eclipse version 4.21.0.
I'd like to set a C++ standard to be c++11, since I need a compatibility with the RHEL7.
I tried to follow instructyion I found on a different SO questions but none was sufficient, since many options were removed in this latest Eclipse version.
Could someone please give me a way to set it up for the latest Eclipse release, please?
TIA!!

Can I add Swift 3 in Xcode11?

I am using some Cocoapods packages that works well in Swift 3.2. If I changed those packages I need to do lot of code editing which will consume lot of time and effort. Is there any ways to add Swift 3 to Xcode 11?
I doubt you can ADD a Swift version. I.e. use 5.1 for your code and 3.1 for libraries. AFAIK, all binaries have to be built using the same compiler.
Technically, you can CHANGE the toolchain. This article illustrates how (not sure if nowadays 3.1 is stretching this though):
Medium Blog about Xcode toolchains
However, I doubt that you can submit apps built with 3.1 to the AppStore.
I also wonder if you really even want to try to buy into this. If you use Swift 3.1 you may need to make sure to bundle the runtime with your app. Since one of the more recent evolutions of iOS, the Swift runtime is not packaged with apps anymore, but relies on the OS runtime.
Good luck on this endeavor. Really want to kick all the Swift 5.x goodies? ;)

Upgrade Infragistics dlls from vesrion 11.1 to 18.1

We are using the follow Infragistics dlls in project.
Infragistics35.Web.v11.1
Infragistics35.WebUI.Documents.Core.v11.1
Infragistics35.WebUI.Documents.Excel.v11.1
Infragistics35.WebUI.Documents.Reports.v11.1
Infragistics35.WebUI.Misc.v11.1
Infragistics35.WebUI.Shared.v11.1
Infragistics35.WebUI.UltraWebGrid.DocumentExport.v11.1
Infragistics35.WebUI.UltraWebGrid.ExcelExport.v11.1
Infragistics35.WebUI.UltraWebGrid.v11.1
Infragistics35.WebUI.UltraWebListbar.v11.1
Infragistics35.WebUI.UltraWebNavigator.v11.1
Infragistics35.WebUI.WebCombo.v11.1
Infragistics35.WebUI.WebDateChooser.v11.1
Can i upgrade to the latest version 18.1 without changing code?
I recently updated my entire solution (80+ projects) from IG 12.2 to 16.2. As Jackdaw mentioned there is a version upgrade utility. Within VS I was able to right-click on each project and run the upgrade from there. I had no issues whatsoever. Unfortunately IG 16.2 is the most recent version approved by my security folks, but I can't imagine going from 11.1 to 18.1 would be any different.
You wouldn't be able to do so, without any code changes, because those controls were retired in the very next version Infragistics ASP.NET 2011 vol2.
Changes after version ASP.NET 2011 vol.2
There are several sources you could use to make the upgrade easier for you:
Product Changes fully described for 2011 vol.2
New controls starting from ASP.NET 2011 Vol.2
And a helpful document describing some of the changes that you could easily perform when migrating from the old control to a new one in the following cheat sheet.

Getting useful STL debugging in XCode

I'm using XCode for some iOS development and the watch window for viewing STL is almost worthless by default. In Visual Studio I could edit the autoexp.dat file to make STL viewing more useful, is there any way to do something similar in XCode? I'd also like to do this same treatment with XCode for Boost libraries if possible.
It looks like Apple has finally decided to give C++ some attention. As of XCode 4.5 debugging and the watch window will be vastly improved and should be able to display STL types easily. Apple is deprecating GCC support, only through the use of LLVM4 will you be able to get the new debugging features, as well as C++11 support.
As of the time of writing this XCode 4.5 is in Beta and is only accessible to registered Apple developers. Here's a link to the XCode download page, which contains a link to XCode 4.5 for registered developers only. https://developer.apple.com/xcode/

How to build OpenJDK Shark against llvm 3.0?

Recently I learned that there's an openjdk shark project, which uses llvm to make hotspot vm more portable. Since I used to work on jdk and is interested in llvm right now, this is a match made in heaven. So first thing first, how to build openjdk shark against llvm 3.0? To be more specific, which repository in http://hg.openjdk.java.net/ should I begin with? jdk7u, jdk7u2, jdk8, or icedtea?
I prefer latest update release of jdk7 if possible. And I intend to build that in a mac os x.
I made some progress. Here's what I did:
started with this repository
applied llvm 3.0 patch mentioned here
and bunch of other make file hacks
But there is a road blocker. To support JSR 292, a.k.a invoke dynamic, something called Richochet frames has been introduced into Hotspot JVM, which unfortunately hasn't been implemented in zero yet. So the building fails not only on Mac OS X but also on other platforms.
The good news is Chris Phillips from Redhat is working on it. I also learned that the most relevant mailing lists are mlvm-dev and zero-dev at openjdk.java.net, in case someone is interested in the same topic too.