Monthly Archives: February 2018

C# Initializing dateTimePicker to today’s date but date not showing in text portion of control

I am setting DateTimePicker value to today’s date. Code Start: dtDate.Checked = true; dtDate.Value = System.DateTime.Today; if (dtDate.Handle == null) System.Threading.Thread.Sleep(0); dtDate.Checked = false; Code End. Calendar date gets set which is confirmed by accessing the calendar. However the text is blank. How do i get it to show the date in the text portion… Read More »

Elasticsearch add data with Nodejs

I’m creating app with NodeJs and PostgreSQL and I whant to add ElasticSearch for it But I don’t realize how add new data to ElasticSearch how sync my data from PostgreSQL to ElasticSearch Can someone help me? How add data to ElasticSearch and how sync my data between ElasticSearch and PostgreSQL? Thnq 🙂

Multi nested expand and collapse using SlideToggle not working

Below is the sample code. All headers expands and collapses fine but when I collapse child item and then collapse parent the text under child heading is showing up. Appreciate any help. $(document).ready(function() { $(“h2”).click(function() { $(this).nextUntil(“h2”).slideToggle(); e.preventDefault(); }); $(“h3”).click(function() { $(this).nextUntil(“:header”).slideToggle(); }); $(“h4”).click(function() { $(this).nextUntil(“:header”).slideToggle(); }); }); Heading 1 This is a paragraph. heading… Read More »

Automatically splitting text content into even columns

Can’t find any documentation to see if anyone’s already done this. I imagine it’s possible through javascript or PHP. I’ll explain what I’m trying to accomplish as so: Assume I’m using Twitter Bootstrap 4. Say I have the following content in HTML: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum posuere porta. Sed… Read More »