« first day (1681 days earlier)      last day (3263 days later) » 

user895378
8:08 PM
@Sherif It's a single-threaded server. That doesn't necessarily mean it happens only in one process.
 
@rdlowrey Right, I didn't ask if it was single threaded. I asked if it was single-process
i.e. does it fork workers and have a parent process handle the socket connections, or is the event loop all within the context of a single process?
 
user895378
Neither.
 
user895378
I used to fork but that's a PITA and doesn't work in windows (where you don't need forking anyway because you can bind on the same port in multiple processes).
 
What then?
But if you bind multiple processes to the same ip/port who controls the event loop and how do you deal with IPC?
 
user895378
I'd rather not talk about it TBH. It's been closed-source for over two years and I don't particularly want to explain details until I open-source it.
 
user895378
8:13 PM
But it's totally possible to do using things available in a standard php7 build.
 
Anonymous
Is it worth implementing \Serializable{} to a class just to serialize an array only?
 
Anonymous
seems overkill
 
imo Serializable is both stupid and broken. If you need to convert something to pure date, just write a normal function, rather than a magic one.
 
@rdlowrey The reason I ask is because I've been working on an open source solution to the same problem in PHP, and one that has proven remarkably efficient compared to all the existing alternatives. I've just never looked into Amp before.
 
Anonymous
@Danack nah, I just wanted to serialize an array i.e. change to json format
 
user895378
8:16 PM
Yeah I'm sure there are plenty of people working on similar problems ... that's why I don't really talk about how it works right now ... because I want to crush the market when I do open source it at the same time as the php7 release ;)
 
Crush the open source market?
 
@rdlowrey Stupid markdown
 
user895378
@Sherif Last time I checked the currency of open source was users.
 
user895378
@PeeHaa lol I saw it no worries
 
user895378
It's just that anything worth doing in PHP immediately gets ripped off because the language has such a broad user base. I just want inb4 mass ripoff rights.
 
8:19 PM
Oh lol edit pings FTW \o/
 
Anonymous
don't let me hanging here people
 
ripped off in open source? Isn't that point?
 
user895378
@Sherif Yes, when it's open source that is the point. But it's not open source right now.
 
What is it specifically? I was just referring to this Amp thing I just learned about.
 
user895378
Sorry for the misunderstanding ... I'm talking about a massively performant userland http/1.1 + websocket server that uses my amp lib under the hood.
 
8:21 PM
Oh, so you authored this Amphp or you're just using it?
Sorry, I walked into the tail-end of this convo
 
user895378
Yeah that's my thing ... no problem :)
 
Anonymous
> my thing
 
Anonymous
:)
 
@rdlowrey Ahh, I see. Well, if you are interested I do actually have a working prototype that makes it possible to scale a PHP websocket server horizontally with simplicity in design. I'm actually happy to share ideas on that bit.
In fact, this design makes it possible to scale a websocket server across multiple remote nodes.
Much in the same way you scale PHP today
 
user895378
I've always just subscribed to the node.js model of scaling where you don't have to change anything at the application layer. You just add more processes. One for each cpu core. And then you add more boxes.
 
user895378
8:26 PM
And the routing happens at the dns and/or load balancing layer. The application doesn't need to know about it.
 
Well, websockets are stateful. So the application does need to know something about it.
Load balancing websockets isn't exactly identical to load-balancing basic HTTP.
 
user895378
Perhaps. I don't really see a reason why it can't be if you don't treat application global data as local to the process in which it's accessed.
 
user895378
But I see what you mean with regard to a stateful websocket application.
 
user895378
For example if I have two connections as an authenticated user and I log out on one connection that change in authentication state should be propagated out to the other existing connection.
 
Right, because in the case of websockets a socket isn't a 1:1 relationship between a request and a response as in the typical stateless HTTP request/response model.
The secret to making a PHP websocket server performant, however, is to never do any actual work inside of the event-loop itself :)
 
user895378
8:33 PM
pubsub all of the things :)
 
pubsub isn't a fitting topology for every use case, however.
 
@samaYo So make a toJSON method?
 
But if you have a single process handling all your sockets and multiple worker processes doing the actual work, in theory your event loop should never become your bottleneck. So scaling starts become as simple as throwing more servers behind a load-balancer.
 
user895378
@Sherif TBH you're almost certainly better-versed in this area than I. To this point I've only focused on making the actual plumbing of the http/websocket server as fast as possible.
 
user895378
@Sherif right.
 
user895378
8:36 PM
In any case, I'm going to resume coding but you just landed on the list of people to recruit for testing/input before wide release.
 
@rdlowrey Ahh, I started with this same ideology. Unfortunately what I discovered is that the server isn't the problem! gist.github.com/srgoogleguy/b741974c410a91b81a5e
It's how it distributes work ;)
 
