« first day (1766 days earlier)      last day (3198 days later) » 

12:00 AM
If you have a real project your working on you should be able to say something about it.
 
DNC
@benlevywebdesign if you're a real freelancer you would know projects aren't talked in public
 
If this is some top secret project for some big company, then thats a different story. Chances are people don't sit around here reading peoples ideas just waiting take the ideas and make them their own.
 
Assemble my minions!
 
@Danack BANANAS!
 
DNC
@benlevywebdesign you, my friend, should watch this movie: The Social Network
 
12:03 AM
@Fedora as the comment suggests, this is one of those things you need to sit down and debug, to figure out what is causing the problem, rather than trying to figure it out from just staring at the code.
 
that wasn't a freelancer working on a project
 
DNC
Yes it was, go watch again
 
That was Mark Z working with the main guys and then he stole the idea from the two main guys
They were almost like a startup
 
@Danack i have done considerable research on that debug the code everthing done, after failure i posted on SO
 
So what is causing the problem?
 
12:06 AM
@Fedora now you just have to wait to see if someone answers it
 
DNC
The idea was from the 2 guys, mark Z was just the one that was going to program it. the 2 guys could go to anyone to program it, they didn't need specific mark Z, they just needed a programmer
 
> when I try to fetch data from database it's does not working
 
@Danack waiting for that...put lot of effort on that
 
That's not a description of the problem....that's just a symptom of the problem.
You need to find out what the actual problem is for anyone to be able to help you.
 
data is fetched from database i checked var_dump but not displayed in input box
 
12:09 AM
@DNC so most likely the average person on here isn't going to take your idea.
 
actually i am not able to put some things at right place documentation is very old
 
@Fedora will look into your problem just give time
 
@Fedora I can't find your question in your so main question
 
"There is no concrete question"
 
12:15 AM
@AnmolRaghuvanshi thnku for consideration
 
benlevywebdesign: from that previous question about the SQL issue, where does $id come from?
 
@NeoThermic hmmm?...
 
in tripinfo_edit.php, where does $id come from before it ends up in the SQL query?
 
where do you get tripinfo_edit.php?
 
from the other code you pastebined
 
12:24 AM
oh
$id = $row['id'];
why are you asking about that?
 
just wanted to make sure you were not accidentally making yourself vulnerable to sql injection
 
user4706838
@Danack thnku for understanding my problem fact is i don't have any computer background just started learning programming so there are few things i am not aware of like json and ajax which is to implemented in my problem so when i come to know abt that i have solved my problem.. :)
 
@Optimmus did you just switch from another account?
 
user4706838
@benlevywebdesign you want understand it's talk for day or day before yesterday
 
user4706838
between me and danack
 
12:30 AM
@benlevywebdesign yes he did apparently.
 
@Optimmus I'm only guessing but if you are trying to use so with two accounts to get around blocks or bans or think you will get help if you come in as a different person is a bad idea. Don't make the same mistakes I did.
 
user4706838
@Danack you have given link for some tutorial when some days ago
 
user4706838
problem which i have been facing
 
Abe
you are monopolizing the chat
 
specifically when someone types"thnku" & "thnku" the same way from two different accounts, it makes me wonder....
@NeoThermic forget that pastebin. I have other things I'm trying to work out right now
 
12:37 AM
The real question is why they replied to themselves... chat.stackoverflow.com/search?q=thnku&room=11
2
 
I see lots of "thnku"
from different people on that page
 
"different people" - and you once.
 
yes
well twice on the same line
 
what typing like same thnku @Danack they are not mine accnt
 
@Anmol then why does that account log out and disappear from this chat?
 
Abe
12:48 AM
 
how can i tell may they have a same accnt
 
i have been here for years
 
Something is very fishy here....
 
yup it's looks like
 
12:50 AM
@AnmolRaghuvanshi really? or just 1 year and 3 months
 
ya approx it's have been 1 year i am on SO
why not to check may be from stackexcahnge
this is creating some mess it can cleared some how
 
The clearing of the mess starts with you
If it's not you, don't log out and log back into the other accounts
 
But what's funny is that Anmol is from Raurkela and Optimmus is from New Delhi...
 
