TwitterFacebook

News: Superfast Browser – to fast.

If your browser is to slow and don’t use many extensions then you can use
You can download it from after you stop all antivirus tasks.
I don’t know why this browser have trouble with antivirus or security app’s , because is a clean software.
Anyway the browser is fast , don’t working with auto passwords software.
It’s seam a google chrome browser without problems.
I saw many browsers and now the worst browser is Google Chrome , Firefox and Safari.
I used just because I have some extensions like xmarks and passwords.
I also tested a asm browser and this working very well with flash player.
Under Linux OS the browsers have many problems with flash memory.
But now for windows 8 the Superfast Browser work great.

super fast browser
super fast browser

Yara python module – part 001

YARA is a multi-platform program running on Windows, Linux and Mac OS X.
More about yara python module can be see it here
YARA used this keywords with rules under files.

all 	and 	any 	ascii 	at 	condition 	contains
entrypoint 	false 	filesize 	fullword 	for 	global 	in
import 	include 	int8 	int16 	int32 	int8be 	int16be
int32be 	matches 	meta 	nocase 	not 	or 	of
private 	rule 	strings 	them 	true 	uint8 	uint16
uint32 	uint8be 	uint16be 	uint32be 	wide

The Yara documentation can be found in this link.
The yara python module use version 1.7.7 and this will need to use when make rules.
Instalation with pip :

C:\Python34>cd Scripts
C:\Python34\Scripts>pip install yara
Downloading/unpacking yara
Installing collected packages: yara
  Running setup.py install for yara

    Installing yara-ctypes-script.py script to C:\Python34\Scripts
    Installing yara-ctypes.exe script to C:\Python34\Scripts
Successfully installed yara
Cleaning up...

Let’s see this in action.
First you need to make your user under your_user account.
I make one folder named yara to keep the my rules, see:

C:\\Users\\your_user\\Dropbox\\yara\\

and I test this file named doc_data.txt, from here:

C:\\Users\\your_user\\Dropbox\\

The file has this text :

InfoKey: Creator
InfoValue: TeX
InfoKey: Producer
InfoValue: pdfTeX-1.40.3
InfoKey: PTEX.Fullbanner
InfoValue: This is pdfTeX using libpoppler, Version 3.141592-1.40.3-2.2 (Web2C 7.5.6) kpathsea version 3.5.6
InfoKey: ModDate
InfoValue: D:20110210185614-08'00'
InfoKey: CreationDate
InfoValue: D:20110210185614-08'00'
PdfID0: 5691a9b61e98f4c329d4f9f6deb5363c
PdfID1: 5691a9b61e98f4c329d4f9f6deb5363c
NumberOfPages: 24

and the rule file detectstring has this rule:

rule detectstring
{
    strings:
        $my_text_string = "5691a9b61e98f4c329d4f9f6deb5363c"

    condition:
        $my_text_string 
}

You can use python shell with this source code:

import yara
from yara import *
dir(yara)
['CALLBACK_ABORT', 'CALLBACK_CONTINUE', 'INCLUDE_PATH', 'Rules', 'YARA_RULES_ROO
T', 'YaraSyntaxError', '__builtins__', '__cached__', '__doc__', '__file__', '__l
oader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'com
pile', 'libyara_wrapper', 'load_rules', 'preprocessor', 'rules', 'version']
print(yara.version.__version__)
1.7.7
rules=yara.compile("C:\\Users\\your_user\\Dropbox\\yara\\detectstring")
matches=rules.match("C:\\Users\\your_user\\Dropbox\\doc_data.txt")
print(matches)
{'main': [{'tags': [], 'matches': True, 'rule': 'detectstring', 'meta': {}, 'str
ings': [{'flags': 19, 'identifier': '$my_text_string', 'data': '5691a9b61e98f4c3
29d4f9f6deb5363c', 'offset': 326}, {'flags': 19, 'identifier': '$my_text_string'
, 'data': '5691a9b61e98f4c329d4f9f6deb5363c', 'offset': 367}]}]}

The above rule is telling YARA that the file containing the string must be reported.
The print will show the rule compiled and the result.

yara python
yara python

News: The new alpha browser Yandex.

We have created a concept browser — this is our vision of how it should be in the future. Please try the alpha version of the new Yandex.
I download it and I test this nice browser named Yandex.
After I tested I saw this features:

  • an open website uses the entire window
  • the interface of the browser has been reduced to a compact panel
  • full transparency
  • sites with “no background” can be set transparency
  • configuring panel appearance for website pages
  • youtube movies work great
yandex-browser
yandex-browser
yandex-browser-search
yandex-browser-search

News: … need help with LTC donations.

I worked on this website and now seam to need a little help with donations.
We operate on your donations, we ask to help us keep providing you this website and also to create new tutorials.
If you want then go to Contact page to make donations.
Thank you. Regards!

Also you can use QR Code to make donations.

LTC-free-tutorials.org
donate LTC

Using Speech with C# and Visual Studio 2013.

This example will show you how to use Speech with C# an Visual Studio 2013 to recognition your words , speak your words from your list and also to command the exit appplication.
Create one empty project from File – New Project.
You have now one Form and you will add 3 buttons and one TextBox.
After that will need to select MultiLine by using right click on the arrow of TextBox.
The next image show you this 3 buttons and TextBox.
Speek C#
You need to activate Speech from Visual Sudio 2013 IDE:
Go to right panel and Add Reference ( use right click and select it – see next image).
Speek C#
Then select Speech and click Apply – see next image:
Speek C#
All buttons will have source code, just double click on buttons and will have the functions for all buttons.
Also If you want to renamed the buttons just search Properties and then Text and rename buttons or Form title.
I used Speak, Start and Stop for buttons.
I used also one if-else with exit word from list, to stop application.
The list will have all words to recognition your words from list.
You need also to have hardware microphone or portable microphone and also you must activate it unde windows.
Now, the source code of your form is this:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using System.Speech.Synthesis;
using System.Speech.Recognition;
using System.Threading;

namespace Speaking
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        SpeechSynthesizer sSynth = new SpeechSynthesizer();
        PromptBuilder pBuikder = new PromptBuilder();
        SpeechRecognitionEngine sRecognize = new SpeechRecognitionEngine();

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            pBuikder.ClearContent();
            pBuikder.AppendText(textBox1.Text);
            sSynth.Speak(pBuikder);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            button2.Enabled = false;
            button3.Enabled = true;
            Choices sList = new Choices();
            sList.Add(new String[]{"hello","hi","who","how","working","you","test","working","exit"});
            Grammar gr = new Grammar(new GrammarBuilder(sList));
            try {
                sRecognize.RequestRecognizerUpdate();
                sRecognize.LoadGrammar(gr);
                sRecognize.SpeechRecognized += sRecognize_SpeakRecognized;
                sRecognize.SetInputToDefaultAudioDevice();
                sRecognize.RecognizeAsync(RecognizeMode.Multiple);
            }
            catch { return; }
        }
        private void sRecognize_SpeakRecognized(object sender, SpeechRecognizedEventArgs e) {
            //MessageBox.Show("Speek " + e.Result.Text.ToString());
            if (e.Result.Text == "exit")
            {
                Application.Exit();
            }
            else {
                textBox1.Text = textBox1.Text + " " + e.Result.Text.ToString();
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            sRecognize.RecognizeAsyncStop();
            button2.Enabled = true;
            button3.Enabled = false;
        }
    }
}

Using F7 Buil Solution and then Start Debugging – F5 you will run the application.