Adi Adi

1

votes
2

answer
320

views

How to display custom values between date intervals using Dax in Power BI

I am trying to display custom values between different dates using the following formula in DAX (power Bi) = if ([RegistrationDate] >= '6/14/2018' & [RegistrationDate] = '7/16/2018' & [RegistrationDate] = '8/27/2018' then 'M6' else '' Basically the logic behind it is: If the range column contains da...
Adi Petrescu
1

votes
2

answer
56

views

How to check if a query returns a null value and add it to a label text?

I am creating a new app in Windows Forms (vb.net) that checks if there are any records added on a daily basis to a SQL database, based on some criteria. The issue is that I can't figure it out, how to display some message in a label box if the query returns a null value. Public Sub LoadUser2() Dim d...
Adi Petrescu
1

votes
2

answer
73

views

Is it possible to swap value of two array index in java? [closed]

I want to swap two values in an array but i am unable to to it. I am creating a new swap function. I know the value can only be swapped through referencing, but i don't know how to do it. Can someone please help me. Below is the code i am trying to write. I want to swap the array data in class A. pu...
Adi
1

votes
2

answer
5k

views

How to grab a word or character and wrap it in a span tag?

I'm trying to find a particular character in a div and wrap it in a span tag. I thought I could use something like: $('.breadcrumb:contains('»')').replaceWith('»'); But this changes the whole breadcrumb div. What am I doing wrong?
Adi
1

votes
0

answer
136

views

localStorage access from firefox extension scope

I have a Selenium program running Chrome/Firefox web drivers with my extension on each browser. The extension is generic and each time the program runs it loads different config to the extension using localStorage. The flow is: Start the web driver with the extension installed. Navigate to a web pag...
Adi Ohana
1

votes
0

answer
73

views

xamarin cocosharp - could not get extensions

trying to install cocossharp on xamarin for mac. Visual studio was installed successfully! when trying to use the extension manager I get these messages: 1. Could not get information from repository: http://addins.monodevelop.com/Alpha/Mac/7.3.3/main.mrep. 2. Could not get information from repositor...
Elad Adi Vaknin
1

votes
1

answer
283

views

Error calling DELETE - (403) Insufficient permissions for this file" | Google Drive API

I have created following code. I have to download files from my Google Drive folder. The folder is shared. After downloading, I have to delete those files from the Google Drive. I tried - $file = $service->parents->delete($file_id,$folder_id); - It doesn't do anything, nor does it give any error. $...
uks.bo.adi.tdg07
1

votes
0

answer
58

views

Is there a benefit of saving the task context in linked lists rather than an simple stack?

I am trying to find a reason on why Infineon decided to use in it's Tricore architecture linked lists for saving the context of a task (when switching to another task). The context is saved in fixed size/structure chunks in RAM. Each CSA (context saving area) has a 'linkword' which points to the nex...
Adi Grecu
1

votes
0

answer
520

views

Mysql trigger for all table

is that possible to create a mysql trigger for all table in a database? I have look for a several example to using trigger to spesific table in a database, but can I do create a global trigger to all of my table in a database?
Adi Sparta
1

votes
0

answer
294

views

How to add dependencies in BUCK

When I import libraries such as 'org.json', I get an error. I know to add the dependencies in POM file if it's a maven project, but it's compiled using BUCK, so how do I add this dependency and it's version in BUCK?
Adi
1

votes
0

answer
88

views

How add push notification service on ghost blog?

Most of the push notification services required to upload two files at the '/' (root) of the server . So that the following files can be accessed via the following urls 1. https://example.com/menifest.json 2. https://example.com/worker.js Can any one help me regarding how to serve this files at the...
Adi
1

votes
0

answer
130

views

Flask: Multiple dropdown selections

5 4 3 2 1 I have a dropdown menu that I'm using to make a form using Flask. Is there anyway to allow the user to keep selecting dropdown options? Meaning to say, each time the user chooses an option another dropdown menu is rendered below and the previous one will display an [x] to delete that sele...
Adi
1

votes
0

answer
175

views

AWS Lambda Invocation error while using java sdk

While trying to invoke AWS Lambda in asynchronous mode using java sdk, I see the following error:- ERROR [2018-04-20 03:07:09,053] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 4e552086b3525fbf ! java.lang.ClassFormatError: Truncated class file ! at java.lang.ClassLo...
Adi
1

votes
0

answer
119

views

Difference between @WebServlet @ServerEndpoint

I've recently got into Java EE which seems a bit confusing to me so I've tried to figure out how some of the components involved in developing web through Java EE work. I've noticed that unlike a servlet you don't need to add a tag in web.xml for a WebSocket, instead u use the @ServerEndpoint annota...
Adi Pascu
1

votes
0

answer
53

views

How to Customize Websphere Error page not to reveal stack trace for a spring application's errors/exceptions

How to Customize Websphere Error page not to reveal stack trace for a spring application's errors/exceptions? I have configured an error page in web.xml for all exceptions. For a MultipartFileUpload MAxFileSize error while uploading 11mb File, where in 10 mb is max file size configured, I get websph...
adi
1

votes
2

answer
35

views

Find reference to the document that created an html-element

I'm looking for A way to get reference the document that created the element from the element itself. (eg. element.creatorDocument) In order to prevent un-relevant answers: I'm not looking for the ownerDocument ( that can be found using '.ownerDocument' prop on the element) Example: Suppose you have...
Adi Darachi
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

View additional