12:56 AM
links on Anmol's profile page link back to the same page as well...
 
which one
 
i never logout from account @benlevywebdesign may be they same accnt one log-in and other one login
 
@benlevywebdesign both..
 
we both are india that's funny
 
@Anmol But never log in at the same time or be logged in at the same time?
It's not funny
 
12:58 AM
@benlevywebdesign exactly../
 
i don't what to say danack will look into matter if i am gulity.... as per rules do whatever
 
@Anmol why do you keep mentioning danack?
 
coz whatever happened is in his presence
 
you have only been allowed to chat since "2015-03-25"
 
@benlevywebdesign you know... this is getting confusing.. Anmol talks to paritosh, although we think they are the same person.. several times paritosh uses thanku and even thnks instead of thnku while Anmol never uses thanku.. also, Optimmus and Anmol are both from India (although from different parts of India)... So what conclusion can we make from all of this?
 
1:03 AM
@TanMath Leave it to mods.
 
plz don't make mess out here
 
We are not...only you can prevent the mess
 
@AnmolRaghuvanshi If those accounts aren't related to you, why would it be a mess?
 
hey anybody here know java
 
@GettingNifty just ask.....
 
1:04 AM
how can i format code
 
Also, I would like to note, Optimmus's and paritosh's english is better than Anmol...
 
CODE FORMAT
ok
 
@Danack this is not place to discuss
 
@GettingNifty welcome! please read the room rules for this room which is for php
 
@benlevywebdesign .shh.
 
1:05 AM
@GettingNifty this is a php room, not Java...
 
can i just ask one fuckin question bro
 
I'd rather talk about Java than stupid sock puppeting.
 
it's not a lot of code
 
Ask - there's no on here who can mute you...and the other conversation is tedious.
 
@Anmol why not because you don't want to blow your cover
 
1:06 AM
alright i'm opening eclipse, it's just a little @Override
 
@TanMath I can sound more smart or less smart if I chose to....
 
user895378
<--- can kick-mute
 
user895378
success_kid_fist_pump.jpg
 
@benlevywebdesign so?
 
JButton newButton = new JButton("Submit");
textPane.add(newButton);
newButton.setEnabled(true);
getRootPane().setDefaultButton(newButton);
newButton.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent evt) {

JFrame newFrame = new JFrame("Welcome");
newFrame.setVisible(true);
newFrame.setBackground(Color.BLACK);
newFrame.setBounds(0, 0, 580, 200);

JPanel newPanel = new JPanel();
newFrame.add(newPanel);
dispose();

JButton nuButton = new JButton("Mario");
newPanel.add(nuButton);
just the override at the end
 
1:08 AM
@TanMath I can pretend to be somebody else if I don't normally talk a certain way
 
Abe
guys, what's happening? some planets alignment? chemtrails? division by zero?
 
I get these errors on just the parenthesis around ActionEvent evt, and it recommends something dumb like actionPerformed.ActionEvent evt;, which then gives an error on ActionEvent
 
@Abe My PHP won't work!
 
@Abe some cops are here
 
Abe
@GettingNifty 1- not java room 2- don't paste walls of code here or in any other room, use nopaste
 
1:10 AM
@GettingNifty JavaScript?
 
oh i forgot sorry about that
java
 
@benlevywebdesign oh ok.. but what motive would a guy have to create a bunch of SO accounts and ask itself a quesion...
 
to seem like people are helping him
 
Abe
first time that i use ignore. congrats
 
@GettingNifty can you create a jsfiddle?
 
1:11 AM
where's the nopaste
 
user895378
@Abe welcome to the club ... come on in ... the water is fine
 
whats the website
 
@GettingNifty you are either failing at copy+pasting, or you are missing some parentheses in your code.
 
Ok I'm going back to my php not working like it should
 
...Or Java has changed so much since I last used it so that I can't read it...
 
1:12 AM
lmao
 
newPanel.add(nuButton);
@Override public actionPerformed(ActionEvent evt) {
    JFrame betterFrame = new JFrame();
}
 
Abe
@rdlowrey water??? they told me you had beer
 
user895378
had* ... past-tense my man
 
user895378
It's all been consumed by this time of the weekend
 
Abe
1:13 AM
lol
damn my broken english
 
good morning
 
Abe
hey o/
 
user895378
@Orangepill o/
 
\o hey
 
welcome to the mess @Orangepill. You can still quietly exit the room and know one will no you came! :P
 
1:16 AM
can i declare anything in the main method to make it work
I'll give you the whole program code if you tell me the website
 
@GettingNifty I think you've just messed up the syntax. Removing the bit in the middle should make it clearer:
new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
        JFrame newFrame = new JFrame("Welcome");
        ...
        @Override public actionPerformed(ActionEvent evt) {
        JFrame betterFrame = new JFrame();
    }
You've got an annotation and method declaration inside another method.
 
@GettingNifty the links for several pasting websites are here
 
hit the submit button it will open another window
i'm a newbie
 
JButton butt = new JButton("Click me!");
butt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// ... called when button clicked
}
});
 
