« first day (1249 days earlier)      last day (3698 days later) » 

1:00 PM
Just because the ALIEN Team Lead Is Good in it
 
Meh
 
Now We want to prove the PHP as the best Option to work in
 
@NikiC Okay, let me read through the comments there :)
 
Google search says Python is the better choice But it depends on Necessity
 
Google gives people cancer too, apparently.
 
1:01 PM
:P
probably
so coming back to point
 
Chance to learn Python at work. I'd take it.
 
If it works, you learn something new. if it doesn't you can say "I told you so"
 
@OMTheEternity A Programming language is a tool.
A tool's effectivity is dependant on the job at hand.
 
Ya thats true
 
1:02 PM
@cspray is your new avatar a dog lying next to a turd?
 
@Fabien hahaha exactly !
 
@Fabien
 
@DaveRandom No. It is a dog laying next to this favorite chew toy
 
PHP can be superior to Python in some areas, where the vice versa applies to other areas.
It all depends on what you're trying to do and what your requirements are
 
Although without making the image larger I can definitely see why you might think that is a turd
Fortunately he's house trained and does not shit all over my house ;)
 
1:03 PM
@SecondRikudo what about the AREA I mentioned in here?
the Webservice for CRUD Operations
 
@cspray It looks like he's just chilling next to a turd as if to say "yep, I took a crap there, deal with it"
 
@DaveRandom Dammit, now I wanna change my avatar
 
@OMTheEternity How many parallel connections? How many total users? What storage engine are you using? CRUD operation on what?
 
:-P
 
@YourCommonSense What would the input for a [?n=?s] placeholder look like? I.e. would it be [[$ident, $value], [$ident, $value], ...] or [$ident => $value, $ident => $value, ...]? In the latter case, that syntax would require some additional delimitation that ?n is taken from the keys and ?s from the values...
 
1:05 PM
@SecondRikudo there could be the Massive users as it would be on a Mobile Device, Mysql Storage engine Will be used for CRUD Operations
 
I smell the next question will be "which framework should I use"
 
Define "massive"
 
@SecondRikudo There will be 1 to many connections of a device (Here many could be 50) but all the 1's will connected through Google Cloud API
@Patrick -ve.. I just struggling to chose Language
 
@OMTheEternity Alright you're feeding up pieces of the puzzle one by one and I don't like it. Let's start from the top. What does your app do?
 
Ok
I am jotting it down in points
 
1:09 PM
@DaveRandom Reminds me of this
 
My App does the following:
Devices with IMEI will be enrolledin Google Cloud APIs and Mysql Databases
1) Communicates with other enrolled devices.
2) One enrolled device sends/retrieves information to/from other enrolled device
Hence the basic functionality will be sharing the information among different devices
Ofcourse the devices are supposed to be enrolled/registered for each other's connectivity
Please tolerate my english Sorry @SecondRikudo
 
What are some good reliable VPS hosts that will not disappear tomorrow that you have used? I have convinced him to get VPS
 
@David I use RamNode, they're great.
 
$2 a month is that for real
@SecondRikudo
 
@David It is, that's the plan I'm using right now, and it's plenty for me.
Don't forget the use the coupon, there's almost always have one (check the top bar of their site)
 
1:17 PM
@SecondRikudo Yes I see. So it could potentially cost $1.75 a month?
Its 25% off
 
Yup
They're really good, I've had contact with their support and got help in no time too.
 
@SecondRikudo anything you can suggest?
 
@SecondRikudo How long have this company been around do you know? I can't have them disappearing randomly one day
 
Hard to judge, use the language that seems best for you, if you guys are all comfortable with PHP, go for it.
I doubt it'll make much of a difference without a HUGE userbase.
 
@SecondRikudo wow, it just sounds like a scam, 2$ :O
 
1:19 PM
Seems all plans only offer 1 IP.
 
@David AFAIK they're around from about 2009, they don't seem like they'd disappear one day.
I have a VPS from them for over a year now.
 
I've sadly not found a good VPS provider yet that will offer me 5 IPs that I have with my current one.
 
