« first day (1021 days earlier)      last day (4153 days later) » 

15:00
@Gordon Great, we've done our part, now let's see how he handles his :)
@PLB Yeap ... and the auto inserted ; and missing ( is not that easy to adapt to .. sometimes i forget am in PHP or GO
0
A: allow a user to edit a php code and submit the results securely

Vladimir Hrabanif I get you right, then eval function is what you need (http://php.net/manual/en/function.eval.php) Evaluates the given code as PHP. Although it is very dangerous as a user can execute a destructive code or output some private data. <? if(isset($_POST['submit']) { eval($_POST['code'])...

^^^ Lol
@levimorrison You have to remember that intval and the concept of forcefully interpreting a number as an integer didn't enter the scene until php 4. So prior to that, if the normal behavior was any different 1.11+1 would have given you 2.11000020 with know easy way to make it give the intended result
@MadaraUchiha = Review or Vote?
securely != eval
@Bracketworks ReOpen Vote
15:03
@MadaraUchiha Ah.
Thanks.
15:15
@baba I think they are just asking (in a broken way) on how to get user input....
@Orangepill Oh ok
0
A: allow a user to edit a php code and submit the results securely

BracketworksYou want people to run arbitrary PHP code, but not all arbitrary PHP code. Tough thing to get right. One option that comes to mind is to use https://github.com/nikic/PHP-Parser. Basically, the parser does nothing more than turn some PHP code into an abstract syntax tree. ("nothing more" is k...

Suggestions? I realize that the OP is probably asking the wrong question, but w/e, I answered it as it is. ^
I just have a large database which i done it using SQL SERVER 2000.And Now we are planning here to migrate that database to the MySql.But we changed the db structure for some tables.So i want to know is there any system that i can do this migration ?
human brain + editor with SQL syntax highlighting
on could say, that it's an open-ended system
does this make any sense eval(echo 'blahblah'); ?
15:27
@Bracketworks could add that you can disable functions and stuff in php.ini
@Gordon Ah indeed.
@tereško did you remember my yesterday question regarding a system ?
no, nor was i attempting to
you gave me an answer = MySql cluster as i remember to sync 2 DBs
that is after finished our app development
Sarcasm
15:31
we have 42 branches working with VB 6 + SQL SERVER 2000 software
we are planning to do it through web based
PHP + MYSQL
now we want to migrate all over old SQL SERVER recodes to the MYSQL
is it possible ?
we have same DB structure for some tables but some are totally changed
@Samithaఠ_ఠ Recodes means Records I guess... cuz yest I felt it was a typo so thought to clear things a bit
yeah sorry
:)
he has been using that word all the time
22 hours ago, by tereško
i have no idea what a "recode" is
15:34
@Samithaఠ_ఠ why? In your country they say recode?
sorry bad English practice as an ASIAN
@tereško lemme star that
@Samithaఠ_ఠ aa it's k :) so now you know it's called records, btw you should have start googling by now to get your task done
So,Can you help me on that ?
nah am just a CRUD guy :)
CRUD... ?? :D
15:36
create read update delete
did you remember my yesterday question ? you gave me an answer about a Cloud we can use? @Mr.Alien
hahahahaa
@Mr.Alien Fuck CRUD. SCUD for the win. SELECT, CREATE, UPDATE, DELETE. (I like my verbs to be the same number of characters. I'm anal like that, y'know?)
;-)
@Bracketworks lol, and btw don't forget the basic joins as well ;)
@Bracketworks wassup wid you, wad you doing these days?
Working withering away; nothing special
15:39
@Samithaఠ_ఠ yes, but that's vague, I showed you the syncing part, you should start porting the db
@Bracketworks as a freelancer or you got a proper job
Both. Prefer the former but it doesn't pay the bills. Hate the latter but it keeps the roof in place.
(I had them backwards)
aaah I see...same for everyone...
@Mr.Alien what about the security of that cloud ?
our company is asking it from me?
Actually SCUDD, SELECT, CREATE, UPDATE, DETAIL, DELETE.
let me repeat: @Samithaఠ_ఠ if you are looking for a proper solution for syncing two mysql databases you should look into creating a VPN and creating dual master replication for mysql
15:41
@Samithaఠ_ఠ I guess you said you told you have around 200000 records, I think thats 2-3 mins job to export/import the db
@Bracketworks detail - fail
VPN is high cost in here
@Mr.Alien ?
@Samithaఠ_ఠ VPN requires a router, it is not a service
@Bracketworks SCUD is perfect, take out the other D ;)
Is anyone here familiar with PHP's docbook rendering system PhD? I want to know because I'm about to try to make some improvements to the HTML rendering and want to know who I can ping for help.
15:42
@Samithaఠ_ఠ So why don't you take a flash drive, export the db, go to other place and import it,can't get anything safer than that
(the VPN in this case is for the additional issue of having mysql database on localhost .. though you could forgo that part by forwarding ports to your sql database ... though that would create some additional risks)
@Mr.Alien Nah, I understand it's walking away from CRUD, but I split selecting and detailing into separate functions. SELECT would enumerate entities returning summary and index-able fields. DETAIL would return all fields with the option to expand nested entities.
@Mr.Alien ha ha :) 43 branches (Like a BANK)
@Bracketworks but crud gets the work done anyways ;)
@Mr.Alien I refer you to my previous statement:
15:44
@Samithaఠ_ఠ email them using a zip and chop them into small packets
> Fuck CRUD.
:-P
@Bracketworks lol for me, CRUD rox
I wonder, what do you people mean by "crud"'? Are you referring to the SQL commands?Are you referring to some retarded ORM?
@tereško That stuff you get in your belly-button.
15:45
@tereško create read update delete yay
@Mr.Alien it's not practical. lol idea
:)
Public Notice: For everyone who can't chat and needs access, just refresh the page and it should go away. Thanks.
2
@tereško Retarded is a bit strong: it is a fair high-level abstraction of data management processes.
@MadaraUchiha , it's your fault
15:46
@tereško No need to remind me :P
@Bracketworks what is ?
@Samithaఠ_ఠ than you need to go to all the 43 branches and import the db yourself, this way you'll get a round trip too ;)
@MadaraUchiha It's your fault
there are already 5 million questions
and anyways your country is tiny so you will enjoy
15:47
@tereško The concept of CRUD. Unless you meant that some ORMs are retarded. I'm guessing you meant ORMs.
I wonder when the variable is going to overflow
In computer programming, create, read, update and delete (CRUD) (Sometimes called SCRUD with an "S" for Search) are the four basic functions of persistent storage. Sometimes CRUD is expanded with the words retrieve instead of read, modify instead of update, or destroy instead of delete. It is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information; often using computer-based forms and reports. The term was likely first popularized by James Martin in his 1983 book Managing the Data-base Environment. The acronym may be extended...
out of which only few are useful
@Mr.Alien lol
15:48
@Bracketworks at least wikipedia says that you are full of shit
@tereško SIGH damn the book was wrong
> Bracketworks is full of shit.
Oh yea, it's right there.
aa well nah wiki also has a table which says crud oh yea
the book was awesome
@tereško Really though, what were you talking about?
15:52
we are going to keep 43 databases for each branch .So can we use it like @tereško idea (VPN and creating dual master replication for mysql) .Each branch has their local server and when the Internet is Ok will run the synchronization part with local server and OUR VPS server
@Mr.Alien
if all of your branches are on the same VPN, then in practice they would be on same local network (from viewpoint of sql servers). It would be just like setting up a dual master between 192.168.0.2 and 192.168.0.4
@Samithaఠ_ఠ I don't have that level of brain which he has, it would be better if he answers this.. you don't know but he helps people a lot
@Samithaఠ_ఠ what you really need is to get a sysadmin with some experience in this type of stuff
its usually not something your vanilla developer will be able to set up
brb /busy
essentially you are attempting to create a distributed infrastructure
15:56
yeah i don't have Server knowledge
that means ?
(distributed infrastructure)
wait a moment
43 db servers ?!
Sure, why not?
you cannot have 43 masters in a DB cluster
yes with main centralized server
DB SERVER ALL THE THINGS
@tereško sure you can
doesn't mean it'll buy you anything, since you can never scale past 1 master's worth of writes anyway
15:58
@ircmaxell well yes , technically you might , but the setup is insane
@tereško Oh, there's no sensical reason to. It's a FUBAR idea, but it's possible
@tereško as i know we need to buy mysql cluster
cluster are usually not something that you buy
ok ... reality check
you cannot have 43 masters (those would be the SQL servers that can write data)
mysql cluster isn't what you think it is
i'll explane my question now
43 branches in our country
16:02
how much money is there for creating infrastructure ?
so we are planning to keep 43 databases including centralized DB
approximate amount in $
@tereško ha ha
i'm quite serious
@Samithaఠ_ఠ: what kind of data. You keep mentioning "branches", are we talking about banks for any particular reason?
16:03
i don't know @tereško i'm the main developer and our CO is told me to find an answer for this
unless we are talking about soemthing over 100'000$ , it's not even worth looking at such structure
let me explane it serious
*seriously , *explain
We have a University called SLITT
so we have 43 branches
so Students are registering for degree programs
every day
normally 20000 students withing a day
and getting their payments
exam results
past recodes and a lot more
*records
16:07
sorry
Maybe they're recoding students. Some of them are probably quite badly implemented.
return status and exit code is the same thing right? So if say a program gives exit code of 2 then when I do system('command', $val) $val will be 2 right?
So we already have a system with VB 6 + SQL SERVER 2000 since 2004
My condolences
So now we are planning to do it with Web Based System
Fully web Based
16:09
@crypticツ In the context of program exit code, yes, the two terms are fairly synonymous (although "exit code" is the more correct term)
My PHP license key system works, and it can't be bypassed (without recoding the whole system). #Booyah
@DaveRandom ok so I am using unzip via system() and its giving me a return code of 127, but when I check the manpage there is no such code =o\
> can't be bypassed #lol
@NetworkNerd outline description of mechanism?
@Samithaఠ_ఠ how stable are your network connections ?
16:11
That's the problem @tereško
it's not sure 100%
if we have a net down stage i was planning to work with localhost
but we can't check user past records,etc
@Samithaఠ_ఠ a practical solution would be to put the system in a "read only" mode whenever the master server is not reachable (due to server crash or internet outage)
Anybody have any experience with owncloud on ubuntu?
0
Q: Two directories on server for same user

