« first day (1073 days earlier)      last day (3875 days later) » 

12:00 AM
a checkboxes class name is nothing to do with it's name
 
this is my javascript
function passList() {
var p=[];
$('input.first').each( function() {
if($(this).prop('checked')) {
p.push($(this).attr('rel'));
}
} );
var q=[];
$('input.second').each( function() {
if($(this).prop('checked')) {
q.push($(this).attr('rel'));
}
} );
$.ajax( {
url:'delprocess.php',
type:'POST',
data: {list:p,type:q},
success: function(res) {
$("#result").html(res);
}
});
}
 
the names of the checkboxes should be list[] and type[] if you want them to build arrays, using the appropriate value="" attributes in each box ... foreach (...) will then yield the correct result ...
 
This is the HTML L:
<input type="checkbox" class="first" rel="list1" onclick="passList()">list1<br />
<input type="checkbox" class="first" rel="list2" onclick="passList()">list2<br />
<input type="checkbox" class="first" rel="list3" onclick="passList()">list3<br />
<input type="checkbox" class="first" rel="list4" onclick="passList()">list4<br />
<br><br><br>
<input type="checkbox" class="second" rel="type1" onclick="passList()">type1<br />
<input type="checkbox" class="second" rel="type2" onclick="passList()">type2<br />
 
@JoeWatkins, I made it work.. Unbelievable!
:D
 
@CvetomirLazarov what did you do ?
 
12:02 AM
the html directory now has nginx:root
I basically added the root group to nginx's ones
now nginx has 2 groups - nginx & root
 
