Posts

Showing posts with the label Solution
Share:

Read Blogger Feeds Using AJAX Callback Function - Amit Padhiyar (Saatody)

This article is all about read AJAX callback function. This callback function gives output in XML and JSON formats. This will also help us to make blogger widgets without blogger tags like <b:widget>. The callback function read blogger feeds using readJSON() and readXML() functions. Write entire program between <script> tag. <script> </script> Create callback function in AJAX function read(_url, _function){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function(){ if (this.readyState == 4 && this.status == 200){ _function(this); } }; xhttp.open('GET',_url,true); xhttp.send(); } Create callback function for JSON format function readJSON(_url, _function){ read(_url + "?alt=json", _function); } Create callback function for XML format function readXML(_url, _function){ read(_url ,_function); } Create function that write output in browser conso

Working With String In Python - Amit Padhiyar (Saatody)

Python is very popular programming language. It is also very easy for developer. Python gives you many ways to make your program easy in every new release. In this post, I will discuss about only string (no discussion about string functions). I trying to make this post for developers who want to know " How to define string in Python?", "How Python different from other languages?", "How Python provides string handling syntax?". So first, What is string in every programming language? The short answer is... The string is sequence of characters that use for store string or text values. Syntax: "Define String In Double Quotes" 'Define String In Single Quotes' Python does not give an error when we use string in single quotes Python does not give an error when we use string in single quotes when other programming languages gives error. This is a reason that the python is very easy for use. What is reason behind this? Because, The sing

Little about my new framework - GoraiyaJS

GoraiyaJS will be web components based framework for front-end web designer. I am trying to include some basic and common component like Button, Label, TextInput, NumberInput, Checkbox, Radiobutton, and so on. Here is the little example of button.  If you want to add default button using GoraiyaJS then below little HTML code you will write and rest  (CSS and JavaScript) GoraiyaJS will handle. See at last demo of Button. The CSS and JavaScript will built-in inside GoraiyaJS Framework. So, It will become standard for your every websites. Program: <span class='gjs-button'> Button </span> Program: <!DOCTYPE html> <html> <head> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'/> <style> body{ padding:20px; font-family:roboto; } .gjs-button::selection{ background-color:transpare

Basic Audio Operations With MP3 And Wave Files Using NAudio C#

In this post, I will discuss about DirectSoundOut, AudioFileReader, Mp3FileReader and WaveFileReader class(es) and its methods. Also, discuss about open, initilize, play, pause, stop and dispose the audio file. Of course! These are basic operations of audio file. The DirectSoundOut Class The DirectSoundOut class can initilize, play, pause, stop, dispose the audio files. It is alternate option of WaveOut and WaveOutEvent. See list of methods of DirectSoundOut class. Init() Play() Pause() Stop() Dispose() The AudioFileReader, Mp3FileReader and WaveFileReader Classes The AudioFileReader class can automatically decide if file is wave or mp4. When the WaveFileReader and Mp3FileReader can't. If you try to open wave file using Mp3FileReader then it will give you exception "System.FormatException: 'Not a WAVE file - no RIFF header'". And same, If you try to open mp3 file using WaveFileReader then it will give you exception "System.IO.InvalidDataEx