« first day (3862 days earlier)      last day (1069 days later) » 

1:03 AM
@BenjaminGruenbaum @mosho @zirak no way to get ahold of you guys other than here, just hope you're doing alright.
3
 
Anyone up fpr a challenge?
Would you like to play a game?
 
1:58 AM
 
2:23 AM
Hi all, I m having issue with using iroot plugin in capacitor project
 
 
3 hours later…
5:02 AM
Hello everyone,
 
@SalmanAhmad-MeanDeveloper 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.
 
Any body please help me. I am stuck in a situation which i am unable to find the solution. Please see this stackoverflow.com/questions/67502044/…
 
Does anyone recall how to set "selected" on an option element in react? Im trying to avoid using react-select because this default functionality should work
Ill do this programmatically in a loop result.push(<option value={i} key={i} uuid={classes[i].uuid} selected="selected">{classes[i].shippingRule}</option>); but it in the react code it comes out without any of the options selected
 
5:27 AM
I realized I need to set a defaultValue property on the select parent with the value of the object I want to default to
Really not trying to overengineer a select dropdown with react-select and controlled components and all that extra stuff
 
 
2 hours later…
7:53 AM
0
Q: How can i add horizontal scrollbar on top and bottom of md-table?

its meI have implemented a horizontal scrollbar on the top and bottom of the table but I could see only the bottom scrollbar. But I would like this scrollbar to be also on top of the table. I have used jquery code for scrolling and directive for the table. Expected : Currently, I See Only the bottom b...

 
 
1 hour later…
9:13 AM
@Loktar I have a baby so being woken up by missiles once in the middle of the night is kind of secondary to being woken up 5-6 times in the middle of the night by the baby
2
 
 
1 hour later…
10:41 AM
But yeah terror is super shitty
Mosho and Zirak haven't been here in two weeks so they don't get the ping - I'll ping them myself
How have you been doing?
 
 
3 hours later…
1:17 PM
Anyone around?
I have the craziest thing happening
Im actually getting different results with 2 different but same [object MouseEvent]
Enter key and clicking button manually creates 2 different results
 
1:44 PM
Enter isn't a mouse event
 
Hi @BenFortune I didnt think so either
but
newListingNextBtn.addEventListener('click', function(e) {
	e.preventDefault();
	fileUploadForm.style.minHeight = '29em';
	console.log(e + ' Go Entered Clicked');
	nextPrev(1);
	return false;
});
that e inside console.log shows it as
and My CL says "Go Entered Clicked" just for visual ease
to cover "Go" on a mobile keyboard, Enter on a real KB and clicked via the mouse
all 3 trigger this listener but Im having a real strange occurance
Outlined above
wayyyy above
 
You got an MVCE?
 
Hmmm Dont know what MVCE is
 
Since it is only HTML and JS, both of which are easily viewable by anyone on the www Id be glad to share files
Ohhhh
Yes I see
I do... Kinda
the code I posted above a few minutes ago
but I think the real issue is only reproduceable in real time on my site as I wouldnt know any other way to show you
Plz allow me to explain
On this page: (No Ads) epicmotos.com/classifieds/add.php
If you enter a model and click "Next" it goes to the next "phase" and everything looks like it should
but if you enter a model and hit Enter or Go it goes to the next phase but ignores ONE very important yet simple line
No matter what I do If I use enter or go it ignores fileUploadForm.style.minHeight = '27em';
and even stranger is that it executes the code b4 and after this line
Infact all I really need is
newListingNextBtn.addEventListener('click', function(e) {
	e.preventDefault();
	nextPrev(1);
});
everything else is just testing
I spent the full day yesterday trying to figure this out
and its so simple it doesnt make sense that it doesnt work
Ive tried everything imagineable
Ive even tried forcing fileUploadForm.style.minHeight = '29em';
inside the event listener and Ive even tried lowering it in the code inside of showPhase()
plus lots more
Everything I can think of
It really doesnt make sense that it doesnt work
 
2:08 PM
Doing alright, new job, son graduates in a couple of weeks.

Congrats on the new baby! (boy or girl)? Hope you continue to be safe/doing alright.
 
2:22 PM
@BenFortune I cant really produce a MVCE as I'd have to spend a month learning JSBin usage and such and reproduce a lot of html, css and JS (And would be reproducing my own code elsewhere(Think duplicate content))
Hi @JBis... Always respecting your wishes elsewhere
Well I might have to ditch the Enter and Go functionality for now and return to clicking Next
Its only a few lines tho
and Im game for playing
;)
actually its more like an ammendment to a line
and only a few lines of full responsibility
 
2:50 PM
Quick Tip: Dont make a game engine in HTML5 Canvas...
Thanks for coming to my ted talk
 
3:01 PM
Wow, my 3rd highest voted answer just got its first downvote :D
 
@MisterSirCode if only someone told you...
Apr 15 at 12:50, by JBis
@MisterSirCode any reason why you don't use a game development application like unity?
 
@Cerbrus How old is it?
 
2014
 
Probably just a jealous kid then
salty you have a bunch of upvotes
 
most likely
 
3:10 PM
what are your thoughts on private attributes with getters and setters in typescript? to me they seem unnecessary.
 
@JBis wdym?
 
i didn't use attributes much when i was using react in the past
private or otherwise
 
