« first day (3197 days earlier)      last day (1974 days later) » 

14:02
I am using index with https://dexie.org/docs/Collection/Collection.offset() but when i add where clause its throw orderBy is not function
When i remove the where clause it's working but with where it's not work
dexie.org/docs/Collection/…
?
I have lot of try to change position of where but same error
Is any other way to do this. ?
Is any solution for this..?
@Neoares o:o
you're still alive?
hello
@KarelG I am :D
and I finished the master
2
I am officially a data scientist
now I just need a job
@rlemon long live CANADA! thanks bro
@Neoares so then you're finally licensed to answer: is it day-ta or dat-a
14:12
oh ya? plenty of those
@Neoares Congratulations!!
!!/listcommands
@StephanS help, afk, backup, ban, clap, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, quote, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 007, 1+1-1, 111test, 2+2-1, 2020/07/23, 3, 666, :p, </pissing>, ?, ???, ^, ^5, abesnacking, abhi, abhishekpornfreak
acronym, afsari, agario, ah, ahah, algosmarts, aliens, alienware, alot, am, andy2, angry, angryticks
i'm starting a DATA position in 2 weeks, no more asp.net and shit
i'm kinda happy but i'll miss it
  webpack: (config, options) => {
    config.module.rules.push({
      test: require.resolve('jquery/dist/jquery.slim.min'),
      use: 'imports-loader?this=>window',
    },{
      test: require.resolve('bootstrap/dist/js/bootstrap.bundle.min'),
      use: 'imports-loader?this=>window',
    });
    return config;
  }
please what am I doing wrong here?
I can't solve this
import 'jquery/dist/jquery.slim.min';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import 'bootstrap/dist/css/bootstrap.min.css';
@Aurelius are you getting an error
14:15
@Koosh of course you'll miss it; ASP.NET is great
@StephanS TypeError: Cannot set property 'emulateTransitionEnd' of undefined
yes thank you
i like asp.net but i'm only experienced in web forms so it was tough decision for me to either take up MVC since that's what everyones doing, just to get a job, or do something i enjoy
I tried anything on the internet
@Aurelius are you using react or anything?
I am using Next.js
14:18
then use reactstrap
don't import jQuery
which basically React with SSR
@Aurelius you don't need to include server side libraries
reactstrap is bootstrap4 for react
@StephanS what do you mean?
it'll be much easier (and proper)
14:19
look into this
lol
@rlemon to me it's day-ta
@StephanS webpack replaces bower
@Aurelius Don't listen to me
@rlemon thank you very much, I considered that but then I can't use templates on the internet or even the examples on the boostrap website
14:20
sounds more professional
I'm an idiot
@Aurelius yes you can
it all translates
@Neoares what you study exactly? Stats and Python, or anything to do with like HIVE and Hadoop?
<div class="col"> === <Col>
@StephanS thanks
14:20
spark, etc
you have to do a bit of work, but it's the right way to do it
@Koosh no, that's big data
there was an optional course of big data, but I didn't take it
@StephanS ...psst! While Bower is maintained, we recommend using Yarn and Webpack or Parcel for front-end projects read how to migrate!
I learned machine learning, deep learning, computer vision, NLP
of course also stats, algebra, optimization, etc.
you're not an idiot
14:21
@Neoares neat. Congrats. You are now entering a new period in your life.
it was a good hint
smart cookie! i'm more interested in like Data Warehousing, ETL and shit so that's what i'll be doing
Data scientist is a profession itself now
I'm only interested in making the new facebook, but with a twist. everyone has 0 friends and no one can like your stories. I'll call it lifebook
yes, it is
14:22
@rlemon why reactstrap and not react-bootstrap.github.io?
hell yah, but you need data developers to get you that data, that's another profession!
there is a lot of positions here at Barcelona
@rlemon #welcomeToRealLifeBook #WeAllLosers
@rlemon why reactstrap and not react-bootstrap.github.io?
then you got BI who are a step below Data Scientists. Where I am in North eastern US with all the insurance companies there's tons of positions for every single position
oh you in barcelona?!
@Koosh yes
nvm then i thought u weere somewhere in US
@rlemon why reactstrap and not react-bootstrap.github.io?
Hey benj
@BenjaminGruenbaum \o
@BenjaminGruenbaum How was fullstack?
14:28
@rlemon /r/outside ?
@Aurelius reactstrap was more up-to-date previously
bootstrap-react didn't have bootstrap4 until recently.
seems better maintained
@BenFortune Fun, very short
I came Tuesday evening and left Saturday morning and Wed - Fri was the conference and I had stuff to do. But it was still fun and these people were nice :]
@rlemon okay it has like double the downloads
that why I was wondering
it's older
but was less maintained
but you can very easily look at both and determine which will be easier for you to convert to
relevant
there is really no way to import a couple of javsacritp plugins with webpack?
I mean it should be the most simple thing because it is just a matter to copy these scripts and include them in the HTML page
I don't understand why it is so impossible
14:43
uhm
"import a couple of plugins with webpack"
@Aurelius if it's only a matter of including scripts on a page, just do that
that's like exactly what webpack does
it's been two days of no stop trying
14:44
if you want to use an external script, just add it ?
but webapack doesn't do that
webpack does do that
that's its job
if I add these imports
import 'jquery/dist/jquery.slim.min';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import 'bootstrap/dist/css/bootstrap.min.css';
then I get this error
TypeError: Cannot set property 'emulateTransitionEnd' of undefined
so I tried this:
  webpack: (config, options) => {
    config.module.rules.push({
      test: require.resolve('jquery/dist/jquery.slim.min'),
      use: 'imports-loader?this=>window',
    },{
      test: require.resolve('bootstrap/dist/js/bootstrap.bundle.min'),
      use: 'imports-loader?this=>window',
    });
    return config;
  }