i tried using list[] and type[] .. but how do i pass the value to process.php ?
i tried $('input.first[]').each( function() {
but that did not work
 
Warning: chdir(): Permission denied (errno 13) in /var/www/html/tf2server/test2.php
O.o?
 
you can't see, but I'm cringing ... is this a public facing server ?
@VoidWhisperer show me code
 
why chdir ?
 
12:05 AM
i need to set it to that dir to be able to find the most recent file
unless you have a better suggestion
 
infact why are you executing commands at all ?
 
need to find the most recent file in that folder
plus i need to tail the file anyways
 
@JoeWatkins actually it stopped working
 
@JoeWatkins .. Any idea ?
 
It stops working after the HTML Validation completes
or the background scanning
 
12:06 AM
how do i build my php code ?
 
:D
What the actual f*ck...
 
@JoeWatkins again... unless you have a better suggestion
 
It is actually because of the "Initializing HTML Validator"
after it has been initialized, I can't paste files
 
@VoidWhisperer DirectoryIterator ... just read the last line of the file ... fseek SEEK_END-$i until you come across a newline, then fgets and you'll have last line ...
 
I need the last 50 lines
>.>
and i'm doing it via command becauise that's the least laggy way i've found
 
12:09 AM
Damn.. I can't figure it out
 
ls -Art doesn't yield that on my system, ls can take a path and so can tail, doesn't seem like you need to chdir even if you have to popen ...
 
it's linux
 
so ?
 
so that works better
 
( that's obvious )
 
12:11 AM
on linux
 
what works better ?
 
ls -art is best for getting the most recently modified file
 
ls is probably aliased on your or my system, ls -art yields a result with multiple files on a single line on my system ...
 
it gets the most recent file on mine
 
@JoeWatkins Netbeans doesn't want to copy on root:root, too.
It copies everything, regarding of the permissions being set to nginx:nginx
before the background scanning of projects
after the scanning is complete, voila! I can't copy anything
 
12:16 AM
is the some particular reason you have to use netbeans ?
 
@JoeWatkins That's the IDE I have been using for over 2 years
 
thought you just installed it for testing or whatever ... in which case test failed ...
 
No.. I'm testing Nginx
 
you're using it for php ?
 
12:17 AM
Yes, for php
I can't seem to find anything on google
 
ping @Wes
 
Hi
 
12:45 AM
well .. there is a hailstorm going on outside
 
user652649
@crypticツ pong
 
which reminds me: is Hong Kong still there ?
 
user652649
@crypticツ i was about to going to bed... i'm already late for work :D do you need something?
 
@Wes oh, nothing important just a pixel problem with the backlog, it can wait.
 
user652649
no, ask, i'm illegally downloading a movie, i have a couple of minutes
 
12:49 AM
@Wes , everybody will see it - >
 
@Wes go to backlog the data table is 1px smaller in width than the header table. Both are suppose to be 980px
not sure what is causing it
 
user652649
you mean the "thead" and the "tbody" ?
 
user652649
screenshot? because i'm not seeing the problem
 
user652649
@sectus you can star it, i'm proudly a pirate
 
user652649
xD
 
12:52 AM
@Wes , i think that everybody in this room is a pirate.
 
@crypticツ NOOOOOooooooo......
 
I know!! I'm going to lose sleep over this =o(
 
@crypticツ , it's might be a border issue.
 
I'm not seeing that on either Chrome or safari on mac.
 
12:55 AM
@Danack damn Firefox!
 
user652649
@crypticツ i don't think you can get rid of it, it's a floor/ceil problem... so browsers "heuristics"
 
user652649
but you can try with 981 and 979 maybe it gets fixed
 
Try setting border: 0px rather than border: 0 ?
or
23
Q: Firefox 1 pixel bug with border-collapse, workaround?

VexatusIs there any workaround for the following "1 pixel to the left" bug? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <body> <

 
user652649
@Danack never used css, right? xD
 
@Danack I thought if you set to 0 you don't have to specify the type as 0 is 0 in any measurement
 
user652649
12:58 AM
@crypticツ yes
 
Show us the source....
 
you are correct, @crypticツ
 
@sectus cv-pls.com/assets/less/main.less?compiled un-compressed compiled LESS file
 
user652649
anyway @crypticツ i will look at the code better tomorrow, because you used max-width on a table, which it isn't supported -- or maybe yes since it's a table-layout:fixed ... i'll see tomorrow ok?
 
@crypticツ , html?
 
user652649
1:01 AM
byby gn
 
@sectus um...right-click and view source?
 
chemistry :D if anyone knows any-- chemistry.stackexchange.com/questions/6299/…
 
@crypticツ , it's css, where is HTML?
 
@sectus it's the backlog page, so just visit the backlog ---> beta
So I went on my bike ride yesterday. Well on the way back was doing great then saw a 'stick' on the trail so was like ok, I'll just bike around it as I get up to it, I was about 5ft from it when it moved and then I realized it was a snake. So I was like wtf and swerved to miss it, lost my balance and was not able to unclip my bike shoes in time and fell over. Badly scratched my knee and lost some paint on my bike. I took pics of the snake and it turns out it's a Dusky Pigmy Rattlesnake.
 
it looks like your math is off there
if I am not mistaken, then the width of all the elements + borders amounts to more then 980px
 
1:13 AM
What do snakes have to do with php?
 
@tereško but the same is being applied to both tables so they should both be the same unless I am missing some border declaration somewhere.
 
@crypticツ , do you like dirty way?
 
@sectus depends, keep in mind the backlog only supports Chrome and Firefox, and partially Opera (unless using web-kit, then fully)
 
anyone happen to have much codeigniter experience, i always have problems loading files in directories like view/directoryName or libraries/directoryName .. i figure its a configuration problem. i'm installing flexi_auth and having trouble loading the PHPASS libs at application/libraries/PHPASS
 
@crypticツ ok ... I think I got it : remove all BOLD's from table head
 
1:17 AM
I keep getting "mysqli_stmt::bind_result(): Number of bind variables doesn't match number of fields in prepared statement" Except I only have one variable and one question mark in the statement: pastie.org/private/2gejyikyafjdvtcguvvra
the table has only two columns, an auto increment key ID, and a varchar for cabin name
if I paste the exact same code into the SQL window in phpmyadmin, it drops it in fine
 
@tereško ok nothing is bold anymore, still there =o(
 
well .. it aligns in opera now
 
@Joren you must be new here
 
@red6 Bind_result on an insert?
Presumably you meant to get php.net/manual/en/mysqli.insert-id.php
 
@tereško even as bold it aligns in Opera for me, Opera/9.80 (X11; Linux x86_64; Edition Next) Presto/2.12.388 Version/12.16
 
1:23 AM
if you wanter to get the insertID - otherwise just read the result from execute() which should be true-ish if it worked.
 
@crypticツ , there is also padding issue
 
nope , it doesnt
 
I think it might be using web-kit
 
in opera the right edge of "Reason" was off
 
@Danack hmmm... this is day two of prepared statements. I'm looking
 
1:24 AM
@tereško you're right the pixel width issue is not present in either case, but the column line is off when the bold is there
 
@crypticツ , #data-table-head{border-left:1px solid white;} - for
 
well , in both cases the "reason" collumn takes too much space
different engines just compensate in different ways
 
@tereško ok should be fixed in Opera now, with bold on
 
@crypticツ , #data-table-head th{padding:4px;}
 
@sectus why am I changing the padding for the the cells?
 
1:29 AM
@Danack yeah I was kind of executing the steps in the middle without checking what they were in detail. I didn't actually need a result, so I dropped bind_result() and fetch() and everything is glorious now, thanks.
 
@crypticツ , there is two issues: border-left and text of header table it too long.
 
@sectus neither of the tables have borders set, they are at 0
 
@crypticツ , ok... add white border #data-table-head{border-left:1px solid white;}
 
and removing border-collapse makes it align in firefox .. hmm
 
@tereško removing it? I don't remember adding it anywhere.
 
1:33 AM
you did , but it's not a solution, because you will want to collapse the table borders
 
@tereško can you take a screenshot of the legend, options, and table head section, basically the top portion of the page using Opera. I am seeing some crazy things going on, but also my install keeps messing up and text shows up as squares even in browser menu.
@tereško was it in the twitter bootstrap code?
 
I dunno. All I see is that it's in "line 1 in main.less file"
 
Hey guys. What am doing wrong with this 24-hour time format regex? The minute part works, but the first part (hours) accepts any number. I want it to work for 0-23 or 00-23 hours.

$reg='/([01]?[0-9]|2[0-3]):[0-5][0-9]/';

Removing the ? solves the problem

$reg='/([01][0-9]|2[0-3]):[0-5][0-9]/';

but it only accept hours with two places 00-23 now.
 
@tereško talking about this?
table {
  border-collapse: collapse;
  border-spacing: 0;
}
thats Twitter Bootstrap's code
 
yes
but you will need it
#data-table-head thead tr:nth-child(1) th:nth-child(1) {
    border-left: 1px solid #fff;
}
that should do it
 
1:40 AM
@crypticツ Indeed I am :P
 
@tereško that was it. I see what I did wrong now. That cell I removed it's border, but the same cell I was not removing the borders in the data table. thanks!
 
@crypticツ , i told you about left-border...
 
this is why I'm not doing this for cash anymore
 
Are there any good cloud databases which lets you use it for free if there are only few requests?
 
it takes an hour of fucking around to move something for 1 pixel
 
1:43 AM
@BikerJohn , it works for me.
 
@sectus you wanted me to apply it to the table itself, it had to be applied to the cell which was what was missing the border to begin with, but both would work, as would have margin-left:1px =oP
@tereško thats why I prefer layouts without any edges, you never notice a pixel or pixels off =oP
 
@crypticツ ... with collapse they have one result, but my css selecter muсh shorter :^ )
 
@sectus I already have that selector in the CSS, just added the declaration to it =oP
 
yeah , but, when you do this professionally, you have to slice the designs, that are provided to you ... ans sometimes they are in *.ai format
 
1:47 AM
@evening this sounds like xy problem
 
:O
 
@BikerJohn , $reg='/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/';
 
@sectus It works perfect now. Thank you : )
 
@BikerJohn , your version matched 7:50
 
@evening why exactly do you need that "good free cloud database for only few requests"
 
1:55 AM
@tereško I will be developing the web app for the next few months in a few different computers and want to have one database somewhere, preferably in the cloud. Of course, I can just create it somewhere myself, in the hosting I have, but it would be cooler to have it in the cloud, it sounds cooler, haha.
 
@tereško , i have spended a lot of time of searching mention of this problem...
 
@evening just tell your client it is in the cloud so you still have the hip cool lingo going, they won't know the difference. As a matter of fact tell them that the cloud is so yesterday and now we store it in space. They will be awed knowing that their database is floating around in some satellite, once again they will not know the difference.
4
 
@evening are you hosing that webapp on your local PC ?
if not, then it already is "in the cloud"
 
@tereško i'll just push code via git, and pull when using other computers.
@crypticツ lol
 
2:35 AM
morning all
 
2:59 AM
    function handleRemove(item, formView, id)
    {
        delete item.files[id];
    }
^^ Storm says "unused formView" ... not very useful :)
 
