« first day (754 days earlier)      last day (4420 days later) » 

00:00
@sam ask tereško he knows
sam
sam
@otporan thanks mate@tereško hi, any chance I could get some help please?
i have not worked with dropbox API
sam
sam
@tereško thanks
I'll post the question in case someone can help me... hopefully
this is what it give me: {"error": "Bad oauth_signature for oauth_signature_method 'PLAINTEXT'"}
what am I doing wrong?
user1125394
00:16
try2ask dropbox
Hi all
whats up baba
@otporan am ok ... and you
great
@hakre are you there ?
00:25
hi @Baba
@hakre how are you doing today
fine, and you?
Not bad .... am ok
looking a question ..looks interesting
where do you guys come from?
2
Q: Import and Update CSV to MySQL

user1807699I have a scenario where the client has daily updates / inserts from a CSV file which is generally around 30,000 to 50,000 rows. This CSV will contain both new imports as well as need the ability to update existing rows. I am using PHP / MySQL. Currently I am having to check each row of the CSV ...

00:27
@Baba is it UTF-16BE or is it UCS-2?
Or are both the same?
Both of then would return the same result
some of those encoding have similar characters
@hakre what do you think about the question
has the problem once i had to use iterators , Job Queue .... I feel there should be a better method
what do you think
@Baba Well that is not that many rows. Also that guy is probably only lazy to read the manual.
I'll leave a comment.
Why do you say he is lazy ?
Am looking at the issue from a totally different angle
00:43
See the given answer. That must not mean you would do it that way or how you would like to play around with that.
Funny enough i don't agree with the answer .. it only works if the CSV is 100% from reliable source
Imagine its a public system where people would have to import their CSV
you should also need to normalize the CSV data in the database
Has anyone else noticed that Chromium now has a built-in $ function?
@hakre i can count 10 different instances where that answer would not work
The only way would be to loop through the CSV
that is where the challange would be when dealing with large data
user1125394
$
function $(id) {
return document.getElementById(id);
}
00:55
@Baba Yes. I can imagine, too. However, that might just not be the question. You have to see what the OP is concerned about (or place your own question ;) )
@cyril No, it's better than that :D
bound: function (selector, start)
    {
        if (this._canQuerySelectorOnNode(start))
            return start.querySelector(selector);

        var result = document.querySelector(selector);
        if (result)
            return result;
        if (selector && selector[0] !== "#") {
            result = document.getElementById(selector);
            if (result) {
                console.warn("The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $(\"#%s\")", selector );
It's changed.
ah nice the selector DOM API has landed.
@hakre i see what you mean .. i would look at it again
user1125394
@ShaquinTrifonoff where did you see that?
@cyril Create/find an empty page, then execute $; in the JavaScript console.
I accidentally discovered it.
user1125394
01:00
@ShaquinTrifonoff if you do it here
user1125394
$
function (a,b){return new e.fn.init(a,b,h)}
@cyril Just find a simple page, such as this
user1125394
that's not native's
No, it's not.
That's because $ has been defined on Stack Overflow chat.
user1125394
$
function () { [native code] }
01:03
@cyril Ah, you must not be using a continuous build.
I'm using a build from yesterday.
user1125394
22.0.1229.94 m
> Version 25.0.1319.0 (166321)
user1125394
holly, it may often crash :p
@cyril Nope ;P
It's fine for me.
user1125394
was using a chromium 23 from daily ppa, on ubuntu 10.04 ->many crash
01:08
It's very stable for me.
@Baba Regarding UCS-2 / UTF-16BE I found this: unicode.org/faq/basic_q.html#14
user1125394
you are google's cobaye
@hakre hold on let me take a look at it
@hakre UCS-2 is obsolete terminology
It would have been nice for that to be in the PHP DOC
@Baba I dunno if it's a case with iconv. however I think UTF-16BE is more precise then. But my code does not look for surrogate pairs.
jup, that's a problem. Let me check with UCS-2
@hakre ... i even liked your approach .... I'll update so as not to mislead the OP
01:15
@Baba don't update yet.
I have found a flaw in mine.
@hakre i did not see that ... let me look at it again
put this character into the input: fileformat.info/info/unicode/char/1d11e/index.htm
������
UTF-16BE has this byte-sequence for it: 𝄞 -> d834 dd1e - a so called surrogate pair
Interesting ... hold on
01:18
that is not the hex value for the entity
UCS-2 mangles it to: 𝄞 -> fffd - which is not the right code. (𝄞)
You are right .......
Let me see if i can work around that
I got UTF-16 (hex) d834dd1e
While UCS-2 returned FFFD;
I know why your code has error
@Baba It's fixed now. Now using UTF-32BE which just returns the unicode-codepoint.
You can use UCS-4 in your answer ;)
01:34
@hakre Interesting .. hold on
2
A: convert unicode to html entities hex

hakreFor the missing hex-encoding in the related question: $output = preg_replace_callback('/[\x{80}-\x{10FFFF}]/u', function ($match) { list($utf8) = $match; $binary = mb_convert_encoding($utf8, 'UTF-32BE', 'UTF-8'); $entity = vsprintf('&#x%X;', unpack('N', $binary)); return $ent...

@Baba hurry, I need some sleep :)
@hakre yeah .... just noticed you have changed it from n to N
@hakre nice one .. 100% from all test so far
Yes N is for 4 bytes so fits the code-point exactly.
yeah
that was the initial error i found
but did not change from UTF-16BE to UTF-32BE
so they where issues
I still like yours better anyway
@hakre nice one ..... What time are you there ?
nice print_r converter
01:51
3 in the morning
way too early ;)
When you use UTF32 with iconv it will add a BOM in front.
That's why with iconv you need to use UTF-32BE to get the code-point in the first 4 bytes
2:53
user895378
8:53 bitches!
Really its 2:54am here too
so good night :)
user895378
:)
01:53
@hakre noob :P
and good morning @rdlowrey :)
user895378
@hakre morning!
@hakre that a new one ....
i"ll take note and do more research
thanks
have a lovely night rest
I don't know should I sleep, and sleepover 8AM, or just don't sleep at all...
user895378
@webarto You'll hate yourself in five hours if you don't sleep. I always do when I pull that trick, anyway.
01:59
@rdlowrey thanks mate... PHP ruined my life...
user895378
@webarto Only if you don't want to be a zombie during the daytime :)
@webarto , 4 hours of sleep are just fine
you get both major REM phases
ah, I only look normal on Monday, it's Thursday now, eyes bloody, hair messed up, beard itches, English hard speak...
@tereško you vampire
nope
I refuse to believe that you can sleep only 4hrs...
02:06
anyway , i should be getting some shut-eye too
yeah man
and i actually daily sleep ~6 hours (today it was actually 4)
that is cool, but it averages about 6
heart attack is smiling at us :P
good night and good morning to weird part of the world
/me passing out
actually there is a plan on doing something about it .. i'm gonna start running in spring
that should be good for the heart in long term
02:14
benlevywebdesign.com/wordpress do you think that "orange" color for the blockqoute is to bright?
02:35
@benlevywebdesign I think its good
Try out a nice grey like 2b2b2b
02:47
hell everyone, first time caller - long time listener here
hi there
Curious if anyone has an elegant solution to a problem. How to take a string like the word Pea. I need to take that variable and stick it in a query along with 'Peas' 'Pea protein' 'Pea Fiber'. Is this something I should use a switch statement for?
Nevermind I think I answered my own question. Just check it once with a switch statement and concatenate all the variations...no need to check for multiple
sorry guys
/^pea(s)? (protein|fiber)/i
whoa
Is that for the sql query or my php code?
@RyGuy For the PHP code, it's a regular expression.
02:54
Gotchya, I'll give it a shot thanks!
This one is better, actually: /^pea(s)?(protein|fiber)?/i
03:19
how to get image size, without getimagesize() ? :P
im srsly asking x) don't wanna do it with js
nvm
Can someone have a look at this?
@ShaquinTrifonoff Just did.
@henrymb67 Does it look okay? (blurred boxes)
03:35
Yes, lookin good
May want to see browsershots.org
04:19
I am using ffmpeg extension in php to generate thumb from videos... but sometimes, for some videos, the ffmpeg will hang the server and the web page does not load. Is there any solution for this ?
05:10
Is there a way to wait for the ffmpeg to finish the job for a few seconds, or else, stop the ffmpeg job ?
05:25
haven't used ffmpeg... but maybe ajax?... so that it runs in the background
phpmyadmin Help
I want to delete all the records other then from 1000 - 2000
I want to delete record other then which are between 1000-2000
DELETE tbl_name WHERE ID <> between 'A-003000' and 'A-006507'
^^^^^^ is this correct?
@ShyamK I am already using ajax to convert video and create a thumbnail with ffmpeg. But the process of conversion or thumb creation sometimes takes a lot of time, such that the server hangs up. Then i had to restart Apache server. Perhaps all server resources are consumed by ffmpeg itself. I think this happens when the uploaded video is corrupt.
@henrymb67 for what pary should I use it
05:52
part
@henrymb67 I just checked out this site... And tried to get screenshots for the Mac OS part... gotta wait for like more than 10 mins??? damn...
@DextOr when in doubt try a SELECT * with the same conditions... if they fetch the right rows then proceed with the delete
06:21
posted on November 08, 2012 by Paul M. Jones

