You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...
Have you guys seen the video of a Google assistant making a phone call to make a haircut appointment? Would that be technically passing the Turing test?
imagine describing function syntax for a simple expression that adds two values, where they don't know what's a function, a syntax, an expression or a value
@SomeGuy I've decided to give a veery short introduction, and provided a lot of good resources to study at their own time
I have a request from my client I'm having a hard time figuring out. They want me to set up a web app so that the user can click a link to a PDF and the document automatically open in the same browser tab without a prompt to download and save. Is there a good way to do that?
In my class, they were very smart kids but they hadn't seen any of this that I take for granted and a lot they were sending me was rote memory. I figured out that they weren't really getting the idea of variable. Also, they were programming in vague instructions..didn't get the whole idea of how everything has to be very exact. It was like they were talking to a person
I remember being a freshman in high school interested in making games but it was all magic. Once I started messing with TI-85 code, I still didn't understand a whole lot and actually wrote some TI-85 code in notepad and tried saving as .exe and various other extensions to get it to work. I didn't have internet at home and the school's internet was rather new and I never really had access so I ended up buying a 'make your own game' software out of an ad in a PC magazine.
At some point, things became less magic, but it took many hours and plenty of thought. I can understand why most people don't understand what I do.
@DanielAllenLangdon Guys, I'm an older programmer. If I was to start solving this problem I'd probably try to find a way to load and display a PDF in a div using AJAX, but there's probably some library or package or something that does this.. because it would be a common thing that people would want to do, right?
47. Luckily, I could pass for 30. People can never beleive my age. Also, I don't live in Silicon Valley so I don't need plastic surgery to work at a tech company :)
I Googled and saw that the TRS Model III came out in 1980, about 15 years before I had my first computer and home, and thought that should be about the difference between your age and mine.
I wrote a top down tank shooting game with bouncy wall bullets and it ran so slow... I tried deleting all of the blank spaces to make it run faster and only ruined my code, it was no longer nicely formatted by line, yup times were tough before google
@TravisWhite I hear and raise you this: before I could write double-buffered rendering, I made a game that displayed immediately on the lower part of the screen, because that's where the flicker was less noticeable
I did some assembly in college. It wasn't as daunting as I thought it was when I went in. It reminded me of TI-85 code with special codes for each function/action/whatever they are
) coming up with some decent ideas for making an AI.. and it involved watching people talk on BBS and "training".. I realized that I wouldn't understand the evolved code, so I thought - "what's the point?" :)
Years ago I realized that in a simplistic way that's kind of what Google is doing. Watching billions of interactions, searches etc
I made a crappy scorched earth clone for my ap computer science class when I was a senior. It used the alegra or alegro video library/dos. Wished I backed up code when I was younger
Actually, let me rephrase my question. Even if it uses an external app to open the PDF, can I make it so that IE will open a PDF file without the user having to make a selection?
@Earth2Eddie, I don't really know. I'm doing well now. Maybe I'll become an "architect" or a "director". Most of my clients seem to appreciate well what I do. Sometimes, I think I might like to hire other consultants to do bigger projects.
Maybe I'll have a midlife crisis and decide I need to do something entirely new. Who knows!
My last job was team lead for a team of Java developers. The current is project manager, but the company is looking unstable.. wondering what my next move should be. Maybe product manager or business analyst
I'm very much a work-to-live sort of person. I get to work from home on my current gig, so I'm not looking to get a high-powered job where I'm at the office 50 hours a week.
I really liked AngularJS when I first used it, and then they decided it wasn't good enough, so they made Angular 2, and then people didn't like they, so they made React and Vue and Aurelia and a bunch of other stuff. And then Angular 2 is so easy, you just have to do HTML compilation and set up TypeScript and NPM and all that other fun stuff.
Even though I'm a project manager, the project/contract the small company I work for fell through so I'm doing some development and I'm having to learn alot of new things. I've been studying my azz off looking into React, Angular, Node
I'd seen that in my research, that people seem to like React better. I also played around with "Vue" which I liked. Just not sure which of things is going to be popular/gone in a few years
Yeah, I've had my eye on KW for a while. I think years ago I heard that Microsoft has a permanent presence at the university and sometimes sucks up the entire graduating CS class :)
I'm creating a web page with a link to a PDF file.
I have been asked to set up the link so that the user can click the link once and see the PDF. Here's what I've tried so far:
One way is to simply put <a href="XXX.pdf" target="_self">PDF</a> in the HTML
The other is to make the link trigger ...
(1) So, I have a question related to the age discussion we were having earlier and how the bulk of people here are in their 20s. My boss (VP) has told me that I should be just as knowledgeable about the languages as the 20 year old developers on my team. (She comes to code reviews and appears to be able to program any coder under that table, it's irritating).
(2) Anyway, if that's the case in the industry at large, how come you don't see more 30/40/50 year old software project managers asking questions on forums like this?
for example, i don't know any language other than javascript and coldfusion at a professional level. however, I find it rather easy to open up a project in another language and be able to figure out what's going on and how to solve problems.
once you know how to solve problems... there isn't much point in asking on SO
by the time you've provided all of the information you have, you've solved the problem
with the exception of things like typos or logic failures
What I don't understand is, with computers becoming more and more ingrained in everyone's lives, there's going to be an ever increasing need for software developers and yet you still see devs mainly in their 20s. So where are all of these extra 20 year olds coming from?
I wondered that. It immediately welcomed me to the room, but then later appeared to answer someone's question. So, I thought Caprica was a user with a script that just welcomes people
I definitely think it's valuable to at least have some college, as a sort of introduction to the world after highschool, but with the way college is here in the states past the community college level, it just doesn't seem worth it to me. guess it depends on what kind of job you want at the end of the day
At the university I went to (this was mid 90s) a lot of people only did the BS for computer science. A few hard core (mainly international students) hung in there for the MS and PHDs
Trying to think if it could be an issue. Like, MITM attack, for popular sites. A lot of users use same email/pw across sites (even though you shouldn't), seems like a lot of security lost for such relatively easy fix for big well funded companies?
I'm seeing this chat Secure, because high traffic news sites that offer account login, a lot of people use same email/pw, could easily spoof a popular news site and wait for somebody's data to come in if you setup an open wifi spot
if they don't take the effort make sure the badge shows, then the security measure is useless as people won't notice either way that it isn't secure, says 'this site is not secure'
Lets say I set up a copy of today's headlines on a static webserver and go to local restaurant and share my wifi, with special dns entry overriding theirs so that my site is delivered to them instead of the legit site, now they see that it isn't secure, because no green badge, but they are used to it not being secure, so they just enter their login/pw and i display an 'error please try again later' message, and just collect data
(this requires users to connect to my wifi connection, of course, not the restaurant's)
adn if the only thing not protected in that case is an image... what are you going to do?
in the case of SO Chat, the only reason it loses it's green badge is because insecure images are being displayed from i.stack.imgur.com
you can't inject javascript into the page with an image, you cant read secure cookies, all you can really do is display a different image and gather information like useragent/ip
Well, I won't argue with you about the details/possibilities/lack thereof. Seems lazy/cheap on the companies. They could fix it if security was a priority.
@Earth2Eddie, I feel silly. My PDF was being saved as an attachment because my web server was sending it a header telling it to do so! Once I removed this, everything just worked.