@NiekBergman You can ask for more when you pay. It costs like an extra 1-2$ a month.
 
Not that I dislike my current one.
@SecondRikudo: Ok, that would work, I guess.
 
@SecondRikudo It's almost too good to be true that's what is making me suspicious and then a coupon also to make it even cheaper
 
1:20 PM
@SecondRikudo RamNode user too, no problems so far.
 
@David I haven't had any trouble with them so far, and they've been really helpful in support both times I had to visit there.
 
@NiekBergman 5 IP's ? Isn't that overkill?
 
That's 4 IPs too many
Or 249 too few :)
 
@Jack lol
 
@HamZa: I like IPs :)
But yeah, I have my reasons for having separate IPs...
One used to be for honeypot research, but I no longer do that.
Though I'm planning on picking that up again.
 
1:28 PM
"Komodo Edit" vs. "Sublime Text 2" ?\
 
Neither
 
what elsE?
 
PhpStorm
 
@CSáµ  Komodo IDE
 
Anyone worked with Zend Studio?
 
1:29 PM
Yes, it sucks
 
I'm currently using Eclipse, but I now have a license for Zend Studio too. Haven't checked it out yet though.
 
@NiekBergman It's a strictly worse Aptana
 
Once I downloaded PhpStorm I dumped that sorry ass called Zend Studio.
 
@Jack it's not an editor, it's a full IDE
 
Talk to the humanoid that cares.
PhpStorm all the things!
 
1:33 PM
I'm still in love with Komodo IDE
It's just so fast compared to others I've tried on large codebases
 
@NikiC Yes, you are right. As a matter of fact, [?n=?s] expression cannot be called a placeholder at all. May be I should limit the usage of braces to placeholders only, i.e. [?i] but no complex expressions like multiple insert or the above one
 
@CSáµ  I don't have any complains about sublime
 
@NiekBergman currently using it for a customer. It is ok, but it is by far as good as PHPStorm IMO
 
good evening
 
1:38 PM
@Patrick good carreau
 
oh sorry , good morning , ty for the link Patrick
 
1:58 PM
@Ocramius Your wording is a bit strange. To clarify: you are saying it is every bit as good as PhpStorm?
 
no, it is not
 
You are saying Zend Studio not as good as PhpStorm, correct?
 
You should have just said "it sucks".
 
^ we would be correct (:
 
2:07 PM
^ Fatal error: Unsupported operand types
btw, is this how it should work:
$a = [];
$b = new StdClass;
var_dump($a++);//array(0) { }
var_dump($b++);//object(stdClass)#1 (0) { }
?
 
@AlmaDo lolwut
 
@DaveRandom lolcrap..
 
wtf are you trying to achieve there?
 
nothing. Just expected to see 'unsupported operand types'
 
Yeh I would expect an error when you try to do something so blatantly wrong
 
2:12 PM
but $a = []; $a+=1; is a fatal, while $a=$a++ or $a++ isn't
 
I wouldn't expect a fatal, that seems wrong
 
I can understand why, but still strange
and what should be $a++ for array?
or object?
 
It should be E_NOTICE and the same thing out that you put in
 
Should be an unsupported operand. ^^ I'll agree with the E_, but perhaps exchange NOTICE for SEGFAULT
 
it isn't segfault
 
2:15 PM
E_YOURCODEISSHIT
 
^ there you go.
E_Y_U_INCREMENT_ARRAY_STOOPID
 
The whole array addition thing makes life complicated in this respect, because += does actually do something sometimes
 
Meanwhile, -= doesn't perform the inverse.
 
Maybe ` $a = []; $a += 1;` should do $a += (array) 1;
 
^^ That'll just continuously overwrite the first element, no? Each time it's called.
 
2:18 PM
All of this is fucking nonsense if you ask me, especially since Cartesian product is so rarely useful, most of the time I want array_merge behaviour
 
$a = []; $a += 1; would be roughly analogous to $a = []; $a[0] = 1;
 
@DanLugg Yeh but if you put shit in you can expect shit out
 
I'd rather expect a more fatal strain of shit, the type that makes my app crash into a volcano.
 
also, what's the crap with null:
$x = null;
$y = null;
$x++;
$y--;
var_dump($x, $y);//1, null
 
anyone knows (or has good reference) for the standard PHP session files filename pattern? sess_XXX whereas I'm not so sure about which characters are used in total for XXX
 
2:20 PM
/me wants to close this question but needs appropriate reason
 
^ minimal understanding (I've even didn't read it)
 
I'm storing a form submission thats been encrypted. What type of field should I be using. Presently getting an error due to incorrect string value
 
@AlmaDo Do we still have that reason?
 
@DaveRandom Operand casting is determined by the operator, correct? Nevermind.
 
oh, it's included in normalization
@Leri yeah. You can always copy-paste it to 'other..'
 
2:25 PM
Voted as typo.
 

PHP? C#? Whatever.

4 mins ago, 2 minutes total – 11 messages, 2 users, 0 stars

Bookmarked 4 secs ago by Dan Lugg

 
@hakre Since it's possible to define your own SID generator func, basically anything the fs will accept afaik
 
@DaveRandom yes, but speaking more of defaults by what configuration offers. I think length varies, but it's base64 encoded or so, isn't it?
I should perhaps just read the php.ini.dist
 
> The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ",")
 
