« first day (1030 days earlier)      last day (3934 days later) » 

12:01 AM
@LeviMorrison So they could in fact give me acces that I need but restrict access to emails and other things they don;t want me to touch?
 
Alternatively they could set up ACL's.
There are lots of options for this issue.
 
Hello :)
@NokImchen Are you still into that compression thing? or do you now know why you should not make it? :D
 
@LeviMorrison Thank you for your suggestion, sounds optimistic. They have a really good support with this dedicated server, the support guys are very helpful. I think I am going to talk to the server support to come with something to do this sudo or ACL you mentioned (I have no idea what it is, but they should know :) )
 
@l0oky ya, m still doing it. I'm having a bit of success. Last night i got so frustrated when i realized than my calculations were wrong :(
 
@NokImchen That percentage I was talking about? Do you mean about these calculations?
 
12:06 AM
@l0oky do u wanna help me? i need a ready-made arithmetic coding function, i googled by got onlyfor c :(
@l0oky percentage? what percentage? i didnt get u , sorry :(
 
give me that c function ill try to convert it
 
@l0oky oh, sure, please wait, i'll google that link :)
 
You need it into php right?
 
@l0oky yes :)
 
also I don't know If I could really convert it into PHP i'll just try it :)
 
12:08 AM
@l0oky no prob, m googling :)
 
haha :D
 
today i got many and i got so annoyed cos all were in c, but now i get nothing :|
or this: not sure maxime.net.ru/src/mfarc.c
i think that's a lot. there are many many more. Let me knw, i'll give u lot more if u need :)
 
I thought it was a group function so I can make you a class arithmetic coding
:/
 
@l0oky oh, no prob :(
i'll write tomorrow in PHP :)
tonight i'm busy searching for a new algo :P
 
searching ? why not make it?
You said you're making your own compression engine
 
12:21 AM
@l0oky oh, i'm learning sorting algo. cos i can modify it and use for compression :)
 
What kind of sorting algorithm
there are many
 
@l0oky ya, i learnt only merge sort algo. i have to learn all the algo which have the least steps. Any idea?
 
I think I could make this into a PHP
I'll make a set of functions fast cause there are only functions what I see
 
thats wonderful :) :) :)
thank u soooo much :)
 
@NokImchen What are you sorting?
 
12:24 AM
@l0oky i'm sorting the random data that im going to compress :)
 
@NokImchen Hey I dont guarantee you anything I'm just trying to help you
a bit :)
 
@l0oky no prob at all :) little help is much much better than criticism :)
 
@NokImchen ^^
 
Anonymous
@Dukiboot What do you mean by project? Like hiring you for freelance projects or starting open-source project?
 
Anonymous
I'm interested in the latter.
 
12:36 AM
function foo(boolean $foo){
    echo "foo= $foo";
}

foo(false);
Argument 1 passed to foo() must be an instance of boolean, boolean given.
gaaaaaaahhhhhhhh. Is there any way to get that to work?
 
user652649
@Danack i use a hack that uses set_error_handler and that i disable when in production
 
user652649
interested?
 
Only because I'm slightly drunk - yes.
 
user652649
lol
 
user652649
basically it's similar to this php.net/manual/en/language.oop5.typehinting.php#111411 but improved
 
user652649
12:42 AM
when in production i just don't handle E_RECOVERABLE_ERROR
 
@NokImchen Do you use fflush(stdin);
 
@wes
wait wrong one.
 
@l0oky i dont knw. I have godaddy shared hosting. :|
 
@NokImchen lol
 
user652649
@Danack i know what you're going to link.
 
user652649
12:43 AM
xD
 
@NokImchen Well why am I converting a C program when you don't know what it does
What's make_table() for?
 
@l0oky i dont knw make_table() :|
@l0oky but all i knw is the arithmetic coding is based on probability and returns a series of integer (atually float, but we us the decimal part only)
 
@NokImchen So what functions do you need from
 
@l0oky i'll check carefully :) please wait
 