@GettingNifty you just need to put the stuff inside the actionPerformed method that is already there, rather than trying to add another method of the same name. Probably.
 
1:25 AM
Teehee, you said "butt".
 
Is there a general way to get parameters from a callable (names and types) independent of what kind of callable it is? (invokable object / closure / static function)?
 
I'll try that @Danack
 
@Orangepill reflection, and Auryn does all of that if you need some code to copy be inspired by.
 
@Anmol Raghuvanshi it didn't work in this case, it could be my fault
 
@GettingNifty you want to open new frame on button click that's right
 
1:29 AM
@Danack but with reflection I will have to adjust strategy based on the callable type right? Just thought there might be a more wholesale way to do it.
 
user895378
@Orangepill yes, it's a real PITA. That was the most annoying part of creating auryn
 
ReflectionCallable would be a nice to have :)
 
user895378
That PHP allows callables in the form ['B', 'parent::who'] to represent relative static methods makes things like this terrible
 
user895378
You basically need to determine ...
 
@Orangepill hassle @Trowski or Levi to make the callable() function...then only one thing one need to be reflected. (though for performance reasons it might still be better to do all possibilities).
@rdlowrey to determine how much peyote they consumed to think that was a good idea.
 
@rdlowrey Honestly, I wouldn't have blamed you if you had just said "Why the HELL would you do that?!" and then not support it
 
user895378
^ You can copy read that if you want to see how to do it
 
@rdlowrey actually that's not as ugly as I was afraid it would be
 
I keep getting more and more tempted to start working on a language VM.
(or a language engine, not necessarily a VM)
 
the documentation says

addActionListener

public void addActionListener(ActionListener l)

Adds an ActionListener to the button.

Parameters:
l - the ActionListener to be added
 
1:36 AM
18 mins ago, by Danack
@GettingNifty I think you've just messed up the syntax. Removing the bit in the middle should make it clearer:
18 mins ago, by Danack
You've got an annotation and method declaration inside another method.
Talking of wtfs - why was this allowed: 3v4l.org/SideV
 
@Danack I was involved with a project a long time ago that used functions to define functions like this.
I have no idea why that was done.
lol
(or something like this)
 
In that case if I called the wtf method on two different instances of Test would two different bars be created?
would the bar functions ever get gc'ed?
 
> Cannot redeclare bar() (previously declared
apparently.
 
Calling twice leads to redefinition error.
 
I have a few thing I have to fix. I guess I work on it tomorrow when my brain is fresh
 
1:44 AM
@Orangepill I would guess no.....they're just created in the global list of functions. They're not variables that can be cleaned up.
 
except in hhvm... then bar becomes a global function.
 
Anyone with experience with GitLab here?
 
@Danack didn't think named function where eligible for gc.
 
JButton nuButton = new JButton("Mario");
newPanel.add(nuButton);
nuButton.addActionListener(I);
@Override static actionPerformed{
public addActionListener(ActionListener I);
}
error on static
WTF
 
@GettingNifty From your link earlier new JButton("Mario"); is inside a method named actionPerformed.
You can't declare a method inside another method.
 
1:49 AM
What's wrong with that
 
> error on static
apparently.
 
In an application you only have listeners on the first frame?
I need to sign in, and then, choose a character, which will open another frame and display a picture or a video
i will probably get it eventually...
we got somewhere thanks for the help
this is just the start I have JOGL installed too :)
how can i declare a JFrame in actionPerformed and build it outside of it
 
