« first day (893 days earlier)      last day (4062 days later) » 

9:00 AM
well, cant really help you there . I've only used pre-installed editors due to them encoding the forum syntax.
 
@copy News from EDIS. In the not so distant future they'll offer RPi colocation for 5€/Month.
 
Hi @Shea
how ca i set id to td
im generating table dynamically
make sure not using jquery .only javascript
 
that's a pretty essential thing to need to do....
var newTd = document.createElement('td');
//newTd.id = 'td_id'; //may not work in older internet explorer
newTd.setAttribute('id','td_id');
 
@Shea setting the id works in older internet explorer
 
iirc, I had some problems with it years ago somewhere
It may have actually been old FF
@shankar.parsanamoni idk, but yes, newTd.id='' would be the preffered method
 
9:08 AM
thanks @Shea
thanks a lot
 
user2157210
Morning
 
got to get back to work cya everyone
 
0
Q: AngularJS directive that manually transcludes content and has isolated scope

georgiosdI would like to hear the opinion of more experienced AngularJS developers on whether the following directive is best practice... I was trying to make to make a directive that will include HTML that: Can include compiled elements (other directives, like ng-src in the example below) Interpolate...

 
Holy fuck! The proprietary nvidia drivers just failed for the first time for me, wasn't exactly an awesome experience.
 
9:19 AM
don't even know what that's like for linux
should have taken a screenshot ;)
 
i dont get the comic strip
 
it's saying that if you ever have a speechless moment where you get super surprised, then that means you're not very smart.
at least that's what I assumed.
 
you're pretty stupid then ;)
 
no really.
idts
 
What don't you get about it exactly?
 
9:23 AM
@FlorianMargaine I know you are, but what am I?
 
nah. its a trolling comic strip. lol
now it makes sense. lol.
 
protip: SO Bot never says a funny joke
 
@Shea There was nothing to take a screenshot off, it was basically like dying. The screen went apeshit and displayed all kind of weird things and the integrated system speaker was all like "OMFG BEEEEEEEEEEEEEEEEEEEEPBEEEEEEEEEEEEEEEEEEEP..."
And I was like ﴾͡๏̯͡๏﴿
 
user2157210
@OctavianDamiean AMD is the way
 
I know, you couldn't have taken a shot if you wanted to lol
doesn't linux have a BSoD?
but red?
 
9:26 AM
@Shea No, closest you can get is a kernel panic.
 
I once got a kernel panic
but it had informative messages
I could solve the issue
 
I'm proud, today I saved a click :
thank you guys. You really save my click. Your solutions are working for me. thank you again. — user1621860 3 mins ago
 
that's what the BSoD is supposed to be for lol
 
@FlorianMargaine Indeed. That's the big difference kernel panics are actually helpful when debugging. :D
 
@Shea I never had an informative message from BSOD...
 
user2157210
9:31 AM
@FlorianMargaine Once. When my Ram died
 
me either, other than the fact that only driver issues cause it
 