@NokImchen K :)
@NokImchen I kind of stopped because of fflush(stdin); so I am asking you do you know what it does there?
 
12:47 AM
@l0oky oooh, that guy has written anything. he made the "Arithmetic coding" so confusing :(
 
@NokImchen no its not
confusing
..
 
@l0oky i think better not ot convert :|
 
never mind
 
i dont know what to say :(
i want the code but dont knw what to say :(
 
you dont know how to use the functions?
 
12:48 AM
@l0oky thanks alot for helping. Please dont mind... :(
 
all you need to know is that ill do the rest
 
@l0oky there is no table needed for arithmetic coding :|
@l0oky actually, input is the string and output is an interger
 
@NokImchen Maybe its just a method of making arithmetic coding
 
@wes Unfortunately it's part of a library that other people could potentially use, so I ought not to use such an 'interesting' technique to allow boolean typehinting. Thanks for the suggestion anyway.
 
@NokImchen tables are actually only for the encode and decode functions
@NokImchen Not for you to use it :)
 
12:50 AM
@l0oky i think its making visual one like this stringology.org/DataCompression/ak-int/index_en.html (see the pic in java, there is a table, but i dont want table :|)
@l0oky yup! exactly! i don't want table, but only the output. Table is used while calculation the probability range of the symbols :)
 
@NokImchen CALM down the table you see in code is just for encoding or decoding. You are not going to use it in your code :/
 
ok, its 6.30 morning and not slept whole night, i think i need sleep :|
 
Anyone with experience in RSS here?
 
1:20 AM
@ŠimeVidas Just ask your question, it'll probably get you a faster response anyways.
 
user652649
@ŠimeVidas Don't ask whether someone is here to help you. If someone is around and wants to help they will.
 
Ok
So...
I can provide an RSS feed XML file.
And update it with new entries.
But how do RSS readers know when that file is updated?
 
They check every now and again.
 
Do they, like, request it from my server every 5 minutes and check for changes?
@Danack Doesn't sound like a smart platform. It has delays by design.
 
I haven't completely read through it, but have you seen
4
Q: How to check if an RSS feed has been updated in Python?

user1452759I am using the feedparser library in Python to get the various details from an RSS feed. Suppose I have pulled out 25 headlines titles from an RSS feed of a news channel. After an hour I run the feedparser command again to get the latest list of the titles of the 25 new headlines. The list might ...

 
1:22 AM
They should respect the expires time that you set.
and then check back when it expires.
@ŠimeVidas "Doesn't sound like a smart platform." It's not a platform. It's just some stuff bolted onto HTTP.
 
@NokImchen Have you compiled the c++ code?
I have
Wait ill send you a Screen shot?
 
@Danack But there will be delays. A publish-subscribe system would make more sense I think.
@Jeremy I'm more interested in how the popular feed readers (like Feedly) do it.
 
@l0oky i dont have C++ in my pc :|
@l0oky yes, sure :)
@l0oky sorry, i was codingan algo , (not exaclty an algo but kinda algo lol)
 
So first I create a table size of 2 with 2 chars one is T frequency is 2 and one is A frequency set to 1
then this :
Here's a better view from start
 
@l0oky eeehh.... looks like rocket science stuffs :|
ya, its right! but only half! :/
 
1:31 AM
@NokImchen Half of what
 
@l0oky i'll show u screen shot of "Bill GATES" encoded message :)
 
@NokImchen Show it
 
@l0oky yes, m screen printing. My slow pc is taking time to open paint application :|
 
Well thats a table
 
yes, but i cant see the final value in that C++ code
all i want is the final encoded code and decode. Cos too much info makes me confused :|
just two thing: encode and decode. no tables :)
 
1:36 AM
Hey, so the following query does what I want when :game is equal to an ID that exists, but when it equals do '%' (the wildcard option built-in), I don't want the query to select UsersGames.role. I only when UsersGames.role as an output column when :game doesn't equal '%'. Any ideas?
SELECT UsersGames.role,
       Users.*
FROM UsersGames,
     Users
WHERE Users.id = :id
  AND ((UsersGames.user = :id
        AND UsersGames.game = :game)
       OR :game = '%')
 
btw, i think u r working so hard... thank u so much for such a kind charity :)
 