vascowhiteI have an issue with a new installation of OwnCloud V5.0.9 on Ubuntu Server 12.04.2 LTS running on an AWS EC2 instance. Owncloud is set up to use an EBS volume mounted as /owncloud. It is using MySql for the database. On first run I set the data directory as /owncloud/data and this works fine w...

Not really PHP, but you guys have a lot of knowledge between you.
@tereško i really need a guidance regarding that .How would i get it? googleing ?
u mean to work with VPN with MYSQL cluster
ok .. lemme explain the basics as I see it.
am i right ?
16:15
Sadly, this applies to software ratings as well: abstrusegoose.com/527
when you have a database cluster, it usually is structure like this:
@crypticツ Try appending 2>&1 to the command and having a look at what the STDERR output is. IIRC 127 is the exit code from sh when you use it to invoke something that it can't find
@tereško yes got it
Although system() should bypass sh
you can one central server (master) to which you write data , and other servers (slaves) from which you only read
16:16
But I don't like system(), it's pretty rare that you want to write directly from an external program to the ob
the changes in a server are replicated periodically to all the slaves
@DaveRandom yeah I think that is the problem. I need to call unzip by absolute path, searching for its location it doesn't seem to be in the regular location.
@crypticツ As long as it's it $PATH it should work
doh, it's not even install =oP
16:18
there is a delay when you write something, which can be avoided by having a distributed cache on top of DB layer (something like memcached, coutchdb, mongodb)
@tereško ok
@vascowhite Oh, no! Not mathematics...
@tereško so can we have 43 masters
?
the fact that you cannot reach the master (which would trigger read-only mode) can be simply detected by fact that you cannot connect to it
no, there would be 43 slaves
16:20
@DaveRandom In a computer program no less! Whoever heard of such a thing!
I had tell someone that the other day too stackoverflow.com/questions/17943471/…
you probably would have two masters (one of which is available, and other is used if first master experiences a critical failure)
anyway, @Samithaఠ_ఠ that's my simplified view of db clusters
keep in mind that I'm not a sysadmin
@tereško so how the synchronize working with localhost and the central sever through cluster
you would need to hire a specialist which actually knows what he/she is doing
@PaulDixon What is the world coming to when we have to actually think about stuff? On a Friday as well.
16:23
all of the branches would write to the master (central server) and that would replicate the changes to all the salves
@salathe Turns out PhD has a highlighter system that is poorly designed but will work for better syntax highlighting. I've made a highlighter that works off of token_get_all and marks the code with semantic meaning so you can style at will using CSS. Now I just need to figure out how to get PhD to use it, verify it works as expected and then convince someone with karma to commit changes.
@DaveRandom 'Think' ==='Google'
u mean to the localhost(43 ) to cenral master ---> slaves (43 branches)
16:26
http://stackoverflow.com/questions/18019219/pos-get-a-website-to-print-directly-to-a-defined-local-printer-s/