Which is terribly helpful. :D
However, I switched to the nouveau driver and saved the day (and some kittens 'n puppies).
 
@FlorianMargaine did you see that Go 1.1 is now available ?
 
@dystroy nope, didn't dive much into it tbh
 
huh, that's a pretty cool site. commandlinefu.com
 
user2157210
9:38 AM
Its green id say
 
@OctavianDamiean quite old :P
 
Yea but still cool.
 
@dystroy what's new in Go 1.1? I can't find any news
and Go 1.1 is not released... it's Go1
 
To start with it fixes a minor grip I had with the compiler. See
10
Q: go language - else logic

SREEPRASAD GOVINDANKUTTYI have small query. Here is the program to find the factorial of a number in go func factorial (x uint) uint{ if x==0{ return 1 } return x*(factorial(x-1)) } The output for this program when called on input 5 is 120 But if I add an else statement I get an error func fact...

In my answer you have a link to release news
You must look at tip.golang.org
 
oh yeah cool
thanks
 
9:42 AM
The most interesting point is the "method values"
It's strangely elegant
 
yeah I don't get it
 
Thank god they didn't decide on a rolling release ... it would have been a complete mess.
 
@FlorianMargaine what don't you get ?
 
@dystroy what it does
 
method values ?
 
9:49 AM
yeah
 
Let's suppose you have this function :

func (t *T) f(a *A) int {
return 0
}

You can build a function of type func(*A)int, that is not needing the receiver anymore, by taking t.f where t is a *T.
you can do what you want with this function, like storing it in a map, etc.
Before, you would have had to build a closure.
It's a kind of bound function.
 
got it
thanks
 
user2157210
Holy shit as UniqueItemNo i understand it as unique right?
 
What I really like is how they could make it so simple and obvious.
 
You guys know what's better than creating a website off PSDs? Creating a website off a low-res JPG.
 
9:55 AM
just a quick question here
 
user2157210
@OctavianDamiean paintart
 
@FredMcgiff we may have a quick answer, foot-baby guy
 
anyone know the best way to go about this
I was recently I was archiving files into in rar. And I mistakenly set set this setting where it to split volumes into KB intead of GB it was a it was set on KB. When I tried to access the hard drive it takes more than five or six minutes to load there is more than 32,000 files of R&R's each at 1 KB. the size of the drive is 2 Tb.
 
user2157210
@OctavianDamiean But dont cry i wrote a booking system for our database using uniqueids and those ids are not unique in the db ......
 
So as you can see it's impossible to try to delete them or select them it takes forever and the browser and explore crashes.I guess I would have to delete the files in command prompt. Or anyone suggest a way to tackle this issue.
 
9:57 AM
@Nexxpresso Pfff, as long as you don't have to do front-end development you're king ...
 
linux? windows?
 
windows
 
can't help you then.
 
well i have a linux machine
 
Me neither.
 
user2157210
9:58 AM
@OctavianDamiean haha no i got the front end developer sitting infront of me
 
user2157210
@FredMcgiff DEL /F /S /Q /A "D:\Projects*"
 
user2157210
deletes everything in this path i guess
 
i could quickly create vm image linux
 
user2157210
DEL /F /S /Q /A "D:\Projects\*.rar"
 
user2157210
for just rar
 
user2157210
9:59 AM
shouldnt be so hard
 
user2157210
eh
 
@Nexxpresso thank you for the help
so I'll start so basically just run cmd prompt
all the files are located drive labelled A:
 
A: ? floppy discs are back?
 
Hey, im trying to see if this

(Math.sqrt(Math.pow((position.coords.latitude-45),2)+Math.pow((position.coords.longitude-75),2)))*79;

Matches this: Distance to store (km) = Square Root ((Current Latitude – 45)^2 + (Current Longitude ‐75)^2) *79
 
No wonder why it takes so long to access them. :D
 
user2157210
10:01 AM
who maps his 2tb drive on the floppy disk
 
whats a floppy
>:]
 
user2157210
@FredMcgiff fire up your terminal and then DEL /F /S /Q /A "A:\WHEREEVERYOUGO\WHATEVERYOUDO\IWILLBERIGHTHEREWAITINGFORYOU\*.rar
 
out of these you which one you think I should choose serverfault.com/questions/12680/…
 
user2157210
why not just use del
 
user2157210
holy shit just del and the directory cant be that hard can it
 
10:05 AM
the alt text is disturbing
especially the last sentence
 
they're not in a directory, and there's over 50,000
 
@copy ETA for the paid RPi colocation service one to two months!
 
user2157210
@FredMcgiff You are using windows?
 
user2157210
So they are in a directory
 
user2157210
Is there anything else on A:?
 
user2157210
10:07 AM
DEL /F /S /Q /A "A:\*.rar*"
 
yes there is sadly snapshots of virtual machines
 
user2157210
This should work
 
user2157210
how are they named?
 
user2157210
.rar001?
 
WD.part0000223575.rar
 
user2157210
10:08 AM
heck so just use what i just posted
 
user2157210
i dont see your problem
 
user2157210
DEL /F /S /Q /A "A:\*.rar"
 
now I don't think I have a problem because of your help
 
user2157210
I believe in you
 
user2157210
can someone remove ?
 
10:18 AM
2 messages moved to Trash can
6 messages moved to Trash can
 
@OctavianDamiean HUZZAH! I'll basically just copy all of it and then replace your name with mine :P
@rlemon Ah. YOU LIAR!
 
