Search This Blog

Monday, November 16, 2020

Mixing C and C++

 https://www.oracle.com/technical-resources/articles/it-infrastructure/mixing-c-and-cplusplus.html#using


Tuesday, October 27, 2020

Connect head unit DHU - android google auto - info and links

 find your google auto app.

i used search in the app to get access to my app.

download latest head unit 

https://developer.android.com/training/cars/testing

in my phone - i get into the app

i click on the "version" 10 times and get into developer mode.

i run on the computer - command line 

adb forward tcp:5277 tcp:5277


on the app menu (right left corner) i "start the head unit server"

on my computer i lunch the app desktop-head-unit.exe

and in the app i click " connect to car" 

and this is it 

good luck

Yaniv Tzanany



sample generic app could be found here

Universal Android Music Player Sample




Sunday, September 27, 2020

Move GoDaddy Domain Name To Your Azure Website

very helpful tips

 https://www.codeproject.com/Tips/890336/Set-Your-GoDaddy-Domain-Name-To-Your-Azure-Website#:~:text=Login%20to%20your%20account%20in,the%20window%20in%20step%204


Sunday, September 13, 2020

CEF MFC - build wrapper

 To work with 

Chromium Embedded Framework (CEF) with C++ under winodws .

you need to create the libcef_dll_wrapper 

to do it :

download the relevant windows binaries from 

http://opensource.spotify.com/cefbuilds/index.html

  • run visual studio command line (x86 or x64)
  • run on the root folder after extract it cmake -A Win32
  • you can locate the solution file and compile the wrapper.



explanation for the code cefwrapper https://naughter.wordpress.com/2020/02/17/cefwrappers-v1-0/

 

the next paragraph from http://www.naughter.com/cefwrappers.html

  • You need to download and build CEF for Windows or download prebuilt binaries for CEF. You can download builds from http://opensource.spotify.com/cefbuilds/index.html. If you want to build CEF yourself, there is a article explaining how to do this at http://mariusbancila.ro/blog/2016/05/05/building-the-64-bit-version-of-chromium-embedded-framework-on-windows/. As of v1.01 of CEFWrappers, the demo application assumes you have downloaded the x64 build of CEF to a "D:\DEV\CEFx64" directory. To build CEF for x64 after you have downloaded it, you should start a Visual Studio Command Prompt, navigate to the CEF x64 directory and run "cmake -A x64 ." from the command prompt. You should then load the cef.sln file in the CEF x64 directory and Build -> Batch Build -> Select All -> Build to build all the CEF files for x64. The demo application also assumes you have downloaded the x86 build of CEF to a "D:\DEV\CEFx86" directory. To build CEF for x86 after you have downloaded it, you should start a Visual Studio Command prompt, navigate to the CEF x86 directory and run "cmake -A Win32 ." from the command prompt. You should then load the cef.sln file in the CEF x86 directory and Build -> Batch Build -> Select All -> Build to build all the CEF files for x64. At this point you should have all the CEF files for both x64 and x86 in the two CEF directories. If you download CEF x64 or CEF x86 to different directories, then you need to ammend the CEFWrappers project's VC Include and Lib Directories project settings.


extra links 

https://www.codeproject.com/Articles/1105945/Embedding-a-Chromium-Browser-in-an-MFC-Application

https://mariusbancila.ro/blog/2016/05/05/building-the-64-bit-version-of-chromium-embedded-framework-on-windows/

https://titanwolf.org/Network/Articles/Article?AID=e2367d4a-5180-4df6-b5b0-761e7880d14b#gsc.tab=0


An easy way to use CEF with MFC via CLR could be find in those video

https://www.youtube.com/watch?v=xIRs9gneQAE

https://www.youtube.com/watch?v=uBvDK6LE4XM

woww sample http://www.talkplayfun.com/EasyWords/

https://github.com/nasser-sh/Cef3-MFC

https://programmer.help/blogs/mfc-and-javascript-interaction-cef.html

 CEF into the MFC dialog box 

CEFSHARP- If You Like It, Put an HTML5 UI on It

CEFSHARP samples

https://ourcodeworld.com/articles/read/173/how-to-use-cefsharp-chromium-embedded-framework-csharp-in-a-winforms-application



Thursday, July 16, 2020

Active MQ - monitor non-deliverable message and failover

check this link for reference
https://activemq.apache.org/message-redelivery-and-dlq-handling

the idea is to monitor none deliverable messages , and log them into Dead Letter Queue (DLQ).
just add this part into activemq.xml

<policyentry queue="&gt;"> <deadletterstrategy> <shareddeadletterstrategy processnonpersistent="true"> </shareddeadletterstrategy></deadletterstrategy> </policyentry>


auto ActiveMQ.DLQ queue will created with the none deliverable messages.

failover queue.
the idea is to have extra activemq server ,(as slave) so if the main active mq is down all the messsages redirect to the "slave"
reference https://activemq.apache.org/failover-transport-reference.html

just use such url  e.g.
failover:(tcp://localhost:61616,tcp://remotehost:61616)?initialReconnectDelay=100


to use order queue and not randomize queue , add randomize=false
e.g.
failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false

enjoy 
Yaniv Tzanany