Vote count: 0 When following the below tutorial: brew install python3 pip3 install numpy brew install cmake git clone --depth=1 https://github.com/Itseez/opencv.git cd opencv mkdir build cd build -DINSTALL_PYTHON_EXAMPLES=YES -DPYTHON3_EXECUTABLE=/usr/local/bin/python3 -DPYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/include/python3.5m/ -DPYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5.dylib -DPYTHON3_NUMPY_INCLUDE_DIRS=/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/ -DPYTHON3_PACKAGES_PATH=/Library/Frameworks/Python.framework/Versions/3.5/...
ادامه مطلبVote count: 0 I'm trying to retrieve data into labels dynamically. Meaning to say the label will change as i change the DropDownList selected item. Is it possible? aspx: aspx.cs: //page load box retrieve SqlCoection myCoect2 = new SqlCoection(_coStr); string strCommandText2 = "SELECT Card_Type, Card_Type2, Card_Number, Card_Number2, Name_On_Card, Name_On_Card2, Expired_Date, Expired_Date2 From Card_Details where Card_Id = @Card_Id"; myCoect2.Open(); SqlCommand cmd2 = new SqlCommand(strCommandText2, myCoect2); cmd2.Parameters.AddWithValue("@Card_Id", 1); ////open coection and retrieve data by calling ExecuteReader SqlDataReader dr2 = cmd2.ExecuteReader(); if (dr2.Read()) { string CNo1 = dr2["...
ادامه مطلبVote count: 0 I tried using String.Format that is commented below but it doesn't work. I tried using contains but it seems like it only takes a certain amount of characters its not reading 2 numbers just 1. I want it to really use the string.format. I pretty much want to save the two numbers from the textbox and display them and in that format only. What do i need to do? string s = textBox1.ToString(); string text = textBox1.Text; text = text.Trim().ToLower(); MatchCollection matches = Regex.Matches(s, @"d+"); string[] result = matches.Cast() .Take(2) .Select(match => match.Value) .ToArray(); //string c = string.Format("The alarm id from video server number {0} is {1}.", result[0], result[1]...
ادامه مطلبVote count: 0 I need to get codec information when using libvlc to play remote media. Since the VLC player can achieve this(see the link below), libvlc may well do it too. a screenshot of VLC Also, I find that libvlc_media_tracks_get can retu a related struct as follows: typedef struct libvlc_media_track_t { /* Codec fourcc */ uint32_t i_codec; uint32_t i_original_fourcc; int i_id; libvlc_track_type_t i_type; /* Codec specific */ int i_profile; int i_level; union { libvlc_audio_track_t *audio; libvlc_video_track_t *video; libvlc_subtitle_track_t *subtitle; }; unsigned int i_bitrate; char *psz_language; char *psz_description; } libvlc_media_track_t; Maybe the member i_codec stores such inform...
ادامه مطلبVote count: 0 Could you tell me how to transform. hive transformation question asked 35 secs agobrijesh MISHRA Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I was not able to find much information about my query on web forums, so thought I might try here. Interested on thoughts about url structure for city landing pages, essentially best practice and reasons for implementing format (a) over (b) where; (a) format is "example.com/chicago" (b) format is "example.com/?_city=chicago" asked 1 min agoredmacgirl This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....
ادامه مطلبVote count: 0 While parsing string to date object using SimpleDateFormat, I am getting below error. java.text.ParseException: Unparseable date: "Tue, 29 Mar 2016 11:27:37 -0400" The code I am using to parsed date is DateFormat df2 = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z"); I am able to parse dates 'Mon, 13 Jun 2016 11:48:54 +0300'. I noticed one thing that dates having +ve timezone(+0300) are getting parsed but -ve timezone(-0400) are not getting parsed. Thanks for help. asked 46 secs agouser2779095 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#...
ادامه مطلبVote count: 0 I have an html page and a login.php to set up a simple login page (frontend). In the following login.php page, I need to retrieve the entered useame and password from the html page (I did this in the first 2 lines), then I need to pass both of this information to a backend (my partner). The backend expects a GET useame and password, which apparently is the problem because I can't get it to be authenticated despite entering the correct useame and password. I found that when I did echo $response; and echo $var in the code shown that nothing was retued and this might be the problem. Another potential problem is that the frontend POST data and the backend's expected GET data is inc...
ادامه مطلبVote count: 0 I am trying to send an HTTP request using Django that includes a useame and password in the header in order to retrieve a token. On my computer terminal I do the following command and it works properly: http POST 127.0.0.1:8000/api-token-auth/ useame='admin' password='whatever' I am trying to do this with Retrofit: @Headers("useame='admin' password='whatever'") @POST("/api-token-auth") Call getToken(); However I am presented with the error: @Headers value must be in the form "Name: Value" Is there a correct way to format this header? asked 46 secs agoethanzh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Max * {{programname.country.currency_symbol?programname.country.currency_symbol:'$sss'}} {{attributes.investment_amount_max | number}} {{formValidation.required}} {{formValidation.minMax}} {{formValidation.numberMax}} {{formValidation.errorNumber}} Refer my above coding,How to format number in inside textbox number using angular js ? asked 20 secs agonew s Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a string which looks like: dt_string='some_prefix/%Y-%m-%d/%H:%M/some_postfix' I want to format this string with current date and time, so that it may look like 'some_prefix/2016-06-28/10:00/some_postfix' But my problem is that the date pattes may not always be in %Y-%m-%d/%H:%M. It can be anything like %m-%d-%Y/%H:%M. I looked into datetime.datetime.strptime but it takes format as input. In my case, the format isn't fixed. Is there a function that can determine the date time format dynamically from the input string? Or shall I write a logic determine format, and then use datetime.datetime.strptime ? asked 29 secs agonishant Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm building a Web App using Meteor that exports the scene to GLTF format to the server, is it possible ? asked 40 secs agoBruceWayne Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a requirement where I need to export data from excel file to a specified format(xml, text or even excel).The problem is client can map any column and then want to export it to a specific format to make some kind of report. If he ticks cell E1 and D1 in form, he needs to be able to export all the values of E1 and D1 under the header of E1 and D1. Please suggest. Thanks Yogesh asked 11 secs agoYogesh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 from my python code, i got the resulted list like below. list1 = [{'start': 'Mon12', 'end': '3:30'}, {'start': '7', 'end': '10:30'}] Here, i need to convert the above list1 to 24 hrs date format like below. list2 = [{'start': 12, 'end': 1530}, {'start': 1900, 'end': 2230}] How to do this in python? asked 42 secs agouser1335606 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 So, I'm using a PHP-script to output MySQL to JSON, but I'm having trouble figuring out how to output the right JSON-format. Here's the PHP-script: $sql_query = "SELECT * FROM DiseaseData"; $res_sql = mysql_query($sql_query) or die(mysql_error()); $arr = array(); if(mysql_num_rows($res_sql) > 0){ ini_set('memory_limit', '-1'); while($row_sql = mysql_fetch_assoc($res_sql)){ $arr[] = $row_sql; } $json = json_encode($arr); $file = '../../files/json/DiseaseData.json'; file_put_contents($file, $json); } ini_set('memory_limit', '-1'); Here's the outputted JSON-format: [{ "ID": "1", "Magnitude": "0.842", "County": "Alameda", "Disease": "E. coli O157", "lat": "37.7652", "lng": "-122.24...
ادامه مطلبVote count: 0 Alrighty. So it's been a while since i've worked with Ajax/json/jquery/javaeverything and I caot for the life of me remember how to "reset" a div/wipe the buffer after ruing a json/ajax function. Case in point: I've got a button that is effected by ajax function, the code is below. function CMA(id) { $('#capture').on('click',function(){ $.ajax({ url:'cma.php', type:"POST", data:{sid:id,uid:uid}, dataType:"json", success: function(data) { if(data.status == 'attack') { $('#capture').fadeOut('slow',function(){ $(this).html('CAPTURING').prop('disabled',true).fadeIn('slow')}); } } }) }); } It is directly effecting this bit of code $html .=" Star Information Star ID Current Owner CAP...
ادامه مطلبVote count: 0 here is the code: echo '...
ادامه مطلبVote count: 0 Not sure what I'm doing wrong here. I have a program that asks for an input, 1 of 2 options, and then displays the cost of the associated option. I am getting the error message "An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: String must be exactly one character long." What have I done wrong with my code? See below: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace computerPackage { class Program { static void Main(string[] args) { char computerPackage; const decimal DELUXE_PACKAGE = 1500; const decimal SUPER_PACKAGE = 1700; Console.Write("Input the Computer P...
ادامه مطلبVote count: 0 I got an array of strings with format: "XXXX YYYY ZZZZ WWWW" i need to sort by YYYY; but if i use the common "sort", will be sorted by XXXXX not by YYYY. I tried to put each element into a diccionary, using the YYYY as key; and using the key of diccionaries as array, then sort this array and take the elements. Anyone thinks another format, "more elegant"? asked 2 mins agodoberdog Let's block ads! بخوانید...
ادامه مطلبVote count: 0 We have a Java application (ESB) that uses quartz 2.2.1 and we use it to scheduler hundreds of user jobs. I want to build monitoring page (or scheduler administration page) in my application for our users so that they can see if quartz scheduler is ruing fine or there is any issue in this component. Does quartz provides any monitoring API for this purpose? Can anyone please tell us what all data points should we show in this monitoring (or administration) page based on your experience? Some of the points that I can think of: Scheduler Status (Ruing | Paused | Shutdown). Number of jobs ruing with "Previous Fire Time" and "Next FireTime" information. Thread pool implementation an...
ادامه مطلب