« first day (804 days earlier)      last day (4129 days later) » 

5:05 AM
Hello and Happy Holidays
Can anyone take a look at this: pastebin.com/bnKKYFU9 it should be easy for you guys ^^
 
Say I have a huge MySQL table where each row is an object ("marketing effort") columns are mapped as doctrine field types ("integer", "float", "array" with a doctrine field type def of "currency"). They were used in a previous decision-making process and each of these objects has a oneToOne rel with a "result". So I'm thinking a factorial arrangement of the data in any function which permits their types could help identify patterns within the contributing variables and the results
 
@SpecialK. I stay away from that sort of thing, sorry.
 
@Levi Morrison Np, yet the only thing I need it's to limit the output, as described in the paste.
 
I believe google's terms of service prohibit automated queries
 
@dyelawn It looks more like auto-hyperlinks from text.
 
5:10 AM
Fair enough, I don't speak regex
 
@Levi morrison - yes, it's just converting url's from a string into html anchors, @dyelawn no automated queries are made it that example :/
@Levi Morrison - thanks for the link, I'll dig right now
 
@levimorrison so is the "algorithm algorithm" I'm proposing worth trying to develop, or am I pursuing too much magic
 
@dyelawn It might be worth it.
That part is hard to say
How would it benefit your organization?
How much time would it take to maintain?
Ask yourself those kinds of questions.
 
hi @all
1
Q: How to get hover data(ajax) by any crawler php

Somnath MulukI am crawling one website's data. I am able to whole content on a page. But some data on page comes after hover on some icons and shown as tooltips. So I require that data also. Is it possible with any crawler. I am using PHP and simplehtmldom for parsing/ crawling page.

 
Hi all
 
5:16 AM
The idea is that there is a wealth of mathematics available out there, and to program it, one does not even need to understand it. So given a data mapping for the method, and data mapping for the object, you could run a factorial implementation of the available data to either: a) find the most accurate function or b) functions which fall in a range of accuracy
@levimorrison this is a personal pursuit to be offered as an add-on for a current project, but (hopefully) to be used as a decision-making engine in every future project
So you've got data? Here are the patterns, lets figure out how to monetize them. I may not be able to write a proof for the unit circle, but I can write a limit formula that works and let the machine run it
 
I am using Ilike and Like in my database Queries with wild card charectors "%%". with Postgresql. Recently i came through a blog post about slow Queries and felt my like and Ilike mostly dont use indexes. what can i do to step up my Query performance
 
user50049
 
user50049
I hate companies that do this.
 
@ScoRpion... Wish I knew how to help. Good luck.
 
@LeviMorrison Thanks for your determination
 
user50049
5:23 AM
1 - Why do you store my password with reversible encryption. 2 - What f$$$ing use is a bunch of asterisks to me if I don't happen to remember it?
 
user50049
I think I'll open a support ticket .. "Can't login" .. "Hi, I copied the stars from the email stating my login information into the password field but it said incorrect."
 
@TimPost Have you tried hunter2?
 
user50049
hehehe No, I know my password. I just can't stand stupidity
 
This SElinux is killing me!
 
user50049
@shiplu.mokadd.im Oh yuck. SELinux is an angry gelatinous beast that feasts on kittens.
 
5:29 AM
@shiplu.mokadd.im audit2why is your friend
 
@shiplu.mokadd.im Yeah. SELinux. What's that again? Oh wait, who cares?
 
user50049
It's so impractical to use that people ... don't use it ... resulting in wonderful security. GRSEC is much better.
 
I've actually gotten most of my stuff to the point where SELinux can run without whining. Usually. And then sometimes we have web stuff that can't live inside /var/www and all hell breaks loose and I cry a little.
 
I dont use it. my dev box is ubuntu. But production box is CentOS
Due to this, I could nto open port, send email, apache was not available to public!
had to add rule for these
 
Thankfully those are all bools. Stupid bools, but bools.
 
5:33 AM
 
