Adi Adi

1

votes
1

answer
52

views

Python getting ips and macs from network

I'm trying to get all IP's and their associated MAC address from the network. Till now, i have the following code: eth = Ether(dst = 'ff:ff:ff:ff:ff:ff') arp = ARP(pdst = '198.13.13.1') answered = srp1(eth / arp) print answered[1].hwsrc print answered[1].psrc But this only gets me the MAC of what Ip...
adi pslr
1

votes
1

answer
914

views

Upload file from angular 6 to web api

Upload image from angular 6 to web api 2, i was success from postman but not from my angular app. i use many of tutorials like:1)https://www.youtube.com/watch?v=c61wr1ZsHzY, 2)https://www.youtube.com/watch?v=YkvqLNcJz3Y&t=534s but Anytime I fall on if (!request.Content.IsMimeMultipartContent('form-...
Adi Dui Levy
1

votes
1

answer
30

views

How to make a custom QWidget partially transparent?

Im a newbie to Qt. I have a custom QWidget. If its (X-coordinate + Width ) value is greater than a particular value;say Z,then I want the QWidget to be visible till the coordinate Z and invisible or transparent after Z. Does Qt provide any attribute specifically ? Could someone give me a hint of ho...
adi
1

votes
0

answer
54

views

How to have application code uses Gson and let Actuator uses Jackson?

I understand that by using Actuator then we must use Jackson instead of Gson: Spring Boot Actuator dependency on Jackson prevents usage of GSON can spring actuator use gson or other json tools instead of strongly depends on jackson? When the preferred json mapper is Gson then some Actuator endpoints...
Adi Sutanto
1

votes
0

answer
103

views

bfs social network algorithm(graph algorithm) - hackerearth

