I'm using netflix since last four months and using stan since this month. I'm just writing this for the help of new user.
Netflix vs Stan
Speed & Quality
I'm using TPG unlimited package and it's seems to be both same in buffering speed. But some times I noticed stream of stan is low quality in first few minutes. I think netflix has most robust connection.
Number of Productions
Both seems to be same. But you will not find any new movies on both. Not enough Bollywood movies on both stan and netflix. But with netflix you'll be able to watch netflix originals like House of Cards. So if you want to watch more new movies then be a pirate.
Subtitles and Close Captions
Netflix has closed captions on every production and I didn't see any of stan movies got them.
Price
Price range is same for both netflix and stan.
Hope this will help you to decide.
Windows 7, Linux, Mac, JavaScript, jQuery, ExtJs, Angular, .NET, Java, Android, iOS, php, mysql, lucene and more...
Monday, August 3, 2015
Tuesday, July 21, 2015
Set Jquery-ui-autocomplete select menu height
This was really simple than I thought. You just need to add following CSS lines to your style sheets.
ui-autocomplete
{
max-height: 250px;
overflow-y: auto;
overflow-x: hidden;
}
Hope this will help you.
ui-autocomplete
{
max-height: 250px;
overflow-y: auto;
overflow-x: hidden;
}
Hope this will help you.
Thursday, February 5, 2015
PhpMyAdmin cannot import sql.
I tried to run a simple sql select query to a mysql database through phpmyadmin interface. But I was getting this error message.
Can't import SQL into PHPMyAdmin.
But when I'm running the same query using mysql console command line it was ok. So found the solution and it was very simple. Just run use statement with the database name that you need to query.
use DB_College;
SELECT * FROM TBL_Students;
Thanks!
Wednesday, October 22, 2014
How to check out visual studio solution file with out check out whole set of files.
Hi All
I had to save the solution file which is edited by notepad (Out side of the .NET IDE) . Problem was when I was checking out solution by it checked out the whole set of files in that solution including images, javascript files and CSS files as well.
Well, answer was very simple. Here are the steps.
I had to save the solution file which is edited by notepad (Out side of the .NET IDE) . Problem was when I was checking out solution by it checked out the whole set of files in that solution including images, javascript files and CSS files as well.
Well, answer was very simple. Here are the steps.
- Do the changes to the solution file from outside editor (use notepad, notepad++) .
- Save the changes.
- Right mouse click on solution and add a new solution folder.
- Then Delete the solution folder which you added on step 3.
- Your solution file will check out with your changes.
Thanks!
Tuesday, September 2, 2014
Angular JS and Style tag in Internet Explorer.
I had this problem with AngularJs and Internet explorer. So here is the problem.
Internet explorer validating all html tags and it recognize this as a invalid style tags. So the fix is here.
HTML
Internet explorer validating all html tags and it recognize this as a invalid style tags. So the fix is here.
HTML
JAVA SCRIPT - App.js
$scope.GetStyle = function (t) {
return "background-color: "+ t +";";
};
Happy Coding Fellows!
Sunday, August 17, 2014
Windows Update freezes when you install updates in Windows 8, Windows 7, or Windows Vista
Since last few days my windows 7 did not shutdown and it was waiting to install windows update for ages. I gave that computer almost 12 hours to complete but it didn't work. For this moment I don't know how I fixed that but I have done following things to fix that. One of those tries will give exact result you want with you windows.
- Turn of your computer using power button . ( Kill it :D )
- Start computer in normal mode.
- Go to windows update.
- Try to install updated or check for updates again. This will give you an error message saying that it is installing some other updates.
- If that's the case restart your computer again with power button. once windows displays above error message it will stop installing that crappy update.
- Then go to windows update and click check for updates.
- If that work install windows updates and get a backup of your system or create a restore point.
- That will make sure if something go wrong on next time you'll be safe.
Again I'm really sorry I couldn't get any photos this time and cant exactly say what fix this problem. So follow above steps and let me know your result.
Thanks!
Tuesday, August 5, 2014
Basic Indexing and Searching Example with Apache Lucene.net
Lucene - Previous
1. Add Lucene.net to your application.
Lucene database is a local file system folder which is the location of encrypted indexfiles generating from lucene.
1. Add Lucene.net to your application.
- Copy Lucene.Net project to your solution folder or copy Lucene.Net.dll to your projects
- Add reference to Lucene.Net from the project your wish to use lucene as indexing
- Build your project.
2. Open writable Lucene database.
- FSDirectory is the class that we are using to create Lucene data folder in file system. This action will create write.lock file in target database path which is the lock file for that database. If you want to release this lock dispose the directory object and delete the write.lock file if its still exists.
FSDirectory objDirectory = FSDirectory.GetDirectory(pstrDatabase_path);
- Create Analyzer object to analyze and remove unnecessary chracters from indexing text. (@, a, :, / etc. )
Analyzer Analyzer = new StandardAnalyzer();
- Create IndexWriter class to index text, html, numbers.
IndexWriter Writer = new IndexWriter(objDirectory, Analyzer);
3. Create your first index function with Lucene.
FSDirectory objDirectory = FSDirectory.GetDirectory(pstrDatabase_path);
Analyzer Analyzer = new StandardAnalyzer();
IndexWriter Writer = new IndexWriter(objDirectory, Analyzer);
FSDirectory objDirectory = FSDirectory.GetDirectory(pstrDatabase_path);
Analyzer Analyzer = new StandardAnalyzer();
IndexWriter Writer = new IndexWriter(objDirectory, Analyzer);
Document doc = new Document();
doc.Add(new Field("FIELD_NAME", "FIELD_VALUE" , Field.Store.YES,
Field.Index.NOT_ANALYZED));
Writer.AddDocument(doc);
Writer.Commit();
Writer.Close();
4. Searching an Index.
3. Create your first index function with Lucene.
- From section 2 we have
FSDirectory objDirectory = FSDirectory.GetDirectory(pstrDatabase_path);
Analyzer Analyzer = new StandardAnalyzer();
IndexWriter Writer = new IndexWriter(objDirectory, Analyzer);
- Create blank Lucene Document. Lucene will store your data as documents. Following code will create blank lucene document in memory.
- Now we need to add data to this document. Data will be added as fields. Field is a keyvalue pair which include string key and string function. In later sections we may use fields which have custom data types. Following code line will insert string valued field to your lucene documents.
doc.Add(new Field("FIELD_NAME", "FIELD_VALUE" , Field.Store.YES,
Field.Index.NOT_ANALYZED));
- Now we can add this document in to the Lucene writer from following code.
Writer.AddDocument(doc);
- Full code of indexing process.
Analyzer Analyzer = new StandardAnalyzer();
IndexWriter Writer = new IndexWriter(objDirectory, Analyzer);
Document doc = new Document();
doc.Add(new Field("FIELD_NAME", "FIELD_VALUE" , Field.Store.YES,
Field.Index.NOT_ANALYZED));
Writer.AddDocument(doc);
Writer.Commit();
Writer.Close();
4. Searching an Index.
- Creating Searcher object. Following code will create searcher object and it will take database path as a parameter.
Searcher objSearcher = new IndexSearcher("C:\\Lucene_Data");
- Create QueryParser object.
QueryParser parser = new QueryParser("Default_Field", new StandardAnalyzer());
- Create query from QueryParser object.
Query query_lucene = parser.Parse("FIELD_NAME:FIELD_VALUE" );
- Searching Lucene database and accessing data of searched documents.
Hits hits = objSearcher.Search(query_lucene, sort);
int aprox = (uint)hits.Length();
for (int i = 0; i < aprox ; i++)
{
Document doc = hits.Doc(i);
string result = doc.Get("FIELD_NAME ");
}
objSearcher.Close();
- Complete simple search code.
Searcher objSearcher = new IndexSearcher("C:\\Lucene_Data");
QueryParser parser = new QueryParser("Default_Field", new StandardAnalyzer());
Hits hits = objSearcher.Search(query_lucene, sort);
int aprox = (uint)hits.Length();
for (int i = 0; i < aprox ; i++)
{
Document doc = hits.Doc(i);
string result = doc.Get("FIELD_NAME ");
}
objSearcher.Close();
Subscribe to:
Posts (Atom)
-
Recently I purchased nord-vpn for testing. But I could not use their service due to a technical reason. So I wanted to cancel and get my mo...
-
Hi All I couldn't debug my C# class library project due to this issue for last few month. So this is the fix. 1. Right mouse click on...
-
Lucene - Previous 1. Add Lucene.net to your application. Copy Lucene.Net project to your solution folder or copy Lucene.Net.dll to your ...