3,417 Topics

Member Avatar for
Member Avatar for dimitrilc

## Introduction ## Based on the 2020 Java Ecosystem survey from Jetbrains, 75% of Java developers are still using JDK 8. JDK 11 introduces `HttpClient`, which replaces the legacy `HttpURLConnection` API. For this tutorial, we will build a `HttpClient` that consumes the free Cat Facts API. ## Goals ## At …

Member Avatar for JamesCherrill
3
484
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to implement the Type-safe Builder pattern using Kotlin. This pattern allows developers to create declarative and concise DSLs. Our implementation will be a Burger Builder that enables our users to create Burger objects expressively. ## Goals ## At the end of the …

2
436
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to create a Spring Boot application that provides RESTful API Endpoints. These endpoints are best consumed by other applications or for integrating with a SPA (Single Page Application) frontend such as Angular. For the purpose of this tutorial, we will create a …

2
381
Member Avatar for questionpond

Created a stored procedure as REST web service and return values as 1 and how to consume in Client applciation in c#. please help me how to send parameters through HTTP POST uisng HTTP client .

Member Avatar for rproffitt
0
51
Member Avatar for Xioto

So, I’m trying to capture and store wave height data and cache it in a file based on the fetch timestamp in local time. I have hit an error with the last section. Here is the error - d = sorted(data['hours'], key=lambda i: i['time']) TypeError: list indices must be integers …

Member Avatar for Husoski
0
1K
Member Avatar for Udara_1

I want connect microsoft sql server database using servername,username,password,port number and service name to asp.net api 2019. This code segment I'm using SqlConnection con = new SqlConnection(@"server=10.d.13.2q0; database=sdssdsd; Integrated Security=False; User ID=lmgdgdfdfddgs; Password=sdsdsdsds"); please help me. what is the correct code

Member Avatar for rproffitt
0
123
Member Avatar for nanakumi75

I hope someone can understand my question and offer some help. I am creating a Flight Booking application with Amadeus APIs. I have a flight search form on the index page with hbs template engine. The form submits to /auth/flights for processing. I then want to display all error in …

0
29
Member Avatar for Deepak_71

I have my resoruces stored in mysql DB: eg : > |IPaddress | Status| |10.x.x.x| yes| |10.1.x.x| yes| I am trying to get the available resource and after that will update DB with status No. > query = ("SELECT IPaddress from TABLE where status='yes'") cursor = mydb.cursor() cursor.execute(query) result=cursor.fetchall() query1 …

Member Avatar for Dani
0
49
Member Avatar for matei_

