computerscience/Microsoft Bot Framework HOL.md at master · MSFTImagine/computerscience · GitHub:
'via Blog this'
This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Sunday, November 26, 2017
Saturday, November 25, 2017
View Settings/secure/global data from Android
i was looking for a way to look into the settings.db or other secure db that exist in android , on non rooted device.
i find out this command to View the data :
adb shell content query --uri content://settings/global
adb shell content query --uri content://settings/system
adb shell content query --uri content://settings/secure
there is also a tool - have a look at adb-export
enjoy
Yaniv Tzanany
i find out this command to View the data :
adb shell content
e.g. - to see all global settingsadb shell content query --uri content://settings/global
adb shell content query --uri content://settings/system
adb shell content query --uri content://settings/secure
there is also a tool - have a look at adb-export
enjoy
Yaniv Tzanany
Tuesday, October 31, 2017
Sunday, October 29, 2017
Sunday, October 22, 2017
QnA Maker - the easy way to create a BOT
Build, train and publish a simple question and answer bot based on FAQ URLs, structured documents or editorial content in minutes.
QnA Maker:
great video tutorial
QnA Maker:
great video tutorial
Saturday, October 21, 2017
ngrok - secure tunnels to localhost
ngrok - secure introspectable tunnels to localhost:
to work with your local IIS EXPRESS under visual studio use this:
ngrok http -host-header="localhost:58821" 58821
where 58821 is your port number
more details - how to use ngrok with windows and visual studio to test webhooks
to work with your local IIS EXPRESS under visual studio use this:
ngrok http -host-header="localhost:58821" 58821
where 58821 is your port number
more details - how to use ngrok with windows and visual studio to test webhooks
Wednesday, October 18, 2017
Creating Bots Using Microsoft Bot Framework in C#
official bot framework site from MS - https://docs.microsoft.com/en-us/bot-framework/
Creating Bots Using Microsoft Bot Framework in C# - Microsoft Virtual Academy:
bot-framework-without-azure-possible
great starter video
https://www.youtube.com/playlist?list=PLgF-CyaX1p3FE55OTRNH-kOb16zqeBZCo
BOT samples
https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-proactive-messages
BOT Proactive Message - samples
Creating Bots Using Microsoft Bot Framework in C# - Microsoft Virtual Academy:
bot-framework-without-azure-possible
great starter video
https://www.youtube.com/playlist?list=PLgF-CyaX1p3FE55OTRNH-kOb16zqeBZCo
BOT samples
https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-proactive-messages
BOT Proactive Message - samples
Sunday, October 8, 2017
Android Speech Recognition - RecognitionListener
Android Speech Recognition Without Dialog In A Custom Activity - Truiton: "Speech Recognition"
a simple working sample could be found here
android-speech-recognizer-sample
good hint to make it like 'real time'
android-recognitionlistener-live-speech-to-text-preview
a simple working sample could be found here
android-speech-recognizer-sample
good hint to make it like 'real time'
android-recognitionlistener-live-speech-to-text-preview
Friday, October 6, 2017
Google Speech API
Great service from google to transcript sound into text.
an easy way to use curl command below.
open command shell (cmd on windows)
set your google API_KEY
set API_KEY=xxxxxxxxxxxx-xxxxxxxxxx
request.json file should contains such data
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:recognize?key=%API_KEY%"
for long file (above 1 minute )use such command
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:longrunningrecognize?key=%API_KEY%"
you will get response such as
{
"name": "9111777455024812345"
}
use the name value to get result of the long process
curl -s -X GET "https://speech.googleapis.com/v1/operations/9111777455024812345?key=%API_KEY%"
more info :
https://cloud.google.com/speech/docs/getting-started
https://codelabs.developers.google.com/codelabs/cloud-speech-intro/index.html#0
an easy way to use curl command below.
open command shell (cmd on windows)
set your google API_KEY
set API_KEY=xxxxxxxxxxxx-xxxxxxxxxx
request.json file should contains such data
{ "config": { "encoding":"FLAC", "sampleRateHertz": 16000, "languageCode": "en-US", "enableWordTimeOffsets": false }, "audio": { "uri":"gs://cloud-samples-tests/speech/brooklyn.flac" } }run the command to get response
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:recognize?key=%API_KEY%"
for long file (above 1 minute )use such command
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:longrunningrecognize?key=%API_KEY%"
you will get response such as
{
"name": "9111777455024812345"
}
use the name value to get result of the long process
curl -s -X GET "https://speech.googleapis.com/v1/operations/9111777455024812345?key=%API_KEY%"
more info :
https://cloud.google.com/speech/docs/getting-started
https://codelabs.developers.google.com/codelabs/cloud-speech-intro/index.html#0
Friday, September 29, 2017
Android library - that need to check
i get into those libraries , i suggest to check them (maybe there are better)
https://www.acrobits.net/products/corporate/sdk
https://www.intercom.com/
Wednesday, September 27, 2017
Tuesday, September 26, 2017
Finding Memory Leaks Using the CRT Library
big like !!
for debug purpose
Finding Memory Leaks Using the CRT Library:
syntax sample !!
_CrtMemState s1,s2,s3;
_CrtMemCheckpoint(&s1);
//to do - add your code here
_CrtMemCheckpoint(&s2);
if (_CrtMemDifference(&s3, &s1, &s2))
_CrtMemDumpStatistics(&s3);
for debug purpose
Finding Memory Leaks Using the CRT Library:
syntax sample !!
_CrtMemState s1,s2,s3;
_CrtMemCheckpoint(&s1);
//to do - add your code here
_CrtMemCheckpoint(&s2);
if (_CrtMemDifference(&s3, &s1, &s2))
_CrtMemDumpStatistics(&s3);
Saturday, September 9, 2017
try-except Statement (C++) -catch ACCESS_VIOLATION
try-except Statement (C++):
sources of this video could be found here http://www.mediafire.com/file/68bwpqh46cj6j65/CrashDump.zip
sources of this video could be found here http://www.mediafire.com/file/68bwpqh46cj6j65/CrashDump.zip
Thursday, September 7, 2017
Monday, August 28, 2017
Monday, August 14, 2017
Wednesday, August 9, 2017
Wednesday, July 19, 2017
My Google Interview Question
i add a chance to start interview process via google as Sales Engineer for GCP.
here are some question i have been asked:
some tech question as well , good luck to all
Yaniv tzanany
here are some question i have been asked:
- 3 products you want to change - (my answer , cloud , gmail , chrome)
- 50,000 are using your (Freemium ) free service - 10% conversion rate how to increase conversion rate? (my answer , give a service from vip , analyze results ..etc)
- china - google want a data center - recommend to buy or hired , where why ? etc (my answer government will give you - to follow the rules, buy , cold place next to border)
- open source - is it good or not ? and why ?
- build like youtube system
- no sql db such as mongodb - what benefit?
- how would you convinced CIO to choose gcp instead of aws?
- how you publish new like youtube version - zero down time
some tech question as well , good luck to all
Yaniv tzanany
Sunday, July 2, 2017
Sunday, June 25, 2017
Saturday, May 13, 2017
Memory Debugger for Windows, Linux, Mac, and Android
GitHub - DynamoRIO/drmemory: Memory Debugger for Windows, Linux, Mac, and Android: "Dr. Memory is a memory monitoring tool capable of identifying memory-related programming errors such as accesses of uninitialized memory, accesses to unaddressable memory (including outside of allocated heap units and heap underflow and overflow), accesses to freed memory, double frees, memory leaks, and (on Windows) handle leaks, GDI API usage errors, and accesses to un-reserved thread local storage slots."
Wednesday, May 10, 2017
Monday, May 8, 2017
Monday, April 24, 2017
Wednesday, April 19, 2017
Collecting User-Mode Dumps (Windows)
Collecting User-Mode Dumps (Windows):
analyze process dump file via windbg --- major command for first
!analyze -v
analyze process dump file via windbg --- major command for first
!analyze -v
good tutorial at
Monday, April 17, 2017
Google's WebRTC test app and its parameters
AppRTC : Google's WebRTC test app and its parameters | ginger's thoughts:
AppRTC parameters
Test Web RTC
for android webview - that is not working follow this thread http://stackoverflow.com/questions/38917751/webview-webrtc-not-working
webrtc sample with web view - https://github.com/GoogleChrome/chromium-webview-samples
for android webview - that is not working follow this thread http://stackoverflow.com/questions/38917751/webview-webrtc-not-working
webrtc sample with web view - https://github.com/GoogleChrome/chromium-webview-samples
Thursday, April 13, 2017
Monday, April 3, 2017
Saturday, April 1, 2017
Sunday, March 26, 2017
Network performence tools
iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
iperf3 - samples http://fasterdata.es.net/performance-testing/network-troubleshooting-tools/iperf-and-iperf3/
NTttcp Utility: Profile and Measure Windows Networking Performance
List of network-troubleshooting-tools
DiskBenchmark - i am using ActiveMQ product , i find out that there is a utility inside it called
DiskBenchmark.
i managed to run it this way - you cna run it on linux too , its java based
java -cp "C:\Program Files\ActiveMQ.5.6\apache-activemq-5.8.0\lib\activemq-kahadb-store-5.8.0.jar" org.apache.activemq.store.kahadb.disk.util.DiskBenchmark
iperf3 - samples http://fasterdata.es.net/performance-testing/network-troubleshooting-tools/iperf-and-iperf3/
NTttcp Utility: Profile and Measure Windows Networking Performance
List of network-troubleshooting-tools
DiskBenchmark - i am using ActiveMQ product , i find out that there is a utility inside it called
DiskBenchmark.
i managed to run it this way - you cna run it on linux too , its java based
java -cp "C:\Program Files\ActiveMQ.5.6\apache-activemq-5.8.0\lib\activemq-kahadb-store-5.8.0.jar" org.apache.activemq.store.kahadb.disk.util.DiskBenchmark
Monday, March 20, 2017
Wednesday, March 15, 2017
Windows Debugging and Troubleshooting
great session from you-tube
https://youtu.be/2rGS5fYGtJ4
some commands :
g = go/continue
r - regisers
db - display RAM bytes
dc - display as dword
~ - thread
k = stack
~* - for each thread run the next commnd = e.g ~*k - show stacks for all threads
lm - list module
!peb - get some info about the dump process such as command line , env settinsg
https://youtu.be/2rGS5fYGtJ4
some commands :
g = go/continue
r - regisers
db - display RAM bytes
dc - display as dword
~ - thread
k = stack
~* - for each thread run the next commnd = e.g ~*k - show stacks for all threads
lm - list module
!peb - get some info about the dump process such as command line , env settinsg
Monday, March 13, 2017
Find your Memory Leak C++
Using Performance Monitor to Find a User-Mode Memory Leak - Windows 10 hardware dev:
chasing-static-memory-leaks
i like the UMDH command to analyze memory, without the need to recompile application.
https://support.citrix.com/article/CTX120596
the command i used e.g.
umdh.exe -pn:xxx.exe -f:FirstDump.txt
umdh.exe -pn:xxx.exe -f:SecondDump.txt
umdh.exe -d -v -l FirstDump.txt SecondDump.txt -f:Result.txt
umdh.exe -d -v -l SecondDump.txt ThirdDump.txt -f:Result2.txt
gflags.exe -i xxx.exe +ust
gflags.exe -i xxx.exe -ust
dont forget
delete all registry - gflags.exe /i xxx.exe ffffffff
chasing-static-memory-leaks
i like the UMDH command to analyze memory, without the need to recompile application.
https://support.citrix.com/article/CTX120596
the command i used e.g.
umdh.exe -pn:xxx.exe -f:FirstDump.txt
umdh.exe -pn:xxx.exe -f:SecondDump.txt
umdh.exe -d -v -l FirstDump.txt SecondDump.txt -f:Result.txt
umdh.exe -d -v -l SecondDump.txt ThirdDump.txt -f:Result2.txt
gflags.exe -i xxx.exe +ust
gflags.exe -i xxx.exe -ust
dont forget
delete all registry - gflags.exe /i xxx.exe ffffffff
Thursday, February 23, 2017
Wednesday, February 22, 2017
Thursday, February 16, 2017
visual studio - Attaching the debugger to a process C++
In case you need to attached debugger into your debug program.
the next easy trick - will do it for you - if you will start your program with F1.
without F1 - it will not wait for a debugger
very helpful !!
#ifdef _DEBUG
if ( ::GetAsyncKeyState( VK_F1 ) )
{
while ( !::IsDebuggerPresent() )
::Sleep( 100 );
::DebugBreak();
}
#endif
Monday, January 30, 2017
canarytokens.net
trap for hacks canarytokens.net:
the google for finding open stuff (iot , routers..) https://www.shodan.io/
port scanning pentest-tools.com
carmaa/inception: Inception is a physical memory manipulation and hacking tool
the google for finding open stuff (iot , routers..) https://www.shodan.io/
port scanning pentest-tools.com
carmaa/inception: Inception is a physical memory manipulation and hacking tool
Wednesday, January 18, 2017
Thursday, January 12, 2017
Subscribe to:
Posts (Atom)