A corporation that tries to function as a type of ‘spontaneous order’ (i.e. without an internal system of command/hierarchy) seems like a contradiction in terms. Smith’s and Hayek’s spontaneous orders turn on price signals. As Coase et al explained in the previous … Continue reading →

posted on November 08, 2012 by Paul M. Jones

Why is management a craft? It’s a craft for the same reasons engineering is a craft.  You can read all the books you want on something but crafts are learned by getting your hands in it and getting them dirty.  … Continue reading →

posted on November 08, 2012 by Paul M. Jones

The underlying problem here is that most software is not very good. Writing good software is hard. There are thousands of opportunities to make mistakes. More importantly, it’s difficult if not impossible to anticipate all the situations that a software … Continue reading →

http://paul-m-jones.com/archives/2667?utm_source=rss&utm_medium=rss&utm_campaign=it-was-like-that-when-i-got-here-steps-toward-modernizing-a-legacy-codebase
Planet PHP
It Was Like That When I Got Here: Steps Toward Modernizing a Legacy Codebase
Paul M. Jones
1352354880
posted on November 08, 2012 by Paul M. Jones

In which MWOP, Jeremy Lindblom, and I all discuss the Framework Interoperability Group (née the PHP Standards group). Is it a secret cabal? Are we trying to take over the community? Is a standard style guide going to get shoved … Continue reading →