@JBis Private getters and setters attributes are likely for APIs that want to keep something inaccessible from outside of the class. Likely some kind of inherited feature of methods or classes that just works for setters and getters
Really the only good purpose I can find for private fields is game configurations and save variables
 
@MisterSirCode ik what they are used for
 
(like if you dont want someone just typing class.money = 99999 in the console)
@JBis Ah, alright.
 
3:14 PM
it's much more effective to let users hack the game all they want, just detect it and when it comes time to present/store the score, make it 0
 
3:37 PM
but thats boring.

Back when I was first getting into gamedev, I would make a hidden method system with strange names (users could easily see the CSharp source)

This would silently increase the difficulty of the game based on how much the score / money / skills were upgraded in the game at a set speed
Thats actually how a normal RPG works, but I unbalanced the system purposefully
it would get exponentially harder VERY fast.
To a point that was unplayable
cheaters arent beaters.
 
how is it boring
you give the cheater no hint that they've been caught till they're done
 
true, but all youre doing is resetting the score
 
now they have to figure out what exactly they did that caused them to be caught
 
a lot of games do that
but you could make it fun, and either humiliate the cheater, make the game harder, or something more creative
 
leads to a much more fun cheating experience
 
3:39 PM
Like, GTA V used to give cheaters a DUNCE hat and cleared their money
and they were forced to wear that DUNCE hat while having no money
some games have very creative ways of attacking and humiliating cheaters
@KevinB Wait, so youd want to make the cheater have more fun?
 
yes
that's the point of the game is it not?
 
lolz this conversation
 
Well, I guess I do actually enjoy AOB patching and writing lua scripts for pointers
it is pretty fun
so having the game purposefully making it harder
would provide an interesting challenge
 
it's only cheating if you get caught
 
Well, all of the fun games I play are mostly singleplayer and dont anything about cheating... and I can patch AOB scripts into the game with no trouble at all
And AOB relies on searching result values in the raw CPU data of the game
so the cheats arent even patched when the game updates lol
@KevinB That is true... Or you could just call it modding. Its practically the same thing when it comes to games that dont officially support modding frameworks
Now what I really enjoy... full code injection... now thats fun.
Its easy to setup, and I get to remake the cheats every time the game updates, so it doesnt get boring after just making 1 cheat and it working forever
 
 
2 hours later…
5:34 PM
posted on May 13, 2021 by Bindu Suvarna

Hi, everyone! We've released Chrome Beta 91 (91.0.4472.60) for iOS: it'll become available on App Store in next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Bindu Suvarna Google Chrome

 
 
3 hours later…
8:05 PM
Woah inactive
@KevinB my one stupid question for the day
 
@BeerusDev the answer is yes
 
var item = {
                "__metadata": { "type": listItemEntityType },
                "Title": $("#dTitle").val(),
                "Program": programName,
                "Deliverable": $("#dDeliverable").val(),
                "To": $("#dTo").val(),
                "Date": $("#dDate").val(),
                "Approved": $("#dApproved").val(),
                "Notes": $("#dNotes").val(),
				"Year": $("#dYear").val()
            };
Trying to post this item it works fine, but posts the date differently than if it was created in the sharepoint list. DD-MM-YYYY
"Date": $("#dDate").val().moment().format(MM/DD/YYYY),
I can't wrap my head around this not working, i try that and it no longer posts
 
isn't .moment supposed to be called on date objects
 
That answers my question
Told you it was a stupid one.
Is there any way to maybe go around that so I can have the date post the same format ?
 
wdym
make it a date object
 
8:10 PM
well in the form, the dDate value is a date type
 
input type=date?
input values are always strings
 
It is a string, but it is a date type so users can select from Calendar
 
the type attribute for an input is different than a js data type
 
8:29 PM
when you call .val(), or .value, you will get a string
 
My site collection is /Projects

Subsite /Projects/Site1 it posts the data as YYYY-MM-DD format

Subsite /Projects/Site2 it posts the data as ISO String format.

why does it do this if I am using literally the same code its just posting it based off of a program value?
 
lol
 
crying out loud
 
get your ISO shit together
 
8:50 PM
@Brett 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.
 
Sorry this is the script I need help with
 
|| formatting Brett
 
@Brett Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
2 messages moved to Trash
 
!!ksp or subnautica
 
8:58 PM
subnautica
 
it's almost as if james is paying attention to what's happening in the world
 
i'm trying to get help about the below script. I would like to attach multiple images instead of just one like the code below can do. How would I attach more then one image editing this code?
function emailImage(){
  var EMAIL_SENT = "EMAIL_SENT";

   var sheet = SpreadsheetApp.getActiveSheet();
    var startRow = 2;
    var numRows = sheet.getLastRow();
   // Fetch the range of cells
   var dataRange = sheet.getRange(startRow, 1, numRows, 6)
   var data = dataRange.getValues();


  for (var i = 0; i < data.length; ++i) {
    var row = data[i];
    var emailAddress = row[0];  // First column
    var subject = row[1];       // Second column
    var message = row[2];       // Third column
 
lol this question
0
Q: electron setSize with animation not working

Sandor RozsaI'm using this code to resize my electron window on OSX: document.getElementById("resize-btn2").addEventListener("click", function(e) { var window = remote.getCurrentWindow(); window.setSize(1024, 786, animate); }); It is working fine (the resizing) but if I try to use the "animate" ar...

 

« first day (3862 days earlier)      last day (1069 days later) »