Sorry, I don't do Kohana.
 
Ok, I'm doing it. I'll be back in 10/20 days with a link to the algorithm algorithm for your review
 
@Charles why? Its PHP.
 
@shiplu.mokkad.im so is wordpress
 
As long as its PHP, it does not matter what it is.
 
5:36 AM
That's pretty myopic
 
@dyelawn Exception cannot be example. :P
 
@shiplu.mokadd.im Ah, but I don't know what Kohana::$log is, or what it does. For example, all the logging stuff I ever use goes into a database, not onto files on disk, so I'd never guess that it was a SELinux file writing permissions issue. Besides, it should have screamed at you when it was unable to open for writing. You should have filed a bug with the framework.
 
Exception is example. Php unit expected exception type = ActuallyDefinedException
Vs. Wordpress where expected exception = "huh? What's an exception"
 
I love that exception name so much.
 
@Charles good suggestion. I actually discussed it with Kohana Devs and thought they will work on it.
Didn't officially report a bug
 
5:40 AM
Or vs. kohana, where I say c'mon guys, I really don't have time to learn another effing framework
My favorite framework is HTTP. When I figured out what protocols were, it made life a whole lot easier
 
@dyelawn so you work with plain PHP or some other framework?
 
@shiplu.mokkad.im a few weeks ago, @peehaa said something along the lines of "Symfony2 or gtfo" so I started learning Dymfony2 and I like it. But if you get to build a project from the ground up, I'd say there's nothing better than plain PHP
 
user50049
People love their frameworks. Symphony components are nice, well, any well written boilerplate code is. But you really deprive yourself of learning by just 'always using a framework'
 
And, while I appreciate the ease of learning php enabled by free/cheap resources online it would have made things a lot easier for me if I started by learning C, basic networking principles, and historical programming languages
 
user50049
C is a good language to start with. If anything, you gain an appreciation of what higher level languages abstract away, such as memory management, list manipulation and typing.
 
5:49 AM
I spent 18 hours this week reproducing functionality that I had built in plain php within symfony bundles. I was so confused when it actually worked. I was happy, bc everything was working, but then I asked, "well, what did I just accomplish?"
 
Forget C; the thing that really made the essence of programming "click" for me was this:
The Little Man Computer (LMC) is an instructional model of a computer, created by Dr. Stuart Madnick in 1965. The LMC is generally used to teach students, because it models a simple von Neumann architecture computer - which has all of the basic features of a modern computer. It can be programmed in machine (albeit usually in decimal) or assembly code. System architecture The LMC model is based on the concept of a little man locked in a small room or a computer in this scenario. At one end of the room, there are 100 mailboxes (memory), numbered 0 to 99, that can each contain a 3 digit ...
It's just a neat little abstraction of assembly language, but it massively clarified a whole bunch of things that I didn't understand yet.
 
I have been developing in PHP and C since PHP3 era. Never used any framework. Created a code generator in Perl for PHP. I had to learn PHP frameworks. Then I built one. Used that for long time. Then these modern framework came out. And I started using it.
 
It was almost as much of a blinding flash of the obvious as I got when I finally understood Perl objects.
 
Raspberry Pi is the most awesome thing to happen in the era of MAMP, XAMPP, Wordpress, and simple installation of things that will drive you nuts when you don't know how to fix them
 
@Charles nowadays i hear of this thing called raspberry pi
 
5:53 AM
I'll order one.
 
it's pretty neat for teaching, and also has practical uses
The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of stimulating the teaching of basic computer science in schools. The Raspberry Pi is manufactured through licensed manufacturing deals with Element 14/Premier Farnell and RS Electronics. Both of these companies sell the Raspberry Pi online. The Raspberry Pi has a Broadcom BCM2835 system on a chip (SoC), VideoCore IV GPU, and originally shipped with 256 megabytes of RAM, later upgraded to 512MB. It does not include a built-in hard disk or solid-state dri...
you could event have a little media station with it
 