posted on November 08, 2012 by Paul M. Jones

Earlier today, the PHP Framework Interoperability Group accepted two standards recommendations: PSR-1, “Basic Coding Standard”, passed with 17 in favor and none against. PSR-2, “Coding Style Guide”, passed with 13 in favor and 4 against, 1 abstaining. There’s been a … Continue reading →

posted on November 08, 2012 by Paul M. Jones

Chris Hartjes has a nice writeup on dependency injection containers versus service locators. Here’s a short way to tell which one you’re using: “If your class has a dependency on a container, you’re using Service Locator, not Dependency Injection.” If … Continue reading →

posted on November 08, 2012 by Paul M. Jones

Sometimes you may wish to use Aura as a micro-framework. It’s also possible to assigning anonymous function to controller: <?php $map->add("read", "/blog/read/{:id}{:format}", [ "params" => [ "id" => "(\d+)", "format" => "(\..+)?", ], "values" => [ "controller" => function ($args) … Continue reading →

posted on November 08, 2012 by Paul M. Jones

You can find them on Slideshare here: http://www.slideshare.net/pmjones88/it-was-like-that-when-i-got-here. Thanks to everyone who attended and rated the talk on Joind.in!

posted on November 08, 2012 by Paul M. Jones

In testing the Aura.Http package, I have realized that it’s much more flexible, testing wise, to pass around file resources (a.k.a. handles, pointers, or streams) than it is to pass around file names. When you do that, you can use … Continue reading →

A feeds bug!
06:36
@Feeds why is this like, well like this?
Not oneboxed
@ShyamK It looks like we can onebox something by entering text like that...
07:04
woh feed spam
feed got crazy....
feeds got fed up of the in-activity of this chat
@Gordon some hiring and hr related query have time to answer?
@DineshVenkata shoot
@DineshVenkata that means yes :)
I had an interview day before yesterday it went very well and I was the only candidate to be interviewed for almost an hour they said that they would talk to the vice president and get me a position in what I'm good at
but they said that I will not be offered the current position that I was interviewed for
all this is fine but they said that they would get back to me in two days but still haven't
how can I predict whether I'm in or not?
@Gordon
07:54
@DineshVenkata sorry, I really dont know how companies in India do these things, so I cant tell. You could give them a call tomorrow, politely asking whether there was any news, but I also dont know how appropriate this is in India.
@Gordon yea true but in general sense considering the sequence of events what could be the possible out come?
@DineshVenkata well, there is two possible outcomes: you get a job or you dont.
yea I know that
I really cant tell your chances
yea
I wanted to understand the hr mindset
but anyways thank you
07:58
no problem
Good morning all!
mornin'
Morning
My questions are too complicated .. 25 views.. not even a comment on it ;p
@DamienOvereem Link?
08:10
1
Q: classmap option not working while using php's SoapClient

Damien OvereemCurrently I am working on an internal soap service to control some internal processes. Which is normally not all that hard to do. I am however trying to use the soapClient classmap functionality to map objects instead of working with the stdClasses which are normally returned for non complextypes...

not something your average wordpress php plugin dev would know :)
morning .......
moening @NullPointer
@DamienOvereem Well for starters have code shared as plain text doesn't really help.
Use GitHub gists or some other formatter
my net got crazy downloading faster than normal but unable to surfing ... tried to post this message before 10 minutes but its posted now ....:-O
the code is properly indented, i may hope people can still read code without syntax highlighting
it seems i have found a tag which is worse then both and combined: it is the
08:26
@PeeHaa You can force the type of highlighting
<!-- language: lang-php -->
      code goes here
^ something like that. See here: meta.stackoverflow.com/a/75019/146255
@christian i think peehaa referred to the links in my question that point to dropbox
dont think dropbox supports code highlighting :)
08:30
@DamienOvereem oh...right. Apologies.
Would be cool if dropbox did though :)
@DamienOvereem Trivialities :)
guess tomorrow i'll stick a bounty on my issue.. meantime i'll do something else
@DamienOvereem Guess I won't help you till tomorrow then. :D
nope
Got a great offer from hakre though, he was willing to stick a bounty on it when it was possible
since me and my awesome 116 rep can't do much ;p
08:37
lol
go upvote my question, i need rep ;p
@DamienOvereem ill never answer any question which take 15 minutes to read and bunch of link
hah .. thx ;)
I think that will be the same for most NullPointer.. and tbh i can't blame anyone for it
Unfortionatly the question is too complex to make it shorter
@DamienOvereem You complicated it too much though.
Other users would just ask "soap not work. answer pls."
I thought about it alot.. and i simply do not know how to make it simpler. I've been wrestling with it for 2 days and all that info is relevant.
Hah :) indeed
I used to work at a servicedesk back in the old days. I still very much remember the mails.. "MY DOCUMENT WONT OPEN. I HAVE AN IMPORTANT APPOINTMENT.. I NEED YOU TO FIX MY DOCUMENT ASAP"
without any additional info
08:44
@DamienOvereem That's easy though. echo > important.doc && msoffice.exe important.doc
true :) that solves a heap of hurt
do remember moving all the files out of a users homedirectory because he wanted more diskspace to write files
i wasnt BOFH enough to actually delete them though ;p
@Christian Sounds like something OP should do don't you think ;)

« first day (754 days earlier)      last day (4420 days later) »