38,982 questions
Advice
0
votes
0
replies
15
views
Deploying embedded Javascript to a remote server
I am an experienced programmer, but am new to Web Development. I have become familiar with several technologies, including embedded Javascript, which I would like to use for my employer's project. ...
47
votes
13
answers
149k
views
Share a link via URL scheme to Telegram
I want to share a link via URL scheme for Telegram.
I have created this:
tg://msg?text = www.example.com?t=12
The link, opens telegram but nothing else happens.
I have used the same code for Viber, ...
35
votes
13
answers
39k
views
java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view
my app crashes when trying to display server message and I think the problem could be with my getView(). below is the registerActivity were the crash occurs and my activity_register.xml
import ...
49
votes
11
answers
67k
views
Opening PDF in a browser with Github Pages [closed]
I am using GitHub Pages to host my website. I have a PDF file that I want visitors to be able to open directly in a browser. But when I upload the PDF file to GitHub Pages and link to it it opens in ...
32
votes
11
answers
61k
views
Bootstrap Glyphicons not displaying in angular2
I am trying to use bootstrap glyphicons in my angular2 app. I have installed bootstrap using the command npm install bootstrap --save
My code snippet is
<button *ngIf="pos.name == uname" type="...
8
votes
4
answers
10k
views
TypeError: Cannot read property 'queries' of undefined (react.js)
Here's the code I have:
import { useState } from 'react'
import { QueryClientProvider, QueryClient } from 'react-query'
import { ReactQueryDevtools } from 'react-query-devtools'
import Navbar ...
17
votes
4
answers
17k
views
How do I dynamically import images in React?
Have seen a couple of answers online but there are no clear explanations and the solutions don't work. So this is what I am trying to do:
I have a folder of MANY images (thousands) - currently it is ...
3
votes
3
answers
23k
views
Simple way to hide and show element with svelte
I want to have a simple with way to hide and show an element with a button on svelte, how can I do it? Also is it simpler to do it in vanilla JS?
35
votes
6
answers
67k
views
Forcing SSL and WWW using .htaccess
I would like to know if this code in .htaccess for forcing SSL and WWW in URL is correct, because with another codes I usually get redirect loop, e.g. RewriteCond %{HTTPS} !=on and now it works like a ...
36
votes
1
answer
38k
views
How to return a HTMLResponse with FastAPI
Is it possible to display an HTML file at the endpoint?
For example the home page then the user is visiting "/"?
45
votes
5
answers
38k
views
How to display the request sent time and the response received time in Fiddler?
I'm working with Fiddler Web Debugger tool version 4.4.4.8.
I've made a request to e.g. www.google.com and fiddler shows that a request is sent and the response is received.
How could I know about ...
36
votes
13
answers
89k
views
Starting a page at a certain scroll point
Is there a way (with CSS3, JS, or anything in between) to get a page to start at a certain point scrolled down?
I'd like for my page to load without the header initially displaying on load (meaning ...
43
votes
6
answers
60k
views
Progressive Web App - Service Worker not serving start_URL
Was playing around with the progressive web app. I've trying to make web app install banner working but I keep receiving service worker does not successfully serve the manifest's start_url after I ...
27
votes
3
answers
19k
views
How to detect windows 11 from user agent?
How I can figure out if someone opens my website in windows 11?
I test user agent and when someone opens my website with windows 11 I will get this
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:...
45
votes
11
answers
77k
views
Web Service vs Web Application
I know this is an old question and must have been answered hundred times already, but I am not able to find a satisfactory response as yet.
I am creating an application which will be used by other ...
35
votes
6
answers
68k
views
Django exists() versus DoesNotExist
I have some questions about django exists() and DoesNotExist exception.
Example code:
id = 1
# first
if User.objects.get(pk=id).exists():
# my logic
pass
# second
try:
User.objects.get(...
53
votes
8
answers
49k
views
How to make ng-bind-html compile angularjs code
I am working with angularjs 1.2.0-rc.3. I'd like to include html code into a template dynamically. For that I use in the controller :
html = "<div>hello</div>";
$scope.unicTabContent = $...
50
votes
6
answers
40k
views
Java EE Containers vs Web Containers
I'm relatively new to Java EE/EJB, and I've been reading a lot regarding Java EE containers. I've had experience working with a web container (WAR file in JBoss). I am also aware that JBoss can also ...
0
votes
1
answer
6k
views
How to link to python file inside html code
So I have created a game (of sorts) in python that I want to embed into an html webpage so I can add UI features. I have used the tags to do this but I am having issues with importing packages and ...
47
votes
5
answers
49k
views
Difference between "maxlength" & "size" attribute in html?
I am little bit confused about the difference between the maxlength and the size attribute.
<input type="text" name="telephone" maxlength="30" size="34">
I know that maxlength is used to ...
2
votes
3
answers
3k
views
Dropdown not worked on bootstrap 5.3
I trying to create navigation bar with bootstrap.
I read the docs from here, but my drop down not working.
I attached everything in the <head> <head/> section but dropdown not worked for ...
32
votes
6
answers
68k
views
Django cannot find static files. Need a second pair of eyes, I'm going crazy
Django will not serve my static files. Here's the error returned:
[13/Jun/2014 06:12:09] "GET /refund/ HTTP/1.1" 200 2927
[13/Jun/2014 06:12:09] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1667
...
21
votes
3
answers
2k
views
When to use a Var instead of a function?
I am going through the book Web Development with Clojure and it tells me to pass the handler (defined bellow) as a Var object instead of as the function itself, since the function can then change ...
2
votes
1
answer
2k
views
EmberJS vs. React [closed]
Good day! I have a question. It is planned to develop a large web project, which will be scaled in the future. I would like to know what is better to choose EmberJS or React? There is experience with ...
20
votes
3
answers
67k
views
How to fit an image inside a Bootstrap 3 div?
I am using a div tag in code as shown below:
<div class="col-sm-6 col-md-6 col-lg-4">
<img src="images/dummy_image.png" class="img-responsive">
</div>
The user can upload any kind ...