I would not confirm to this. If you are not populating the data from the controller to the view, the view isn't independent anymore and you have a strong coupling between the view and the model. — hek2mgl 2 hours ago
 
Let's take a look see.
render() method on a controller? Interesting.
@tereško Okay, that's just nonsense lol.
 
which is why I have been basically making comments that amount to "inarticulate noises"
 
Yeah , the "some literature" is made by people like Fowler, Burbeck, Evans and Cunningham. And your literature is made by 37signals. — tereško 7 mins ago
 
.. I do not know where to begin
 
3:07 AM
heehee
 
Mind helping me out with a simple query? stackoverflow.com/questions/18951144/zf-1-mysql-where-in-query
 
@theFreelancer Fixing parse errors is beyond the scope of this answer, I'm assuming you have the basic skills of making a script work. — Jack 7 secs ago
 
I know there has to be a Select inside the query, but everytime I try, I get an error 500 when using zend to create the query.
 
3:11 AM
@darius can you use union?
 
@marabutt there is a lot of records in $list so I would think not
if you're thinking of Union select for each $list value
 
that's not a query
it's some horrible query builder
and you probably get 500th error because you have turned off error reporting
 
Well, here's the query the query builder gave "SELECT messages.* FROM messages WHERE (thread_id IN ('?')) LIMIT 10"
 