@DanLugg trolled.. :P
 
2:31 PM
^ so it depends on the value of that ini setting, and there's the char list each setting will create
If that setting is set to something other than 4,5,6 you get E_WARNING and it defaults to 4 - lxr.php.net/xref/PHP_5_5/ext/session/session.c#414 @hakre
 
Does someone know how I can inject/configure a custom value in doctrine that I can use in the entities? (I need to set the language so that I can use the proper lang field in the getters)
 
@DaveRandom Get outta there!
 
@DanLugg Occasionally float in there anyway
 
Yea likewise. Especially to gripe about WCF.
 
@Jack So, you need help solving that second leak?
 
2:37 PM
@DaveRandom biggie thx :D
 
Why do so many web hosts have these amazing looking homepages and then the actual choosing your package and signing up process looks like a 12 year old designed and coded it with form controls inconsistent sizes and vertical alignment with labels is off by a few pixels. I have seen this in loads of places
 
hello all ... Is there any tool that run columnar database mysql based on php
 
what is 'columnar database'?
 
@AlmaDo is that a new type? besides relational/key-value store?
 
I have no idea.. I'm noob. I know.
 
2:43 PM
http://en.wikipedia.org/wiki/Column-oriented_DBMS

https://www.youtube.com/watch?v=8KGVFB3kVHQ
 
@AlmaDo if your noob, im noober. :)
 
@HassanMagdy oh, that..
no clue if it can be called 'columnar'. so I'm noob (:
 
i just tag mysql as relational, i dont know if it is columnar too.. :)
but if basically what you want is to use mysql in php, yes there's mysqli and PDO
 
AFAIK - there's no columnar storage-engines in MySQL
 
0
Q: Connect to Columnar Database Using PHP

Hassan MagdySQL Server 2012 introduces a new index type called a column store index and new query operators that efficiently process batches of rows at a time. These two features together greatly improve the performance of typical data warehouse queries, in some cases by two orders of magnitude. This paper o...

help me
 
2:48 PM
^ your question is how to connect PHP to "SQL Server 2012"?
 
@HassanMagdy you should start with realizing that SQL Server 2012 != MySQL
 
or if mysql supports columnar stuff
^^ that too..
 
so if there's something in SQL Server that supports this feature - it has nothing to do with MySQL
 
there are lot of articles about that idaea in mysql
 
ok, home run. later room
 
2:49 PM
also there are SkySQL & MariaDB
 
well, i'm noober than @AlmaDo so i dunno. sorry. ;)
 
+ infinidb + infobright
 
@HassanMagdy simple: there's no columnar storage engine in MySQL. Thus, it's not supported there
 
but I need simple start for that
 
try with other DBMS
 
2:50 PM
Yah I know it's not inside mysql but there are lots of engines mysql based
just like the above
 
@HassanMagdy mysql-based != mysql
 