I think that I deserve a cookie for that one. My informative answer. :)
what is "the localhost(43)" ?
43 branches local hosts
if 10 branches have a NET outstate they are working with localhost and when the NET is ok it's need to sync with central sever
that's it
@LeviMorrison sounds like a plan! keep me posted. :)
16:35
@LeviMorrison It is floating point wtfs, PHP just doesn't show them to you
See the precision ini setting for the default float precision used when converting floats to string
@Yogesh ^^^
@PeeHaa I thought @ircmaxell would handle that, so I can continue being nicely lazy
@Mr.Alien ok
@YogeshSuthar meet me on weekend whevena you free and pick up the games you want
@Mr.Alien either you have to come at my home or i have to come at your.
16:41
@Mr.Alien you might need to get cookapp's "disk space fan" thing
it might let you recover some of the lost space
@YogeshSuthar Ok, you are always welcome at mine, if I come that side, I'll cyu at ur place ;) I just told u cuz its not wrth downloading the games which I already have
@tereško the crucial one is workspace, I've already synced up with sky :) and am looking for a new hd, prices are too high currently
ya know, in modern operating systems it is also possible to DELETE FILES
2
@Mr.Alien here we have problem of light,so i will come there whenever free.
bye all going to watch TV. :)
hehe none to be deleted, I've some hell of a collection ,,,
collection of what .. especially on C: drive
16:47
@YogeshSuthar ya than better you come at my place...
@tereško that's cuz of torrentz, I've some bbc documentaries and 70 gig simpsons going on which won't finsh for years I guess
why the hell would you need 70 gigs of simpsons ?
It's like from season 1 - 19... I've nt seen the old ones...
@Mr.Alien You can safely delete seasons 10+. You'll be doing yourself a favor.
@Bracketworks they are bad :S
I know there's as many standards as there are idiots, but has anyone had a look at dmtf.org/sites/default/files/standards/documents/…?
16:55
I've some cool old school cartoons, documentaries, gamez, and loads and loads of ebooks and tv shows, movies n much much more
@Bracketworks It's . . . odd:
GET /machines/123/disks?$filter=format='ntfs'
@LeviMorrison Yea, some of it seems a bit peculiar. Seems like MS OData is following it loosely though,
@Mr.Alien Hi buddy
@Abhi hello
I don't know why people are not happy with the default one
17:03
@LeviMorrison The second "=" would need to be escaped, wouldn't it? I think it's a contextually reserved character; can't remember.
@NikiC I started, and got distracted
17:15
nyt everyone
@Mr.Alien Gn buddy.... :)
@Mr.Alien it seems that only reason why you have it is to have it
most of that stuff you will never use again
anybody interested in looking at a question I've posted?
I have someone saying my code is impossible to read, I'd like another opinion
PLB
PLB
17:32
If it's impossible to read, make it readable.
@Skippy Just post it ;) If somebody's interested he'll take a look :)
Who wants to stab there own eyes out?
http://stackoverflow.com/questions/18022773/add-item-to-array-on-checkbox
@Pheagey Stabbing your eyes out is a bad idea - it works only once
If I never see that page again it would be worth it.
That's why I prefer banging my head against a wall ;) Much more ... scalable?
user1596138
17:37
in JavaScript, 24 mins ago, by Shmiddty
can someone take a look at the interpolateGradient function here (php) and figure out why there is banding with more than two colors? https://github.com/Jhawins/Colors/blob/master/colors.php
@Jhawinsss quick note: github.com/Jhawins/Colors/blob/master/colors.php#L263 will throw notice if the GET parameters are not set ;)
user1596138
@NikiC Nope ;)
user1596138
> First, I know a lot of this is depracted in the new php, I'll update my entire site with the new commands once I get these last few things working.
No, you won't.
Exactly.
@LeviMorrison Section 4.2.1.7 is concise though, it's a good way to deal with asynchronous processes.
Hahahaha.
17:51
Woohoo, just got an Electorate badge
@nepal12 , congratulations, you have it all wrong. — tereško Jun 28 at 13:49
All thanks to the new deletion rules, which force you to always down vote questions when you close them ^^
@NikiC meh .. i got it year an a half ago
@tereško You're more actively doing moderation than me ^^
I don't even have the gold badge for the close vote queue
i have also got the Archaeologist and Copy Editor badges
btw .. "popular question" badge should be renamed as "extremely ordinary"
user1596138
18:22
@NikiC Added a clause anyway so the image headers aren't sent when they aren't provided.
@tereško 14538 edits => you never get tired of editing??
@ircmaxell couldn't agree more
Gah
So, if you guys were designing an API, would you view consistency of results as YOUR problem on the API side, or do you think it acceptable for an API to have variable output (in terms of format and completeness) and it is up to the consumer to sort out what is there and what isn't?
@ircmaxell btw kudos on your "Don't Be Stupid, Grasp Solid" talk... quality stuff
18:34
@Chris your side (i.e. return values should always be well-defined, ofc there can be things like optional fields or something)
@Orangepill which? huh?
@Chris depends...
@ircmaxell think it was a php user group in new york.... It was a youtube stumble ... probably pretty old
Ah yes
I've completely re-vamped that talk since then
I'm working with a couple of music lookup services. They, theoretically, return me information about a given album. Winamp or iTunes would use an API of this sort. Because I am dealing with very new releases, and many local/regional acts, I have to try several services to get a full data set.
I am finding that none of these damn services return self-consistent results
Not even Amazon
Well, what I would do
18:37
You have to question everything, sometimes they just don't have track names. Some times, the track names are in an array of strings, sometimes an array of arrays. Sometimes, there is an array of artists in the Artist field, sometimes it is a string.
is create a schema
what can be counted on, what cannot. And return a result (or an error) that fits that schema
So I would make it consistent from your side
So, I call these APIs and get fragments of information, so if I hit LastFm I can get the album art and release year, MusicBrainz will have the label, Amazon will have most of the track titles. Usually. Sometimes.
I am not sure if the schema approach, thus, would work because I don't want to reject fragmentary data
I just want it consistent!
Ugh
@ircwaxell is there a place I can see the newer one?
I think it is just going to be messy and frustrating no matter what I do, way more code than it should require.
@Orangepill hasn't been recorded yet
18:43
I guess the thing that bugs me the most is that the APIs aren't self-consistent. If I were making an API, I would regard consistency of output as a critical requirement. An album always has the following fields in the following format, for example.
@tereško Still, that makes a lot of edits!
19:00
Hi y'all- can anyone help me figure out the methods used to create this interactive calendar? I see some Google Apps action, but I'm hoping to understand the process better: austin.culturemap.com/events/?view=month
@Commandrea well . .you start by opening editor ans starting to write some code
@tereško you're so helpful, dear.
Just say 'I don't know' and that will be fine
Oh, I probably do know. It's just that your question is almost a copypaste from examples in this post.
what post?
thanks for wasting my time. anybody? Bueller?
19:17
hahahahahahah
@Commandrea this might be a good resource ... or here
@Orangepill I've read that... thanks; I guess to clarify, I'm looking for something more robust than that plugin; I see that they are referring to the example but not that the culturemap calendar uses that plugin. I'm dabbling in API and GAM but need some hand holding on the methods implemented. Doesn't have to be Google API but the front-end needs to allow searching, a list view w/ images, etc. I'm still on the hunt.
But yes, The Event Calendar is the closest thing I've found to what I need so far...
@Commandrea ... it is open source and free... maybe it's source would help you through the sticky places... if you can navigate through the wordpress brain-fuckery.
@Orangepill I like to make things difficult by wanting to know too much, I guess :) But yes, I'm considering to go Pro and add the community events option just to get something going...patience threshold approacheth
19:32
Hi people, I need a way to pass variable value from one file (which contains class and related function, and which interacts with DB and then returns rows value like: return $this->rows();.... now i need it to return certain variable value (for creating pagination of blog posts)
@uollaa is this what you are trying to do

SELECT A.categories_id, A.categories_name, count(B.posts_id) from categories A left join posts B on (A.categories_id = B.categories_id) group by A.categories_id
get each category id and name along with the number of posts in the category?
@Orangepill nop, the query isn't the problem, the query works fine, and it gives me total nubmer of pages after calculation, which i store inside variable for example $pages=5,
now
i need to pass this variable value
to my blog.php file
(the query results, return with: return $this->rows()
and then get called from blog.php like:
$posts_b = new Posts_b();
$posts_bx = $posts_b->fetchPosts_b();
(after that file has been required ofcourse)
@uollaa I'm failing to see where you are having a problem then..
problem: i cannot seem to return variable value, only query result (rows)
Hi all,
I am performing some plugin checks
19:46
@uollaa so you want to return the number of pages as well ???
I need to class some another plugin methods
and if that plugin not exists i need to call parent class method
what will be the best way
any suggestions ?
yes
0
Q: How to pass variable value to another file via class'

uollaaI have my main (user visible) file which displays posts, and I need to set-up pagination. It would be easy if I fetch DB in the same file (but I want to avoid that), that is why I created a seperate (user hidden) file which contains class' which are then called from main file(blog.php): BLOG.ph...

(hope I explained it better here)
grrr. I'm busting my balls all day on this
I've got an issue, I think it's math-related. ideone.com/E71mrg With anything more than 3 colors, I get bars of solid color. I believe the problem lies somewhere in the interpolateGradient function. Any ideas?
@uollaa I gave you an answer on your posts.
user1596138
@Shmiddty The problem can't be rounding now.
19:57
@Orangepill ok thank you, i'll try it emediatelly
user1596138
Look at it. It's outputting the first input color everytime before switching. It ha something to do with the way the loop ends and what actually happens. I wish we could see a live feed of $step++ and such.

« first day (1021 days earlier)      last day (4153 days later) »