lol
 
3:17 AM
He'll make another account and continue :p
 
cunning plan for marketing their framework
well not that cunning
 
Funny to see one of panique's answers in between there ... so shameless :)
 
3:31 AM
effed up night
 
tell me about it; earlier I found a bug that caused data loss on my survey results =( stupid stupid!
Forgot to remove existing event handlers before binding the form view to the model, so each new form was updating the previous model entries :(
 
Hey guys
I'm going to put this on git and share it with the world when I finish. I need a little help tweaking this jsfiddle.net/5n5MA/7
When the user scrolls down, the green bar becomes visible. I want it to stick to the bottom of the screen right away.
Right now when the user scrolls, the bar goes all the way to the top of the screen and then it becomes fixed to the bottom.
I'd like it to become fixed to the bottom as soon as it's fully visible
 
@TylerLangan there is a javascript room for that
 
is there another room I can ask this question in besides the Javascript room? I'm not having any luck in there.
nevermind. jsfiddle.net/5n5MA/8 Whoop! There it is!
 
3:59 AM
hello every one
 
hello
 
I need solution for custom URL creation using codeigniter framework. Please help me

http://www.mydomain.com/city/
http://www.mydomain.com/city/create/
http://www.mydomain.com/city/create/dashboard/
http://www.mydomain.com/city/etc/etc/etc/

Any one know to solve this requirement .please let me know/.
I can't find any solution for this :(
 
I can't get this ..thats why i have posted here
 
@user2484538 Never used codeigniter but I believe $route['city/create'] = "city/create"; will call the create action on your city controller... $route['city'] = "city/list"; will call the list action on your city controller. Routing in a nutshell.
 
4:08 AM
city will be differ..itw ill dynamic variable
l;ike city comes madurai or else chennai
 
If I install new xamp version then previous phpmyadmin would be overridden? I am trying to install it on ec2. Could not uninstall existing as it says dpkg not fount. Tried other solution on web but not luck
 
what os?
 
I need solution for custom URL creation using codeigniter framework. Please help me

http://www.mydomain.com/city/
http://www.mydomain.com/city/create/
http://www.mydomain.com/city/create/dashboard/
http://www.mydomain.com/city/etc/etc/etc/

city may be : Madurai, Chennai, Bangalore, Coimbatore etc..

http://www.mydomain.com/Madurai/
http://www.mydomain.com/Chennai/create/
http://www.mydomain.com/Bangalore/create/dashboard/
http://www.mydomain.com/Coimbatore /etc/etc/etc/

Any one know to solve this requirement .please let me know/.
 
I am back.
 
@user2484538 maybe $route["(:city_name)/create"] = "city/create";
 
4:24 AM
@marabutt linux ec2 instance
 
4:42 AM
having trouble building a multi-dimensional array here: pastie.org/private/tqclhcnmsbltzsusckl32q
 
I'm still stuck :'( stackoverflow.com/questions/18951635/… Would like to avoid Union
 
@red6 Where is the erase_val() function?
 
@Jack an include
works fine, all keys are now => null
so before that last nested foreach loop, if I comment that out and do a var_dump, this is what I get (times every selected date):
'Thu Jan 1st' =>
array (size=3)
'r2' => null
'v1' => null
'v6' => null
 
It would help if you could provide an input set and expected output.
 
expected output is what I included in the comments on the pastie
so if I comment out the last nested foreach, I get what I showed above
whereas the goal is:
'Thu Jan 1st' =>
array (size=3)
'r2' => activity1
'v1' => activity2
'v6' => activity3
 
4:51 AM
Yes, that's what it all shows in the pastie ...
 
San
 
But it's too vague. I can't tell why your code would work or not work based on what you have shown.
Imagine I know nothing about your problem.
And at every step I will ask you "what is that?"
 
@Jack three separate arrays arrive via $_POST
$cabins = $_POST['cabins'];
$activities = $_POST['activity'];

$checkeddates = $_POST['checkeddate'];
 
They are three arrays; what's inside?
 
Hi everyone,a few ago , here, we had a discussion and most experts here told me to start learning Zendframework2. Now I am in a place that I am a little familiar with the framework (just a little) but don't know which way to go :-( can anyone give me some advises? thanks
 
4:54 AM
Who said you should learn ZF?
 
not "should" ...
just some advise
 
@Jack as the var_dump shows, the checkeddate is a date ('Thu Jan 1st'), the cabin is just a letter/number combo (r2), and the activity could be anything, such as (sailing). They were as 1 => value, 2 => value, so I did the array_flip so they would be keys waiting for a value.
 
we had a comparison with other frameworks
 
@Jack sample of the three arrays before anything was done to them: pastie.org/private/jcqfe83gkava5rhsxbkq
 
So you want to combine each of the cabins with a random activity?
 
5:00 AM
with each of them needing to be scheduled for each date, yes.
which is why I added the cabins array to each date, and that part works fine
 
shuffle($activities); $mixed = array_combine($cabins, array_slice($activities, 0, count($cabins)));
 
If I install new xamp version then previous phpmyadmin would be overridden? I am trying to install it on ec2. Could not uninstall existing as it says dpkg not fount. Tried other solution on web but not luck
 
@Karimkhan This is not Linux helpdesk, try serverfault.
 
@Jack i think it's regarding xamp
 
xamp or xampp?
 
5:03 AM
xampp
 
@Karimkhan So? You're trying to install it on EC2; that makes it a Linux problem.
 
ok
 
I wouldn't even bother with a managing layer in between tbh, just install httpd, mysqld and php ... tada, done.
 
user652649
morning
 
@Jack I cant get this to work right now, but im too tired to work through it right now -- thanks for your help. I'll check it out in the morning.
 
5:14 AM
$foo = (int) mysql_real_escape_string(intval($bar));
What did I just read?! :o
 
user652649
seems legit
 
5:28 AM
@bwoebi That should be the accepted answer =D
 
@bwoebi :D
I found that here: spyka.net/scripts/php/miniblog ^^
 
5:49 AM
I just got this guy from here see the accept rate...
 
@Wes we got the pixel problem fixed =o), but have another problem which has been around for awhile don't know how to fix it. When you make screen smaller than the max-width everything adjusts fine, however, when you begin to scroll down so the headers switches to sticky the width is too big. I don't know how to adjust it dynamically without having to use JS
I can use JS, not a problem, but if it can be done with CSS that would be nice, don't kill yourself over thinking a problem, if it's too difficult I'll just do JS route as the menu already utilizes JS.
 
6:07 AM
@Mr.Alien lol, suspended until 2019, that's not so bad right? :)
 
Hi all, Good Morning
 
@Jack what do you have to do to get suspended for that many years?!?
 
war crimes, probably.
 
He was probably an experts-exchange spy
 
morning
 
6:35 AM
hello genius
in plural :D
i'm here stuck in a problem
i have to get csv result of two outputs in codeigniter
 
Anonymous
6:56 AM
jellow
 
hi..Simon
 
function assing_magazine(user_name){$("#"+user_name).attr('checked', false);}
is this correct way to uncheck the particular checkbox?
 
Anonymous
@ketanpatel hi
 
this is my first time.i have one issue in drupal.Can we discuss about that here?
 
goodmorning everyone
 
Anonymous
6:59 AM
morning
 
good morning.
 
anybody is there?
 

« first day (1073 days earlier)      last day (3875 days later) »