« first day (2602 days earlier)      last day (2338 days later) » 

9:00 AM
Well, what does the compiler complain about?
 
and using like api.doCall({url: "someurlhere"})
I mean I am trying to default the type value to "get" if the user didn't provide it explicitly
 
@littlepootis It looks like Pana kizhangu(Tamil language)... The root of Palmyra tree.
 
In api.doCall({url: "someurlhere"}), I am not placing any value to type then it should get defaulted to "get" actually
I thought I wrote the code correct but I can still see type as undefined
 
No idea about TypeScript, but it would seem weird to me if it constructed a new HttpPayload
Let's wait for someone who actually knows things :P
 
oh yes I need to merge a new instance of that class with the provided object
I think you are right
I thought typescript does this by default
Hope typescript wrote whole code for my project already
 
9:06 AM
 
tastes good
enjoy
 
I want to know what this is so I can buy more of them
@SankarRaj Oh
 
@OliverSalzburg working now.. thanks
 
@SankarRaj Yeah, this is what I'm looking for, thanks
 
9:10 AM
@Mr_Green Awesome :)
 
This is our traditional food... Some Benefits quora.com/…
+ My grandfather once told me, If you ate this regularly, you will not get affected by diabetes in your life time.
 
Then it must be true!
 
yeah
 
    class HttpPayload {
        constructor(public url: string, public type?: string) {
            if (type === undefined) {
                this.type = 'whatever, boi';
            }
        }

    }

    function doCall(payload: HttpPayload){
        console.log(payload);
    }

    // Lets see what happens
    const withoutType = new HttpPayload("www.google.com");
    doCall(withoutType);


    const withType = new HttpPayload("www.bing.com", "someweirdtype");
    doCall(withType);
@Mr_Green
 
9:27 AM
eh, that must be a joke: wired.com/story/…
 
Hi
How to create a fixed size Array?
i did: var state = new Array(1);
and then pushed something into the array
result of console.log(state) is empty,"thisstate"
length is now 2
I want if array has 1 element, 2nd should overwrite first
 
new Array(1) creates an array with length 1
 
Wohoo its snowy so I can drift on my way to coffee!
 
@KamilSolecki ah okay.. that makes sense. thanks :)
 
when you use .push on it, length becomes 2 and your element is on index 1
index 0 is "empty"
what you can do is to work with a function that adds your elements to an array.
 
9:39 AM
no wait.. you are actually assigning the defaults through constructor
manually.. actually, I took oliver's suggestion which is working fine.. where I need to do just:
 
control it yourself. js arrays are kinda unlimited (real max size is around 4.2 billion)
 
payload = _.assign(payload, new HttpPayload)
 
Yeah, js doesnt really do the concept of a fixed array
 
or 2^32 - 1 🙂
 
guys check this easy to use framework: github.com/Rinozet/dvijok_framework - better than codeigniter
 
9:46 AM
@ЧеловекиPHP docs are down
 
@KamilSolecki yeah that free hostings sucks, it goes down for 1 hour a day
 
bah. that framework pollutes the global space.
👎
 
@KarelG its in the beginning, then all the globals are set inside the core
@KarelG also they may be usable even if global anywhere else
 
also, errors gets echo'd and there is an exit after that
 
@ЧеловекиPHP That looks a lot like PHP
 
9:54 AM
well its for now like this, you dont have to touch the core folder, the only thing what with you work is the modules folder thats all
the created module/controller/function instantly is accessible from the browser url and from the inner calls of modules
 
@OliverSalzburg for now it has long sessions and flash sessions
 
Even for PHP code, that's a new low
 
i've tried many editors, so some of them messed up the spaces and tabs, just ignore it :D
 
9:56 AM
maximum use of white space
ah it is your code?
 
your query handling is missing support for blob datatype ...
 
Then fix your code formatting and put your docs on GitHub pages
 
Nobody cares about your code unless you're able to properly present it
 
9:57 AM
^
 
Because this just screams that you don't care and people don't want to use code by someone who doesn't care
 
Oliver the criticizing CTO :P
 
Also, we might not be the ideal audience for a PHP project. We only love JS and everything else is considered crap
 
9:58 AM
Oliver Salzburg, CCTO
 
@ЧеловекиPHP lots of things work. Doesnt mean They are good.
 
put that on a business card and send it to me
@KamilSolecki PHP is divine
if something looks wrong to you, you're wrong
 
@KarelG oh did you show it to the PHP chatroom? @ЧеловекиPHP
 
$user = new UserModel()
$user->login = 'test';
$user->save();
just simple as that
yeah i've tried
but people there
are shity
:D
 
because they gave you some bad feedback?
 
10:00 AM
dude your query is asking for Bobby tables
 
Well, they have to write PHP code. That has that effect on people
 
@KarelG The JS spec limits array size to 2^32-1. You can assign properties beyond this number but they won't behave like array properties (e.g. won't change length)
 
bad feedbacks without arguments - is just trolling
 
Also, that code is bad. That also has that effect on people
 
@Sheepy where is the value being stored then? :D
 
10:01 AM
Still on the array but just like normal properties on a normal object.
 
the key is already at its maximum
 
