« first day (3234 days earlier)      last day (1707 days later) » 

7:27 AM
morning
o/
 
morns
 
7:40 AM
mornings
 
8:00 AM
sporadic occurring occasionally, singly, or in irregular or random instances
 
Slightly unrelated as this is SQL, But in a table, how can I find a row, with one field (user_id) as either 1 or 3, and the other field (chat_id) is common, value 4.

Basically each user can have many chats, but only one chat_id is shared by user1 and user3, I want to find that.

Table schema:
uid (unique id)
user_id
chat_id
Another way is
"find the two rows that have userid as 1, and userid as 3, and have the same chat_id"
Nvm, got it with count:

```
DB.userchat.findAll({
where: {
user_id: [1,3]
},
group: ['chat_id'],
having: DB.Sequelize.literal('COUNT(*) = 2')
})
```
 
 
2 hours later…
10:39 AM
posted on August 23, 2019

When I was little, I was able to work toward all my goals equally. It didn’t matter if I was training to become an astronaut, practicing to become a superhero, or preparing to one day eat at a restaurant (my family didn't go out to eat all that often). Every dream I had seemed equally attainable. So I’d devote an equal amount of time. Now, I'm finding that I have to pick and choose between d

 
11:05 AM
Morning, lads.
 
11:41 AM
ldap_parse_result() sets size of LDAP Controll LDAP_CONTROL_PAGEDRESULTS to 0 – #78450
 
11:55 AM
Hii
I have one integer which I am using as string and then I am trying to order it by desc
for example:123456798 should be 987654321
https://3v4l.org/9iHIs
Can someone take a look and tell me what I am doing wrong
 
No possibility make Singleton in the PHP – #78451
 
@Exception not using explode to separate the values into individual pieces, not using usort or any other sorting function, and also not using a debugger to debug your code
!!debugger
 
@Danack this is what I am trying not to use any inbuilt php function
 
Then just not using a debugger is the main problem.
 
12:01 PM
are you trying to say that not using debugger is the main problem.. lol
 
12:12 PM
Yes. Your code isn't working and instead of solving the problem with the tools you have you're asking random people on the internet to debug your code for you. That's not a sane workflow.
 
Well you are correct..Give me time I will try myself.. Thanks
Let me ask here in different way.. how can I update character inside string in while loop?
 
Using it's offset ?
Also hello evereyone
 
hmm
 
12:47 PM
@Exception use the debugger to learn what your code is actually doing and then you should be able to answer that yourself.
 
Or I'm writing bollocks
Or there were always memory allocations issues in chunk_split ... I suppose the former
 
seems like my xdebug in vscode not working
 
I use xDebug with VSCode and I can confirm it is working
 
Yes for my project it is working fine .. but for single file it is not working..
may I know ur launch.json and setting.json configuration
 
1:06 PM
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
 
cmb
@Girgias, never mind the bollocks,
but always be sure no overflow can happen (particularly for mem allocations).
 
Yeah I'm trying to get my head around it
But I think I'm just using safe_emalloc wrong
Cause I'm getting Memory Exhaustion on every single valid chunk_split test
 
The more I read the PHP src, the more I wish It was written in C++ with actual memory management xD
Sweet sweet class destructors
 
cmb
maybe something like zend_string_safe_alloc(chunks+1, endlen, srclen+1)?
not sure about the details
 
Oh yeah that's an idea
 
1:21 PM
Nobody bothered to reply to my internals post yet so I'm kinda stuck about how to add my submissions, and considering I'm a social recluse who has nothing to do on a 3 day bank holiday, that's problematic ¬_¬
 
Let me throw in a reply and see if this makes stuff moving
 
Appreciated.
 
@MarkRandall Reclusive Randall... sounds like a gamertag. =P
 
lol, perhaps, but I don't tend to use my RL name as a gamer tag, too many strange people on the internet willing to take things too far.
 
But you said you're a recluse... go ahead... live a little. =)
 
1:47 PM
@cmb seems like what you wrote works, let's see on CI.
 
@Exception Reinventing the wheel is not top favourite part of programming. What ever you do avoiding already inbuilt functions, be almost certain that your work result will be slower. This in 2 secs of searching or modified for your case.
Hello.
 
2:14 PM
 
... does that have... claws... in its mouth?
 
 
2 hours later…
cmb
3:54 PM
@Tpojka, except for educational/entertaining purposes.
@Exception, you may want to search the web for "bubble sort".
 
Sure but good exercise is also learning how to find best solution. Danack was right with debugging environment but from problem position I always look through Perfect Question Skeet's article. Well defining problem is 50% of solution.
 
Do I need to add something to UPGRADING or NEWS when i merge the str_pad condition removal ? (c.f. github.com/php/php-src/pull/4613/files)
Or because it's a warning removal it's irrelevant ?
 
cmb
4:21 PM
@Girgias, unless the former restriction was explicitly documented, I see no need to inform in UPGRADING or NEWS.
 
Doesn't look like str_pad has any documentation about error conditions :(
And I forgot I had other changes in the promote warnings to error PR for str_pad and I can't reopen it because I forced pushed
sight
 
5:21 PM
diff makes worng in hour – #78452
 
Hello
 
 
4 hours later…
9:01 PM
Document pcntl_signal's $siginfo array – #78453
 
 
1 hour later…
10:06 PM
Multiple numeric separators in bin/hex numbers cause fatal error – #78454
 
 
1 hour later…
11:21 PM
Access violation of private trait members – #78455
 

« first day (3234 days earlier)      last day (1707 days later) »