« first day (645 days earlier)      last day (4525 days later) » 
00:00 - 16:0016:00 - 00:00

16:01
experience also counts in these things.. but I cannot say it as the only thing as we know examples of young programmers who know much more advanced concepts
@tereško well, actually, i speak all the time in english! cos i stay in India, but i dont know hindi. So, i speak in english all the time. But my english has grammar mistakes. And the spelling mistake is because of my typing problem :P
India - the largest collection of people who speak in bad english =D
@tereško ya, but there are many ppl who speak excellent english too ;)
@tereško and the rest of us are forced to speak english :(
if you don't know English, you have nothing to look for in IT...
6
@webarto ah! may be, but m not in IT, i'm in biotech :)
16:06
@webarto +1
lol , biotech is the "next IT"
@tereško :P
my last question of the day
0
Q: Html Output of site map

Basic BridgeIf you use wordpress sitemap generator to generate site map for your site and visit sitemap.xml you get results like this. If check inspect it's elements in chrome or any other browser you get it's html output. But if you check the source code of this page. via like like this view-source:ht...

@BasicBridge , your post does not contain any questions
also , this might be better suited for
@tereško one day world will know hindi, it will become so popular, next generation kids will have hindi compulsory subject whole over the world :P :P just kidding
@NikiC I'd actually say that he should use streams, but I would recommend staying away from file_get_contents for HTTP requests.
i just only want to know how source code changes when google visit it. OR you check source code
it's not much do with wordpress. I just take example
@NokImchen , the race for first Level 1 language has been finished .. english is it : en.wikipedia.org/wiki/Kardashev_scale
@tereško u ppl are soooo lucky, u dont have to learn someone's language. you ppl should be very proud of ur forefathers :)
@NokImchen english is my 4th language
@tereško 4th language?? :O what are the 1st 3??
16:12
native: latvian; then russian and german ; currently learning japanese
so , don't give me that "don't have to learn someone's language" crap
@tereško omg! u have a nice brain..!! so many languages! what are u gonna do with those languages??? y dont invest ur time doing things like learning kick boxing, guitar, sky diving, scuba diving, running, sitar, boating, etc ect
i did .. i have basic music education too =P .. i don't have free cash to invest in hobbies
@tereško i tried to learn french about 4 years back.. lol...i learn jsu once, douze and merci :P
@tereško how you manage your time for all these things.
@tereško oh, u can try singing & upload it in youtibe :P may be u'll become more populat than Katty Perry * Madonna ^ Avril + Lady Gaga =P
@BasicBridge ya, really! i wonder how do ppl manage such things!!!
16:17
"basic music education" means that i can play few instruments , have solid understanding in music theory and can read notes-sheets
@NokImchen : SMS ruined English in India
@tereško i never learn music in my life. but i can also read guitar notes :) no time to learn such things :P
u plz bcoz coz ppl Ur r
@Krish lol, there should be sleeping checker in mobile also! :P
@Krish so you also mean that TWITTER is also spoiling English
16:19
@Krish , that actually causes a physical pain
@BasicBridge but really, this days i unknowingly write "des" instead of "these", and put ! marks where not needed, i did such mistakes in exams :(
:P
*these days
@BasicBridge : if you cannot express your idea in 140 characters, why use twitter at all ?
you can edit improve text in this chat , just press "arrow up" key
16:22
@tereško your Russian skill, 1 to 10?
anyway .. i am .. need to do some shopping
@tereško pressing up arrow key do nothing, it oly takes the chat scroll bar a step higher :(
@tereško how did u put that button?
afk lol
[afk]
16:23
[tag:afk]
tag:anok
I really had the idea to create a microsite , with pulp fiction video in it ( English mf**** do you speak it ) and send it to all my friends who use u , plz etc
16:24
don't do that, kplzthx
don't litter chat with tags
ok .. i'm gone
be gone with peace
Progress until AFK
[======------] 2 / 3
@NokImchen : where do you stay in Bombay ?
I have been to Juhu, Bandra, Prabadevi ..
@tereško ok, that was 1st and last :)
omg! Lavita is a very very small country!!
@Krish i'm at Andheri, Juhu is near my home :)
Hi guys!

If you have worked with Doctrine 1.2 to some extent before, maybe you'd like to kick-start this with an answer

http://stackoverflow.com/questions/11602035/doctrine-queries-criteria-as-objects-the-visitor-pattern-possible
thanks
16:38
I hate Doctrine
@webarto i mean i am able to send sms from my computer by connecting a mobile but i want to send sms using my computer from my website
so what do you say do i need to make a web server for this ?
or is there any easy way to do this
I honestly don't know what you are talking about, draw a diagram.
ok i will try :)
16:51
@webarto
i am able to send SMS from my computer
by connecting my mobile with computer and using sms sending software
but i want to send SMS from my website something like when i sumbit SMS text and number it will store in mysql and send command or something to computer to send message
something like this website
http://www.fun92.com/sms/free-send-sms-to-pakistan/
then your SMS software needs to have some command line interface so you can e.g. exec('sms send...
you open up port on your computer, and then webserver sends request to your computer...
or just use smsglobal or clickatell...
so do i need to make my own web server ?
just install server like apache on your computer and make sure you have static IP or some dyn dns service...
what you are doing can be called wrong...
actually i want to do this for a org
do i also need to install linux?
or window xp is ok for that
@webarto
17:29
@DanishIqbal, what sort of webserver ?
and what is your experience at system administration ?
man, just use API, there is no point in that...
if you have free SMS that is another story...
but still you need some command line software that can send SMS through your mobile...
if (empty($response))
{
    /** (╯°□°)╯︵ ┻━┻ */
    $output = 'HTTP Request Failed.';
    return;
}
2
17:48
@DanishIqbal : kannel.org
hey guys, how do u save/export resourse for later use? (var_dump & serialize dont work on resources)
Goutte varaibles cant be serialize cos they are resources :(
another big problem :(
18:12
@tereško i mean where we can able to park website
not much
@webarto thanks :)
i will start working on this
@Krish thanks :)
18:31
Bleargh. Stupid github scared the crap out of me. Thought I'd ruined the rubberband repo. Had to --force push in the end.
Yo
how to check IOPS of mysql at own server.?
19:01
Someone know why PDO isn't espcaing # (comment) but when using -- it works?
I'm using prepared querys
@PedroGabriel What's your query?
Any query Eg: insert into table (id, var, value) values (null, :var, :values)
I made a question about it, they said just put between single quotes, every thing stopped working, they said "cannot use single quotes" so...
@PedroGabriel Give me an example of code which reproduces the problem
Connected using:
$con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Query:
$result = $con->prepare("SELECT count(*) FROM $table WHERE senha=:senha AND var=:var");
$result->execute(array(':senha' => $senha, ':var' => $ar[$i]));
$count = $result->fetchColumn();
and how is that related to SQL comments ?
19:09
when user input a sql comment (#) it stop the rest of query
@PedroGabriel What's $ar[$i]?
an array exploded containing all values from $_GET
for indexed numers (get does not have)
@PedroGabriel Give me code, that if I copy/paste it to my environment (After initalizing the table schema) I'll be able to reproduce the problem
Make a testcase of the problem
okay, I'll do it
@tereško how the hell do I open the terminal in this thing? :p
19:21
huh ?
you went with GUI ?
the CLI version is minimal
How I show the test in here? (I can host it on my own server)
@PedroGabriel Paste your code here
@Truth , and ? why would that be a bad thing ?
@tereško By minimal I mean it lacks commands
"no such command 'sudo'"
The hell?
19:23
lol
you should not be using sudo
Nvm that, gunzip
instead there is a root user
seems to work from terminal though
Now, how do I install PHP on that :D
apt-get install php5 might do it
if your repository has the latest php5
why won't it let me log in as root user? -_-
19:25
did you try su - ?
no, at the login screen
I click on "different user"
type "root" and the password I gave
what login screen ?
and it says "Authentication Fail"
teh login screen
Still pasting if it is huge?
At the beginning
@PedroGabriel use pastebin or something similar
@tereško clueless at linux :S
this the "debian login"
so , what the hell do you mean with "login screen" ?!
@tereško I have the gui version remember?
I managed with su root though, so all is well :D
then you are on your own
Index.php:http://pastebin.com/6rpq1yqe
config.php:http://pastebin.com/f1NUstJ8
19:30
@tereško okay, now what
it's complete now
Bah, I'll have to continue this another day :(
Okay then, thanks for trying it now anyway
Should I open a question about it?
@PedroGabriel Have you ever heard of the foreach loop?
it takes every array value and pass it?
one by one
It iterates through an array
Which saves you the trouble of converting it into a numeric array and iterating via index
yeah
I'm using it in $_GET cause it isn't indexed, and I want numbers
19:34
Why do you want numbers?
for using $ar[$i]
@PedroGabriel again, why would you want this?
foreach($_GET as $key => $value)
$value is $ar[$i] for you
$key is the name of the entry from $_GET
@PedroGabriel Also, even if you want to convert it into a numberic array, there's array_values() which returns an array of the values only
I wnt to get all values from $_GET (unlimited)
so I re-made the _GET array but in a string, and then exploded it
unset 2 values and then used array_values to re-index
was it a bad ideia?
19:38
I can't seem to understand what you're hoping to achieve with this code
What are you trying to do
it is like a "db" and a "API"
I just made the setvar but there are getvar and delvar
so I can delete, set (insert or update) and get values from db
like a database inside mysql database
@PedroGabriel What can the user input, and what would be the server's response?
using setvar (on this test) he can Input everything
You're basically allowing your users to CRUD variables inside of your database?
In key=value pairs?
19:41
Okay
First and foremost, never use GET to change something on the server
CREATE TABLE IF NOT EXISTS `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pass` longtext COLLATE utf8_unicode_ci NOT NULL,
`var` longtext COLLATE utf8_unicode_ci NOT NULL,
`value` longtext COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
GET should be used to get information, and POST to change it
but without get theres no way to make it, my "targets" can only use HTTP requests
@PedroGabriel POST is also an HTTP request
the only way to do it using POST would be a cURL dll (made probably using c++)
19:42
@PedroGabriel Who're your clients?
hm, but they cannot send POST values, they can only use urls
Obviously they aren't browsers
.exe's made using GML
39dll
It's broken API to accept changes to the server via a GET variable
Just letting you know
Second, instead of accepting var=foo&value=bar
Why not accept foo=bar?
Makes a bit more sense too
can I get the value where will come inside the GET?
Eg: $_GET['foo']='bar'
19:45
Of course
I never have seem something like
exactly like that too
how? would be really faster
echo $_GET['foo']
will return bar
and how to get the var name? (foo)
19:46
If your URL looks like index.php?foo=bar
cause I got 2 fiesld on mysql, var and value
I need to set the var name and value name
If your URL looks like so: index.php?foo=bar
Than $_GET["foo"] will be "bar".
yeah, but theres no way to retrive the var name
thats why I made ?var=foo&value=bar
@PedroGabriel Of course there is
foreach ($_GET as $key => $value)
$key will hold the var name :)
oh, I didn't know it thanks!
I'll change everything now
19:51
Also,
if the variable name must be unique
Why not make the field unique in the database?
I've made id uniq at first
but I never used it
also, they cannot be unique because is Long Text
@PedroGabriel Use a VARChAR
This way, when a user will try to add a variable already existing
but idk how long they are going to set their vars, all variables is set in the same var
(for more users they would split on their own)
You'll get an error (in the form of PDOException)
#1062 - Duplicate entry 'test' for key 'unique'
@PedroGabriel What? Why?
Have a single row for each var
would be hard to retrive faster, it would need something special like username
to retrive for every user
19:56
@PedroGabriel What's wrong with that?
You already need something to identify the user
I'm guessing that's what "pass" is?
using only one they can get all values where should be
user|var|value|user|var|value|user|var|value|user|var|value
pass is how they keep the var "safe" cause it is not safe
each pass is one ".exe" if 2 exes as the same password they would share the same vars
@PedroGabriel What you should have, is many-to-one relationship in this table
Many variables per pass
you should have a multitude of rows, each with a single key/value pair, and a pass
When you need to select all the variables of a single user, you select it WHERE pass = :pass accordingly
That way you don't need further processing in PHP
I think it's the same no?
if I do WHERE pass = :pass would select all variables where has this pass, and values too
but as "targets" are programmers, I think they like to change how store it (was a tip from a friend he would prefer split all values from get like you said)
At first I wanted to do like you said
@PedroGabriel The programmers you're talking about shouldn't care how you store their data
If I'm using your service to keep my variables, I just need to store them, and collect them when I want to
I don't care how you do it, just do it
So you might as well do it right
that's what I think...
I wanted to make a field username where would set his username
grab all data using :pass and then split (inside exe) all vars to a 2d array
much better than current
20:07
@PedroGabriel If you want to store and collect your data optimizingly, you should use my approach
Store it normally in the database, after you collect your data, do whatever processing you need in PHP to send it correctly to the client.
I gtg for now
I'll be back tomorrow :)
I'll see about it... thanks for your $key, was very usefull
 
1 hour later…
21:29
"development music": youtube.com/watch?v=O87oAANPVcw because chat is dead anyway
21:48
@hakre I don't like deleting old questions with (remotely) many votes
I feel that we don't gain anything from it
Well I did run some research on the topic my own the last day and the reaction were pretty harsh. I think it's very much accepted to close and delete old questions that are just off-topic. And I explicitly asked about what is with conserving content.
-13
Q: How to conserve the past?

hakreI do not know how to word it, but it seems that some moderator here has no sense of context: Some folks crowd-sourced 4 close votes within hours for a question that existed for years. As those close votes were not enough and I wanted to set a sign to prevent further of these "I don't have not ti...

These three questions in specific are mostly with users that are very much okay with getting it deleted, so I was careful.
But I can only speak for myself.
22:20
Someone with enough rep can protect a question.
@GordonM protect just means block low-rep answers
It doesn't mean protect from deletion?
nope
I don't think there is much sense in protecting a question from deletion. Those are community votes and the community is running the site.
Which of them is faster and consume less memory
using
mysql_query($sql); about 10 to 20 time same page.
or creating function to return the query ..??
22:38
use mysqli instead. it's faster and can make use of the native driver, so you have the memory benefit.
@hakre mysqli is available from PHP 5.4 i'm working with 5.3
I thought mysqli has been in PHP since at least 5.1
Might have even been earlier than that
@GordonM oh really i got to know this after php 5.4 whey they update there php.net website from here php.net/manual/en/function.mysql-query.php
any way. even creating function query($sql) {
return ****sql***
}
which is faster and consume less
Sam
Sam
Hey guys, is there a shorter way of writing this? pastebin.com/qFJvTsf3
@Sam echo isset($example) ? 'THERE IS SOMETHIGN' : 'THERE IS NOTHING';
Sam
Sam
22:51
@BasicBridge Ok thanks for clearing that up for me
your welcome
@BasicBridge , how comes you read that link , and did not notice the red box ?!
no ans. MySQLi is out of my knowledge.
@Sam . no , there is not , because using ternary operators is discouraged
@tereško from how many years you are with PHP you have good knowledge.
23:06
hi
@BasicBridge , for 6 years , but i started to actually learn php about a year and a half ago
too good learning speed. :-)
damn it , where is that blood tanned guy
@rdlowrey , how do you implement URL routing mechanism ? I have class Router , class Route .. then there is also the Router::route() method and the RouteBuilder and it gets confusing
i need a different word
00:00 - 16:0016:00 - 00:00

« first day (645 days earlier)      last day (4525 days later) »