« first day (924 days earlier)      last day (4249 days later) » 

16:01
hey i got a logic problem with mysql
i have table messages and messages_deleted with id_message as relation key
i would like to remove all the messages_deleted fields with id_message NOT IN message table
any help please?
@okok why do you need a separate table for deleted messages? why cant you just have a is_deleted flag on messages?
@Gordon oh don't mind it's not my own decision :/
i agree with you
@okok i really dont think its good to hard delete from database (like message )
16:03
@NullPointer sorry didn't catched , can you resample please? :(
messages = id | text
@okok same as gordon said ..
messages_deleted = id | id_message
@okok uh, if you need to manage IDs across two tables, an RDMS might not suit you well.
i know dudes it's not my own decision :/
Or you need to create one table just for the IDs
And then both message tables need to refer there for the message IDs
16:04
and how do i deleted all messages_deleted that are no more in message ?
You need to create referential integrity for that.
@hakre i know it's a damn bad system lol but i can't do anything about it
@hakre cool idea
@hakre ehmmm :P not sure icatched
@NullPointer he got suspended only 2 days after creating his account?!
16:05
@okok you create one table that is for message IDs. It only has the IDs.
Then each message in the message table refers to one ID there.
@hakre uhmm but i need replicated data !?
Same for the deleted_messages table.
@Jocelyn he does looks over heated ..:P
@okok Not really, it's just IDs
deleted messages tooks messages id when message is deleted
already is relational sorry:
messages_deleted = id | id_message
messages = id | text
nope? :O
16:07
no, messages table does not know any longer about IDs in delete_messages table
i just need all messages_deleted fields NOT IN messages id
you create a new message with an exisiting ID and then conflict.
uhm right
pfff if it was for me, this system was refactored already from 6 months
but i have to do with what i have pff
i can't alter table system :|
what do you suggest ? :(
Hi all.
@Ihsan hiya
16:10
@okok then you can't introduce a deleted_messages table?
@hakre nope :(
i can't alter any db thing :/
@NullPointer Do you think my answer is appropriate? stackoverflow.com/questions/16254149/… no uv needed , just I am asking your idea...
this is the problem for me i fight everyday pfff
@okok then just delete messages if you need to delete them.
no problem if you must delete, but can't alter anything in the DB, you can only delete the data.
@hakre see other room please :)
16:12
@hakre i already delete messages but i need to delete on the other table when i delete on messages , and since records are tons, i'm trying avoiding to keep results for delete
cause in this case the only thing i think is to keep messages to delete , and by their IDs delete in the other table
but what if messages to delete are 100K ? huge query , cause will be SELECT + DELETE + DELETE
HI
i would like to avoid the SELECT part
Is anyone of you jQuery / php geek ?
:(
@sana This is not a traditional ignorance, and nobody is trying to be rude...
@sana lol what you mean?
16:16
@ihsan sorry, I did not get you.
Well, nobody answered you and I am trying to explain what is going on.
@okok I am looking for expert in jquery / php, to solve my problem.
@sana here all newbies like me
i'm sorry
As the chat room title says: If anybody can and wants to help, they will.
@sana do not ask for someone ask your problem ;)
16:18
@okok
If not they won't
than what ?
Who will help answering my problem / question ?
@sana God
I am not a geek. And I am scared of jQuery
or Santa Claus which do you preferr?
16:19
God will make reasons to help me.
@sana how i/we can reply to a NO-QUESTION lol ? :D
@sana ask the question please.
ask!!!!!!! @sana :D
0
Q: How to navigate through next and previous message button on media player theme?

sanaEDIT: I have edited the code in the following question. What I am doing is, fetching all messages from database at once in array and then displayed all messages in marquee tag With the following code: $player_msg = array(); $qgetplayermsg = mysql_query("SELECT * FROM player_message WHERE is_acti...

Here is question.
Use print_r(json_deocode($input))Baba 1 min ago
Does this deocode smell better than any other deo?
16:21
@sana Beautiful player
@sana first of all to avoid confusion: it is not a flash player....
yes
it is totally Html, css player
@sana for the rest I prefer plain javascript to that chunk called jQuery... sorry I hope you can find an expert to decode it.
@bwoebi he is only telling to see value of $input
@Ihsan no idea about java :(
@NullPointer Java???
:(
16:27
@sana Always write plain easy to understand and functional code first, then complicate it.
@Ihsan i mean this
jQuery is the most easiest solution for my application.
@NullPointer Sorry.
It is not complicated, but a little syntactic or logical error.
16:28
@NullPointer didn't you see the typo...?
@sana So review your code, prune it down to a working barebone skeleton then make things fancy on it.
@ihsan I have been trying for last 6 hours, now expired. :(
@bwoebi ohh i just dont expected from Baba :P
@NullPointer +1 for skipping typo
@Ihsan ty btw not that answer is not useful so deleted :)
16:32
@sana Forget the code, walk around, do your prayers... get refreshed... Then kick that code...
@NullPointer Doh.
night ...
@NullPointer Sleep well
@Ihsan yeah, thanks. I am going to sleep to innovate the ideas like Einstein. ;)
@sana Good... Mind is a tool, so you have to look after it well.
Sweet dreams.
@Ihsan thanks, :)
16:41
And I am gone too... Bye all.
@NullPointer morning
:D
/i/am/too/funny.txt
okok, nice name xD
lol thanks
kind of whatever you will say it is okok
;)
xD
can I wask you an english usage question? :P
ask*
there's no one on their chat rooms
sure i'm not english mother lang but okok
16:51
ah ok, I'll try anyway
okok ( okok)
imagine you have someone that creates a "plan"
okok xD xD
aha ..
okok :D go on ...
and then you have someone who "implements" that plan
what do you can him or her?
executor?
developer?
plan developer
i guess
16:53
that works if it's a IT plan or project
@hakre I was trying to get shit working. Your PR was what I was actually aiming at
but imagine it's a generic plan
oh... sec
Evening bitches
@DiAlex planner i guess
sorry, performer
16:53
ah okok xD
executor/performer
;)
I was just confused about performer, because it can be related with artists
executor better ;)
right you're right
ROFL
16:55
I think i'll go with "executor" :P
but it is ok
thank you okok :P
cause it's Formal
np ;)
16:56
you just helped me write a line of my master's thesis :P
@PeeHaa埽 reason for chinese after your username? :)
I'm chinese
@DiAlex oh great , this is great have nice thesis good luck with that ;) what is that about?
@PeeHaa埽 joking? seriosu? :D
Neh. I'm made in China
5
rofl
16:57
My parents have built the great Chinese firewall
wow
Chinese firewall is famous
yeah it keeps the mongolians out pretty good
@okok it's about creating a strategic plan to govern the IT of the portuguese public administration
16:58
@DiAlex wow
deep thesis , nice :D
it's okok xD
cheers, cya ;)
bye bye :D
have go one!
hey dudes party time? moderators are gonei think
ROFL
@PeeHaa埽
your bounty on meta is fading away :P
funk... had to change a tire, somebody slashed it, some people...
17:16
This is actually a Javascript question: Thought PHP dev's are also knowledgeble is JS :
0
Q: AJAX in Microsoft Office Web App

