Rajshahi a distinctly famous city all over the Bangladesh for its peoples favorite appetite “Mango”. This historic north bangal city is became mango trading hub of the country. Mango is a fruit for summer and particularly summer weather of north of Bangladesh is ideal for mango. So hundreds and thousands of acres mango garden is now cultivating this fruit commercially.Recently for a technical event I have chances to visit the city and take a snap of mango trading that took place in the heart of city. And here you cant purchase mango’s in kilos, you have to purchase in bulk like 40 kilos in a very very cheap price. Same mango’s are shipped to big cities and sold in high price depending on quality.No more talking enjoy the juicy mango’s.
Tempted? you have to make trip in summer in the most burning side of the country and that juicy season last only two and half months. You are in Bangladesh during summer and you haven’t tested mango’s from the root!! that’s a awful waste, make a trip…….. mango’s totally worth it.
There was a time when development community was not very strong , neither companies commercially valued the importance of the tolls or plugins for Development. Now that is no longer is the case. Development of a product without tools or plugins, I dint think no one now does that. Using right set of tools or a plugin that ease the development effort or increase the product experience is equally appreciable.
At times there was only tools or plugins for the desktop applications, now look around, we are not limited to desktop anymore, we are blessed and charmed with hundreds of tools/plugins/utility for web/devices even focused to technology. I personally admire of such tools that make my development life easier. Through this not so short engineering experience life I have experienced lots of cool tools. Now I think its a shame If I do not share those experiences with my fellows. So from now one I will occasionally will try to come up with an experience sharing post with few tools that I have used or using.
Lets start with the fairly newest one, recently I was working on a product that requires a MS word to pdf conversion. System hosts a on premiss small utility service that receives MS word formatted document from various sources and put watermark on those docs and upload those to server for review and so on and on. Fairly simple idea, but when comes to conversion to PDF that no longer simple. Based upon document formatting and the content converting pdf might turn into a tricky task. And lets not forget the performance, we were expecting a huge conversion hourly. We dint want put too much effort on this one as its a tiny part of the big picture, so its time to go for a tool/utility that will do the job for us.
Though there is many open-source solution available but we decided to give it a try Spire pdf converter, why after going through the tutorials It seems fairly easy to integrate, but concerns was two,
how well it can handle loads
how good is the quality of the converted pdf’s
But I find it very helpful, the converted pdf’s was good quality, with embedded media (images) or plain text file with formatting. Converted pdf can keep the formatting intact from source document. Interesting tip about the tool is there is desktop application available to convert to pdf from diff sources along with .net library to build your self. For same purpose application you can try it also. That library you can download from here and for the same codes you can see here. I see there is a free to test version is also available, so enjoy 🙂
Despite of many good features I believe there is still some feature enhancement can be introduced in the list of existing feature. Like I want to invoke a service may be REST to convert my document , such feature might come handy in cloud applications I believe.
Due to non schema nature of mongodb collection, one collection may contains distinct number of fields.Its not recommended though, its possible to contain different number of fields due to business requirements. So for example say we have a collection “Client”, under which there is 2 document. Second document lacks 1 field “City”. So while binding back to POCO via c# driver , we get exception “Element does not match any field or property of class”.
When a BSON document is deserialized back to POCO, the name of each element is used to look up a matching field or property in the class map, when deserializer do not find the mapping property its throws an exception, that we have in this scenario. If we want to ignore those extra properties, there is two possible ways, during deserialization or during initialization of the BsonClassMap. I prefer the while I do the mapping, I live to keep my POCO clean.
As you can see the above code block, SetIgnoreExtraElements methods is used to specify inside mapping to ignore extra elements from BSON document.
That’s it, now you can work with your POCO more easily. CodeProject
IIS with PHP is not new now days, there is lots of business needs that requires php applications need to host in IIS. Recent times PHP improved a lots in terms of integrating to IIS.Still few times few things fall apart, like the problem we are going to illustrate.
For a recent project I had to configure PHP with IIS 7.0 on Windows 2008 R2. Everything was seems fine, I even added the application pool with “No Managed Code”, configured handler mapping and sit tight to see php running,.
After lots of googling I find the solution at last, solution was super easy, you have to install Visual C++ Redistributable for Visual Studio from here. Though it was specifically mentioned in the php download section, but I some how skipped that and wasted hours to find a solution.
Problem was PHP as FastCGI with IIS requires you to install the Non-Thread Safe (NTS) versions of PHP. And Recent releases binaries built with Visual Studio 2012 compiler , So while executing you need to have Visual C++ Redistributable for Visual Studio 2012 install in your server where you are trying to execute php scripts. And for proper installation follow these steps. Addition to these instructions you have to add an application pool with “No Managed Code” and Managed Pipeline Mode set to “Classic”. Then Go to “Advance Settings” of newly created application pool and Enable 32bit Application value to “True” CodeProject
While using log4net for logging and using a separate configuration file I encountered a strange error that log4net cant locate the configuration file, even though file and configurations are already there. This problem drive me nuts and finally i found few solutions to fix the problem.
My particular applications is designed as such
So as shown in diagram, several type of app type will hookup with Log4Net wrapper to get logging facility and all logging related logic’s are implemented on Log4Net wrapper. As the problem states every time a client app is trying to invoke log4net wrapper it gets xml configuration error “Check your .config file for the <log4net> and <configSections>….”
There is few problem and few solution, Solution can very on context.
On the client project , select Log4Net config file and set this file to Build Action of Content with Copy to Output Directory of Copy Always.
Another alternative is look for XmlConfigurator.Configure();. This line is responsible for initiating the log4net. This configuration should exist a single place where logging actually happen, not client app’s.
One of these 2 or both tricks should help to solve this problem. CodeProject
After long work weeks me and my wife decided to take some day off. We are trying to make it a habit of after each 3/4 exhausting work week we go out for a short vacation, not long , max 3 days, and believe me it recharge you like no other thing. Usually our favorite place is beach but this time we decided to take a different route , its rainy season in bangladesh and at this time no other place could be as beautiful as sylhet our one and only tea county. I went to srimangal (a upazila under sylhet division) several times, but for my wife its a new territory, so I made up my mind I will take her to sylhet first and later of the year may be srimangal.
This post is more or like informative post for new bees, let me try to put together as much as info as possible to aid new visitors.
How to reach sylhet
there is good communication from major citys to sylhet. You will get trains, buses (AC/ No AC). If you are traveling from Dhaka train leaves from Dhaka to sylhet twice a day. And there is several bus services from dhaka to sylhet all day long. I recommend to take Green line bus , its AC bus, comfortable, good service and fair is also reasonable 900tk, you can take non a/c buses like shamoli/tr paribahan which is non a/c fair is 400tk. You will reach to Humayun Rashid Circle (HRC) from which you can take CNG (local cabs) or rikshaw to reach your hotel.
Where to stay
Sylhet city is full of hotels ranging from 400tk 10k per night depending on your budget. Good thing is most of the hotles are inside city and easily reachable. I stayed at Hotle Supreme, good service, decent food, reasonably comfortable rooms. you can get a a lots of hotel name by googling.
Hotel Valley Garden, Bishwa Rd, —- 0821-727602 (cell phone)
Hotel Garden Inn. Garden Tower, Shahjalal Bridge Link Road — 0 1711271185, 0 821 727284 (cell phone)
Where to eat
For foreigners it could be bit tough to try local restaurants as they serve mostly native and popular local dishes, so I recommend to stick to restaurants within the hotel, for local travelers there is lots of options but i feel it hard to find a decent restaurants with good quality food. me and my wife tried a few, even some of them get very high recommendation from diff travel sites, but few of them could coupe with reputations, we find the Exotica restaurant within hotel supreme decent and more or less good quality local food but dont event try the thai/Chinese dishes :). You can try woondal/vojon bari for change of taste
How to roam around
You have to rent a vehicle to roam out side of town , but for roaming inside town CNG/rickshaw is more then fine. CNG and rickshaw fair is reasonable. You can get rented vehicle ambarkhana or madina market area inside town. You can ask your hotels also to arrange a ride for you, but in that case price will be higher. I managed to get a very good driver and guide. He willingly guided the whole tour and take us to places that we don’t know exist inside the city, you can pick him up if he is free, Mr Alamgir– 01712068709 (cell phone)
Places to see
All the photos are taken by my Canon 60D myself, Though I am listing out few places but the on they way to reach these places is as much beautiful as they are.
Malini Chora Tea estate is one of teh most visited tea estate in sylhet, located near to sylhet city, easily reachable via CNG (local name of CNG driventaxi) or rikshaw
Madhobkunda is one of the larges waterfalls in bangladesh and one of the most visited tourist spot in sylhet. On the way you can see the tea garden, the hills and the zigzag road through the hills. For me best time to visit there is rainy season from june to august, at that time waterfall came with her own strength and beauty……. breathtaking.
The resort is is nearly 1h drive from sylhet city and a good place for relaxation, main attraction is you can see 2 waterfalls from maghalaya (india) in distant , two waterfalls, which are ten times bigger than the Madhabkunda falls, will blow your mind! But alas those are in india, so what we can peek those from this resort 🙂
This is a wide canal known as Lala Khal & near zero point with india . It is the source of Sylhet Sand . The attraction of this canal is the water, which differs in colour at different point. In the same canal, you will find blue, green, clear water. No one will believe this without having watch. You cat take a boat ride here , 30min ride will cost 500tk.
situated at the border between Bangladesh and the Indian state of Meghalaya, overshadowed by subtropical mountains and rainforests. Jaflong is famous for its stone collections and is home of the Khasi tribe. On they way to jaflong landscape is breathless, you will often like to get out of ride to actually enjoy the view……………………………….. ohh wait thats what I did
When to plan the trip
In general people come to sylhet at pick season during winter, from october to February, when weather is not much hotter. But I prefer rainy season. During rainy season tea gardens, waterfalls , rivers flourish with beauty, I recommend not no miss that for anything. There is hand full of tour operator available who will arrange the trip for you any time of the season, but my opinion is do some homework about the place and arrange the trip yourself, that’s is much more exciting. At least that’s what I always do. Its a friendly place with friendly people, give it a try I am sure you will love it.