@GettingNifty I would recommend switching to using real named classes (in a separate file) rather than trying to define everything through an anonymous inner class.
 
2:05 AM
I just love working with legacy banking interfaces in php...
What's the easiest way to get a 7 bit + 1 parity bit and converted over to an integer.
 
how come the better i get the more obscure the instructions get
 
Or not as apparently it doesn't do bit fiddling.
 
anyone good with laravel here please?
 
@Danack sweet there is bit shift operators in php
<< and >>
 
is legacy the same in different languages
 
2:12 AM
legacy just means old ass shit that should have been updated a long time ago
it's a broad term
 
Or stuff that was written 5 minutes ago, but you forgot to comment it.
 
what do you actually do when you program bits and bytes, i saw some packages.. is it just one way to read information
i understand how they work, is it networking node bytes and bits?
are you working on the central NYC IBM singularity byte
 
not in my case ... they are just sending data in some goofy ass binary encoded format and I have to decode it. ends up representing transaction history on a store gift card
 
sounds really secure, you know they throw those things away by the shopping carts at gas stations when they don't sell. empty gift cards, seems like a hackers paradise
considering they're activated on the ruby system
 
user image
4
 
user895378
2:23 AM
@Danack do you think we should expose the ability to get the correct ReflectionFunctionAbstract instance for any callable as part of the auryn public API? It seems to be something people frequently need
 
i'm so tempted just to nom the parity bit without checking it.... it's been so long since I had to do anything bitwise like this
 
morning
 
it's 10:30 pm here
 
@GettingNutty UGT
it's always morning here
@choz morning
 
Anyone knows how to simplify this code...

$newDateTime = new DateTime('2015-04-22');
$newDateTime->setTime($salesOrder->getApprovedAt('H'), $salesOrder->getApprovedAt('i'), $salesOrder->getApprovedAt('s'));

I want to retrieve a date time, and just modify the date..
 
2:39 AM
@rdlowrey Probably - though that leads to some crazy thoughts about currying/partial application of functions - github.com/rdlowrey/auryn/compare/master...Danack:curry
 
@choz looks like you are barking up the right tree where is it going wrong for you?
 
Or at least reminds me of that.....also nn.
 
nothing's wrong, but it seems rather ugly to me... :(
 
user895378
@Danack 'night
 
have you asked alice
the alice bot
 
2:46 AM
@choz assuming your get ApprovedAt takes a format code your might be able to do something like $newDateTime = new DateTime('2015-04-22 '.$salesOrder->getApprovedAt("H:i:s"));
but that might just be trading in for a different type of ugly
 
wow, i can pass the parameter like that?
 
yeah... nothing wrong with that
 
no, thats much better and not ugly at all
@Orangepill thanks alot.. i think its much better now :)
 
glad I could help
 
glad i got helped
i need to read documentation more :(
since i suck on theory
 
2:51 AM
docs are one thing I feel php has done very well
 
tell me about theory
i'm stuck with laravel's documentation for days now :/ and it might not even help in the end lol
 
Is a destructor always run before leaving scope? That is, if a destructor throws an exception, and an object is created an destroyed within a function, will that exception always be thrown from that function?
 
@AnasLmt lol, how hard is laravel? Im kinda thinking to develop something on it..
 
@trowski I believe that to be true... anytime an instance goes out of scope
 
@choz i'm not really in a position to judge, i find it hard but i just started developing in php recently
this is my first project ever since i graduated
 
2:57 AM
I was just wondering because I was experimenting with a generator that throws from a finally block, and I'd like to be sure that the finally block is always run immediately when the generator object is destroyed so I can catch the exception.
 
@Trowski The destructor will be called even if script execution is stopped using exit(). Calling exit() in a destructor will prevent the remaining shutdown routines from executing. (refer to php.net/manual/en/language.oop5.decon.php)
@AnasLmt Sounds like fun, i will be there soon.. :)
 