dhS
Hi all
how to retrieve the value of select box in spring MVC fromdb
<td><form:label path="paymenttype">Client Payment Type:</form:label></td>
<td>
<form:select path="paymenttype" >
<form:option value="Select" label="Select" />
<form:option value="Monthly" label="Monthly" />
<form:option value="Quaterly" label="Quaterly" />
<form:option value="Half-Yearly" label="Half-Yearly" />
<form:option value="Yearly" label="Yearly" />
</form:select>
</td>
I need to fetch the value from "${client.paymenttype}"
 
it gets overflowed right?
 
If you are asking implementation details, you can assume they are stored as hashmap - again just like normal properties.
 
@Sheepy That's why I create every array as an array of arrays and then I use the first one. In case I ever need more, the space is right there
 
10:03 AM
sometimes when I see something like this in JS: 1..toString() - are they kidding? the additional dot, but hell this is bad code, but it works, so i follow them))
 
If you ever need more than 2^32-1, you need to graduate from in-memory array...
 
5. If len + argCount > 2^53-1, throw a TypeError exception.
6. Repeat, while items is not empty
    a. Remove the first element from items and let E be the value of the element.
    b. Perform ? Set(O, ! ToString(len), E, true).
    c .Let len be len+1.
7. Perform ? Set(O, "length", len, true).
I was just thinking theoretically
 
@ЧеловекиPHP you have things there that need critical attention. Just to not get people into problems, you should either make this repo provate or put a big bold text that this should not be used in its current state
 
@ЧеловекиPHP Yes, they are kidding
 
@KamilSolecki man i've tested many times this framework, it works perfectly
@KamilSolecki i've made my website on it
 
10:04 AM
boy. that it does work does not mean that it is safe
 
Try some sql injection
Or I will
 
your "framework" is hazardous.
 
@OliverSalzburg I'll stand in the corner, silently weeping
 
Just gimme the link to your website...? :D
 
@ЧеловекиPHP It's a neat type conversion trick... that I think I've never used in real code. (And I use lots of tricks on lots of code...)
 
10:05 AM
@KamilSolecki everything is fine, no sql injection, it is filtered on the inner DB
minute
 
@Sheepy apparently len test is now with 2^53-1
 
you are filtering sql injections on the db? what?
 
that is from ... MAX_INT
.____________.
 
dhS
can anyone help me
 
> spring MVC fromdb
 
10:07 AM
@GNi33 Query.sqlInjections.removeAll();
Duh
 
I don't know anything about this, but do you directly write javascript?
@KamilSolecki jeez, totally forgot about that. But are they logged accordingly?
 
Its little bit tricky to me to adjust same width for my fluid slider........... like 300px left and 300px in right................
 
@GNi33 of course: (few lines above) Logger.attach(query.logs);
 
Scrollbar slider i developed from swiper scroll slider
 
10:09 AM
Why do people keep coming up with new shitty paste sites?
 
@OliverSalzburg ive always wondered that
 
here is the repository
 
Is there money to be made with those?
 
> "Share einfach deine Texte & Fotos"
good god
 
There is likely more pastÄ™ sites than online calculators
 
dhS
10:10 AM
share sm names
 
@GNi33 Raus raus! Share them!
 
@KamilSolecki Verteilen Sie! Schnell, schnell! Heiß und fettig!
 
I have to need just adjust proportional width in left and right..............
 
@Momin You don't need to repost it. We ignored it the first time
 
10:12 AM
@GNi33 Jaa, gut! Wir jetzt haben deine data! (My german socks)
 
@KarelG That's because String length can be up to 2^53-1. The array index is still limited to 2^32-1.
 
@Momin provide a working example, otherwise noone will have a look at it. How are we supposed to find a problem quickly by looking at the code of a whole freaking library?
 
@dhS Lol rly
 
stop reposting your stuff, guys
 
10:14 AM
Okay @GNi33
I shared my github
 
@dhS you didn't even bother to answer my first question regarding this
 
dhS
have someone seen the problem
 
@GNi33 I like how you get the German version and I get English
 
dhS
pardon
 
@Momin uhm, the thing I specificly told you not to do?
 
10:14 AM
@Momin Thats exactly the problem.
 
dhS
i get the only solution
 
@Sheepy not really. You can pass string keys since it is an object :P
Or am I wrong?
 
dhS
you are right
is there any short cut to fetch the data in form:select
from database
 
I don't even know what form:select is
 
@KarelG Are we still talking about array length?
 
10:16 AM
I mean, I can have a guess, but as it's most likely a spring - thing that comes with an API, I can't be sure
 
@Momin look at it from another perspective. If someone comes to you and asks: my car does not work. Here is the car. Will you even Try to help him? Probably not, cause you were given close to No information, and you arent planning on spending your whole weekend on this
 
dhS
@GNi33 yes it is spring form select
 
especially if its black friday with 90% off for repairing cars
 
@dhS did you read the documentation for this?
 
!!tell momin mcve
2
 
10:18 AM
@momin If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
@KamilSolecki but i could not share all of my code here so i shared repository
 
Work from here
 
@KamilSolecki I need to remember this command
 
