|
Vilgefartz posted:Awesome thanks for this, and ty for taking the time to look. I spaced it out a lot and also made it a little friendlier colour-wise. I also fixed most of units on padding/margins to be multiples of 8, except for the divs in the project boxes on the front page. Giving them 8px or more space feels a bit excessive to me? Also i think i got caching headers working. I had no idea what that was. Now i've got them i can stop annihilating my phones limited bandwidth. Do you mind having a look again and telling me what you think? https://murmuring-tor-67701.herokuapp.com/index First thing I noticed on my phone was the header nav buttons not being vertically centered relative to your name, and also the active area of the nav buttons having a lot of extra white space on the right side. Gives the impression that your buttons are not equally justified which looks messy.
|
# ? Jun 16, 2019 22:21 |
|
|
# ? May 16, 2024 17:28 |
|
Ruggan posted:First thing I noticed on my phone was the header nav buttons not being vertically centered relative to your name, and also the active area of the nav buttons having a lot of extra white space on the right side. Gives the impression that your buttons are not equally justified which looks messy. Is this a thing usually solved with media queries? I'm trying to figure out how to make it adapt to a phone screen based on the width. Whereas oddly enough changing my browser width on my computer applies the media query changes. e. think i needed max-device-width instead of just max-width Vilgefartz fucked around with this message at 10:56 on Jun 17, 2019 |
# ? Jun 17, 2019 10:45 |
|
Sab669 posted:I found a bizarre bug on one of my forms. There's a checkbox that, when clicked, shows a popup with Y/N prompt (regardless of whether it's checked or not). Been working on this issue from last week all day and I have zero leads. I even removed the OnClick event from the Checkbox entirely and it still happens
|
# ? Jun 17, 2019 18:39 |
|
Popups halt execution, perhaps it is halting execution before the checkbox changes and you evaluate it like a microsecond before it actually changes... or something like that. If you're using something like Redux then you're on your own until you agree to tear all that stuff out and write Javascript like a sane person.
|
# ? Jun 17, 2019 18:43 |
|
This might be the first time I've heard anyone say writing JS is for sane people.
|
# ? Jun 17, 2019 18:47 |
|
It might also be that you are reading the "value" of the checkbox as opposed to its checked state...
|
# ? Jun 17, 2019 18:48 |
|
I don’t think he’s using React. From the code he posted it looks like he’s using Razor C# ASP.NET with the Kendo UI plugin. Since Razor is server-side HTML templating, whatever is going wrong is happening in the JavaScript. I wouldn’t be surprised if it’s the library itself? You should be able to trivially test it in the browser. Open the console and select the HTML element and check the checked status. Do some testing to figure out what is and is not leading to a proper result. That should help get you in the right direction.
|
# ? Jun 17, 2019 18:51 |
|
Nolgthorn posted:Popups halt execution, perhaps it is halting execution before the checkbox changes and you evaluate it like a microsecond before it actually changes... or something like that. If you're using something like Redux then you're on your own until you agree to tear all that stuff out and write Javascript like a sane person. ASP.NET/MVC, jQuery and Telerik Kendo UI are all we use. But again now I'm defining the checkbox simply like so: code:
Nolgthorn posted:It might also be that you are reading the "value" of the checkbox as opposed to its checked state... code:
|
# ? Jun 17, 2019 18:52 |
|
Yeah the way you’re defining the checkbox means fuckall as its only run once to template the HTML. It doesn’t do anything to define the functionality of the HTML - that’s all client side JS. So if you’re looking at your definition in Razor you’re almost assuredly wasting your time.
|
# ? Jun 17, 2019 18:58 |
|
Ruggan posted:Yeah the way you’re defining the checkbox means fuckall as its only run once to template the HTML. It doesn’t do anything to define the functionality of the HTML - that’s all client side JS. So if you’re looking at your definition in Razor you’re almost assuredly wasting your time. What I'm saying is it doesn't even have an event handler wired to it, though. So there isn't anywhere else for an event to be getting attached to the Checkbox in question. Literally no javascript (at least nothing my company has written) is being executed when you click the checkbox right now. Additionally when you Save the form, we do re-load the UI: code:
Using the Element Inspector in Firefox, the 'checked' property doesn't seem to be getting updated; Sab669 fucked around with this message at 19:05 on Jun 17, 2019 |
# ? Jun 17, 2019 19:03 |
|
Yeah I can’t say for sure. That checkbox doesn’t look standard though. Did the Razor code scaffold a hidden checkbox nested inside the label or adjacent to it (not the one you showed in console tools). When you refresh it and get the new html from your action result are you sure you’re replacing the existing code properly? Don’t be so quick to assume there’s no event handler. Are you using the Kendo UI JavaScript library? Very possible it auto attached event handlers to inputs you created using its scaffolding. Maybe they only run on initial load / doc ready which would explain the failure to update on reloading the content? I know nothing about Kendo UI but unless you wrote the code yourself you can’t assume it isn’t doing something janky behind the scenes.
|
# ? Jun 17, 2019 19:14 |
|
Ruggan posted:When you refresh it and get the new html from your action result are you sure you’re replacing the existing code properly? AHHHHHHH This tripped the switch. When we call save, it's done like so: code:
Sab669 fucked around with this message at 20:21 on Jun 17, 2019 |
# ? Jun 17, 2019 20:17 |
|
I'm really not sure if this is the right thread for it but I'm not exactly sure where to ask. Where does someone go to find someone that will do some light web work? For reference my dad as an online store that he uses for his business and the guy he pays right now is kinda a mess and really not helpful at all. Pretty sure its a word press store and my dad wants to make some changes and is willing to pay but the guy either doesn't have time or blows him off. The other issue is for some reason my dad is paying for his dude to host the site which is kinda another huge PITA. Is there a thread on here to throw people work? I really trust ya'll vs some rando on the internet. Sorry if this is the wrong thread I'm just not sure where to go with it.
|
# ? Jun 17, 2019 21:09 |
|
I'm working on a "demo" app. It's a silly little thing - you have some beans of different colors, and this app is a broker that allows users to make offers to trade for beans . I'm using ASP.NET core MVC for the back end; bootstrap and jQuery for the client side. I am going to use SignalR for real-time updates (when trades are accepted, rejected, cancelled, whatever). I'm currently using in-memory repositories, but will add an MS SQL database later, accessed with EF Core. Things are looking good, and I'm starting to test the SignalR stuff when I ran across a problem I'm not sure how to solve. I was storing the user id in a cookie, but cookies are specific to the browser, not the browser session, so of course when I logged in my second user ("log in" is a stretch, there's no authentication - if you say you're Bob then presto, you're Bob) the cookie was overwritten and now both sessions are the same user. Thought about using session, but doesn't that rely on a cookie too? Won't I have the same issue? I can use different browsers, I suppose, but I'd prefer not to unless there's no other option. So is there a good way to track multiple users coming from the same computer using the same browser? Can't use IP address. Can't use source port since that changes with each TCP session.
|
# ? Jun 17, 2019 21:19 |
|
Is this the best way to add metadata to sentry reports for browser errors?JavaScript code:
|
# ? Jun 17, 2019 21:51 |
|
LongSack posted:I'm working on a "demo" app. It's a silly little thing - you have some beans of different colors, and this app is a broker that allows users to make offers to trade for beans . I'm using ASP.NET core MVC for the back end; bootstrap and jQuery for the client side. I am going to use SignalR for real-time updates (when trades are accepted, rejected, cancelled, whatever). I'm currently using in-memory repositories, but will add an MS SQL database later, accessed with EF Core. You could use localStorage to store a user object. When the browser is refreshed and you enter your name it can check for an object with that name and fetch it, or create a new one if its never been used.
|
# ? Jun 18, 2019 12:57 |
|
MarcusSA posted:I'm really not sure if this is the right thread for it but I'm not exactly sure where to ask. I don't know if there is a SA thread for freelance work, but I have friends who use UpWork.com primarily to get freelance gigs in the vein you're speaking of.
|
# ? Jun 18, 2019 15:44 |
|
Cheen posted:You could use localStorage to store a user object. When the browser is refreshed and you enter your name it can check for an object with that name and fetch it, or create a new one if its never been used. I think I'm going to add full authentication. The asp-route-id tag helpers should solve it, if the user object or user id is part of the model.
|
# ? Jun 18, 2019 18:13 |
|
LongSack posted:I think I'm going to add full authentication. The asp-route-id tag helpers should solve it, if the user object or user id is part of the model. I really love using Firebase for just auth on small applications. This might be a good use of it here.
|
# ? Jun 18, 2019 18:53 |
|
Cheen posted:I really love using Firebase for just auth on small applications. This might be a good use of it here. ASP.NET core authentication also uses cookies (of course), so it looks like I'm going to have to use 2 different browsers to test
|
# ? Jun 18, 2019 19:07 |
|
If you're on Chrome, you can make a second user that won't share cookies. Dunno if FF ever got that, though.
|
# ? Jun 18, 2019 19:41 |
|
LongSack posted:ASP.NET core authentication also uses cookies (of course), so it looks like I'm going to have to use 2 different browsers to test Open tabs in porn-mode?
|
# ? Jun 18, 2019 20:08 |
|
Cheen posted:I really love using Firebase for just auth on small applications. I've got basically zero experience with firebase. How does this work?
|
# ? Jun 18, 2019 20:14 |
|
ynohtna posted:Open tabs in porn-mode? Ooh - didn't think of that ... Will try it out once i get all the plumbing in place .. thanks!
|
# ? Jun 18, 2019 20:49 |
|
MarcusSA posted:I'm really not sure if this is the right thread for it but I'm not exactly sure where to ask. I've used fiverr a lot for logo and python work. Been very consistently happy, but I'm always willing to hire the more experienced people and pay a little more as hiring Nigerian and Pakistani dudes is LOL cheap compared me doing it myself when I'm already busy.
|
# ? Jun 18, 2019 23:04 |
|
Thermopyle posted:I've got basically zero experience with firebase. Users sign up/login with a request sent to firebase directly from the client- firebase sends back a token that you send to your backend and verify with firebase that its legit. Firebase sends back a decoded token that you can use to do authorization with or create your own session.
|
# ? Jun 19, 2019 03:40 |
|
Having a problem with bootstrap (3.3.7) and a navbar toggle button. When I change the browser window size to the point where the toggle button should show up, it's there but it's invisible. When I move the cursor over the place where the button is, the cursor changes to an index-finger, and the button actually works - it toggles the links from the navbar, but it's invisible. Here is the relevant code:code:
|
# ? Jun 20, 2019 20:32 |
|
Button class should becode:
|
# ? Jun 20, 2019 20:51 |
|
Awesome Animals posted:Button class should be Thanks, I’ll test it when I get back into the code tomorrow. It seems a likely cause. Edit: man, I thought for sure I had edited this. navbar-toggle is the correct class, at least in 3.3.7. So that isn’t the answer LongSack fucked around with this message at 00:30 on Jun 23, 2019 |
# ? Jun 21, 2019 00:28 |
|
LongSack posted:Having a problem with bootstrap (3.3.7) and a navbar toggle button. When I change the browser window size to the point where the toggle button should show up, it's there but it's invisible. When I Have you tried this: code:
For reference: https://getbootstrap.com/docs/3.4/examples/navbar/
|
# ? Jun 23, 2019 04:50 |
|
ModeSix posted:Have you tried this: Adding the class collapse makes the button go away completely, without that class the button is there but not visible. CSS code:
|
# ? Jun 23, 2019 16:09 |
|
LongSack posted:Adding the class collapse makes the button go away completely, without that class the button is there but not visible. The example has collapsed.
|
# ? Jun 23, 2019 16:16 |
|
ModeSix posted:The example has collapsed. Yes, it does. But there is no selector for ".collapsed" in the bootstrap-3.3.7-dist/css/bootstrap.css file, only ".collapse" and ".collapse.in". ynohtna posted:Open tabs in porn-mode? FWIW, This worked, BTW.
|
# ? Jun 23, 2019 17:24 |
|
Also, if anyone (like me) is looking to deploy ASP.NET to linux but can’t use Docker (because I need VMWare on my development machine), I found instructions here. They’re not quite perfect (for example, it tells you to do a dotnet publish but then has later steps which potentially change the source code so you need to publish again), but it works. There is a similar article using Nginx rather than Apache as well. So now my silly little Bean Broker app is running on my internal linux server (although checking the error logs, there may be a problem with SignalR) and ready to move to a $10 Digital Ocean droplet. Speaking of which, can anyone recommend an open source (“free”) tool to automate deployment? I’ve been using FTP, but that’s a huge pain with subdirectories. edit: the SignalR errors are definitely related to the reverse proxy. LongSack fucked around with this message at 03:05 on Jun 26, 2019 |
# ? Jun 25, 2019 01:53 |
|
Hello web devs. I have a question...I'd like to know if there is a way I can add custom links to a site just for my browser? I can edit the appearance of a site using 'inspect element' and 'edit as HTML', but is there a way to make those changes persist across browser sessions?
|
# ? Jun 25, 2019 08:52 |
|
alphabettitouretti posted:Hello web devs. I have a question...I'd like to know if there is a way I can add custom links to a site just for my browser? I can edit the appearance of a site using 'inspect element' and 'edit as HTML', but is there a way to make those changes persist across browser sessions? Look into tamper monkey for chrome.
|
# ? Jun 25, 2019 09:41 |
|
alphabettitouretti posted:Hello web devs. I have a question...I'd like to know if there is a way I can add custom links to a site just for my browser? I can edit the appearance of a site using 'inspect element' and 'edit as HTML', but is there a way to make those changes persist across browser sessions? Yes but you need to use a browser plugin like suggested above
|
# ? Jun 25, 2019 11:03 |
|
I got greasemonkey for Firefox, and found this userscript which seems like it might do what I want? code:
e: actually this is pretty old and it turns out there was a major update to greasemonkey at some point which broke loads of older scripts. it dont matter fucked around with this message at 12:27 on Jun 25, 2019 |
# ? Jun 25, 2019 12:16 |
|
LongSack posted:Having a problem with bootstrap (3.3.7) and a navbar toggle button. When I change the browser window size to the point where the toggle button should show up, it's there but it's invisible. When I move the cursor over the place where the button is, the cursor changes to an index-finger, and the button actually works - it toggles the links from the navbar, but it's invisible. Here is the relevant code: If anyone is curious what the problem was here, the "nav" element was missing the class "navbar-default". Adding that class fixed the display issue.
|
# ? Jul 1, 2019 16:06 |
|
|
# ? May 16, 2024 17:28 |
|
Not sure how many times I have to tell my clients the exact steps their dev-ops people have to take to make things work, but apparently it's at least once more. them: *morning call* null, the things aren't working me: okay lemme see me: okay so it looks like of the 3 steps I gave your dev-ops they performed 0 them: oh was that all needed for it to work? me: yes. yes it was. this is like the 10th time they've asked me to fix poo poo, I tell them exactly how, and they don't do it. I'd do it myself but they're a big corporation that doesn't give even limited access to the dev-ops tools to contractors (dumb). oh well.
|
# ? Jul 1, 2019 16:53 |