Categories
Ask

[ Singles & Dating ] Open Question : I haven’t been on a date with a man in over 11 years?

Is it time to give up , considering hiring an escort or traveling over seas..

Categories
Ask

[ Jazz ] Open Question : Wbat are some songs by the Jazz musician Miles Davis?

I am more of a Rap fan but have listened to all kinds of genres. I find Jazz to be very relaxing and I have heard several Miles Davis songs and find him very talented. I find his music to be very relaxing. Any song suggestions by him?

Categories
Ask

[ Singles & Dating ] Open Question : A problem about my relationship with my girlfriend?

Well i’m 16 and she’s 16 and we have been dating for 11 months now and i love her but recently so past month or so i have been feeling like breaking up. what goes through my brain is that i wanna live my life and have fun still and make money and not be […]

Categories
Ask Donald Trump Politics

[ Politics ] Open Question : Donald J Trump: A godsend to Americans in their time of need?

Many remember how much damage Hussein Obama did to America. He tried to destroy it and most nearly succeeded but proud conservative patriots were able to hold the peaces together. A visionary man has been Mr Trump, as he faithfully and ceaselessly resurrects the ideals of a TRUE and great America for all to be […]

Categories
Development

Time diffrence always 0

Timespan gives me always 00:00. private async Task<bool> CheckProcess() { . . . var dateTimeNow = DateTime.Now; var dtbooking = new DateTime(2019, 9, 23, 4, 0, 0); var timeSpan = dtbooking.Subtract(dateTimeNow); //timeSpan = dtbooking – dateTimeNow; var hours = timeSpan.TotalHours; if (hours > 12) { bla bla bla } else . . . return true; […]

Categories
Development

How to Pass delimiter in unoconv command

I have tried below command to convert .xls to .csv but problem here, how to add delimiter in this code? unoconv –format xlsx example1.csv Delimiter should be “;” one more thing, how to skip first 5 rows while converting from .xls to .csv? Can someone help me with this?

Categories
Development Domain

Java: Are Instance methods Prohibited for Domain Objects in Functional Programming?

Since Functional Programming treats Data and Behavior separately, and behavior is not supposed to mutate the the state of an Instance, does FP recommends not having instance methods at all for Domain Objects? I am asking more in the context of Object oriented languages like Java.

Categories
Database Development MySQL

Searching Mysql database with multiple keywords

I am trying to search a database for one or multiple keywords passed in $_POST[‘search’], I am not able to loop through the keywords, My script is: $str = $_POST[‘search’]; $keywords = preg_split(‘/[\s]+/’, $str); $totalKeywords = count($keywords); $query = “”; $i = 0; while($keywords[i] != null) { $query .= ” AND name LIKE %”.$keywords[i].”%” ; […]

Categories
Development

aws cloudformation s3 event notification to SQS not working

[Following is the link for cloudformation template which I have tried from my end] https://github.com/maheshvarak89/aws-cfn-templates/blob/master/s3_event_sqs I am facing following error: The ARN is not well formed (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: XXX03XXXXBC36E49; S3 Extended Request ID: bYBRrz0ybftGFwHxFCBXWBI5nRF15COGCL6Q8tm3bNs/e+aWafy+pAIIeUNy82DmOKJcVq1MthE=

Categories
Development

SphinxSearch: Cannot get result from (remote) agent

I build 2 searchd instance on different server(namely A and B) and build a distributed index on A. However, when I query A from client, I only got result from A’s index. My problem is I cannot get result from B’ index, I am pretty sure I configure correct. I tried: * replace hostname with […]