@NokImchen No problem anyways want to finish the php code?
 
@l0oky yes,sure :)
 
One sec let me beutify it a little
 
@l0oky aaaah, take ur time :)
@l0oky i'll definitely pit u in the list of motivators once i finish my algo :)
 
1:45 AM
:)
 
Does adding an unused parameter in the FROM part of a query add a significant/noticeable amount of time:
    SELECT Users.* FROM Users

    # versus

    SELECT Users.* FROM Users, UsersGames
 
@Jeremy i think i'll definitely consume time as u r instructing mysql to search from 2 tables Users and UsersGames. Not sure :|
 
Anyone else who's positive of their answer?
@NokImchen Thanks
 
@Jeremy try experimenting with a table of few million rows. You'll see the difference of few Milli second or even seconds if ur table is not index.
 
@NokImchen Well I've got an index... and I don't have a table with a few million rows... =/
 
1:52 AM
@Jeremy Yes it will. It does an inner join so you'll get number of rows in users * number of rows in userGames results.
I mean "when you run the query, the SQL will provide you with"
 
@Danack Sorry, i just missed the last word.
@Danack Well thanks. Do you have any ideas then about my question above?
18 mins ago, by Jeremy
Hey, so the following query does what I want when :game is equal to an ID that exists, but when it equals do '%' (the wildcard option built-in), I don't want the query to select UsersGames.role. I only when UsersGames.role as an output column when :game doesn't equal '%'. Any ideas?
(query under question)
 
no - there's two typos in it which are confusing "but when it equals do" and "I only when UsersGames.role as an "
Or possibly I'm too tired to read it.
 
@Danack Meh, you're right. Let me make it more comprehensible
 
actually I think i understand now.
 
So I've got the query (same as above). When :game is set to "%" I don't want the query to select UsersGames.role anymore.
@Danack Any ideas then?
 
2:01 AM
@Jeremy I think it may be better just to do it as two separate queries.
 
@Danack By two separate queries do you mean to execute two queries if :game is set to "%", or to have two queries, one that selects UsersGames.role from UsersGames and one that doesn't?
 
SELECT UsersGames.role as role,
       Users.*
FROM Users
inner join UsersGames
on Users.id = :id
where
UsersGames.game = :game


UNION

SELECT null as role,
       Users.*
FROM  Users
inner join
    UsersGames

WHERE Users.id = :id
AND :game = '%';
oh hang on.
missing a where thingy.
 
*sigh* I have a more advanced query I was hoping to combine the original one I sent with (which I could do on my own), but I have no idea how to combine that with the query I currently have
@Danack Are you up to helping me with that or should I just go with bad practices and use an if in PHP
 
I am going to sleep as it's 3am - maybe ask it as a q on SO and ping a link to me.
 
hello PHP! Is there a php or pear module to execute javascript code?
in particular, I have some logic written in JS and I'd like an easy way to run it from PHP without having to fork an interpreter
 
2:10 AM
@Danack I'd think that'd be a little too help-vampiry. I can't see this question as helping others in the future, unfortunately. =/
 
Doesn't stop 90% of the questions on here....
 
@Danack It stops the people with sense, though. Hmph. Maybe I'll see if I can find a forum, haha.
 
@l0oky i'm feeling so sleepy, goodnight :)
 
@NokImchen Umm I'm finishing this
 
@l0oky ok, m here for next 30 mins :P
 
2:19 AM
@NokImchen k
 
@l0oky take ur time, no hurry, its u helping me. i have no right to say anything :)
@Danack @HamZa for a given set containing approx 1000 to 5000 items of totally random number, what sorting algo will loop the least inorder to get sorted?
 
2:32 AM
@NokImchen Here :
 