user2157210
@AmaanCheval Thats what ctrl+h was made for wasnt it?
 
@Nexxpresso What?
 
user2157210
@AmaanCheval find/replace
 
Right, yeah
 
10:20 AM
ctrl + h is probably something you use in your editor?
I know sed for this kind of stuff.
 
user2157210
@FlorianMargaine i never used an editor where i couldn't use ctrl +h
 
I have used many
vim, emacs...
 
user2157210
Yeah well I am not coding on Linux
 
@AmaanCheval Sounds good.
:D
 
user2157210
Should have considered and just said find/replace
 
10:22 AM
@Nexxpresso Sublime Text that is.
 
@Nexxpresso vim/emacs are available for windows.
 
user2157210
I know it is available for windows but last time i used vim was on some unix machine
 
user2157210
I shall revert everything i said
 
.. nvm
 
user2157210
@OctavianDamiean I am right now installing this one just to see if ctrl+h works
 
10:24 AM
Haha it does
 
user2157210
@OctavianDamiean Ctrl + h works .
 
@Nexxpresso You can bet it works ... using it all day.
 
user2157210
And why did you say it doesnt?
 
It sounds like he said it doesn't
 
user2157210
" i never used an editor where i couldn't use ctrl +h" thats what i said
 
user2157210
10:26 AM
his answer "Sublime Text that is."
 
Yeah, sounds like he said it doesn't
 
user2157210
@FlorianMargaine I guess even in vim you can ctrl+h on windows .
 
user2157210
oK
 
stupid
question
cd A:
 
10:28 AM
doesn't work
just type A:
 
user2157210
ye
 
nice
:)
 
Hello all
 
user2157210
Did you still not delete the files
 
user2157210
Hello @TemporaryNickName
 
10:30 AM
@Nexxpresso Oh I misread that.
Just realized.
 
user2157210
I mean what would we do without ctrl+h
 
user2157210
what would we do on windows without ctrl+h
 
cool, ctrl + h brings up histories in Chrome
 
how to count td
 
user2157210
10:32 AM
chrome is not a code editor is it?
 
@shankar.parsanamoni use .length() in jQuery?
 