@HassanMagdy why does it have to be columnar?
 
is there a link you can give that says mysql can handle it?
 
Real-time, Hybrid OLTP/OLAP Now Possible with Columnar, In-memory Databases
check that
 
@NikiC hey, i'll try to figure it out heh ... in the middle of some awful code refactoring process =S
 
but thanks for the hints!
 
@Ocramius With doctrine, I need to inject/set a language that can be accessed from entity methods (to read different fields depending on language). Do you happen to know a way to do that? I've been reading docs for quite a while now and I'm lost :( I really do not want to use global state for this... :x
 
columnar for both OLTP/OLAP
 
@Patrick Have you taken a look at some Doctrine extensions? I always end up using one or another of gedmo's extensions in every project that I do, and they're brilliant. There's a translatable behavior extension that sounds like exactly what you need: github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/…
 
3:15 PM
Solved my first bug that didn't have a google answer but other people had the same issue.
Sadly it was for Drupal.
And fairly obvious
 
@Peter thanks, but I don't think it can do what I need. I am working with a legacy database which has the different translations in the same table, ex column names: title_0, title_1, title_2
So I was thinking of just handling this within the getter but I need to know the current language for that
 
Mornings
 
@Patrick Gotcha. Sounds like a good use case for a Doctrine listener, specifically the postLoad event: doctrine-orm.readthedocs.org/en/latest/reference/events.html
 
still no one can answer my ?
0
Q: Connect to Columnar Database Using PHP

Hassan MagdySQL Server 2012 introduces a new index type called a column store index and new query operators that efficiently process batches of rows at a time. These two features together greatly improve the performance of typical data warehouse queries, in some cases by two orders of magnitude. This paper o...

 
3:30 PM
 
seems it is compatible with mysql, so you could use mysql_* functions but it is deprecated already so i dunno how you would do that using mysqli_* instead
 
@HassanMagdy The only column-oriented database that I'm familiar with is Apache Cassandra. There are plenty of PHP tools for Cassandra, including an official PDO driver: code.google.com/a/apache-extras.org/p/cassandra-pdo
 
@Peter i thought cassandra was a key-value store? lemme check yeah its a column store..
what's the difference of a key-value store and a column oriented? hmm..
 
@reikyoushin Key value is really really simple. Key and value. Usual use case for these is caching (Memcache, Redis).
 
@Peter but key value can be column oriented too..?
 
3:43 PM
@reikyoushin Yeah, you something that looked column oriented using a key value store
Cassandra is actually referred to as a hybrid, although I'm not sure what that means :D
 
@Peter key value is equal to nosql then?
btw i'm currently reading this.. slideshare.net/arangodb/…
(sorry, noob here)
 
NoSQL is a big category. Key value (Redis), column (Cassandra), graph (neo4j) and document (MongoDB) databases all fall under that category.
 
@Peter ohh.. so nosql basically means non-relational. :)
 
> Only variable references should be returned by reference
^^ Y U NO FATAL OR GTFO
 
@reikyoushin Yeah, pretty much. I guess you could have a relational database that didn't use SQL, but I haven't heard of one :D
 
@SecondRikudo What's the problem, that he reused the global?
 
@DanLugg That he failed to mention it.
 
Ah, gotcha. Commented on something different anyway.
 
As someone who's making a new prepared statements wrapper with its own syntax, I'd expect to somewhat cringe when seeing that global.
 
Meh, haters gonna hate, globals gonna global.
Oddly, I more took issue with the sweeping "you should never format HTML inside of a function"
 
3:55 PM
 
@Fabien I C WOT U DID THAR
Serious question, do we really need the "Only variable references should be returned by reference" E_NOTICE? I can't forsee anything breaking if it were allowed sans-notice.
 
could you answer my ? for center all answers here also vote up to get more answers

http://stackoverflow.com/questions/22482807/connect-to-columnar-database-using-php/php/22484301?noredirect=1#22484301
0
Q: Connect to Columnar Database Using PHP

