David Mutansan

Ranch Hand
+ Follow
since Jul 10, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by David Mutansan

In my html file, I first import some external css file ("file1.css"). Suppose the external css has a defined section called ".div_part1, .div_part2, .div_part3 { color: black; ....}" Then in this html, I define an internal section <style> ...  </style> after the external import  and within this <style> sector I override ".div_part1, .div_part2, .div_part3 {color: red; ....}"

Based on basic css rule, on this html the "color" part for " .div_part1, .div_part2, .div_part3" will take "red" since it is overriden.  Now, the question is ---

If I have 2nd html file, it also imports the same "file1.css".  In this html, it does not define anything to override the ".div_part1, .div_part2, .div_part3" stuff.   Then can I be confident whatever defined in the <style> section in the first html is only scoped to the first html file itself, it will never to accessible from the 2nd html file ?  in other words, in the 2nd html, when it needs ".div_part1, .div_part2, .div_part3 " color, it will still be black, right ?
Suppose I have an io InputStream containing a very very long string and I want to extract the middle of it and put in another InputStream.  I don't want to convert the whole thing into a string since it takes too much memory..  Suppose the original stream contains stuff like "<start>VERY VERY LONG CONTENT<end>" and I want to extract "VERY VERY LONG CONTENT" from this InputStream (and by end I want a InputStream not a string).  How should I do without utilizing too much memory ?
5 months ago
If a jdbc connection isn't closed, how long will it stay alive ? will the system auto recycle and remove it ?
when we upgrade to higher version of jQuery, we see messages like

"JQMIGRATE: jQuery.fn.xyz() shorthand is deprecated"

I know in java a deprecated method can still work in newer jdk version and is just not preferred.  Is it the same case for jQUery that it still functions but not recommended ?
Does jQuery accept $('#mydivelement') and $("#mydivelement") equally ? or is there any trick that one may fail under certain condition ?
has anybody used jQuery UI ?  I see jquery-ui.js and jquery-ui.css (version 1.12).  meanwhile I also see jquery-ui.structure.css and jquery-ui.theme.css.  Are  jquery-ui.structure.css and jquery-ui.theme.css needed for using jquery-ui library ?
I used Spring MVC before and I know usually I creat a web.xml defining "DispatchServlet", and in my  "myapp-servlet.xml" I define the controllers and view resolvers, etc.  However when I was learning sprintboot, it can alsodo MVC work using "ModelAndView" in its @Controller class, but it seems it doesn't require me to explicitly create "DispatchServlet" or even a web.xml file, nor do i need to create a "myapp-servlet.xml" file.  Is it true and why ? I suppose they are both using Spring MVC..
2 years ago

Al Hobbs wrote:The browser will use whatever js it has. You aren't going to run any ES6 on internet explorer no matter what you put in the tag



Do you mean the browser will auto use the latest javascript version when it interpret a javascript file ? so if the current latest version is ES10,  even it is a dummy alert("hello") browser still uses ES10 to interpret this simple statement ?
In html, I just have <script src="my.js"></script>, but how do I specify that this is a ES6 or any other version Javascript ?
Hi, I want to use spring initializer to create a simple CRUD type data operation application.  I can use Postman app to test CRUD.  Is it also OK that I don't use Postman, but just use a browser like localhost:....? what port number should I use in this case ?
2 years ago