cipherI was coding an app for Office, where i planned to use AJAX to load contents dynamically from a external website to the office app. I have the following JS function. When the execution reaches to a.open() function, it shows an error: Unhandled exception at line 31, column 21 in https://localho...

17:28
i came here with a doubt, thought of how to ask it and got my answer.
i love that we have brains :D
Yii or Laravel?
@MoshMage also known as "rubber duck debugging"
Uby
Uby
@cipher AJAX doesn't allow cross site requests
@ircmaxell did you have the chance to try google glasses? You were selected, i remember
What is the best VM to use on windows ?
VirtualBox !
17:37
really ?
ohh well.. it;s OS
dunno what you mean by 'the best'
morning
@kaᵠ ran from VMware because of the paid version
@kaᵠ now i use Windows Virtual PC
and the Ubutu is fucking slow on it
give virtualbox a try
@kaᵠ thanks
ubuntu is becoming fucking slow
starting to hate the distro.. think i'm gonna move to Lubuntu, and if that craps out... arch or sumthin
17:39
@kaᵠ I guess to much online connection .. they think everyone has fast internet access
no problem 4 me :P
@kaᵠ i guess
58mbit down/22mbit up
@kaᵠ lol i have about 1-2% of that :)
I still download in KB for over $500 a month
auch... may i ask where r u? aprox at least
17:43
Nigeria
whoo, that's a ripoff
i pay 2% of that :P
move!
to get 160MB .. i need to pay like $10,000
don't have such to waste now
need to compress all the things 4 u
kinda gonna make you think resources better ;)
@kaᵠ yeah .... that is why something i laugh at some solutions .... it does not work in this part of the world
@Baba some solutions?
17:46
hello
like downloading huge db's ?
hi @Nikhil
@kaᵠ Mobile actually ... always trying to connect to the internet
Downloading updates anyhow
@kaᵠ
hi how are u today
ohh, that should be a standard.. realy, low bw on mobile happens (at least in forests if not some countries)
xcelent nikhil
Is there any reason PHP was selected for this code.google.com/p/phpvirtualbox
17:48
@kaᵠ just wanna consult something
what nik?
see this
@Nikhil: I don't agree. What official document could answer his question? Copying someone else's code is not discouraged by the FAQ, on the contrary FAQ says "We feel the best Stack Overflow questions have a bit of source code in them". He has a problem with a software algorithm he cannot understand: it's perfectly in-topic. — Pino 43 mins ago
what i remarked is correct or not
@Baba interesting...
sorry
@kaᵠ yeah it is ...
17:49
0
Q: Java SHA-1 to String AND

