back soft

مطالب مرتبط با «using» در back soft | نویسنده: استخدام کار

Using Realm for Xamarin Forms with a preexisting SQL database?

Vote count: 0 We have a preexisting SQL database that holds our data and will be updated from time to time. I've just stumbled across Realm and don't quite understand how it works at the moment. From the examples I've seen it looks as if Realm creates the database locally on the mobile device (please correct me if I'm wrong). This is not what we want. We want our data to live on some server and then pull that into the application. Can this be done purely with Realm? Or should we somehow pull from the SQL server? What's the best way to achieve this? Thanks! asked 1 min agoD-W Let's block ads! بخوانید...

ادامه مطلب

How to exclude an item when using foreach in Laravel?

Vote count: 0 I am using Laravel 5.3, My question is:How to exclude an item when using foreach in Laravel ? For example,a user has some artiles,in article detail page: Article detail: {{$article->title}} {{$article->content}} The other articles of this user: @foreach ($articles as $article) {{$article->title}} @endforeach Question:In foreach,how to exclude the article that has been shown above? asked 11 secs agozwl1619 Let's block ads! بخوانید...

ادامه مطلب

Identify and sort multiple circles on 2d plane using python

Vote count: 0 I have multiple points forming many circles in a 2d plane and need to identify and sort them for further calculation. I have the [x, y] co-ordinates of each point and a number representing each point. All point numbers in one circle should be sorted in a list. and then point numbers of next circle should follow. Say each circle is formed by 6 points. They should be first and then next 6 points of the adjacent circle should follow. I identified that Convex Hull is a way of identifying closed polygons. This is similar but I want it to identify multiple convex hulls in the same plane. I think this should be possible in python. Can anyone help on this please? asked 7 secs agouser66...

ادامه مطلب

FFmpeg: Live streaming using RSTP C++

Vote count: 0 I want to receive video stream from camera, process it using openCV (for tests - draw red rectangle) and live stream result. I already can read camera frames, convert to openCV Mat and change them back to AVFrame. From console im starting rtsp server using: ffplay -rtsp_flags listen -i rtsp://127.0.0.1:8765/live.sdp Problem shows when im trying call avio_open(); av_register_all(); avformat_network_init(); avcodec_register_all(); (...) avformat_alloc_output_context2(&outputContext, NULL, "rtsp", outputPath.c_str()); outputFormat = outputContext->oformat; cout video_codec); } char errorBuff[80]; int k = avio_open(&outputContext->pb, outputPath.c_str(), AVIO_FLAG_WRITE); if (k < 0...

ادامه مطلب

Relative layout for Windows Phone Application using XAML C#

Vote count: 0 I am creating Windows phone app and in this app i need to deal with webview control and custom keyboards. I need to use my custom views as keyboard where there is system keyboard is used which is ok but the problem is how do i achieve the Relative layout. Currently in app i have a grid in the page and with 2 rows and I have set the height of first row to "*" and the second row height to 0. In first row there is webiew and in second row there is keyboard. So when the custom keyboard is up the height of second row is changed from 0 to some value so it appears with keyboard but due to this the height of first row decreases but what i want is that the keyboard should overlap the we...

ادامه مطلب

Validate custom file type using data annotation validator