with imports-loader
you really should not be using jQuery with react
even if you solve this, you're still doing it wrong
14:45
I would love to
so use reactstrap or bootstrap-react
but that's how boostrap is made
it replaces the jQuery part
you only need to import the css then
bootstrap 5 is getting rid of jq isn't it?
> Bootstrap without jQuery
Is pure JavaScript achievable in Bootstrap 5
The team officialy announced their plans to remove jQuery dependency in Bootstrap 5. The announcement received mixed opinions, some developers state that removing jQuery is a bad move due to its usefulness, while other believe that golden age of the library is over and it's time to move on.
the industry is moving towards frameworks/rending libs like Vue and React
jQuery gold days are for sure over
their legacy days will be around for decades tho
14:48
yes I hate jquery
so don't use it.
is not that I can choose
yes you can
if your goal is to use bootstrap, yes you can
and as I've mentioned, if you're using react, you should actively avoid using jQuery
so it's not just possible. it's recommended.
lol thank you
./node_modules/bootstrap.native/dist/bootstrap-native.js
Error: Cannot find module 'uglify-js'
who told you to use that?
14:54
jquery?
why does that have to ask for uglify if it's not a dependency?
Because it's a dev dependency
installed it and is says document is not defined
ReferenceError: document is not defined
glhf
@rlemon thank you for the example but I do not want all the react boostrap components since they do not solve my problems and instead introduce others. I knew them already and avoided to use them
15:02
@rlemon gotcha use LOTR for that
> There was a dark age for web developers. Internet Explorer has enslaved web developers. But there were some who resisted. An alliance of two browser, Chrome and Firefox, was opposing Internet Explorer.
On the battlefield of the browser wars, victory was near. But the power of Internet Explorer cannot be undone. It was in this moment, when all hope had faded, John Resig founded jQuery. Internet Explorer was defeated.
Some things that should not have been forgotten were lost, forgotten. History became legend. Legend became myth. jQuery is now only foretold by the survivors of the dark ages
boo
lol. message too long when I tried to remove new lines
@Aurelius you are trying to use bootstrap in react, with bootstrap jQuery yes?
15:16
@rlemon I using Next.js to be precise, and I would love to use boostrap. I don't care about anything else besides the fact to be able to use normal HTML from examples like these: view-source:getbootstrap.com/docs/4.0/examples/product Even better would be using using only boostrap CSS but since we need javascritp even just to make a navbar then let's use that, jquery was just becasue I was forced by twitter since that's how they have implemented it. But if I can use boostrap.native
I can have the two things: normal HTML, and no Jquery
okay, so the solution is to use a bootstrap implementation built for react
anything but that is a hacky incorrect solution
enjoy
if you wanna use bootstrap in the classic way, don't use react.
or don't use any of the JS components and re-code all of that yourself. (which is what the libs do)
What is a framework that allows me to use normal bootstrap?
fuck me
I'll say it for you @rlemon
lol
apt
preact maybe? or Inferno?
I wanted to switch anyway
15:21
You have to be trolling at this point
jquery
what? what do you mean? I am basically dying a the screen working 16 hours per day to try to solve this and finish this MVP and you think I am trolling?
if you need the functionality of bootstrap use what @rlemon said and those components directly.. otherwise just use the styles
the react BS makes pretty gross structures in your code
Reactstrap is better imo
what do you mean by styles?
15:23
<col><row><blah><blah>... when in the end they are just element wrappers for styles
Cleaner tree
Yeah I prefer not to mess with my structure for styles
I'd rather use what I have and add the appropriate classnames
i hate bootstrap at this point
Since a style change requires a shift in your tree structure
I bought a theme. So mimicking it with those wrapper components was convenient
15:25
we have a few older parts of our site that still use bootstrap, and they always conflict with any 3rd party crap we add that adds it's own bootstrap
I don't particularly like bootstrap. I know bootstrap.
yeah it's a pita
So, get work done
we also have an older application and I made the mistake of using the react bootstrap implementation
Better than trying to force the jQuery components to work in react tho :p
15:27
That's what I'm talking about basically, most of their components are dead simple stupid wrapers
in our case the 3rd party code always uses jquery
and i simply don't have the time to rewrite it all
posted on July 18, 2019 by CommitStrip