criztovyl_needs_helpin the Internet I found this code to genrate a SHA1 Hash: public static String hash(String str){ try { MessageDigest mg = MessageDigest.getInstance("SHA-1"); byte[] result = mg.digest(str.getBytes()); StringBuffer sb...

just see my comment
Let me consult to my seniors if i am wrong i have no objection in removing mycomments — Nikhil 31 mins ago
lol
@Nikhil a little bit hard to understand what you mean, but you're kinda right
but... that last comment ^^ lol
is that not correct
@Baba maybe Pino needs checking out if he thinks that way...
I always consult to my seniors]
17:51
@Uby So, the only alternative is to use JSONP ?
@Nikhil then do that silently and reply when you have something, that comment is pointless to say the least
So what I have to do know
Uby
Uby
@cipher JSONP or a ajax call to a server-side script (that will handle the server to server request)
should I remove my all comments
@Nikhil its good
17:53
@Uby Thanks :) You should answer the question, :)
@uınbɐɥs Your method of fetching the fkey is inefficient... Why can't you just use StackExchange.options.user.fkey?
to remove its good
you mean
@Nikhil if your comment falls into any of these categories: "rude or offensive, not constructive , off-topic, obsolete, too chatty" then delete it
Uby
Uby
@cipher I will in a few minutes ;)
I am not able to undertsand so thats why i am asking does my comments falls into any of these categories: "rude or offensive, not constructive , off-topic, obsolete, too chatty" then delete it
17:57
Hey all. I have a question. I am thinking about building my own personal email server. I will most likely be using Redhat or Ubuntu as the server operating system and my old desktop computer as the physical hardware for the server. The thing i am asking you guys is that when the server is up and running, what email client should i use on the web interface? Should i use one that is already made? Or should I write my own client user interface in PHP?
@DemCodeLines Use an existing one. Popular ones: squirrelmail #myView
@kaᵠ vistual box is much more better
thanks
@cipher Why, if I may ask?
Can't I write my own so I have greater control over what I want the interface to look like?
@DemCodeLines First reason: It's time consuming to write your own code
Ubuntu still slow but the mouse performance better
18:04
@DemCodeLines why would you care so much about such a thing? it's not like anyone else other than you is going to ever see it. unless you're starting an email hosting business...
@DemCodeLines Second Reason: I myself wanted to write that some six months back, i realized that it's not a one man's job
@Baba yw dude, there's some performance fixes you can do, play with it, tweak it
@igorw it is for my family. I will be using it, my cousins etc. so I don't want to it look ugly.
@cipher what's so difficult about it?
@kaᵠ ok thanks
ohh noes, @crypticツ is here! everybody duck! fast!
18:07
@DemCodeLines I can't explain. You may do it yourself. Just try it if you want to do it! I was just suggesting.
@crypticツ you managed to try a "grep" of some sorts on the chat?
@kaᵠ chat history shows all O_O
exactly :P
@kaᵠ not, yet. I just been scrolling through looking for newsworthy items that slipped through. =oP
@cipher I appreciate it. The reason I ask is because I don't even know where to start, to be honest.
18:09
@DemCodeLines you have to play with those imap_ functions, learn how email server work,
@DemCodeLines You have to make your own spam filter, make inboxes, other mail folders, Interface may be easy. but managing all those emails is a tedious job (unless you are too much determined to write your own)
@kaᵠ As an investigative journalist it's my job to be detailed and get the facts. The Daily @cryptic would not succeed otherwise.
7
Oh boy, that'll be tough :D
@DemCodeLines see the edit :)
@DemCodeLines Ah! and further, you have to convert raw email texts to viewable format, Manage attatchments!
wow @crypticツ you coined your own phrase
The daily @crypticツ
@kaᵠ actually @rdlowrey came up with the name.
18:13
well credits for him then
i'll give out 10 credits
anybody got more?
Well, then @cipher , what is the best looking interface?
@DemCodeLines I myself have to search that :)
@DemCodeLines I think gmail also provides the web interface
@crypticツ here's a tool :P chat.stackoverflow.com/…
@cipher I mean, most of these web clients are good in terms of functioning and back-end stuff, but to be honest, they are pretty ugly in terms of how they look to the user :D
@DemCodeLines Is gmail ugly?
18:18
Sometimes it can be.
@kaᵠ ah but people like you will try to hide your tracks by putting superfluous "lols" in the chat as decoys to throw me off =oP
@DemCodeLines Then you may try to modify the Squirell mail's look :) It's open source
@crypticツ lewl
And I won't face any copyright or legal issues?
@DemCodeLines I think not! Visit the site: squirrelmail.org/about
18:22
sorry, wrong ping :P
"SquirrelMail is licensed under the GNU General Public License (GPL), so there are no license fees to worry about." Oh ok
@kaᵠ I just overlooked ;)
there are others too
@cipher one more thing. Since I am using my own server (my computer), I don't need to worry about space or bandwidth limits rights?
I mean I don't need to worry about buying a web hosting package, right?
lol, trying chrome://gpu in firefox
18:27
@DemCodeLines Unless your family gets emails with attatchments too large (that it fills up your hard drive) or someone email-bombing your server, you are good! :)
@kaᵠ it it possibl efor you to call chrome://gpu via ajax ?
no idea, don't believe so... i know what you're thinking..... @Baba
@kaᵠ :)
@cipher Yeah, I doubt my family would send attachments that would be so large that they take all of the hard disk.
@Baba test! would be interesting
18:30
@kaᵠ one moment
@DemCodeLines :) and your computer should be up all the time
@cipher yeah sadly. I just hope the thing doesn't overheat... :D
@DemCodeLines goodluck on that :)
@DemCodeLines bye for now
@kaᵠ Nope ... tried like 6 different ways
18:41
If someone writes that the page shows up as blank when using PHP, there should be automatically a warning message before submitting that he should first try ini_set("display_errors", 1); error_reporting(-1); on the top of his file
add to that list: install xdebug and enable scream
I can't believe how much time I wasted tracing blank pages because of error suppression. and the fact that those options can change at runtime is not helping either.
@igorw the @ operator has valid use cases...
@Baba iframe/frame?
anyway
/gone
TTYL
@kaᵠ yes iframe
hi everybody
18:53
@bwoebi not really. it's just that the workaround is too annoying.
I look for a class php or a bundle for generate a waveform from a wav file
Example: What do you do if you want to test if you have valid headers or not (((for distinguishing websocket and ajax to the same port...))).