I tried this breadth first search practice problem from hackerearth(link to problem). My code passed the sample test case. But I am missing something when it comes to the submission test cases. I ran 'my output' and the 'test output' through a document distance program that i coded up(for the first...
adi
1

votes
3

answer
223

views

Flutter onVerticalDragEnd does not work

I am trying to get if the user is swiping horizontally or vertically using a GestureDetector widget. For some reason I am unable to make the onVerticalDragEnd property work. HorizontalDragEnd works just fine. Am I supposed to add anything else? ` child: new GestureDetector( onHorizontalDragEnd: (Dr...
Adi Albu
1

votes
0

answer
40

views

Django admin title “Select <model_name> to change”

How can I change the title for Django admin specfic model? Automatically it write 'Select to change'... I am try each from this options but do nothing: admin.site.site_header = 'aaa' admin.site.site_title = 'bbb' admin.site.index_title = 'ccc'
Adi Ep
1

votes
0

answer
10

views

@SqsListener(value = “${queue.name}”) is unable to find the queue name

I'm trying to read messages from sqs using spring boot & java. and i am keep getting an error the the queue name is not found in the region. the queue is in the region and the work work ok localy this is my code @SqsListener(value = '${queue.name}', deletionPolicy =SqsMessageDeletionPolicy.ON_SUCCES...
adi.sah
1

votes
0

answer
233

views

Logging to calculate API response time - best practice?

I am writing logs for a REST API endpoint to measure the average response time and response time of 50% of requests using splunk. Something like: 'The request xyz took ??? milliseconds.' I wanted to know if I should be logging the response time for the requests that returned 4XX or 5XX errors. Even...
adi rohan
1

votes
1

answer
2.1k

views

MongoError: topology was destroyed, how can i fix it?

i am using mongo server and on node.js when trying to use my function to find client by name for the second time i get ther error of 'topology was destroyed' function findClient(Fname,res){ let query = {name:Fname} dbo.collection('clients').find(query).toArray(function(err, result) { if (err) throw...
Yarden Adi
1

votes
0

answer
204

views

Python \ Tensorflow - Input to reshape is a tensor with 876500 values, but the requested shape requires a multiple of 3075

I am using the following code to train on my data but I am getting the error that 'Input to reshape is a tensor with 876500 values'. Now this number 876500 seems to be coming from the line in the very end of the loop which is Batch4 = np.reshape(batch1, [50,274 * 64]) in this line 50*17536 = 876500...
adi
1

votes
0

answer
40

views

Where should django signal handlers be connected in App Engine project

I read about signals in the follow link but it doesn't quite answer in the scenario of using signals in app engine: Where should signal handlers live in a django project? For years now my signals are being connected in the bottom of my application file, but I came across a scenario where an App Engi...
adi ohaion
1

votes
1

answer
170

views

'node' is not recognized as an internal or external command, operable program or batch file. - Browsershot

I have installed Browsershot to Laravel the same way like here (https://github.com/spatie/browsershot ) and when I try to do something it gives me this error. The command 'node 'C:\xp\htdocs\staticit\vendor\spatie\browsershot\src/../bin/browser.js' '{\'url\':\'https://google.com\',\'action\':\'scree...
Adi Krasimirova
1

votes
1

answer
25

views

How to edit the text color of 2 posts in PHP GD

I want to ask, I have a web quote maker and execute code as follows,
Adi Darmawan
1

votes
1

answer
136

views

Android - javax.imageio does not exists

One of the libs in my Android project (jMonkey 3 based) uses javax.imageio which does not exist in Android SDK. Is there anything to do about it?
Adi barda
1

votes
0

answer
54

views

Java send mail in secure environment (PCI-DSS)

I am on the verge of being banned to ask questions, but I really need some light on the issue I face now. I've written code which generates reports in a secure (PCI-DSS) environment and performs the following post generation: Zip reports, Email, & SFTP to banks / internal. Point 2: Email I've used S...
Adi V
1

votes
0

answer
475

views

Apache NiFi Spring Boot integration

Understand that Apache NiFi could integrate with Spring as shown in SpringOne Platform 2016 Replay: Spring with ApacheNiFi. NiFi uses SpringContextProcessor to load Spring XML application context. Question: Could NiFi integrate with Spring Boot? Specifically, could NiFi processor flows to a processo...
Adi Sutanto
1

votes
0

answer
148

views

How implement TinyMCE in React Native?

I want create HTML Editor (like TinyMCE) on React Native App. I have read this document TinyMCE React It seems not working. Or might anybody have any literature for implementing this on React Native App?
1

votes
0

answer
44

views

Excel UTL_FILE.GET_LINE result encoded

I'm trying to build a package with a procedure which takes .XLSX file, parse and insert to a table in database. What I have achieved so far is the code below: create or replace package body pkg_name is procedure fetch_and_insert_data is l_display varchar2(32767); l_id varchar2(32767); l_fil...
Adi C. N.
1

votes
1

answer
357

views

How to open a popup and post data to controller simultaneously using ajax call in MVC

I'm trying to implement search functionality in my Form View. The search window opens in a popup (in a partialView) and asks for search queries(figure). Now the user enters all the search fields and POST request is made and eventually popup window displays a table of search result. Form View (which...
Adi
1

votes
1

answer
28

views

Cancel one file to upload jQuery

With id='cancel_upload' I want to delete one file in the queue to upload with jQuery, is there a way to do this? this is my code: $('#files').on('change', function() { var fp = $('#files'); var lg = fp[0].files.length; var items = fp[0].files; var fragment = ''; if (lg > 4) { alert('Upload maksimal...
Adi
1

votes
0

answer
16

views

Pyspark write CSV always written as Integer Type

I have a dataframe that have IntegerType and StringType it is confirmed when I printSchema() my dataframe but when i try generated_df.write.csv('test_generated.csv', header=True) It always print it all the data as integer, some of my value as 00001 will be written as 1 Is there any thing I should do...
Yanfa Adi Putra
1

votes
0

answer
36

views

OpenSSL AES encryption with C++ produce different output issue

I have an issue while using Openssl in my C script where I have to encrypt the same string for a set number of loops, but even with the same iv and key, there are times when the encryption process produces different encrypted output than the rest of the other result, and it happens very frequently,...
Michael Adi G.
1

votes
1

answer
57

views

Problems transferring data from Android Phone to Serial Device using Bluetooth component

sorry if my Title is not particularly precise. I am trying to transfer byte Data from an Android Phone to a Serial Device. As you can see below, the data I want to send is a Byte Array with Hex values. if I send them the way I do right now, RealTerm the Serial port monitor display different Values t...
Adi
1

votes
1

answer
29

views

Why is Sumproduct formula showing #Value error?

I receive a #value error while using the sumproduct formulas. The main idea behind this document is to track the actuals on a daily basis using the following conditions: If the date is equal to the one specified in cell E2 If the team name found in ranges e18:e46 or e50:e52 are the same as listed in...
Adi Petrescu
1

votes
2

answer
180

views

Opencv hough circle not detecting circles

I am trying to detect the circle inside traffic light, and I am able to detect only 1 out of the 2 circle, and the size of the circle which i am getting seems to be too big Input Image: https://i.imgur.com/VkNDt2B.png Output image: https://i.imgur.com/BBq5tE0.png int main() { Mat src, gray; src = im...
adi
1

votes
1

answer
128

views

Hugo static site - issue trying to loop through multiple sub sub folders and returning one sorted list

I have a folder in “content” called “projects” which has sub folders and also sub-sub folders. I’m trying to get the latest 12 pages content of all the sub-sub folders to show in a single list by date order. (see illustration below) My current code (that doesn’t quite work): {{ range .Se...
Adi
1

votes
2

answer
74

views

How to cleanup data listeners/subscriptions from RecyclerView? [duplicate]

This question already has an answer here: Should I actually remove the ValueEventListener? 2 answers Note: Please do not suggest FirebaseUI as an answer. I am trying to design a chat list UI. For this, I am populating data to my recyclerview which displays the list of chat groups along with last me...
Adi
1

votes
1

answer
34

views

LARAVEL - modifing database data before validating

I have varchar field in my table and I want to using unique validate but want to remove the whitespace in my table before validate it. Example : I have value in database 'My Value'. And if I send 'myvalue' to request data, the validation must be work in this case. How to do it in laravel validatio...
Adi Sparta
1

votes
0

answer
64

views

Rationale Behind PCL `shared_ptr` Interfaces

Many PCL interfaces accept only shared_ptr arguments (e.g. boost::shared_ptr< PointCloud>). [Aside: that is it boost::shared_ptr and not std::shared_ptr is another issue, but should be fixed in upcoming versions.] Typically such interfaces are a valid option for multi-threaded applications where obj...
Adi Shavit
1

votes
1

answer
199

views

Spring MVC: ResponseBodyAdvice doesn't get called for null response from controller

I have a Spring boot REST API app. I have a use-case to add some common parameters to all API responses such as time and clientId. To achieve this, I am using a ResponseBodyAdvice to manipulate the output of controllers. However, if a controller returns null, the ResponseBodyAdvice doesn't get calle...
Adi
1

votes
0

answer
30

views

Building realm from Source and using AAR in Android project

I have built the Realm-Java from the source and generated below files as per the Offlicial-doc a jar file for the Realm Gradle plugin an aar file for the Realm library a jar file for the annotations a jar file for the annotations processor Now I used the aar as Module dependency to my app, everyt...
Adi
1

votes
1

answer
201

views

android:kotlin how to solve databinding error

Im using kotlin with android vision api for face detection.The build fails when I try to run the project.It looks like this It gives kotlin compilation errors.I suppose there must be some version conflicts with respect to kotlin databinding , gradle etc.I tried various answers in the stackoverflow p...
adi
1

votes
1

answer
99

views

How to fix merged manifest errors

I just started usign android studio, and I ran into some coding problems, I'm getting these wried compilation errors from 'merged manifest'. This is the build output: org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at org.gradle.initialization.DefaultGradleLauncher$Execu...
adi harel
1

votes
1

answer
23

views

Preparing time series data for building an RNN

I am preparing time series data to build an RNN model (LSTM). The data is collected from sensors installed in a mechanical plant. Consider I have data for input and output temperature of a compressor along with the time stamps. Like this there is data for around 20 parameters recorded along with th...
singh adi
1

votes
1

answer
23

views

How to display the line of object detection using cv2.minEnclosing circle

Hi Im knew in python and open CV.. I try to detect the object using circle for a in cnts: (x,y), radius = cv2.minEnclosingCircle(a) center = (int(x), int(y)) radius = int(radius) if area > 500: cv2.circle(img, center, radius, (0,0,255),1) Is there any body know how to draw line of diameter on the ci...
adi yudistira
1

votes
0

answer
28

views

Ejabberd Bosh responses with no <features> element

I am trying to use the bosh module which is up and running on my ejabberd server. The client (using jabbernet) starts by sending: Then I get from the server the response without a element: Then, according to xep-0206: If no stream:features element is included in the connection manager's session cre...
adi ohaion
1

votes
2

answer
24

views

How to show value from localstorage in other page?

I have javascript in page One : var valueRm = noRm.value; localStorage.setItem('noRm', valueRm); And this is my javascript in second page : var valueRm = localStorage.noRm; //i try with 3 ways, but i can't get that value //-->> document.getElementById('noRmUser').value = valueRm; //-->> document.ge...
Yeru Adi
1

votes
0

answer
27

views

Microscopy particle size

Hi I try to detect the particle length size from this image and I'd like to get the length size of the particle Like this below. and get the histogram of the size of the particle First I threshold and draw the contour. And what I get is like this...I have try so many way to threshold but the particl...
adi yudistira
1

votes
1

answer
66

views

How to fill other field in view laravel blade using select2 and laravelcollective

I want to retrieve data using Laravel Collective Select with Select2 from a controller using this code: public function create() { $customers=Customer::all(); $customerAlt= Customer::get()->pluck('customer_name', 'id')->prepend('Please Select', ''); return view('req.create', compact 'customer', 'cus...
I Gede Adi Putra

View additional