user895378
I figured you were heading down the ZMQ road with that line of conversation ;)
 
user895378
The ZMQ manual reads like a tent-revival itinerary.
 
Well, it's like TCP/IP on steroids, with the added advantage of being able to build multiple localities.
Think of how IRC servers have leaf nodes and hubs.
 
Examples of security system developed in php?
 
8:39 PM
The bench marks are actually very impressive considering its just a prototype.
 
@SajjadKhan ?
 
@SajjadKhan What is a "security system"?
 
like stop data leaking system developed on php or other secuirty system on php
 
hardened php?
 
@SajjadKhan You seem to be under the impression there is some silver bullet?
 
8:43 PM
@PeeHaa @Sherif i just want to know what are good project ideas for final year project.. sorry for my bad english..
 
2297
A: What technical details should a programmer of a web application consider before making the site public?

victoriahThe idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven't really looked into before, don't fully understand, or maybe never even heard of. Interface and User Experience Be aware that browsers implement standards in...

The security paragraph is the silver bullet ^
 
user895378
@Sherif very much so. Nice work. Does any capacity currently exist for TLS-encrypting transfers with the ZMQ approach?
 
@SajjadKhan How about a trip-planning site that tells you how much you'll pay in tolls in the United States given the alternative routes?
That sounds like a fun project I would do.
 
@FlorianMargaine I don't think shotguns use bullets :P
 
@rdlowrey Not that I know. If you need end-to-end encryption you probably don't want ZMQ at all.
 
user895378
8:46 PM
:/
 
@Sherif i already saw that project not found interesting
 
user895378
@Sherif I feel like I remember reading something about there being plans to implement encryption in ZMQ but I might be imagining that
 
Typically because you wouldn't be using ZMQ over a public network, but even in the case of peer-to-peer internal encryption you could put an SSL termination point between them, I suppose.
Probably not trivial though.
 
user895378
yeah seems like it would be a difficult thing to achieve
 
What's ZMQ in a line?
 
8:47 PM
@rdlowrey Well, ZMQ is a brokerless queue. Meaning it's embedded within your application. If you really wanted to encrypt the data you would do it within your own application before sending it.
 
user895378
Especially considering not many outfits are looking to go all out for end-to-end encryption
 
@rdlowrey Well, if you're on AWS and your an enterprise-level shop I can imagine why you might
But yea, using openssl_* before sending the payload within PHP would do it here
@SajjadKhan Why not. It's a feature that many have actually demanded of Google Maps to-date. Plus it wouldn't be that hard to do aside from the fact that the government toll-road system has no useful API to extract said toll data.
 
user895378
ugh, implementing thing like TLS extensions manually does not sound like the kind of fun I'm looking to handle.
 
@rdlowrey No, not fun at all.
But really, if you're just using ZeroMQ for something like IPC to handle a transparent load distribution scenario between parent/child processes, you probably don't need to go that extreme for 99% of the use cases.
The chances that anyone with access to the SHM will likely mean you have bigger problems to worry about than whether or not your payloads were encrypted.
 
user895378
lol much bigger problems. Like NSA problems.
 
8:58 PM
Oh no you triggered the flag word
Now they're performing deep-packet inspection on your ISPs uplink.
 
user895378
pffft, too late. I just assume every device I have is probably pwned already.
 
user895378
/me switches to typewriter-only mode for all sensitive communiqués
 
Hello!! can someone guide me on how to secure the copyrights for my website...
 
You cannot
yw o/
 
@whatever You already own copyright for the stuff you created, so what do you mean by secure?
 
9:10 PM
I mean I have no idea what to do .. should I first launch the website then later go for copyright or do it before .. and how to do that?
@Danack
 
@whatever What do you think copyright is / works?
WHat is your actual goal?
One does not "go for copyright"
 
I have worked on new idea... I have developed website on that now I want to launch it but I don't want to be copied
 
The only way to prevent it is to not make it public
 
@peeHaa whatever one do let me know
 
That's not copyright - that would maybe be a patentable business idea, if you live in a country where business ideas can be patented.
 
9:13 PM
Pakistan it is..
here no body care about such things
 
You do understand the definition of patent is to reveal every aspect of your idea to the public, right?
 
@whatever No it is (probably) not
 
@Sherif .. did not understand
 
Software patents are about the dumbest thing ever, anyway. They are trolldom for corporate conglomerates to make one another's lives miserable by way of who has the most expensive lawyers.
 
Pakistan at least doesn't allow software patents
 
9:15 PM
@peehaa what do you mean? did not understand
 
And neither have they heard of proper urls :P
 
But that cost too much and I can't afford those costs.. they say there are five courts world wide to fully secure the rights. but not possible for person like me
Pakistan does not care about intellectual stuff..
 