what i usually do is just strip off their inclusion of jquery and force it to use ours, then i have to scope their bootstrap styles
@rlemon I am no trying to force to use jquery I just want to use boostrap : P
without any pre-made component
so do that
my little demo shows you how to do that
15:33
import Col from "reactstrap/lib/Col";
import Row from "reactstrap/lib/Row";
import Button from "reactstrap/lib/Button";
these are all pre made components
so .. don't use that part of the demo
magic.
   <div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
      <h5 class="my-0 mr-md-auto font-weight-normal">Company name</h5>
      <nav class="my-2 my-md-0 mr-md-3">
        <a class="p-2 text-dark" href="#">Features</a>
        <a class="p-2 text-dark" href="#">Enterprise</a>
        <a class="p-2 text-dark" href="#">Support</a>
        <a class="p-2 text-dark" href="#">Pricing</a>
      </nav>
      <a class="btn btn-outline-primary" href="#">Sign up</a>
I wanto be able to paste this and work
just change to className
and that's it
@rlemon that's the only part of the demo, there's nothing else...
no, the key part you want is there.
importing the bootstrap css
but I'm getting very tired of this conversation. you are now on your own. good luck, have fun.
<Row>
  <Col>
    <Button>bootstrap button and grid</Button>
  </Col>
</Row>
Why did you use all the pre-made components if it wasn't needed?
@rlemon I never asked how to import a CSS, I knew how to do that. The boostrap CSS needs Javascritp in order to do anything, and that's what I can't import.
FFS those are the components you said you don't want
jesus christ.
15:43
@Aurelius just import the style sheet then..
and paste that structure in
it will work fine with react or anything..
change class to className instead
@rlemon Yes those are ones I don't wan't in fact that's why I asked you why you used them in your example even though my problem are these components in first place. I only want to use normal HTML from the official boostrap website
9 mins ago, by rlemon
but I'm getting very tired of this conversation. you are now on your own. good luck, have fun.
@Loktar yes thank you, but then it will lack javscritp and don't work
@Aurelius write some code
and come back with an issue
import 'jquery/dist/jquery.slim.min';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import 'bootstrap/dist/css/bootstrap.min.css';
I want to import these
in a Next.js application
15:47
Awesome, good luck man
let us know if you figure it out, would be pretty cool to see
Jquery is not recommended as Rlemon says
so
Prove us wrong, you know what you want now go out and get it!
I believe in you
I always knew what I wanted
but not how to get it
that's why I have asked
15:49
Wish we could help you, but you could turn this into a learning experience for us
yes
we can all learn
Sky
Sky
Hey guys
@Sky Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
that's why I am asking
hey @Sky
15:50
I don't want to prove anyone wrong I don't care. I just wanted to learn from you guys and stop wasting time
Learning is never a waste
Sky
Sky
Alright, let's start with a question, a friend of mine told me that throw will reset the error stack, can someone help me understand what he meant?
Why not ask him?
Sky
Sky
Not available, taking a trip x)
Imagine me asking him about JS when he's on vacation x)
any one of us could potentially be on vacation right now
Sky
Sky
15:54
damn it, you're right :)
i was on vacation all last week, :p
Im going again next week
 