Hassan MagdySQL Server 2012 introduces a new index type called a column store index and new query operators that efficiently process batches of rows at a time. These two features together greatly improve the performance of typical data warehouse queries, in some cases by two orders of magnitude. This paper o...

 
@HassanMagdy Why're you spamming?
 
@HassanMagdy nah.. just wait for somebody who knows his stuff to answer that
@HassanMagdy and please room-11.github.io/#dont_5
 
so so so sorry it's first time here sorry again :)
 
4:02 PM
lol, the answer on the question above sounds like an advertisement wahaha
although it can be helpful.. i think?
 
It was make me happy just for 20 sec :D :D
if you check the comments you should know I am searching again I think ?I have to vote it down
 
more than 50M rows and more than 10 tb — Hassan Magdy 1 min ago
 
@SecondRikudo Why'd he rollback your endforeach;?
 
What kind of database is that, man.
 
@Patrick yeah, there's behavioral extensions to that. I am not a fan, but they're the fastest solution
 
4:06 PM
@DanLugg Not sure, don't really care.
 
@webarto howdy.. where've you been
 
@SecondRikudo True dat. Just didn't know if there was a legit reason.
 
4:25 PM
Can anybody help me out please?
 
@MONZTAAA Just ask your question, please.
 
Am I allowed to post the link to my question here?
 
Not according to the rules
 
darn
 
I'll have a look anyway (from your profile)
 
4:27 PM
Thanks mate :)
Its the last question I have
How to add miliseconds to my image name before saving
 
You can use this answer here to get the current miliseconds, and then append to the filename becore you save: stackoverflow.com/questions/3656713/…
Or check out ca2.php.net/manual/en/datetime.format.php (Date Format)
 
@MONZTAAA You may, but don't overdo it
 
The issue is on how do I append it to my filename, ive tried different things and wont work
 
@MONZTAAA Where is the problem with prepending the image's file name with your milliseconds?
Where is the resulting file name stored? Is it $foto['name']?
 
Yes
But where the file saves is here: $this->saveImagen($data['cid'][0], $foto);
 
4:33 PM
Then: $foto['name'] = $your_millisecond_string . $foto['name'];
 
$foto is an array which contains the name and route for the file to save
wait.. nvm
 
@MONZTAAA Yes, so you have to overwrite that 'name' key
(before passing the array to your save function)
 
so where do I add that so it overrides?
 
Wait a moment
 
Ahh
I got it!
 
4:39 PM
 
@ComFreek thanks my man! you da bestr
Add your answer to the question and I will accept it :)
 
@MONZTAAA Done, however, I don't think I deserve any reputation for inserting 1 line :D
 
I believe u do, u saved me haha
Now that im here I have another small doubt. I save these images in a folder and when I save a new image I want to erase the previous image in this folder if their is one :)
 
vs7
Hi , I need help ... I get some content using curl go4qp.com/fbtest/get_links.php
but i need only link array
 
@MONZTAAA Find the previous image (if there is one), delete it.
 
vs7
4:47 PM
I mean , I need to extract url from content ...
I used explode for a space but it gave me wrong array
 
is that all one string, or a bunch of strings in an array?
 
vs7
its a list of titles and URL
 
@vs7 It's CSV, isn't it?
 
vs7
nops
 
Use the CSV functions of PHP (delimiter '|' in your case) and trim() the fields.
 
4:52 PM
How can I get the contents of a folder?
 
vs7
its a simple output
 
I have tried this: 	$ruta = JPATH_BASE.DS.'media'.DS.'com_cstudomus'.DS.'documentacion'.DS.'altas'.DS.$data['cid'][0];
		$borrar = file_get_contents($ruta);
		var_dump($borrar); die();
 
vs7
echo statement
 
@MONZTAAA scandir(), opendir(), readdir(), RecursiveDirectoryIterator, many possibilities
 
It returns false :S
 
@MONZTAAA Is $ruta a file?
Or a directory?
 
$ruta is a folder
directory, sry
 
A directory is a folder, but a folder is not necessarily a directory :)
file_get_contents() only operates on files
 
Morning
 
vs7
@ComFreek It just make link with < a href=link>link<link>
 

« first day (1249 days earlier)      last day (3698 days later) »