The only guarantee you have about an idea in the Internet age is that it will be stolen. The question is why are you valuing the idea? The real value of the Internet is in the platforms you build and the people that use them. Not the idea itself. Think of how useful the idea of the telephone network was when the first telephone was connected to it.
 
Stop thinking everybody will steal your idea and just put your effort in making it the best
You cannot prevent anybody from doing anything
 
@whatever Software As A Service
 
9:18 PM
Yes.. I am just checking for the experts opinion.. I will have to go anyway..
 
SaaS is the only way to go
 
SaaS?
 
@whatever Yes, Software as a Service
 
@whatever You can trademark brandnames, logos, etc. to prevent someone from selling something under your name.
 
That will come next @Trowski
 
9:20 PM
And of course your code server side can be closed-source, but there's nothing you can really do about client-side code.
 
No I am interested in code ... I just want to protect the overall idea..
 
Claiming rights to an idea is just plain stupid
 
Code is no problem when you see what to do..
How so?? @PeeHaa
 
Think about that for a moment
 
I have been think about it for ages now.. lol
 
9:22 PM
And you don't see a problem with it?
 
I would like you kind perspective.. please explain
 
I'm not talking about an actual implementation here
Everybody can fart out ideas
 
:D
then?
 
It's true
 
Anonymous
 
9:27 PM
@samaYo Because he has yet to discover the difference between display_errors and error_log?
I'll be awaiting his next reddit post in 9 more years.
 
@samaYo Not to mention it's error_get_last() not get_last_error().
 
Can we burn that one with gasoline?
 
Yep, I recommend fire, and lots of it.
 
@Sherif "The only guarantee you have about an idea in the Internet age is that it will be stolen." - nah, a lot of ideas just get ignored and die.
 
Anonymous
9:33 PM
@Sherif he will need some time to figure that out, let's give him .. say ... another 9 years? :)
 
@Danack ignored and died doesn't necessarily conclude that it wasn't stolen by someone. Even worthless ideas can be copied since the cost of doing so is free.
 
They lack the heart... lol... :D
Recently I worked for someone .. he kept telling me to change things.. then at last I found out that he is actually copying another website.. :D
 
Good artists copy, but great artists steal
 
Now that is sure his website is not going to work because if you are not a developer yourself you can't compete with such high quality services... but that made me alert that people try it anyway
 
@whatever The idea is that when you make your super awesome million dollar idea public you should already have a head start so people copying you have to play catch up // ketchup
So yeah if somebody else comes around and does the same thing only better I would say the sytem works as expected
 
9:42 PM
now that is what I was thinking.. @PeeHaa :) Catch up is the only solution..
 
10:00 PM
mmmh catch up
 
10:37 PM
Hello
 
11:04 PM
@bseekinsDEV hey
 
how goes it
 
Pretty good. You?
 
found a bit of national pride on imgur: imgur.com/gallery/TrvCa
not my post, but it gave me a good kind of smile
 
good evening
 
lies
 
11:19 PM
@tereško Hi Teresko, I need your help for a codeigniter issue
 
you most definitely don't need my help
 
Remove codeigniter... issue resolved
 
funny
 
ask @Sherif, he knows a lot about codeigniter
 
I do?
 
11:20 PM
:(
 
do you actually have a question
or are you making a survey ?
 
I?m making a survey
come on Teresko I'm a bit tired...it's the end of the day
 
its 2AM here , sue me
 
1:20 here :D but I woke up at 8
 
There are 2 kinds of startups: those that achieve some traction on top of code of which they are ashamed, and those that go out of business
 
11:23 PM
i wish php supported
foreach($iterable as $index =>){
     rofl($stuff[$index], $baz[$index]);
}
 
@PeeHaa going pretty well just learning Laravel
 
@bseekinsDEV Larabad
 
@tereško I'm a noviced on Codeigniter, so please be patience...I don't understand why after edit routes and controller if I type a url (without pass through the homepage) I get the 404 error
what the ... I sussposed to declare for make it works?
 
you probably do not have mod_rewrite set up
 
@Wolf why do you say that?
 
11:27 PM
@tereško my htaccess:
<FilesMatch ".(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
# exclude any paths that are not codeigniter-app related
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} !^/server-info
RewriteCond %{REQUEST_URI} !^/docs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
 
it also has to be enable in apache's config
also, I am going AFK
 
please wait
 
this is not an help desk
 
@tereško on apache I already enabled it
and it works (since I can see the homepage)
@Worf Hi Worf, are you sure?
 
i am
 
11:32 PM
:)
damn, I'm screwed
 
why codeigniter in the first place?
 
I am forced to work to use this framework
and I'm not bad, but I do not understand why for some url, the direct access is forbidden
 

« first day (1681 days earlier)      last day (3263 days later) »