1 hour later…
17:05
I'm unemployed so I'm always on vacation ;)
17:25
I live in Florida, everyday is a vacation day
@JBis are you still working on the bot?
@StephanS until you sink
@rlemon lol, that statement is more true then you might think, the part of Florida i'm in is 50 feet below sea level.
it wasn't a joke
at least i'm in a safe place if Yellowstone erupts
how's the greenhouse?
17:41
gassy
@StephanS Yesish. It's actively maintained but I am not currently adding anything. Will accept PR's and fix issues tho.
And James is alive in a couple rooms across the network
nice.... I took your advice about using plastic tarps instead of plastic panels and it's turned out way under budget (at-least I think it was you)
@JBis That's cool. Did you move on to another project?
Currently working on a couple projects. Quick Downloader 2.0 will be released soon. 2.1 will include some new features and then that project will be on the same status of the bot (Maintaining but not adding). Also doing some freelance stuff.
@KarelG EU haven't done anything to chrome last I saw
Not sure yet, but once I learn how to use MongoDB properly, I will probably be done with programming for a while. May do some small stuff, but for the most part I'll find something else.
17:52
@StephanS my advice was to not use plastic sheeting
panels > sheet
1000%
cost
panels < sheet
1000%
How you doing @StephanS?
@StephanS until you have to replace the sheet 10 times
panels cost me a bit more. whole thing was still <$150 in panels.
but they last.
(fwiw, I did make one with sheet first. it sucked - so I rebuilt it with panels)
I'm doing well, I'm about to finish a contract so I can focus a bit more on reading to update my understanding about JQuery
so much has changed after 3.0
@rlemon I think when we talked about it at first you still had the one with sheets. I have the frame built so i'll just use the sheets until they're not good anymore and switch to panels
👍
17:59
possibly. but I did build the one with panels pretty quickly after realising the sheets were crap
panels like this, although not that one
I payed like $16-20 a panel or something iirc
only needed like 4-5 panels tho
maybe 6
I can't remember now. except that it was much much cheaper than I expected it to be
interesting
what do you grow?
whatever tickles my interest. mostly peppers and tomatoes tho
some kohlrabi, cucumber, zucchini, strawberries, rhubarb, raspberries, peppermint, peas, carrots, lettuce
carrots and lettuce are rotating crops tho
might not do carrots again and go for raddish in the fall
undecided
ohh and I have mulberry trees that fruit
but I get very little off those. bird like them
and maybe grapes this year. but probably won't get fruit
not till next year
I hear instead of rotating crops you can add cut up fish to the soil
but in a greenhouse that would be terrible
I'm rotating because it is seasonal crops
not because of soil quality
I water my gardens with the water from my pond filter.
I can get early raddish, summer carrots, then two rounds again in the fall
oh I forgot you have "winter"
18:06
lettuce and radish or carrot
gotta get those seed->plate crops that are <30 days
like my lettuce is harvestable in 24 days.
do you grow from seeds ?
some crops
lettuce, rooting crops, and some of the cabbage crops (like kohlrabi)
peppers I buy early (like a month before normally you can plant them) and get em about 4" tall
they are a 100+ day plant tho
so cutting off the first 40 days is required
tomatoes I buy established because they're so cheap
why not
that's true
my herbs I all buy established too
I've not had luck with herbs from seed
the animals LOVE the baby plants
what type of animals do you have?
I've been planning on buying a goat
(mainly to get rid of the lawnmower)
18:14
Ohh just wild ones. Having a pond attracts more
Nothing big tho
Squirrels, raccoons, skunks, many types of bird large ans small.
Lots of bunnies
Im too far into the city to see deer, but only just.
Do you work as a programmer or is it a side hobby?
Full time programmer
company or freelance?
Company
Nice
18:26
I am generating cryptographically secure random bytes and I need to store it in a DB. Each one needs to be unique. Is it worth making a check to see if an entry exists in the db, or can I just trust that the function is random enough that collisions will basically never happen?
you probably want to stay on the safe side
ask the php guys
> can I just trust that the function is random enough that collisions will basically never happen?
would be an appropriate question for them, not us
Was asking in a general matter, but ok will ask them
if you can take action to stop an error from happening then you might want to do that but that's just my opinion.
it's redundant work if you dont' need it
18:34
Safe to say random isn't unique
but it's also php
So god knows
const a = 1;
const b = 2;
const c = Number(a) + Number(b);
I mean.. casting them to number is safe
it's just redundant
Adding them at all to get c is redundant :D
you're redundant
I'm telling the mods :(
@StephanS Yeah. Also I wont have too many records to check anyway so it wont be such an issue.
18:36
@rlemon XD
Honestly if it happens few and far between, and you can just tell the user to try again...
:D
who owns this room
Date.now() + users.length;
probably won't get conflicts.
@StephanS everyone with a slanty name
I see
can we have a JavaScript Chatroom lexicon ?
which would contain?
18:40
Python has one sopython.com/salad
they have their own language
we use english
English? whats that? I thought we were speaking American. XD
I'm Canadian
$('.NorthAmerica').find("Canadian");
Americans (USA) appropriated the term.
18:46
You wanna know why?
not really. if I did I could have googled it a while back
Because America F*** YEAH

« first day (3197 days earlier)      last day (1974 days later) »