dhS
@GNi33 I saeched google find no solution on retreiving value in form:select
 
@Momin read the link cap posted. Come with a minimal, complete and verifiable example. We specifically do not want all your code, we want the problematic parts, reduced to an absolute minimum
 
10:20 AM
I don't believe you, but okay. What exactly do you want to do? Fill the select with data from the db, or read what has been selected by a user?
 
@GNi33 Yeah i used to always mess it up and type MVCe so now I Just remember its like MVC but not really :P
 
here s the website
please hack it or make an sql injection
or do wherever you want, it uses the framework: github.com/Rinozet/dvijok_framework
 
dhS
Fill the select with data from the db,
@GNi33
 
what does this have to do with javascript?
 
Okay @KamilSolecki I will try to make better.........with code snippet
 
10:24 AM
how you access your database is really something you'll have to figure out yourself
 
@KamilSolecki can you hack it? i want to know if its possible
 
Is there a JavaScript engine that does ARC
instead of Garbage collection ?
 
dhS
ok
 
@ShrekOverflow depends on what ARC is I guess
 
10:28 AM
@ShrekOverflow Yes. IE 7 and before.
 
hello everyone i'm working at the moment with hide and show Jquery animation and shortcodes from one slider plugin. the problem is: when use a click event to displaying sliders elements from that Plugin, they will be resize and display smaller sliders
 
@Sheepy They don't count
@GNi33 Resource counting and freeing
 
@ShrekOverflow What count then?
 
Modern ones
Post Chrome 35
 
None that I am aware of. Not that there are many modern js engines.
 
10:32 AM
@Sheepy There are quite a few
but very specialized, I remember seeing one for embedded devices
 
@ShrekOverflow I know. And not all for embedded devices. I just used Nashorn today.
 
whats the easiest way to verify this etag thing on a mac? chromedriver.storage.googleapis.com/index.html?path=2.33
 
@Sheepy :D you work on cool stuff :P
me jelly
 
eg chromedriver_linux32.zip 2017-10-05 04:18:47 3.92MB
e936493c0f4ceeb7f6b504a491daa25c
 
@ShrekOverflow My main job is sitting my baby boy. I am not sure you want that job >_<
 
10:36 AM
not that one :P
@Sheepy I don't want to speak against my job
but lets just say I am not built for it and I am so code starved to write a VPN in JavaScript without using OpenVPN as a normal human should.
 
lol
 
Although as a caveat
I have near SSH throughput :P
cause I am not actually relaying full blown ETHERNET frames :P
and can even strip out certain parts of TCP frames :>
(but thats in Mesh mode only, which no sane person should use)
(but then again, I am too code starved to even consider what I am programming)
 
@SuperUberDuper shell script
there is a question about that on SO that I have used for on Debian IIRC
 
@SuperUberDuper You don't, because what an ETag is, is not clearly defined
It's not meant for verification
It's meant for cache control
If I'm missing something, please educate me :D
However, those are actually MD5 hashes
 
@SuperUberDuper there is an etags command
 
10:44 AM
Which are meant for verification
$ curl --silent chromedriver.storage.googleapis.com/2.33/… | md5sum
6dc329fb8ecdff6a9f74eea053434662 *-
 
btw if you are downloading over https why would you want to validate the sum?
 
And that's how you check it
@ShrekOverflow People fake certificates and unknown unknowns
Also, what I just said regarding validation. ETags are not for that
 
On a google domain? I'd say if they can fake that, they can pretty easily fake the ETAG displayed on that domain too
 
can anybody recommend a workflow on taking a react component out of a codebase and putting it on npm?
to make it open source and used across projects
shall i compile it down to CommonJS?
 
@ShrekOverflow Seems like a good target. But, you're right, let's ignore safety because it's unreasonable
 
10:47 AM
No, I am not saying that lets ignore safety because its unreasonable
 
Sounds like it!
 
I am just wondering if someone could fake certificate and deliver you a fake payload
won't they be able to spoof that checksum aswell, that you are getting from the same domain?
Unless you got checksum from somewhere else
 
They are not meant for validation in the first place
I feel like I mentioned that recently
 
I updated that :P
s/etag/checksum/
 
But, yeah, they might. But maybe they can't. It doesn't hurt to make extra-sure
 
10:50 AM
Ok vOv
I only check hashes so far if I am downloading to make sure my data wasn't corrupted / dropped download. But I guess I'll start doing that too from now :|
 
I recently had a debate with myself about hashing passwords on the client-side during login, even if the wire is encrypted and the possible pros/cons of that. I came to the conclusion that it can make sense to implement security measures where the benefit is not apparently obvious
The thing is, there is not going to be a security hole in a thing you know or expect. It will be in a place of which you didn't think
So, if the budget allows for it, verify and encrypt everything
In practice, I do none of that obviously. I blindly trust everyone and everything. Fuck, I'm even currently building a new web app with that PHP framework someone posted here this morning
 
@OliverSalzburg In all of my old implementations I hash passwords before sending them on wire
Usually Sha256
but its just a cautionary thing
someone intercepting can just replay
 

« first day (2602 days earlier)      last day (2338 days later) »