user50049
I have a couple on order, just waiting for stock to arrive and ship.
 
I want to use it as PC.
 
@TimPost it's take a while to deliver huh
 
Specially for my wife.
 
user50049
5:54 AM
@andho Yeah, it's back ordered everywhere I can buy it locally.
 
I really, really want to hook a Pi up to our roomba and turn it into a remote control robot, but I have other projects to get out of the way first. I'd do it with an arduino, but I wanna hurt people by using PHP, 'cause I'm evil.
 
You know why I love a cheeseburger? Because the patty, and the cheese, and the pickles, and the onion, and the ketchup; they're just so perfect together, every component doing what it should. You know why I love my HDTV LED 70" 480 Hz thingy? Bcoz it's awesommmme
2
 
roomba is real? hehe i just thought it was a fictional thing in questionable content
 
That should tell you why my raspberry pi box has been a godsend
 
@dyelawn lolwt
 
5:59 AM
@dyelawn You, dear sir, are far more inebriated than I am. Or you'd better be.
@andho Roombas exist, and they work OK...ish. We have hardwood floors here, but we also have black throw rugs. The throw rugs throw off the thing's "zomg a stair cliff!" sensor after an inch or two, and they always get stuck.
So I figure, hey, why not over-ride it with a remote control. 'cause I'm lazy.
 
user50049
I'm actually a lot more enthused about Arduino. I'm getting two Pi's, one for teaching and one for a media box. It's just Debian, which I love and can pair nicely with my proxy in LA, which lets us get all the content the US doesn't like sharing with the rest of the world.
 
And hell, then we can outsource the vacuuming job to my toddler, he'll love it.
 
@TimPost i think i'll go raspberry pi first, then arduino
 
user50049
Arduino is for people excited about making hello world into a simple blinking light.
 
user50049
I love the SDK for it, programming one is going to be a lot of fun. Also want a blink(1) to play with
 