@choz That's not at all what I'm asking. I'm asking about the timing of the destructor execution.
 
@Trowski oh sorry, i think i got it wrong...
dammit i rly suck on docs
 
Anyone here good at wordpress plugin development? I have an understanding of action hooks. Just looking to develop a simple search filter for a custom database located in php my admin
Just looking to be pointed in the right direction
i.e what action hook to be used
 
It does say it's called as soon as there are no references to the object, so I think that means it should be called before going out of function scope.
Will have to look at the engine.
 
3:01 AM
@choz have you ever worked on an app that requires user interaction?
you know login, logout, register...
 
@AnasLmt define user interaction
@AnasLmt oh, in ASP.Net they call it Membership.. Yeah, I think ive worked on that before
why?
 
well i'm just trying to fix an authentication problem
i have a working login controller but my views aren't protected, if i visit the url: localhost/project/views/home.php i can access it
 
@Trowski my c is not up to snuff but I think this indicates that it's done in a gc cycle
 
that's where someone suggested to work with laravel
 
Hmm.. is it fixed now? I had the same problem like a week ago, but it wasnt on laravel. It was on symfony
 
3:11 AM
no i didn't know how to do it lol
 
symfony has a security service provider that should help with authentication
 
@Orangepill I also wonder if a generator finally block is executed when the object is destroyed. I would assume so...
 
the workings of generators are still black magic to me... I understand how to use them ... just not really how they work.
 
@Orangepill Too bad, im using symfony 1.2.. And the problem was caused by custom role provider
Yeah, i had my security.yml but I had to turn that feature off since I want only user whose a 'superadmin' and has a role of 'securityUser' to view certain page.. So I created the validation in my controller explicitly
Idk if i mention that right :p
 
@choz I know what you mean ...I've had to punt like that when working in frameworks when I couldn't get it to behave correctly.
 
3:19 AM
@Orangepill I cant wait to feel the same issue on laravel.. php yeahhhhh
 
ttj
what text editor are you guys using?
 
VIM
 
I use Komodo Edit but most of the cool kids here use PHPStorm
 