reading :)
excellent :)
code code :P
btw, i think u have learnt it totally ? :|
 
here
I didnt complete the image sorry
 
@l0oky no prob, i can visualize it :)
 
Nice
 
wanna see the php code sooooo much :)
 
2:44 AM
@NokImchen Testing the script now
probably has many errors
this is my first test
do you want me to give you
this first untested version
maybe you can fix it further
 
YES
i'll fix it :)
no prob at all :)
 
2:56 AM
@Danack If you're interested, dynamicdrive.com/forums/…
 
@NokImchen Okay
ill zip it up
heres the preview btw
nvm, sorry
 
@l0oky waiting for the preview :)
 
Ill zip the scripts up
they are full of errors
 
@l0oky no prob :)
 
but they are minor
 
2:58 AM
:11180362:)
 
@l0oky downloading :)
tank u soooooo much :)
 
@NokImchen arithmeticcoding.php is the main script
the rest is helping scripts
I'll try to fix the script error and upload another version
maybe tomorrow :) or now >:D
 
@l0oky oh, thank u sooo much again :)
@l0oky i'll try running he code and sleep peacefully :)
 
It's full of errors btw :)
its all minor
you should be able to fix it
too
 
3:02 AM
@l0oky hehe, i'll try :)
heheh Fatal error: Using $this when not in object context in /home/content/arithmeticcoding.php on line 100
 
yeah well
when you have to convert the code from c++ you easily get disoriented
much of c++ code had to be thrown away cause its just for console output
 
oh, i have no idea abt c++ :(
its 8.30 am here. havent sleep whole night. backbone, neckbone aching :|
i'll sleep :)
@l0oky oh, thats good :)
 
@NokImchen Lol your back is going to thank you when you lay down
 
@l0oky hehe, ya, even my right side forehead is kinda aching. And just cant look at the keyboard. Whole night on PC trying to figure out a compression algo :D
 
lol
I forgot to type this in code
make_table(4,array("T","E","S","T"), array(0.2,0.27,0.276,0.2769));
 
3:07 AM
well, i'll sleep now,
goodnight :)
take care, sweet dreams :)
thank su so muc
ah, i'll add :P
but where to add :D
 
at the end
 
@l0oky ok :)
added :P
m off :|
 
@NokImchen developer dont sleep instead they take nap
3
:D
 
 
2 hours later…
5:15 AM
@Danack you as the user of that code say if it makes sense or not. I just placed the questions there to show you that some modifications are easy and quick to do, e.g. if you create get/set pairs.
 
user652649
morning
 
hey there
 
5:37 AM
hello!
 
hi
any guys , could you help me, How to post data from android to yii server using xml .
0
Q: How to post data from android to yii framework server getting error

Pr  kshetriI am suffering problem during getting value from yii framework sever. From yii developer side , he says me you are nothing giving me any input data, but i all ready give data from xml format. He says, i am getting imput null. YII developer Said to me: He getting null in input $input = $GLOB...

 
6:01 AM
-1 for ereg_replace ,This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. — NullPoiиteя 2 mins ago
damn copy cat
@Wes morning
@hakre morningsss
-5
Q: Hai My paging is work ..but..in that after the paging size my element links are not working ..any one can help me

Vinathi Sombut..in that after the paging size my element links are not working ..any one can help me Hai My paging is work ..but..in that after the paging size my element links are not working ..any one can help me Hai My paging is work ..but..in that after the paging size my element links are not working ....

LOLwt
 
user652649
Hail!
 
@NullPoiиteя what a find :D
I'm really curious how that happened... :D
 
xD
> Hai My paging is work
 
you really have a good hand picking those :)
 
that is second reason i visit so (first is chat) :)
 