6:04 AM
@charles if($youreright) { true === true } else { nope, that's it; }
 
Parse error: syntax error, unexpected '}' in your chat on line 1
Man, I'm really loving all the "yes, I know it's deprecated, bear with me" comments I'm seeing about mysql_.
Looks like the message is really getting out there.
So happy...
 
Then stop suggesting mysqli_ and just endorse doctrine
 
user50049
Web hosts will ruin deprecation, they'll patch to shut it up since customers will complain. Alas, the only people that will see those warnings are the ones who know better to begin with. Web hosts are scum.
 
@dyelawn wut wut
 
Oh, it's even worse than that. Web hosts like LTS / Enterprise distros.
RHEL 7 is coming in the spring or early summer, and it's going to ship with 5.4, not 5.5.
The next LTS of Ubuntu is in early 2014, and I don't think we're going to have PHP 5.6 by then.
 
6:09 AM
What's that, you say? I was just advocating plain php? Yes, I was, but my name isn't on any important projects, so my hypocrisy doesn't matter
 
The next possible RHEL release after that is going to be 2015-2016, which will correspond to the 2016 Ubuntu LTS. Only then will major OSes be shipping a version of PHP which might have mysql_ gone.
And even then, dude, we still have hosts running people on servers from the mid 90s running OSF-mf'ing-1.
I am not making this up, and it infuriates me.
 
Not to say doctrine is the best thing since sliced bread, but I don't even like bagels
 
I am using Ilike and Like in my database Queries with wild card charectors "%%". with Postgresql. Recently i came through a blog post about slow Queries and felt my like and Ilike mostly dont use indexes. what can i do to step up my Query performance
 
So even in a best/worst case scenario, no major hosting provider is going to be running a mysql_-less OS until over three years from now... and then only for new servers, and then only if they're insane.
And even then, they're just going to make it a PECL extension.
 
@charles this sounds like a job for... NicheHostingService!!!
 
6:12 AM
@dyelawn There are a few out there that do try and make modern stuff available. Thank goodness...
 
Its the most used php extension. So it will not just die that way.
 
@shiplu.mokkad.im where do you get that information?
 
@ScoRpion... EXPLAIN, EXPLAIN and lots of EXPLAIN. Paste'em into explain.depesz.com and revel in the awesome I love PG.
Don't forget that you can make indexes in PG that are the result of a function, so you can totally create a lowercase index or something, and it'll sometimes be smart enough to use it.
That or, dude, just use fulltext. PG's implementation of it is silly, but it works.
 
user50049
@Charles I might be resurrecting my small shared hosting company, specifically catering to people that just want a modern sandbox to incubate ideas before spending any real cash on instances / etc.
 
(Because when I think of fulltext search, I totally think of calling it a TS vector!)
 
user50049
6:15 AM
But it would have to be an invite-only kind of thing. For it to work, you really need to be able to 'trust' your neighbors to behave.
 
Yeah, the joys of shared hosting.
 
@timpost please take into consideration my awesome sales skills and give me a call when you do so
 
Been there, done that, and if not for the fact that my hobby project is going to need to account for it, I'd also say "never again."
 
user50049
90% of web hosts that use C-panel/WHM actually block PUT and DELETE globally just because they sound dangerous. Good luck implementing anything actually RESTful there.
 
Then again, places like Dreamhost keep me employed, so meh.
 
6:17 AM
I sold three rackspace accounts this year. I don't have one, I don't know how affiliate marketing shti works, I was just tired of dealing with restrictions on godaddy shared hosting
 
I've yet to meet a worthwhile shared hosting control panel. DirectAdmin was way too quirky, and VirtualMin is a horror show in the UI department, even though it left most of my server config alone...
 
@charles how? Seriously, how?
 
@dyelawn They buy a lot of equipment from my employer.
 
Ah, darn. Thought I was in for some black hat affiliate secret
 
Heh. Yeah, sorry. Boring answer.
 
6:20 AM
hey gud morning friends..........
any one have any idea about github
 
I have ideas about github.
Bad ideas.
Use BitBucket instead, for Atlassian also keeps me employed. :p
 
sorry but my boss want github,so i have to understand it.
 
user50049
Git frightens me.
 
since iam new one ,i don't have any idea about it .yes i tried on internet but i not found any sutable answer
how it work?
 
@AnkurSaxena, what source code management systems do you know?
 
6:25 AM
@charles I think he just knows the github
 
Git's not bad, but I've grown to like mercurial more, the oddball commands aren't so ... bizarre.
 
bitbucket is better than github.
 
i already told iam new one
 
Like, the hi where they git
 
I moved a lot of projects from github to bitbucket
 
6:26 AM
I mean, I swear, half of the crap is like git punish --no-whips levels of weird naming.
 
Got some friends in github thats why I am still maintaining some OS project there.
 
user50049
I like mercurial, it was natural to pick up coming from subversion years back and it's more than fast enough for what I do. I also love the hooks and API
 
@AnkurSaxena Do you know SVN, at least?
 
i agree may be bitbucket is better but it's my boss demand.
sorry sir no idea????
 
@TimPost its quite common for people in SO follow most technology that Joel or Jeff follows.
 
6:27 AM
Github/packagist/composer was so awesome until I started using it
2
 
@AnkurSaxena So you've never used any source control before, at all? None?
 
mercurial, Fogbugs etc
I use mantis. Plain and simple
and use both mercurial and git.
 
One of these days I want to get my hands on the generated source of fogbugz and see what a mess their generic language to PHP convertor created....
 
@AnkurSaxena gitimmersion.com
 
@charles:-yes sir
 
6:29 AM
@AnkurSaxena oh gods you're so screwed.
hold on, lemme see if I can find a link for you
 
thank you
 
personally i didn't find git commands that weird, but haven't really played with mercurial
 
@AnkurSaxena tom.preston-werner.com/2009/05/19/the-git-parable.html -- use this. It's verbose as all hell, but goes through the learning process not assuming you know anything about how source control works. The links at the end will guide you further.
Once you know how to generally use git, using github comes relatively easily. It's just a matter of "push"ing updates.
 
Hello.
 
@AnkurSaxena if you're a computer scientist read this: eagain.net/articles/git-for-computer-scientists
 
6:34 AM
@charles you expect him to learn cli, a new protocol, and English in the same night?
 
@dyelawn I never said it would be easy.
 
hahaha ......i am not computer scientist sir
 
But his boss want the github now
 
So I have this as an parser for url links in text: http://stackoverflow.com/a/1971451/469855
I want to, instead of substituting occurrences in the string with the hyperlink'd html strings, I want to generate an array with each section of the input string between and including the parsed urls in order.
What's a good way to approach this?
also, my grammar sucks today :P
 
guys, i'm boycotting amazon, what would you guys suggest for an alternative Cloud as a Platform provider?
@Hamster i wouldn't use regex for this
if at all possible
 
6:39 AM
@andho That solution does use regex. I just want the parsed stuff in an array instead of a string.
 
@Hamster You should be able to modify that callback to capture that information, shouldn't you?
Or is that the actual question?
 
oh, 'wouldn't'. My bad misread.
 
Also, expand Alix's comments in the OP for a surprise at the end. I lost the game. Sigh.
 
@Charles but the callback only works upon the regex matches. It doesn't, say, give me a character index position to tell where in the source string to get the substring...
 
@andho you should boycott internet too ..lol
 
6:42 AM
@NullPointer that's like boycotting my existence
 
@andho side tracking aside, what should i use if not regex?
 
@Hamster Hmm. Good one. Maybe add a capture group before that's basically (^.*) or something? Sorry, not clear of mind right now. It's late and I'm tipsy. :p
 
@Hamster cannot think about it right now
the two rules given in the OP is very simple without regex
 
The Algorithm Algorithm. It's coming. Like gravity. And the Segway. It will not be denied. Dyelawn out
 
is that an algorithm that creates algorithms? sounds vague and ominous and/or stupid.
Algorithms are meant to solve problems, so it would need a way to define problems before it could generate anything to try to solve them.
 
7:11 AM
Think I found part of my answer php.net/manual/en/function.split.php
derp
 
@Hamster it's depracated
 
7:31 AM
@andho well the preg one isn't, but this actually isn't what i was looking for, I suppose...
 
@Hamster maybe you could give your input and expected output
 
I need to keep the occurrences of the matches in the array
split assumes i want to get rid of them
 
like an example
 
Input: "Hello world. Fine day....!"
Output: ["Hello world","."," Fine day","...!"]
if i had a regex for punctuations and such
 
@Hamster what's the rule here, seems random
 
7:40 AM
well, if the regex was only to split by punctuation, the array would be: ["Hello world"," Fine day"]
 
what what is "puctuation", does it include dash(-) or apostrophe/singlequote (')
 
Morning
 
@andho well, punctuation is just an example. My problem involves urls, not mere punctuations.
 
i'm looking for a css solution which would display "bookmark this site" and arrow to the iphone bookmark button
is that psosible
 
uh, probably :P
 
7:57 AM
@Hamster I'm not getting what you're trying to do. Parse an URI to its components?
 
Like, if someone writes a bunch of stuff with urls embedded within, I just want to get the character index and length of each url match, or else split the string by url matches into an array INCLUDING the matched urls.
Unless I'm blind, preg_split seems to eliminate matches.
 
So with the string http://pt.php.net/manual/en/function.base-convert.php?wtf=hehe#52450
You wanna get [function,base-convert] ?
 
?
 
And yes, preg_split acts like explode
Can you just give me the output you expect with the given string
 
@Hamster well i wanted an example of your problem
@Touki I think @Hamster wants something like how SO parses a post.
 
8:05 AM
this is data JSON Data

{"Status":"OK","Error":{"Code":0,"Description":""},"Data":[{"user_name":"aa","password":"aa"}]}

how to read status and user_name and password

this is function which I used

$.ajax({
url: 'http://192.168.1.11/mobilePMS/ajax_login1.php?user_name=aa&password=aa',
dataType: 'json',
json: 'callback',
jsonpCallback: 'callbackFunction',
timeout: 600000,
success: function(data, status){

alert(data[0]);
//data=$.parseJSON(data);
//alert(data);
/*if(data="yes")
{
alert("Data Loaded");
 
but, how SO parses a post has lots of rules we can't be sure about
 
@NiravRanpara > Edit > CTRL+K please
 
"An example would be a string with an url like http://www.stackoverflow.com, where the url is matched." ->
["An example would be a string with an url like ",
"http://www.stackoverflow.com",
", where the url is matched."]
lol, the chat parsed it
 
@NiravRanpara use console.log instead of alert and you can see the it in your javascript console of choice (firebug or native)
 
Well, SO know that its URI are {domain}/{type}/{id}/{slug}
 
8:06 AM
@NiravRanpara you don't need to $.parseJSON if you specify 'json' as the dataType for the ajax call
 
@andho :can please say how to use that in above code
 
@Hamster again, i doubt regex is used for these kinds of things
 
so they just coded in a manual parser?
 
@NiravRanpara instead of alert(data[0]) use console.log(data)
 
@andho : var received = JSON.parse(JSON.stringify(data));
var listener = received.Status;
alert(listener);
 
8:08 AM
@Hamster they use markdown
 
I got OK , which is right
 
so yes, probably a markdown parser
 
@andho : how to read user_name and password now ?
 
@NiravRanpara what does console.log(data) show?
 
I dont know because I do it in phonegap so
but {"Status":"OK","Error":{"Code":0,"Description":""},"Data":[{"user_name":"aa","pa‌​ssword":"aa"}]}
this is string
 
8:10 AM
try it in a browser @NiravRanpara
 
@Hamster Well, my guess is that they just call their routing mechanism when they match stackoverflow.com in a URI
 
I got Status value but How can I get user_name and password
 
how did you get status value
 
@andho :var received = JSON.parse(JSON.stringify(data));
var listener = received.Status;
alert(listener);
 
Hmm, alright I think I'll code an ugly parser from scratch then.
 
8:11 AM
@Hamster Hell No. There IS existing code already
Just call your routing mechanism
 
@Hamster maybe you can look into currently available parsers for inspiration
why are you using this code?

var received = JSON.parse(JSON.stringify(data));
 
Like if (false !== strpos("stackoverflow.com",$uri)) { echo $this->generateUri($components) }
 
it just converts back and forth
 
@andho : i dont have much idea of ajax , so please can you tell me how to get value
 
Hooo @NiravRanpara I love the red box upside your profile
 
8:15 AM
@NiravRanpara what i'm saying is, that code does not make any change to data. so basically your data variable is same as received variable. so that line is redundant
 
@Touki : hahhaaha coool
@andho : okay
@andho : how to get user_name ?
 
@NiravRanpara username is in an array, implying there might be more than 1 username
 
I use array because lot of field user_name,city,...... so
 
@NiravRanpara data.Data[0].user_name
@NiravRanpara whatever the number of fields, if that data will not be repeating you don't need an array
@NiravRanpara if you might have multiple usernames and other fields, then you need the array
 
ok
I remove array
 
8:18 AM
@NiravRanpara if you remove array it will be

data.Data.username
 
let me check data.Data[0].user_name this
 
if you are developing an HTML + javascript app to be deployed using phonegap, you can and should test the app first in a browser because you can test it faster that way
well should be using unit testing and integration testing but that's something else entrirely
 
@andho : thanks man , its working
 
@SO what does voting irregularities even mean
 
@andho : I realy dont know how this happen
I am surprised to see this today morning
 
8:22 AM
Ho well a quick check on quality of its profile may just answer it
 
@andho : where are u from ?
 
Why do you multiple post, Why don't you merge your answers ?
 
@Touki : at that time I am new , dont know some thing soo
 
Now you have the rep and time to correct this. It's not too late
 
@Touki : I will do after some work thanks
 
8:28 AM
It's not because an answer has been accepted that it can just be left alone
 
@NiravRanpara you do still ask lots of questions without trying
@NiravRanpara I'm from Maldives
 
@andho : ok
 
8:46 AM
OMG! What's that. Have never seen. Even I too like that redbox lol..... @Touki
@andho Heya!
 
PHP somehow reacts on source file encoding? Or it's irrelevant?
 
stackoverflow.com/q/14066870/168868 because seriously I do not even understand how this question exists
 
What i mean, sublime text saved my php script in utf-8 and my php env is set to work with cp1251 (don't ask, not my decision), what happened is that after preg_replace i was getting only half's of my strings. They were quite normal (readable, no special symbols) just trimmed in a half. After i reloaded script file in CP1251 (and previously converted it's encoding to CP1251) all become normal. Also i was filtering cyrillic symbols.
 
get a different php environment .. maybe as part of better job
 
9:05 AM
hello all, little question, how i can convert (string) "-0" to (int) -0 ? Really -0, not 0
 
Does PHP actually do negative zero as an integer?
I thought that was a floating point thing.
 
So floatval ?
 
php > $foo = '-0';
php > $bar = array( (int)$foo, (float)$foo );
php > var_dump($bar);
array(2) {
  [0] =>
  int(0)
  [1] =>
  double(-0)
}
 
nice, nice, thanks dude
 
good luck.
 
Oh, okay, now we got two floats -0 and 0, how to get sign or detect negativity/positivity of these floats ?
 
Ahahaha PHP
php > var_dump( (float)'-0' < 0 );
bool(false)
Yup, negative zero is not less than positive zero.
OKay, uh...
Re-stringify, if char at the start of the string is a -, it's negative.
 
No
 
I got nothin' then
 
wh0
In the place where i work. We had a little debate about php or java. People who supported java are arguing that the code written in php can be easily changed even after deploying it.
However in java the code will be in byte code no one can change it once it is deployed . Is this a valid point ? Is it possible to make php non human readable format when deploying it ?
 
9:20 AM
-0 === 0
 
Nice
true
 
@wh0 Java is decompilable with amazing ease. There are products to try and "compile" PHP, all of which can also be decompiled with ease.
@Touki Yeah, but that only works because -0 is a floating point number, and === doesn't do type conversion.
 
wh0
@Charles so it is possible to make php only machine readable format ? Can u name any products which does what ever u told?
 
@wh0 Obfuscation at least
 
@Charles True. $foo = "-0"; var_dump((float)$foo === 0); // false; var_dump((float)$foo === (float) 0); // true
 
9:23 AM
@wh0 Zend Guard, ionCube Encoder. But, as I mentioned, they are trivial to crack. There are even paid services out there (mostly Russian...) that can do it for you automatically. They are not worth the money.
 
user1125394
In software development, obfuscation is the deliberate act of creating obfuscated code, i.e. source or machine code that is difficult for humans to understand. Programmers may deliberately obfuscate code to conceal its purpose (security through obscurity) or its logic, in order to prevent tampering, deter reverse engineering, or as a puzzle or recreational challenge for someone reading the source code. Programs known as obfuscators transform readable code into obfuscated code using various techniques. Overview The architecture and characteristics of some languages may make them easier to...
 
If you want to protect your code against modification, get your lawyer to update your license agreement.
 
How can user agents download those files if the user can not? I.e. what you want is not possible. Also: one does not simply rely on clientside validation. ALWAYS VALIDATE SERVERSIDE, CLIENTSIDE VALIDATION IS JUST A NICE TO HAVE FOR A BETTER USER EXPERIENCE AND NOTHING MOREPeeHaa 1 min ago
 
wh0
is there a software to make ur php code obfuscate ? or we have do it manually
 
So do it
 
wh0
9:25 AM
@cyril is there a software to make ur php code obfuscate ? or we have do it manually
 
@wh0 There is, but it's even easier to crack. It all comes down to eval, which takes a string... and if you have a string, you can echo it.
 
user1125394
nah it's the worst way, you may want license
 
There are also (finally) static analysis tools and sane tokenizers that can simply fix all the wacky crap that automated obfuscation tools implement.
 
user1125394
we are in open source world
 
Okay, guys it seems like php can't detecting positivity/negativity of zero , right ?
 
user1125394
9:27 AM
except Google
 
@Abyss Why would you need to detect negative zero tho ?
 
user1125394
@Abyss just say this sentence again to yourself
 
wh0
@Charles Brilliant. Thanq all
 
user1125394
because you're hurting math
 
9:29 AM
@wh0 Good luck. Do keep in mind that all of the answers for PHP are just as valid for Java and any language that is compiled into bytecode and runs on a VM, including the .NET family, Ruby and Python.
This includes both bytecode obfuscation and source obfuscation.
 
@Touki it's not a critical, i thought php can do it. But no, okay will use plan B.
Thanks guys.
@cyril Why hurting ? Zero can't have negative value ?
 
vyb
HI @ALL
 
user1125394
0 is the neutral element of real and integers set
 
vyb
Any one know how to add custom images in rss?
 
user1125394
9:44 AM
by definition 0 == -0
 
vyb
I need to display images with text in rss can any one help?
 
user1125394
languages don't distinguish them
 
vyb
Any good plugin?
 
@vyb What have you tried? What hasn't worked? What research have you done to solve this problem? Do you know what RSS looks like? Have you read the standard document? Do you know what the tag would be?
 
good mornings!
 
9:51 AM
Good friday mornings!
 
There is nothing good about this morning, and this isn't my inner curmudgeon speaking. The tag is even more moronic than usual today.
Doom and gloom, people. Doom and gloom.
 
Oh it's close to weekend again ;)
@Charles Oha, what's depressing you? You wanna talk?
 
@hakre Oh just a case of eternal september, that's all.
That and I'm too wired to sleep.
 
user1125394
 
user1125394
is recursive code more parallelizable?
 
user1125394
than loop code
 
@cyril yeah
 
wh0
Hi, Guys if u worked on both java and php, People say java is more maintainable than php is it so ? forget about coding skills or consider equally skilled coder in both languages.
 
10:11 AM
@wh0 java is harder to code for equal skilled corders, hence lot's of java devs convert to php
 
@wh0 Question unanswerable as asked. Code written in either language by idiots is going to be unmaintainable. Java is inherently more complex if not kept in check, while PHP inherently leads to spaghetti if not kept in check.
 
because of it's pure OOP constraints, it is more possible to have atleast a structure better than PHP for a not so good programmer
aah what @Charles said
 
If you have high-quality developers that know the language and modern practices in and out, backwards and forwards, the codebase will be high-quality regardless of language. If you have trained monkeys, you are screwed.
 
@cyril what's this about
erland is my functional language of choice, tried it a bit, but haven't really done anything
@cyril in erlang you don't have to think about parallel programming, atleast not as much as in scala. just my magical opinion based on imagination
 
@wh0 Also, and this is mostly a joke answer, if you're trying to decide between PHP and Java, why not both?
 
user1125394
10:15 AM
they are saying erlang (exist since 2 decades) is a bit an island in parallelized languages
 
Disclaimer: Do not run quercus in production if you want to keep your sanity, for it is odd and finicky and weird and written in Java.
 
kol
oops, sorry
 
10:37 AM
hello... i have a problem in wordpress
i want to increase the textarea size of excerpt
any one to help
 
@anujarora what have you tried?
@cyril an island?? what does that mean?
 
user1125394
hehe, like you, no just mean they are bit isolated from new parallel languages I guess
 
user1125394
> [97, 98, 99].
"abc"
 

« first day (804 days earlier)      last day (4129 days later) »