Hello DaniWeb Community, I am a newbie in PHP, but I tried to create a plugin for my CRM platform using API to get informations, but I get some errors: **Notice: Undefined index**. [Click here for an image with the errors.](https://i.gyazo.com/6926d234978766542f544ed1e31e465c.png). Here are the lines where I got the errors: …

Member Avatar for lalamohan412
0
143
Member Avatar for Szabi Zsoldos

Hi guys, I'm having a weird problem regarding the simple ListView. On my emulator everything is allright and the data is loaded correctly from JSON API, the data also loads on my device. The problem is that on my emulator, the listview is populated but on my real device, not, …

Member Avatar for abu_5
0
5K
Member Avatar for Tarzan_1

Hello, I am creating an app that will list the recent govt job openings. For this, I am looking for some solution that can give me updates for jobs. I know there is no such API available that could do this job. I am thinking to scrape some websites that …

Member Avatar for Christine_14
0
71
Member Avatar for Renat

Hi community, I developed the prototype of a web app that helps you to create custom design Stripe forms without coding. It does not require any front-end or back-end development. Just pick a template, customize its look, add Stripe API keys, paste the generated code into your page, add products …

Member Avatar for rproffitt
0
39
Member Avatar for r4ds

Hello. I noob programing. I need extracting "ALGARROBO" and put in variable in JS. <select> <option value="0560200101">ALGARROBO</option> <option value="0760200601">CALIFORNIA</option> "" "" "" +70 options </select> Someone would be so kind to give me the js code? It is not possible to change the "value", since that information goes to api …

Member Avatar for rproffitt
0
92
Member Avatar for Emil_4

Hey, I would need some help. I use Facebook API to get all the Ad Campaigns that exist on my account. I would want each ad campaign that exists, to print out seperatly, one ad campaign per box for example (https://emildeveloping.se/screenshots/POWERPNT_JcaaOq2NXx.png). This is my code now: https://pastebin.com/HAjSD6Nr This is the …

Member Avatar for Emil_4
0
27
Member Avatar for tonycox52

Hello everyone! I ran into a problem that when calling the API, its response comes after the code was processed and I get undefined in the response. For this, I have 2 files start.js and api.js. In start.js I call api.js and wait for a response: `const api = require("./api"); …

Member Avatar for pritaeas
-1
68
Member Avatar for Saboor880

Hi! I have used Google translate web API many times in my java applications for dynamic translation into different languages (e.g printing a receipt in Hindi,Urdu or French Language.) But now I want an API or Jar file to translate text to different languages Offline. I have searched a lot …

Member Avatar for rproffitt
0
722
Member Avatar for vegaseat

What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you …

Member Avatar for laheg
2
25K
Member Avatar for Dani

I'm struggling to upgrade from [CodeMirror 5.5](https://codemirror.net/) to [CodeMirror 6](https://codemirror.net/6/). Previous versions of CM have always been a drop-in Javascript library. Upload the JS files, upload the CSS file, include a `<script>` tag referencing the JS file, and then use the API to make a bunch of calls to incorporate …

Member Avatar for Dani
0
422
Member Avatar for ivanichi

how to handle nested object with map for display on flatlist or text or other component at react native. i tried to display using text and flatlist but didnt work, i want to display like this ![Screenshot_13.png](https://static.daniweb.com/attachments/2/f5686c337385104ecbb4a6d7531275fa.png) this is my code, can anyone help me const Schedule = () => …

0
42
Member Avatar for cuion

Hello there! Im an NodeJs instructor. Iam an experienced Crash course instructor. Marina is my student. She has to access my API. I have only the CPANEL hosting. How do i host NodeJS in Cpanel. Kindly help. Waiting for your feedback. Please help. Urgent Best Regards Lakshmi Swaminathan

Member Avatar for rproffitt
0
42
Member Avatar for sandySuper

When I access an api. it returns data in below format **n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400** o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I am clueless how to map these data and store in mysql table. First set of data highlited in bold is dataset 1, followed by second set of data which has …

Member Avatar for JeanMilburn
0
68
Member Avatar for SimonIoa

Hello i want to display the values of this api response. Like this Producer: Simon Writer: Simon person1: [[{value: "Producer: Simon"}, {value: "Writer: Simon"}]] 0: [{value: "Producer: Simon"}, {value: "Writer: Simon"}] 0: {value: "Producer: Simon"} 1: {value: "Writer: Simon"} I tried this but i am getting `{}` <div *ngFor="let media1 …

Member Avatar for Dani
0
27
Member Avatar for AFFISH

I have called Rest API using powershell function but i need to get date entry from all objects like english-and-wales, scotland , northern ireland. using this $list.'england-and-wales'.events.date i will get only england-and-wales details but remaining scotland, northern ireland date i am unable to fetch function Get-Holiday Invoke-RestMethod -Method Get -Uri …

1
42
Member Avatar for Faris._.Hussain
Member Avatar for Dani
0
24
Member Avatar for SAJIB_2

Hello, I'm seeking some suggestions for the issue below: Suppose I have multiple CSV files which including header. ID,NO,Date 1,200,2020-02-03 ........................... ........................... ......................... How can I process the CSV files so that each line of one CSV file will map to one object and then send N objects to an …

Member Avatar for SAJIB_2
0
175
Member Avatar for naheedkassam

Dear Friends, I have a web API I developed using asp.net c# with uri "https://www.xxxxxxx.com:82/api/pincheck" with the function called "getuser". I want to use this API to authenticate login to an android App. I am building the app using Android Studio One. The user enters a six digit pin, the …

0
37
Member Avatar for pandglobal

I want a secured and server side way of interacting with two different servers namely SERVER A and SERVER B and i want database details and queries done on server B without reveling this database details to server A but yet server A functions based on responses it got from …

Member Avatar for Emmason
0
84
Member Avatar for misstj555

Hello. I am making a database using SQLite. Then I need to make an API with functions that returns information about that database. Then I need to print out a report. However, when I try to return an answer to a query using inputs, nothing is returned. I either get …

Member Avatar for John_165
0
422
Member Avatar for ANIMEXD

i am making api in PHP but i have some problems with cors(preflight) i know how the cors works, my problem is when i request the data from api with (fetch api) i get the response from the server(api) but it suppose to also send cookie for authentication purposes but …

0
80
Member Avatar for Dani

We had a bug a little while back where we were accessing an old database for the GeoIP API. That meant that, for users whose geolocation were mapped from their IP address, it was incorrect/unknown for IP subnets not in the database. Now, 1-2 years later, can we go back …

Member Avatar for Dani
2
853
Member Avatar for Gieroja

Hi, I am wonder if Flutter is the right choice for Mobile begginer. I have a lot of web experience but I would like to create simple mobile app on API that already exist. I try with Ionic 3 but it was not working corecly with GraphQL API. Thank you …

Member Avatar for inspirati
0
286
Member Avatar for pankur820
Member Avatar for Dani
-1
128
Member Avatar for Dani

How can I use jQuery's [.stop()](https://api.jquery.com/stop/) to stop *all* animations and not just for one specific selector. In my use case, I don't know the element being animated. Does this function bubble? Can I do something like `$(document).stop(true, false);` ??

Member Avatar for Dani
0
516
Member Avatar for Steve5986

I am not in the developer world but I'm trying to nail down some details related to a potential project I'm considering. I'm seeking some guidance to better understand what information is offered through travel companies' APIs (Delta, United, Hilton, etc.), which would ultimately be a big driver of the …

0
62
Member Avatar for Paulo_7

good afternoon, I have been trying to use "login with facebook" on my website for 15 days. I have been using the code published by Facebook, at the link https://developers.facebook.com/docs/facebook-log... web / v2.2. My problem with this code is that I want the customer after login with his facebook (through …

Member Avatar for Dani
0
267
Member Avatar for EL_2

I'm new to tkinter so i used a template tkinter code to have multiple page windows each page is in a different class, i thought diving in will make me learn better and it has, and also special thanks to stackoverflow. the kiosk app is all fullscreen, the start is …

0
132
Member Avatar for Tanvi_1

I want to make a function in ReactJS which can read values from multi layer JSON file (http://latamdscmtrg03:4001/api/get/?dbtype=oracle&servername=LATAMDSCMTRG03&username=SCPOMGR&pwd=scpomgr&port=1521&sid=JDAS&sqlquery=SELECT%20*%20FROM%20UDT_PROMPT_VIEW)

Member Avatar for rproffitt
0
109
Member Avatar for reidhosatria

Hello everone my name is reidho i have a problem with my code, i want to mirroring a api output from somesite using file_get_contents but the results is not like the original. Original Result : ![original.png](/attachments/large/4/14437b652ccca077d00e29e8793eb1d4.png) My Mirroring Result : ![result.png](/attachments/large/4/c348c82de5722906792fb5ec8f7e1a52.png) The Code : $ping = "https://api.hackertarget.com/nping/?q=8.8.8.8"; $pingkeluar = file($ping); …

Member Avatar for Dani
0
555
Member Avatar for Vin vin

How do I make a cube in javafx that have 6 different textures on each side of the cube? The only way I know how to solve this, is by making 6 imageviews and give them each a specific coordinates that make them look like a cube. Is there a …

Member Avatar for Vin vin
0
2K
Member Avatar for palash_1

hi, In my android studio build gradle is failed i dont know how so then i check the log and i saw this error Error:Could not find method compile() for arguments [com.android.support:recyclerview-v7:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Please install the Android Support Repository from the Android SDK Manager. Open Android …

Member Avatar for palash_1
0
752
Member Avatar for NadiaNl

Hi, I have an idea of building an API for **Machine-to-machine payments.** The API will enable to assign wallets to connected devices, record available amounts of something valuable, as well as all incoming and outgoing movements of value. Would love to hear back from developers who are seeking to address …

Member Avatar for RuMedia
0
930
Member Avatar for palash_1

hi, In my android studio build gradle is failed i dont know how so then i check the log and i saw this error Error:Could not find method compile() for arguments [com.android.support:recyclerview-v7:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Please install the Android Support Repository from the Android SDK Manager. Open Android …

Member Avatar for rproffitt
0
413
Member Avatar for xtrogvar

Hi, I need advice on how to implement a Review Management System. Something like realized on mypresences.com or brightlocal.com Not all services allow you to interact with their API. Review services are productreviews, trustpilot, tripadvisor, whirlpool, wordifmouth, seek, indeed, glassdoor. Maybe you now a script or have an offer how …

Member Avatar for sandy02
1
1K
Member Avatar for zao2k

Hi, While I have some basic js coding skills and a few APIs uses in the past, I get stuck with one because it basically contains 3 calls. All async. Step 1 is pushing a file to the service and get back an ID in return. Step 2 is requiring …

Member Avatar for pankaj_patel
0
246
Member Avatar for Ccholic

I want to create a price-comparison website/web application and join affliate programs.My problem is, when I want to join for a company's affliate program,seems like every company asks for my website. How can I create a price-comparison website if I am not an affliate of any company?Can I create a price-comparison …

Member Avatar for Ccholic
0
521
Member Avatar for kiri96

I am developing an app to android and ios, which purpose is get directions to a certain clicked marker (point) in the map. So, I am using the Google Maps API with node.js, and I have the data from the points stored in a MongoDB. I've been serching but I …

0
158
Member Avatar for Dragonmh

I have been at this for weeks and I am able to get most of the errors cleared on my own. I am stuck on these errors and I am unable to find out what is really wrong and going on. I am still pretty new at this. The code …

Member Avatar for rproffitt
0
353
Member Avatar for SimonIoa

I have a search script that a user may search persons etc. I want to display a message if what he or types doesn't exist in the array. By default, I display some results and it displays the desired person when one writes on searchbar. but I want to show …

0
1K
Member Avatar for HelenLF

I have a leaflet.js map on a Bootstrap web page. On first view of the page the map doesn't show, but on resize it shows. Can anyone suggest a fix for this? This is my code. html <div id="mapid"></div> css <link rel="stylesheet" href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/> #mapid{ height: 500px; width: 100%} …

Member Avatar for HelenLF
0
2K
Member Avatar for JamesCherrill

At the risk of making a total fool of myself... I got very excited when I discovered that Java's "only opaque rectangular windows" limitation has been removed. Full release is intended for Java 7, but working methods can be accessed thru com.sun.awt.AWTUtilities in recent releases of Java 6 (I'm using …

Member Avatar for Reverend Jim
2
1K

The End.