I've used `@http_parse_message($buffer)`
@bwoebi ok, but what if pecl-http is not installed?
@igorw Install it. Is one shell command and one edit of the php.ini away.
@bwoebi that's not my point. my point is: how do you realize it is missing?
19:03
(and now don't come with the shared hosting example where you have no rights...; my code here is not thought to be made public)
@igorw I make one check at the beginning if the ext is loaded.
can i be helpfull to someone?
@bwoebi except nobody actually puts such checks there.
@igorw
@igorw Tell the people they have first to check their dependencies xD
i look for a reposotory of class php loke this classesphp.org
19:08
But mostly the problems with the @ don't stem from extensions...
@bwoebi so basically your solution to the problem that error suppression causes is "go fuck yourself". well ok, fair enough.
@igorw But it's right. Really really never use @ if not really needed or the workaround is ten times less maintainable.
19:40
hello please
Why is cloning from git.php.net so slow? 150KB/s max...
posted on April 27, 2013 by Christian Weiske

PHP may tell you the following: PHP Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? This means that PHP is not able to do secure HTTP requests. Reason for this is that it has no SSL library to use. Unix Recompile PHP with the --with-openssl flag. Windows Edit your

@Feeds You seem to have forgotten that this in not a room full of complete fucktards.
Is it normal that you try to debug PHP code with gdb?
Or am I insane?
@bwoebi Are you trying to debug your PHP script or the PHP source code?
19:48
@DaveRandom the script.
@Feeds you don't say
@bwoebi why not clone from gh?
php planet: premium resource for people who could not find phpclasses site
@bwoebi Then I would say that's pretty insane, personally. I would imagine that gdb would give you way lower level info than you actually need and the data would be full of pointless noise. Admittedly I've never tried it, but I can't say I think it's the best tool for the job...
The only true way of debugging PHP is var_dump() :P
@DaveRandom I have the following situation: If I run my PHP from my tty it doesn't work; if I use a /usr/bin/screen as tty emulation, it works. But now, my PHP dies for some unknown reason. And I don't receive any message when a script dies inside the screen...
19:52
@NikiC Nah, inspecting types and looking at scalar values is cheating. print_r() ftw.
@NikiC No, debug_print_backtrace() (with $args)
If I run my PHP from my tty it doesn't work - define "doesn't work"?
@DaveRandom PHP seems to want to reinclude some require_once'd files and then fails on function redefinition (though I'm pretty sure that it's a bug of the pthreads module)
@DaveRandom how do I distinguish NULL and "" in print_r?
@bwoebi Sounds like you could do with re-structuring your code, personally I'm not a fan of *_once - just design your code so that the files only get loaded once.
@bwoebi I am, fairly obviously, joking :-P
@DaveRandom I really include them only one time: on the top of the entry script. And I don't include the entry script again...
But the big issue here is that it works in screen...
19:58
@bwoebi Easily debugged: just dump a stack trace to a file at the top of the scripts that contain the functions causing the error.
@DaveRandom what you don't say... Is a try worth...
@DaveRandom It is exactly once printing the backtrace, not twice as I'd expect!?

« first day (924 days earlier)      last day (4249 days later) »