@Orangepill are those available in ubuntu?
PHPStorm isnt free :(
 
@Choz yep... I've run them on Ubuntu. PHPStorm is java so it runs everywhere.
Komodo is built on Mozilla so it will basically run anywhere firefox will
Komodo Edit is free but lacks a lot of the professional features of phpstorm
 
3:27 AM
@Orangepill i rly wanna go back using IDE instead of vim, since i kinda suck on vim. But how about Geany vs Komodo?
 
haven't played with geany but I do like Komodo Edit
Here's the feature list for komodo edit komodoide.com/komodo-edit
 
@Orangepill Looks promising, I should try that also..
 
that doc looks useful @Orangepill, thanks
thank you too @choz
i'm trying things out
 
Komodo IDE is pretty expensive if I recall but Komodo Edit is free
 
 
1 hour later…
Abe
4:49 AM
morning
 
5:04 AM
@JoeWatkins When I try building pthreads on 7 I get the following very quickly after make:
In file included from /home/vagrant/pthreads/php_pthreads.c:22:0:
./src/pthreads.h:41:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
 #include <ext/standard/php_smart_str.h>
Just pulled master before building.
 
Woot just started learning PHP and it's giving me headaches with its abbreviations lol
 
@JoeWatkins Oh wow... n/m, I wasn't on the seven branch.
/me pushes whiskey aside Enough of you for tonight....
@JoeWatkins Well, now it compiles, but the script that works with pthreads in 5.6 segfaults on 7 :(
Sometime when you're actually around we'll have to figure that out.
@ReynoldsR.G.G. What abbreviations are giving you headaches?
Almost all languages have quite a few, so it's certainly not unique to PHP.
 
5:28 AM
morning
 
@kelunik Morning o/
Heading to bed myself.
 
@Trowski Good Night!
 
5:52 AM
Hello there, I'm looking for recurring countdown timer which will start and end at specific time any thoughts ?
 
6:09 AM
morning ladies
 
Abe
6:43 AM
 
I was never that fast with typing on these old phones. :-(
 
I remember my friends 3110 nokia fell from 5th floor on concrete block, we thought it's dead, but it had only been disassembled and one corner cracked. after assembling it worked flawlessly
and mornin
 
@Abe i still have nokia 1100 \o/
 
Abe
i stopped sending texts since touch exists. my smallest finger is as big as half of the screen
 
i dont have this problem but sometimes i touch on wrong key and hit enter .. no undo option on whatsapp and fb .. and my life begin to suck
 
6:57 AM
It reminds me of my custom polyphonic ringtone
 
Abe
i'm still convinced that touch screen is just a trend. push buttons worked for nearly a century, till apple decided to transform us all in illiterate idiots. sooner or later people will understand that. but maybe i have too much faith in humanity
 
moin
 
well touch screen is nice in playing game, watching movie and surfing internet
 
posted on August 17, 2015 by kbironneau

/* by Frankie */

 
and push buttons have only better life... and cheaper, only better if you want to just use as calling purpose
@Patrick moprning
 
7:14 AM
whatever happened to those liquid touch screens that could materialize buttons on demand? i always thought that sort of technology was the way things would go
 
7:31 AM
@NullPoiиteя You totally look like Raj from the big bang theory man :D
 
Moanings
 
guys, anyone knows how to create this sql query in propel?
SELECT distinct inventory_audits.id
FROM inventory_audits
LEFT JOIN pick_lists ON (pick_lists.number = substr(inventory_audits.reference,0,8))
LEFT JOIN pick_list_items ON (pick_list_items.pick_list_id = pick_lists.id)
LEFT JOIN load_plan_items ON (load_plan_items.load_plan_id = pick_list_items.load_plan_id)
LEFT JOIN sales_order_items ON (load_plan_items.sales_order_item_id = sales_order_items.id)
LEFT JOIN invoices ON (invoices.id = sales_order_items.invoice_id)
 
propel?
 
Mormormorngongng
 
meurning!
 
7:38 AM
@FlorianMargaine It's a very old, shitty ORM that uses active record pattern. Symfony 1.4 uses it
 
Abe
o/
 
@FlorianMargaine yes
 
@Jimbo oh. Old indeed.
 
Lol, yeah
 
@PeeHaa o/
 
7:46 AM
\o
 
7:58 AM
\o
 
\o
 
what do all of you think of the sql injection protection rfc? wiki.php.net/rfc/sql_injection_protection
i feel like it's the right security feature explained in the wrong way, as it could be used for much more than sql injection
 
8:14 AM
@iroegbu yes I will do that once I can find some time. I've been enjoying summer too much :)
 
@Abe What I don't like about that is the ability to remove tainting from a string by passing it through the right encoding function. I don't think that should be possible. Once a string is tainted with user input, it should remain tainted and it should be impossible to use it in any function that is susceptible to injection attacks
that is what i like about that recent rfc
as far as i understand it is essentially foolproof, since mixing any user input into the string will permanently taint and prevent usage in contexts where injection is possible
 
Abe
imho all that adds an unnecessary paranoid overhead just for those adventurous newbies that think programming is easy but that affects even those that already know how to avoid such security issues
 
i would disagree that experienced programmers don't write injection bugs. i have seen conclusively demonstrated that they do write those in the security code reviews i've done
besides, what's wrong with helping newbies? we all were newbies at some point...
 
@Abe You can always turn it off
 
Abe
8:26 AM
nothing wrong as long it doesn't slow down php, i guess
@NikiC yes, that would be good then
 
Note to room owners: my Friday links should probably get deleted after Friday :P
P.S. Good monrings
 
Abe
morning
@PeeHaa <3
 
moin
 
8:52 AM
Good noon Guys ...mysqli is not working in server can anyone tell me why?
 
@user12688 define "not working"
 
Have you tried turning it on and off again?
4
 
@Fabor you mean off and on
 
Or do I -_-
 
@Fabor i tried connecting with mysql and it worked so only i came to the conclusion
but Fabor , yesterday it worked perfectly...
this is the link... xpokerala.com/connecting2work1 ...can any one help me how to resolve this issue..
 

« first day (1766 days earlier)      last day (3198 days later) »