i need answer only in javascript
if i click on td call it will count ++ like
<script>
function GenerateTable(Rows,Cols)
{
var nrCols=Cols+1;
var root=document.getElementById('tblDynamic');
var tab=document.createElement('table');
tab.className="mytable";
var tbo=document.createElement('tbody');
var row, cell;
for(var i=0;i<Rows;i++){
row=document.createElement('tr');
for(var j=0;j<nrCols;j++){
cell=document.createElement('td');
if(i==0 && j==0)
cell.id='td_mainId';
else
cell.id='td_id';
//cell.appendChild(document.createTextNode(i+' '+j))
row.appendChild(cell);
}
tbo.appendChild(row);
 
user2157210
please format or paste in fiddle
 
user2157210
var rows = document.getElementById('myTableId').getElementsByTagName('tbody')[0].getElementsByTagName('td').length;
 
user2157210
10:37 AM
not tested
 
@Nexxpresso won't work
var rows = document.getElementById('myTableId').rows.length
 
user2157210
i want mine to work too :(
 
user2157210
but if yours works its even better
 
@Nexxpresso getElementsBy... returns a NodeList. You need to iterate over all tbodyes
 
@JanDvorak crap, nice solution
I just figured it out and you already have the answer =P
 
10:39 AM
@Nexxpresso or assume there's one only
 
user2157210
well in my table there only one
 
user2157210
isnt it?
 
@Nexxpresso or use QSA: var rows = document.querySelectorAll("#myTableId tbody td").length
 
user2157210
If I will ever need to count table rows I will surely use your way
 
or even iterate them. rows is a collection
 
10:42 AM
Does jquery pretty much uses QSA?
 
If available, yes
it uses ByID for ID selectors, though
 
So, $("*#myDuplicateId") returns all elements with the ID, but $("#myDuplicateId") returns the first one only
 
oh, didn't know that QSA returned all the elements with duplicate ids
 
I think Sizzle/noQSA does that as well
I think that *#myId conveys the idea of "all elements with that ID" pretty well :-)
Not that having duplicate IDs is ever good :-)
 
user2157210
10:48 AM
It is ..
 
user2157210
Especially if they are called UniqueItemNo in the DB but are not unique at all
 
I once had a module that turned out to be re-inserted into the page repeatedly, making my unique elements present several times. $("#id:not(:last)").remove()
 
user1125394
ow jquery doesnt have good Chrome profiling results
 
use the native DOM API, then
if you're worried about performance
I'm worried about readability instead
 
user1125394
me too
 
user1125394
10:55 AM
but this is for a financial app, they want quick updates
 
user2157210
Any cool kickstarter projects right now im in spending mood because nothing works at work .
 
0
Q: Are marketing skill-sets desirable in a development role?

FunnyOxymoronI have a couple questions, but the main one is this... Over the past few years I've been employed as a digital marketing exec - managing web copy, on-site SEO, website-structure, email marketing etc. In the background I've been developing my front-end programming, to the extent where I'm now loo...

 
@crl unless they are using outdated machines (by several decades) or can spot 1ms delay or you are dealing with 1000s of elements, jQuery isn't slow.
 
it is working in notepad
but not working in fiddle
 
@shankar.parsanamoni wrap the script in header (see left menu)
 
user2157210
11:01 AM
holy shit those Yaba idiots
 
sorry dude i cant able to do
 
user2157210
their product is that small it can fit in a letter but they want 25 bucks for shipping outside us
 
@crl (might be stupid a suggestion) Use Flash =D and get high performance + cross browsing freedom. Many real time trading apps are still using Flash =D
 
can u explain
again
 
user2157210
 
11:02 AM
@shankar.parsanamoni There's a menu on your left of your fiddle. Choose the "in head" option.
 
user2157210
i wrapped it in head
 
user2157210
for you
 
We all know Linux is great...it does infinite loops in 5 seconds. ~ Linus Torvalds
 
@Nexxx
you updated r8?
but it is not showing table
?
is there any mistake in code
It is working fine in my local edit plus
 
Amazing... that's about the time I got (4500ms) for an infinite loop yesterday on my windows virtual machine...
 
user2157210
11:11 AM
@shankar.parsanamoni I dont know i just put in wrap in header
 
user2157210
have to be done before the eta i hate etas
 
The only places for icons is in a church, a burning church at that. [mhat]
 
o/
 
user2157210
11:36 AM
holy this structure
 
user2157210
unique number is actually unique but the method book item by unique number does not care about the unique number and just books all the items within the same catalogue ..
 
user1125394
@TemporaryNickName ah right, might be true, but chrome often crashes with flash ;)
 
user1125394
but never developed in flash, this is a designer stuff ;)
 
123
 
@crl What makes you think flash is just a designer stuff? (Is that including Flex as well?)
 
user1125394
11:48 AM
yes im wrong, the main use is video streaming
 
... and games
 
And copying to the clipboard
 
user1125394
o I know nothing about it, didn't even know it used actionscript
 
user1125394
flash is just a pain on mobile devices though
 
Flash is a broken out-dated technology.
 
user1125394
11:54 AM
videos never get played correctly, contrary to native player
 
Will <video> beat Flash in terms of performance??
 
@phenomnomnominal well, that's a little harsh
@JanDvorak why not...
 
I'd say that Flash isn't broken, it's just dead.
 
not when it comes to games, especially on the 3d - sector
 
I'd say that Flash isn't broken, nor is it dead
 
user1125394
11:56 AM
at least all video stuff in mobile browsers should use a native video app, if not <video> then
 
Unity wins the 3d sector for now
I haven't seen Shockwave for a long time
 
The number of reasons to pick flash over javascript can be counted on one hand
 
performance isn't one of them :-)
 
some of my friends are working on "Starforce Delta", a 3D multiplayer space strategy game
based on Flash and their new 3D-engine
performs good, looks good.
 
user1125394
there's worse: silverlight?
 
11:59 AM
^ now that's a dead technology
 
@JanDvorak That's one of the fingers that's down... the only finger that remains up is the middle finger
 
at least I freaking hope so, haven't come across silverlight - stuff in ages
 

« first day (893 days earlier)      last day (4062 days later) »