Eg Net Solution: Programming

Here in this sites web and software developer can get some essential information.

MY Favorite .Net Question For Interview

This are not tidy. Just for rough. In Sha Allah will make it tiddy soon. 1.  DateTime2 Date range 0001-01-01 through 9999-12-31  vs Date...

Users Countries


Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Tuesday, November 27, 2018

Programming language & library Exceptions that occurred while developing in C#, JavaScript, Jquery, SQL, Entity framework

November 27, 2018 0
Programming language & library Exceptions that occurred while developing in C#, JavaScript, Jquery, SQL, Entity framework
C#-SQL: Procedure or function SPROC_GET_DBTEXQuality_SearchBatchCardDetails has too many arguments specified. 
It occurs when System.Data.SqlClient SqlCommand command.Parameters have more parameter rather than declared in the Stored procedure

Parse String to Date Time: Worked For ME:
   string CreatedDateStr = "2018-12-13 11:05:45.313";
   DateTime CreateDate = DateTime.Parse( CreatedDateStr );

Thursday, October 18, 2018

Programming Or Algorithms Snippet

October 18, 2018 0
Programming Or Algorithms Snippet
1. Swap value of 2 variable with out using any third variable.
Suppose

  1.  a= 5
  2.  b = 7
  3.  a = a + b;  = 12;
  4.  b =  a - b ;  =  5;
  5.  a = a -b; = 7

 You can also swap two equal length array with out using any temporary third variable by looping and traversing the arrays. 

Thursday, June 26, 2014

Android app development using symphony,walton and other local BD phones

June 26, 2014 0
Android app development using symphony,walton and other local BD phones

To develop an android application the first step is to set up the environment like installing the Eclipse with ADT, installing the android sdk etc. After setting up SDK it is very important to run the application for testing and  debugging. For this we can use emulator or android device selecting from android  virtual device manager. Using emulator is simple but it is often slower. That's why it is recommended to use android device. Using the Samsung, nexus as android device has no complexity. There are a lot of tutorials for it. But complexity arises when we want to use Symphony, Walton, Micromax and other local China phones which are available in Bangladesh .First we need ADB driver for device like Google driver or OEM driver.It can be download from here:
https://github.com/tushroy/ADB-Drivers/archive/master.zip

Wednesday, June 25, 2014

My Future Diary: Breadth-first search coding in Python

June 25, 2014 0
My Future Diary: Breadth-first search coding in Python
 My future diary for revision:
#Breadh First search
import Queue
initial = 9925065 
GRAPH = { 1:[(2,initial) ,(3,initial)] , 3:[(4,initial) ,(5,initial),(8,initial)] , 2: [(5,initial),(52,initial)] , 5:[(9,initial)] , 8:[(126,initial)]   }

key = GRAPH.keys() # Here 1,2,3,,5,6,8 excet the root*/
   
for i in range(len(key)):
    vertice = GRAPH[key[i]]
    print "Parent : "+ str(key[i])
    for j in (vertice):
      print  " " + str(j[0])


queue = Queue.Queue()

root = (1,0)
search   = input('Enter which vertices You want to search: ')
found = 0

print "Root : " + str(root)
print "Need to find   : " + str(search)
queue.put(root)

visit = []
while not queue.empty():

     current_node = queue.get()

     print  "Current node : "+ str(current_node)
    
     if current_node[0] == search :
         found = current_node[1] #value/cost/complexity
         print "Found"
         print "Complexity = " + str(found)
         found  = 1
         break
      
   
     if GRAPH.has_key(current_node[0]) and (visit.count(current_node[0]) == 0 ):
       
         child_node = GRAPH[current_node[0]]
         previous_cost = current_node[1]
         new_cost = previous_cost + 1
         print "child node  of  "+ str(current_node)+" are " + str(child_node)
         visit.append(current_node)      
         for i in child_node:
             child_previous_cost = i[1]
             if(child_previous_cost > new_cost):
                 new_node_status = (i[0] , new_cost)
                 queue.put(new_node_status)
          
   
       
   
if found == 0:
    print "The desired node doesn't exist in the tree"




Courtesy: Kowsar Hossain Auvi Sir
                Robin halder

Add Choice