|
Richard Deeming wrote: Were they comparing CRaP to "Core" MVC, or MVC5?
I suspect it was MVC5.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I have a Core 2.1 Razor Pages solution that contains a number of discreet web apps. All of these apps share a number of css, image and partial page files.
To "share" these files, I created a solution folder (in the VS2017 Solution Explorer) called "Common", and inside that folder, I put various files into this folder.
Question - Even though I created the folder in the solution explorer, there is no "Common" folder anywhere in the folder hierarchy. Instead, all of the files I put into the Common folder were placed in the solution's root folder. Did I do it wrong?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
What is different is:
IT WORKS
<div class = "carousel-inner">
<div class = "carousel-item active">
<img src = "https://www.w3schools.com/bootstrap4/la.jpg" alt = "Los Angeles" height = "100">
</ Div>
<div class = "carousel-item">
<img src = "https://www.w3schools.com/bootstrap4/la.jpg" alt = "Chicago" height = "100">
</ Div>
<div class = "carousel-item">
<img src = "https://www.w3schools.com/bootstrap4/la.jpg" alt = "New York" height = "100">
</ Div>
</ Div>
from this:
IT DOES NOT WORK
<div class = "carousel-item active">
<img src = "advertisement / reklama1.jpg" alt = "ad1" height = "100">
</ Div>
<div class = "carousel-item">
<img src = "advertisement / reklama2.jpg" alt = "ad2" height = "100">
</ Div>
<div class = "carousel-item">
<img src = "advertisement / reklama3.jpg" alt = "reklama3" height = "100">
</ Div>
Maybe I'm dumb, I do not know.
I even entered the ADDRESS OF YOUR WEBSITE and it does not work.
But as there are pictures from w3schools it works.
WTF?
I also saw:
https://github.com/Dogfalo/materialize/issues/3899
https://github.com/archriss/r[...]tive-snap-carousel/issues/371
But it does not tell me anything.
|
|
|
|
|
First of all, is this based on an article somewhere here on the site? If it is, that's where you should be asking your questions. It's extremely unlikely that the author will come across this post and realise it's for them.
Second, when talking about an error, it's a good idea to tell us what the problem actually is. Right now, we have to take a look at your question and guess what the problem is.
Third, the structure of the divs is different - you don't have a containing div with carousel-inner. Now, you might have it in your code and you just forgot to post it here but without the context of the problem, we can't tell.
Fourth, the image src is invalid. You have stray spaces in the src.
This space for rent
|
|
|
|
|
There is no problem with paths. The problem was the name of the file and directory. And so the name.
The DIV structure is the same, in the second chapter it did not copy to me. The ad blocking tool cut out this carousel by the name of the files in the format "advertisement1" and the folder: "advertisement". After changing the file name to 1.jpg and folder on "aa" the problem disappeared.
|
|
|
|
|
Members
1 posts
OFFLINE
Local time:04:16 AM
Posted Today, 04:16 AM
I'm unsure if I'm posting this in the correct forum but here goes:
I'm in the process of creating a website for our door manufacturing business. As part of the website I want to add a 'design your own doorset' feature which would allow the customer to enter all of their specifications in regard to quantity, sizes, component type, confirm the order,.and then pay at checkout.
Here is an example of another company who have a similar offering:
https://www.safelincs.co.uk/custom-30-and-60-minute-fire-doors-fd30-fd60/
The solution I want to create is functionally the same as the above website, however with more size, type and finish options. I find that the above website does well in explaining what each option delivers but it isn't aesthetically pleasing and wastes a lot of space with text.
As I'm not educated in website building I am using Wix which does permit the embedding of html. That being said, I'm looking for advice as to whether I can simply have this software written then embed it on Wix or whether I need to also find someone to build a new website from scratch.
I'd like advice on what type of professional(s) I should be hiring for this type of work. What should they be specialised in?
|
|
|
|
|
The person that you hire would be the best person to ask these questions. Developers tend to be an opinionated lot, and there are often many paths to a good solution, and we wouldn't want to prejudice you to specific viewpoints in case your developer has differing ones.
You'll want to hire a web developer with business development experience, since payment portals are not something that you want to play around with. Optionally, you'll want someone with design experience as well, but that might be a task better relegated to someone else, budget withstanding. Generally developers are weak on design, and designers are weak on development; we just value different things.
If you currently have any order processing automation, you will want to talk to whomever handles the database to coordinate other skills that might be needed; namely experience with whatever database your company uses.
My last suggestion is that you look for someone that can claim some security experience or some sort of security certification. That's a CYA move, but realistically a dev that thinks about security while they code will give you a better (publicly accessible) product at the end than one who doesn't.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Greetings,
I am attempting to create PIVOT data where amountPaid is displayed under registration_Date as in the following format
:
2018 2019, etc
300.00 160.00. etc
So far, the result is not coming out right.
Instead of the amountPaid displaying on the year colums, reg_fee amount is displaying on the first column.
This is driving me nuts.
I am creating the pivot data dynamically. This way, any new year created is displayed with amountPaid as the value.
This is the code I am using:
ALTER PROCEDURE [dbo].[uspGetPivotedData]
AS
DECLARE @cols AS NVARCHAR(MAX),
@query AS NVARCHAR(MAX);
SET @cols = STUFF((SELECT distinct ',' + QUOTENAME(m.registration_date)
FROM Members m
FOR XML PATH(''), TYPE
).value('.', 'NVARCHAR(MAX)')
,1,1,'')
set @query = 'SELECT TransactionID,
AmountOwed,
FullName,
Gender,
phone,
EmailAddress,
Address,
EventYear,
Description,
Reg_Fee
' + @cols + ' from
(
SELECT t.TransactionID,
t.AmountOwed,
m.FullName,
m.EmailAddress,
m.Gender,
m.Phone,
m.Address,
t.EventYear,
p.Description,
Reg_Fee,
m.registration_date,
t.AmountPaid
from dbo.Transactions AS t INNER JOIN dbo.Members AS m ON t .MemberID = m.MemberID INNER JOIN
dbo.PaymentTypes AS p ON t .TypeID = p.PaymentTypeID
) x
pivot
(
max(AmountPaid)
for registration_date in (' + @cols + ')
) p '
EXECUTE sp_executesql @query
registration_date is of int data type.
Any ideas what I am doing wrong?
|
|
|
|
|
You're missing a comma after the Reg_Fee column.
'SELECT
...
Description,
Reg_Fee
' + @cols + ' from
...
You've also posted this in the "Web Development" forum, when it should really have been in the Database forum[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks so much sir.
Doofus me!
Sorry about posting here instead of the DB forum.
|
|
|
|
|
I've been struggling with getting an Angular 6 app to sort the results of an WebAPI call, and it turns out that the root cause is case sensitivity on the object properties. And I can see 'where' the differing cases come from, but I can't see the where/why.
I have a class for my object:
export class App
{
id: number;
name: string;
description: string;
isEnabled: boolean;
shortName: string;
displayOrder: number;
} And my web service returns JSON like:
{"ID":1
,"Name":"Matterhorn User Management"
,"Description":"User and Role management for Matterhorn applications."
,"IsEnabled":true
,"ShortName":"MUM"
,"DisplayOrder":10} To retrieve the data I've got the following function in my service:
getApplications(): Observable<App[]>
{
let apiURL: string = this.baseUrl + 'usermanagement/applications/read';
return this.http.get<App[]>(apiURL);
}
And finally my component calls that service function:
getApps(): void
{
this.appsService.getApplications()
.subscribe(data =>
{
this.apps = data.sort((a, b) => a.DisplayOrder - b.DisplayOrder);
});
}
So the problem was that data structure matches the JSON capitalization and not my local TS object one, and I had to use DisplayOrder not displayOrder (and TS now whinges at me).
But isn't Angular now supposed to map and convert JSON automatically (I know this was a specific step in the past)?
And surely your local objects don't have to match the case sensitivity of the JSON provided by others.
|
|
|
|
|
Hi My Website "stelleninfotech.com" is showing error.when we refresh it then its work properly.
Any Idea?
Displaying Error
Warning : opendir(cache/domains/): failed to open dir: No such file or directory in /var/www/html/cms/application/models/api_model.php on line 14
Warning : readdir() expects parameter 1 to be resource, boolean given in /var/www/html/cms/application/models/api_model.php on line 15
Notice : Undefined variable: domains in /var/www/html/cms/application/models/api_model.php on line 22
Warning : in_array() expects parameter 2 to be array, null given in /var/www/html/cms/application/models/api_model.php on line 22
bad
|
|
|
|
|
That is a template issue, perhaps your template is incomplete.
If you are using a commercial version of template, contact the developer and ask them to fix this, most probably there is something missing, or something was not uploaded by the developer.
I also just found out that you have been asking the same question on rest of the Internet too, and you were told to share the code too, it is impossible to help you at all. Share the code at line 14, line 15, line 22... So on and so forth. But this problem will boil down to an incomplete theme, or a poorly written theme.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
How can you add skew effect on only one side of a div? In the bellow images is what I want to achieve.
How it looks like[^]
How I want it to look like[^]
Also, when I add skew to the right div (the one with "Test right"), it also adds a space to its right, which makes the browser to add the scrollbar on the bottom, because parent div has 100% width.
The space and scrollbar at bottom[^]
Parent div css:
position: absolute;
left: 0px;
top: 0px;
width: 100%;
Inner div css(only background color, and width differs, having in total width 100%):
background: rgba(40, 188, 215);
text-align: center;
float: left;
width: 15%; left div | width: 75%; middle div | width: 10%; right div
transform: skew(150deg);
Each text from inner div css:
text-align: center;
display: block;
font-family: 'Times New Roman';
font-size: 24px;
color: WHITE;
text-decoration: none;
padding-top: 10px;
padding-right: 0px;
padding-bottom: 10px;
padding-left: 0px;
margin: auto;
transform: skew(30deg);
modified 17-Dec-18 17:03pm.
|
|
|
|
|
As a temporally fix, I've removed skew entirely and I've added another div (between the 2 divs that had the skew effect) which has 2 colors on diagonal, giving the same effect. But I'm not sure how good this idea is. I'm new to this.
|
|
|
|
|
Assuming you're using a linear gradient[^] rather than an image, that sounds like the best solution.
I'd be inclined to use the ::before[^] or ::after[^] pseudo-elements to avoid the need for the extra divs.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I used linear gradient, because I wanted to give its size using JavaScript for dynamical purpose.
Then I guess this is how it will stay, Thanks!
|
|
|
|
|
So...
My local area of NA's website is complete & launched (w/ the help of some folks here...thanx).
1) My original background image was 1950 X 1460 & about 1.2MB...it loaded slow...& because of the bootstrap template I used, you can only see the very top of it.
2) I figured I could reduce file size & accomplish the same thing graphically by cropping the size to just the top. When I did that...something in the code relative to it's position or display caused it to increase in size on the home page, showing only a small percentage of that cropped image (& ruining the look of it). And...even that smaller image loaded slow.
3) So...not knowing how to alter the code relative to the display of that more narrow image, I decide to use the original size image & optimize it for the web, which decreased it's file size down to 205 KB. BUT...that image still loads slow!
So I'm hoping someone can look at my home page code & tell me what is wrong...why the smaller images still load slow; & why the narrow image (which was reduced in height from 1460 down to 375) appeared larger. I'm not sure if my problem is a code problem or an image file size problem.
http://www.burlingtoncountyna.org/
thanx,
dox
|
|
|
|
|
The biggest performance hit on the page is actually that house in the header; use GIMP or another product to change that to a PNG and re-size it to the target size (it's almost 700KB!).
I would suggest wrapping your jumbotron in a div, determining a set height for that div, set you BG as the BG to that Div rather than the jumbotron, and trimming your image down to size (and convert to PNG).
If you want to be mobile-friendly, you'll also want to exclude those pictures from mobile downloads (which you can do with bootstrap!). I would also suggest re-ordering the menu so it collapses into a hamburger on small screens.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
If I have an address: https://somesite.gov.gr/WSAWDF/somefile.do
Ok, and if I put this address to CInternetSession Class | Microsoft Docs[^] he tell me: server name is not valid. Ok, then if I put www.somesite.gov.gr/WSAWDF/somefile.do then I get the same response ... so, how can I find the right server name for this address ?
|
|
|
|
|
Most website owners do not reveal their server names. And that class requires you to enter the server name as the initial parameter.
|
|
|
|
|
On a web page,letters are generated on the web for parents where student letters need to be generated.
The html font on the letters are setup to be either:
1. Arial 10 or
2. arial, san serif 10.
The letters are display ok, but the font on the letters look different depending upon the font type that is specified on each unique html line.
I know that Arial 10 ahould appear on all the lines, however the fonts look different from where Arial 10 versus arial, san serif 10 is displayed.
As far as I know, on the lines that say 'arial, san serif 10' arial not being picked up? Can you tell me why? I always thought that if the first font was not available
on a particular printer, the second font will be picked up?
Thus can you show me what I can do to solve my problem?
|
|
|
|
|
Arial does not have serifs so "Arial, sans serif" does not mean anything. It is likely that using such a designation makes the browser select an alternate font.
|
|
|
|
|
Is it ever really appropriate to create resources on a GET? I've received the answer we've done it this way for all these other situations and "the UI shouldn't have to make extra calls" If I'm setting up a user in a 3rd party system is it really bad to be making a separate call to make that integration with our system?
Either I'm missing some kind of RESTful wisdom here or we're keeping the UI lighter from responsibilities it should bear. I'm not really sure which here.
Well, who doesn't release stuff like that ? Microsoft software is just as bad.
Christian Graus
That's called seagull management (or sometimes pigeon management)... Fly in, flap your arms and squawk a lot, crap all over everything and fly out again... by _Damian S_
|
|
|
|
|
wolfbinary wrote: Is it ever really appropriate to create resources on a GET?
No.
GET , HEAD , and OPTIONS requests are meant to be idempotent:
What are idempotent and/or safe methods? - The RESTful cookbook[^]
There could be any number of devices between the client and the server which will expect to be able to reissue an idempotent request multiple times without side-effects.
Anything which alters the data should be using a more appropriate method - PUT , POST , PATCH , or DELETE .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|