Vote count: 0 I have a simple form that will upload multiple files. I have created a custom file type in order to store other relevant data in the upload and i am trying to validate the files uploaded but the model fails to bind from my custom file type so the model.isvalid always retus false So i am trying to create a custom validation override that will work with my file structure but the value is always empty and i cant figure out the reason. The file property is : [Required(ErrorMessage = "Please select a file to upload")] [Display(Name = "Upload Files")] [ValidateFile] public virtual ICollection Files { get; set; } public class ValidateFileAttribute : ValidationAttribute { public overri...

ادامه مطلب

How to index data using edge ngram in elasticsearch which include spaces also?

Vote count: 0 I am using the edge ngram analyzer. While checking the analyze API for the field I am getting the below result. For example for the query "galaxy j7", it is analyzed as. ["g","ga","gal","gala","galax","galaxy","j","j7"] I want data to be analyzed as below. ["g","ga","gal","gala","galax","galaxy","galaxy j","galaxy j7"] How can this possible? The setting in index is as follows . { "analysis": { "filter": { "autocomplete_filter": { "type": "edge_ngram", "min_gram": "1", "max_gram": "20" } }, "analyzer": { "autocomplete_analyzer": { "filter": ["lowercase", "autocomplete_filter"], "type": "custom", "tokenizer": "standard" } } } } and mapping of field is below. { "title_suggest": { ...

ادامه مطلب

How to set this range in vba?

Vote count: 0 Here are 3 worksheets. '//i.stack.imgur.com/KeULk.png ' //i.stack.imgur.com/w9wa7.png ' //i.stack.imgur.com/KLeUl.png Case: I want to sum the days for each person. The result is displayed on worksheet-report. The days store in worksheet-day. The day is not fixed. The range of the days should be according to row: that person row in worksheet-day column :Worksheets("button").Cells(1, 2 ) to Worksheets("button").Cells(2, 2) Here is my code: Sub gg() row = Worksheets("report").Range("C" & Rows.Count).End(xlUp).row Row2 = Worksheets("day").Range("C" & Rows.Count).End(xlUp).row Dim g As Range 'the range for sum Dim row999 As Integer 'store the selected row index For k = 2 To Row2 'ch...

ادامه مطلب

How to find the index of next matching element in list using LINQ

Vote count: 0 i have a list say : List list = new List(){"Oracle","SQL Server","Java","Oracle","Python"}; Now i'm trying to get index of the second "Oracle" from the list using LINQ: var indexFirefox = list.FindIndex(a => a.Text == "Oracle"); But this will give you only the first instance that is index 0. I want index as 4 in my result. Will using Skip help or there is a more simplistic way of getting the index. The example above is just a demo, i have a list with over 300 values. asked 31 secs agovivek singh Let's block ads! بخوانید...

ادامه مطلب

Slow responsiveness using imap-idle-channel-adapter

Vote count: 0 I created an imap-idle-chael-adapter in my spring integration app to get mails from the server as fast as they are received. This is my configuration settings for the adapter: javax.net.ssl.SSLSocketFactory false imaps false Everything seems to work right but in my logs I can see that there is no push notifications, the mail received is being pulled from the server every two minutes approximately. 2016-08-07 19:12:08.202 INFO 3 --- [ask-scheduler-4] o.s.integration.mail.ImapMailReceiver : attempting to receive mail from folder [INBOX] 2016-08-07 19:14:10.933 INFO 3 --- [ask-scheduler-9] o.s.integration.mail.ImapMailReceiver : attempting to receive mail from folder [INBOX] 2016-...

ادامه مطلب

Error:connecting the database from glassfish server using netbeans

Vote count: 0 my web application is ruing but when I submit the html form data, the galsfish server4.1.1 throws an exception -java.lang.NullPointerException . My servlet code: package com.amir; import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.*; public class LoginServelet extends HttpServlet { Coection co; @Override public void init(ServletConfig config) throws ServletException { super.init( getServletConfig()); try { Class.forName("com.mysql.jdbc...

ادامه مطلب

Font Awesome, Vue and Bootstrap using laravel 5.2 Elixir and NPM

Vote count: 0 I have been trying to incorporate bootstrap and fontawesome into my project, and all seems to be working well because, first of all the app.css file is empty. After ruing gulp I received the following error: Sass Compilation Failed: resources/assets/sass/app.scss Error: File to import not found or unreadable: /node_modules/bootstrap-sass/assets/stylesheets/bootstrap Parent style sheet: /home/vagrant/Code/Eventer/resources/assets/sass/app.scss on line 4 of resources/assets/sass/app.scss @import '/node_modules/bootstrap-sass/assets/stylesheets/bootstrap'; This is how my gulp file is: var elixir = require('laravel-elixir'); require('laravel-elixir-vueify'); var paths = { 'jquery':...

ادامه مطلب

How to get X/Y coordinates from the google maps using Selenium

Vote count: 0 Is there any way to get the coordinates points present on google maps. Consider below example, as there are so many vehicles present and can we get the coordinates for the respective vehicles. asked 35 secs agoPrateek.Naik Let's block ads! بخوانید...

ادامه مطلب

How to make an Image display/hide using a button

Vote count: 0 I'm using the following code to make an image when a button is pressed: Image Display Test So far it works, but then the image remains on the screen, Is there anyway to make it that if clicked again the image disappears? asked 30 secs agoASA2k Let's block ads! بخوانید...

ادامه مطلب

Using imshow in opencv without running X

Vote count: 0 I've got an application with a Raspberry Pi ruing Debian that is pretty performance demanding and I am trying to avoid starting X when booting and jumping directly into the program. This works fine, but if I would like to use the 'imshow' function in OpenCV, it does not work correctly, instead it says 'GTK-Waing: caot open display" and exits the program. Is it feasible to display a fullscreen image/video capture with opencv using imshow or any other function without X, or is it entirely dependent on the X? Thanks, asked 53 secs agouser2004519 Let's block ads! بخوانید...

ادامه مطلب

How to copy a rotated square BufferedImage part using Java?

Vote count: 0 I want to copy a part of BufferedImage, but the copying form is not a simple square but rather a square rotated on some angle. As an output I want to get the BufferedImage with width and height equals to the copying square size and contents from the initial image, where copying square intersects the initial image. What is the simplest way to do it? asked 40 secs agouser3231055 Let's block ads! بخوانید...

ادامه مطلب

How to get all near by places using latitude longitude in c# Webservices

Vote count: 0 From Mobile (Android) side they are given Input parameters are latitude and longitude based on latitude longitude get all near by places details retu back by using c# web services any one have example code please share with me. Thanks advance asked 33 secs agoDot Net Developers Let's block ads! بخوانید...

ادامه مطلب

How run a Python web crawler (using Scrapy) in a Node web application?

Vote count: 0 It doesn't look like I have wired my web crawler (built using Python's Scrapy) properly with my Node application. I have installed python-shell module and followed the basic instructions, but the response I get back on the client side is null. The web crawler will work if I run the script in Python's shell, but when I use python-shell to run the script in my Node application, it retus null. It passes the right http link all the way through the express route and into the crawler. I'm unclear what I'm missing/not syncing properly. The URL I'm trying to scrape is http://www.c.com/2016/07/17/politics/john-kerry-interview-turkey-nice/index.html. router.post('/article', function(req,...

ادامه مطلب

FadeIn and FadeOut effect using React JS

Vote count: 0 I have something like this : var Hello = React.createClass({ getInitialState: function(){ retu { opacity: 0 } }, handleClick: function(event){ event.preventDefault(); this.setState({opacity: 1}); }, render: function() { retu Test Click ; } }); ReactDOM.render( , document.getElementById('container') ); Here is jsfiddle I want that div with text test within doesn't shows up on page load. Then if I click on the link that that div shows up. That is what this example do. But I want that after the div shows up after the click, a few seconds later it disappears again. (I need somehow set opacity to 0 again). Any advice? asked 46 secs agoBoky Let's block ads! بخوانید...

ادامه مطلب

Multithreading using CURL increasing cpu usage

Vote count: 0 I have following instances mysql : 1 instance (8gb RAM) nginx : 4 instances I am assigning jobs to 4 nginx instances from mysql instance using curl POST request. In this case mysql cpu usage is got increased. I dont want any cpu load to mysql. Mysql should not wait for response from nginxes. Mysql Script to assign jobs : $query = "SELECT id from tablename is_active = '1'"; $result = mysql_query($query); $total_jobs = mysql_num_rows($result); if($total_jobs > 0) { $counter = 0; while ($row = mysql_fetch_array($result)) { // Assign next job // Update job_last_pulled_at_for_processing for picked ids $now = date("Y-m-d H:i:s"); $job_id_url = urlencode($row['id']); $passwd_comm = ur...

ادامه مطلب