6:22 AM
got a MySQL question so jump on in an answer it =oP stackoverflow.com/a/5887163/1592648 I'm trying to do that, but I keep getting syntax errors. This is what I have input: SELECT CONCAT('GRANT ALL PRIVILEGES ON *.', TABLE_NAME, ' to 'example_com'@'10.31.70.25' IDENTIFIED BY 'somepassword' REQUIRE SSL;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '*' AND TABLE_NAME LIKE 'example_com_%';
what am I doing wrong?
the quotes look funky in the answer to begin with, but if I escape the quotes they error where I escape
 
user652649
6:42 AM
' to 'example_com'@'10.31.70.25' IDENTIFIED BY 'somepassword' REQUIRE SSL;'
 
user652649
" to 'example_com'@'10.31.70.25' IDENTIFIED BY 'somepassword' REQUIRE SSL;"
 
@Wes weirdly this works SELECT CONCAT('GRANT ALL PRIVILEGES ON *.''', TABLE_NAME, ''' to ''example_com''@''10.31.70.25'' IDENTIFIED BY ''somepassword'' REQUIRE SSL;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 'example_com__%';
it outputs the grant queries for all tables prefixed with example_com__
 
user652649
@crypticツ yes, because '' is === to \'
 
oooh
but why does it error if I put \' ?
 
user652649
it's not valid for mysql
 
user652649
6:50 AM
you have to use '' or use "
 
kk
GRANT ALL PRIVILEGES ON *.'example_com__test' to 'example_com'@'10.31.70.25' IDENTIFIED BY 'somepassword' REQUIRE SSL; is one of the outputs for it, however when I run it it runs fine, but I don't see the user being listed as being made
Running SELECT User FROM mysql.user; does not show the user example_com
 
user652649
no idea about this
 
user652649
maybe you have to create the user first
 
usually using just grant ...user@host is enough to create the user. I'll create user first and see
 
user652649
idk
 
user652649
6:58 AM
did you try "EXPLAIN GRANT ALL PRIVILEGES.." ?
 
user652649
not sure if it works
 
weird, user is now creared used CREATE USER and now the above GRANT query no longer works and errors about syntax
I have to specify the database now, I can't use wildcard, bleh
@Wes thanks for the quote info, heading out, night
 
7:29 AM
hi :D
 
morning
 
silly bug report :)
0
Q: CSRF token fkey does not do anything for Add Image [From the web]

Dave ChenLooking at this question, it seems fkey is a token to prevent other people from automating actions from a remote webpage. The frame where the token exists is from the Upload Image dialog. I did a quick test: I logged of my account Cleared all cookies and cache Viewed a random question Ope...

 
7:44 AM
@DaveChen Hello
I have a little doubt.
`<input type="hidden" name="quiz_file_<?php echo $question['id'];?>">
<input type="file" id="upload_image" name="upload_file">
<input type="submit" id="<?php echo $cur_quizID;?>" name="upload_submit" value="Upload">`
When u try to upload image, upload script not including image. This code is in foreach loop
Hello anyone?
 
8:18 AM
@vinaysingh Barely anyone online, try posting a question on the main site
 
@NokImchen I would think that you need to loop through the whole array since it's random
 
@LightningDust I was in hurry so tried here
 
@vinaysingh Only issue I can see is that you're not appending anything unique to the id of the file input in the foreach loop.
 
@LightningDust Hello
 
@dreamsonfire Hi
 
8:26 AM
@LightningDust Hmm..you are right. Because of $_FILES['upload_file'][name']. to get the id i used <input type="hidden"> and which is creating problem.
How can i write php code inside the $_FILES['']?
 
@LightningDust How i start PHP Development i dont know to much about PHP
 
@dreamsonfire Go find tutorials. :P
 
@dreamsonfire dear follow tutorials. and if you want, follow my fb page and blog.
 
@vinaysingh $_FILES[$someVar]?
 
@LightningDust R u sure?
If this will work. I will kiss you :)
 
8:30 AM
@vinaysingh I'm sure you can use a var as an array index, yes :P
 
@LightningDust that i know :P
*knew
 
@dreamsonfire If you are really crazy about php. google tuts or simply read my blog..pretty new but will help you. mycoderide.com
 
@vinaysingh thanks Bro :)
 
@LightningDust But if name="upload_file_<?php echo $id;?>" how can i make var of name attribute
which can i use in my upload script inside $_FILES['']
 
@vinaysingh if someone says thank you then you should be reply :P
 
8:39 AM
@dreamsonfire O sorry. I'm busy dear.
BTW. your welcome
 
@vinaysingh :)
 
@vinaysingh You could do foreach($_FILES as $file) and engineer it that way, or you could capture the field name in a hidden field.
 
@LightningDust I did it in hidden input type. but that made my script horrible.
It takes only last id. when i click on first one
 
@vinaysingh You can't have multiple submit buttons for one form, you need to put a form in your foreach loop
 
@LightningDust actually i am working on a quiz plugin which contains question. every question should have its image.
@LightningDust Hmm....i was also doubtful about this.
Can i write form within a form?
 
@vinaysingh Why would you want to?
 
@LightningDust I think submit button can be identified by its name attribute...so we can have multiple submit button
 
@vinaysingh By default a submit button will submit every field on the form
 
@LightningDust because i have to keep images below the question so that it can take ques id as its foreign key
@LightningDust so i think we should use type="button" for reaching our goal
Am i right about button type?
 
@vinaysingh That may work better
Personally I'd just declare multiple forms
 
8:50 AM
okay. have u worked with timer anytime?
 
I'm a little preoccupied, sorry
 
@LightningDust okay.dude
 
@vinaysingh If you post your questions on the main site and link them, I'll take a look when I get some time
 
9:02 AM
It's somewhat an AppendIterator and a MultipleIterator: The CartesianProductIterator - see it in action:
0
A: PHP Array: join each sub-array together (Probability)

hakreI first opted for some iteration (counting) based solution directly working on the arrays. As it turned out, this was just a loop with multiple counters. Then I thought, why limit this onto arrays? Why not using a CartesianProductIterator that creates an iteration over the cartesian product of mu...

 
9:41 AM
hi all @LightningDust
oh no one is here lol
 
well, some are here, just a chilling sunday I'd say :D
 
yeh
is the password_verify fn inbuilt in php
 
9:57 AM
Yes, it is: password_verify - However since PHP 5.5.
In case you miss it, there is the userland implementation: github.com/ircmaxell/password_compat
It is also linked on the manual page.
 
 
2 hours later…
11:33 AM
Goodmorning!
 
Ohh
 
?
 
Good Evening in here(Asia) .
 
Haha :P
 
:v
 
11:36 AM
@Jeremy @Jeremy Even after reading your longer explanation, why does chat.stackoverflow.com/transcript/message/11179977#11179977 not satisfy your requirements?
 
openwall.com/phpass is this good?
 
@ఠ_ఠ yes. though some say it's not needed anymore with the latest version of PHP.
 
True PHP 5.5
 
My Justhost php version is 5.4
bcript is not work in 5.4
is there any library that i can use bcript in phph 5.4?
 
I changed my pony
I'm not Lightning Dust any more :D
 
11:42 AM
@ఠ_ఠ er, that one you linked?
 
is it use bcript ? i didn't read it yet
 
"The preferred (most secure) hashing method supported by phpass is the OpenBSD-style Blowfish-based bcrypt, also supported with our public domain crypt_blowfish "
 
:)
where is the Documentation ?
:O
Prepared statements with PHP and MySQL

As of this writing, PHP offers three main interfaces to MySQL: PHP's MySQL Extension (obsolete, not recommended for new projects - but still widely used), PHP's mysqli (MySQL Improved) Extension ("preferred" for new projects), and PHP Data Objects (PDO) (recommended, but not "preferred" for new projects). The last two of these support prepared statements. Both require PHP 5+. We'll use mysqli.
WHY THIS ?
???????????????????/
PHP Data Objects (PDO) (recommended, but not "preferred" for new projects).
 
wat?
 
that article saying it ?
:OOOOOOO
 

« first day (1030 days earlier)      last day (3934 days later) »