« first day (720 days earlier)      last day (4454 days later) » 

00:11
somebody say MVC?
And quit with the free stars to Billdr
just discovered the ignored tags feature:
http://meta.stackoverflow.com/questions/19173/what-do-favorite-tags-and-ignored-tags-do
01:12
o/
01:31
rawr
Help! Shapefile how to read using C#? :(
02:01
Hi, I am getting this error while sending email from my application "The server response was: 4.3.2 Service not available, closing transmission channel"
Can anyone help me to resolve this issue...
Hi, may i know what is different between class A {} and public class A{} which is implemented in A.cs?
I tested both, seems no difference
hello, would someone like to help with CSS that has been bothering me
@YanChengCHEOK - you mean how is adding Public infront of class different from not adding it?
@ScottSelby Yes. If I have a public class A / class A in A.cs, I can access it in B class which is written in B.cs
I don't know what is the different, of having, and not having public keyword
in Java, have public keyword at class is a must, to be accessed by other class.
its not a must in c#
if nothing is stated - i was going to say that public is default , but looking at it , Internal is actually default - which is very similar to Public
i keep reading that link over and over , it doesn't make sense , I started in c# using Visual Studios 2010 , so I think that is a bit outdated
its for 2005
but generally you can access classes from other classes unless you specificy Private , I think that Public is actually default
02:19
@ScottSelby Can you please help me too...
yes
this is the code
string adminID = "[email protected]";
MailMessage msg = new MailMessage();
msg.From = new MailAddress(adminID);
msg.To.Add("[email protected]");
msg.Subject = "Sample Email";
msg.Body = "Hello ";
SmtpClient SmtpMail = new SmtpClient();
SmtpMail.Host = "basic.smtp.ttu.edu";
SmtpMail.Port = 25;
SmtpMail.Send(msg);
you need smtp client , and you need authentication , email and password , like this example
SmtpClient ss = new SmtpClient("smtp.gmail.com", 587);
ss.EnableSsl = true;
ss.Timeout = 10000;
ss.DeliveryMethod = SmtpDeliveryMethod.Network;
ss.UseDefaultCredentials = false;
ss.Credentials = new NetworkCredential("username", "pass");

MailMessage mm = new MailMessage("[email protected]", "[email protected]", "subject here", "my body");
mm.BodyEncoding = UTF8Encoding.UTF8;
mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
ss.Send(mm);
Thanks a lot!! ..I'll try it. Hope it help!!
see the difference in client? its smtp.ttu.edu , or something similar , you email provider should give you the smtp address , smtp for public emails like gmail and hotmail are easily found on google
 
2 hours later…
04:31
Rawr!
04:54
beow
0
Q: calling a repeater item server side

Ray SülzerI have a list of asp:LinkLabels which are contained a repeater. I have a button that says "Get Started" when a user clicks on this button, I want it to execute the first item in the repeater. I have this code working fine in Chrome, but not in any other browser: <asp:Button ID="Submi...

hmmm
@ScottSelby
I am getting this error now..
"4.3.2 Service not available, closing transmission channel"
05:14
href="javascript:__doPostBack('LinkButton1','')">
oaijsdfoiajsdfoajsdofadsf
ewww
java
anyone thats good with math around?
05:36
@Bryan Try
Try?
that math thing
been trying
try asking?
Tell ur question... Lets give it a try!!
05:39
I have a list
containing 4096 key values
err keyvaluepairs...
anyways
for every 128 values
errr sec
05:55
I've got to be at work in five minutes, sry
it's fine
i just can't explain my problem haha
pretty much i have a list with 4096 keyvaluepairs for each 64 keyvaluepairs key is a x position value is a y position
just try to spill everything
and what do you want to calculate?
if 64 has 2 values
thats 64 x 2
4096/64 = 64
yeah i know >.>
06:00
:)
If i could describe this problem id probably be able to figure out the answer lol
try one more time
to describe it?
dont think about phrasing it good or sound smart
ok let me put it this way...
06:10
yes, I'll postpone work for a while
I have a level in my game
this is 64 x 64 tiles
64x64 = 4096
each tile has a x and y position in a image
i have a list of 4096 keyvaluepairs
each key is a x position in the image and each value is a y position in the image
Why not use a List<Vector2D>
Morning btw
@LewsTherin good point (no pun intended)
I'm trying to make a loop
to display all the tiles...
06:19
Is that it?
yea >.>
or maybe an array[64][64] with Point2D/Vector2D?
That will work as well. Either way it will amount to 4096 tiles.
How are you displaying it now?
I'm not I started from scratch
because the way i was doing it was causing lag issues on the xbox
because i was converting base64 data while the tile where drawing
06:23
I've converted all the data before drawing the tiles
and I'm just trying to work on using the converted data to display the tiles now
good morning people
i described what I'm doing best i can >.>
06:25
@RobAngelier Morning
You are using Texture2D yeah?
yeah thats for loading the tile image
What method do you use to add the data to Texture2D
uh?
Why would I be adding data to Texture2d?
I'll leave, sry I could not be of any help
So how does a tile render if you don't add a tile to texture2d?
06:30
@LewsTherin Gonna write serialization code the whole day. Will share if it is any good
I haven't done XNA in a while.. so just looking at msdn here
I have a tilesheet
the tile sheet
is 1 image
that image is a texture2d
@JohanLarsson Look forward to seeing it!
@Bryan The tilesheet is composed of 4096 tiles yeah?
no
the level is composed of 4096 tiles
Can you upload an image?
Or link one.
06:33
Those raster sections (are they called rasters?), you need to fill them with tiles?
no >.<
lol
It is a spritesheet then
look at spritebatch.Draw
Where?
On MSDN?
06:35
whever
I think it might simplify to store them in some sort of 2D datastructure
over & out
Definitely.
wanna see a truly tenacious learner
he is a tumbleweed and an Enthusiast
:)
lews do you see whats going on?
06:38
@Bryan The Rectange is the location of a sprite on a spritesheet?
Ok I think so
if you want to call a tilesheet a spritesheet then sure...
That's how I remember them ha ha.
In your Draw method you redraw those tiles?
in my draw method i draw the tiles using that "spritesheet" and rectangle for the location
of the tile im wanting to display
Yeah, I'd think there would be a way to save the frames in memory
I'm not sure if reading from a texture is slow
it isn't really
the old way i was doing it
even with the base64 conversion during drawing
i was getting 60 fps on the pc...
but 15 fps on the xbox...
and i figured i'd convert all the base64 data before i draw the tiles
the base64data is the tile locations...
i mean image locations...
for the rectangle..
06:49
Does converting it to base64 make the image better?
>.>
the image is not base64
Oh it is the vector?
Or rectangle.
the base 64 is a location for a rectangle in the image
none of this matters...
That didn't make sense btw :D
what didn't
06:52
So how do you want to draw it now?
let me lay this out...
level = base64 data
base64 data = locations in the tile image
locations in the tile image = rectangle cordinates for spritebatch draw
Yeah.. except
Why not use the Rectangle directly?
I'm stupid, can you show a little code..
_spritebatch.Draw(_tiles, new Vector2((y * 16),( x * 16)), sourceRectangle, Color.White, 0f, origin, 1, SpriteEffects.None, 0.1f);
And where is the base64 data used here?
If this is annoying remember I'm a noob at this :D
Rectangle sourceRectangle = new Rectangle(tilelocation.x, tilelocation.y, 16, 16);
06:58
Where was that website that translates error messages? Or can anyone tell me the english equivalent of 'El nombre solicitado es válido pero no se encontraron datos del tipo solicitado'.
@Bryan What is tilelocation?
@christianstuder translate.google.ie/…
pseudo example
"the numbe something is valid? no yes?"
something something something
haha
tilecation would be where id be using base64.key base64.value
@LewsTherin I know, but there was a website which had an 1:1 dictionary for localised error messages.
@LewsTherin
Um ok... I see no reason why you should convert.
Maybe you should create the rectangle objects beforehand. Save them in a List<Rectangle> or whatever
Do some premature optimization. Could make some difference.
@christianstuder No idea sorry :(
07:02
still doesn't change the fact
i need to display these tiles
i have all the data converted
@LewsTherin My Google-Fu seems to be weak today. But at least the Google Translation seems to be exact. Wow.
and i described the problem earlier this whole conversations been kinda pointless
damn, i feel bad today
@christianstuder Yeah they seemed to have gotten better at translation.
the rectangle locations are fine
07:07
Yeah, but calculations are expensive too..
Have you seen some Xbox examples?
I'm just going to go back to figuring this out..
your continue a conversation that isn't relevant to the problem
continuing*
Yep that's my debugging/profiling skills in action :(
-11
Q: JAVA: How we can say java Interface is 100% abstract

androDevcan you give me rite answer with example , how we can say Java interface is 100% abstract. Thanks:

The comments are hilarious
yea, i also commented
haha
:)
And I upvoted it :D
07:16
Going to college, talk in a few hrs.
see ya!
07:35
elooooo
box
sphere
thank god for aspirin!
i need some
>.>
i just eat two
:)
07:49
@E.LDunn are you asian?
i dont think so
:( i need someone to do some math for me
hahahaahah
i;m not your guy. I suck at math
i suck at math 2 , but ill give it a try if you want to explain the problem?
07:52
where you that guy that helped me with my base64totile function?
think so
lol well
i need your help again with a loop
i stored all the data from the base64 converted data in a List<KeyValuePair<int, int>>
07:55
which has a size of 4096 when populated
Key.Key would be the X position Key.Value be the Y position
yupp
right well
how would i split the 4096 into to sections of 64
err
i mean...
bah...
hahaha
is this to counter act the slow performance on the xbox?
yeah
I'm not sure how to word this >.>
ok
your value pairs are the positions of the tile you want in your bmp that holds all your tiles
08:02
Key.Key would be the X position Key.Value be the Y position
those would be used for rectangle cordinates
for each 64 values in the list of 4096 values would be a line of tiles
doesnt value pair have an indexer?
one second
its in a list course it does sorry its early lol ...
lol
ok let me err go over this again
i have a level right?
the level is 64x64 tiles...
yupp yupp
thats 4096 tiles
08:08
each tile is 16x16 in size
(thats not important data right there)
anyways i have a list that contains 4096 keyvaluepairs
yupp
and keyvaluepair is a x and y cordinate
for a rectangle
goddam the suspense is killing me
08:09
hahaha
i'm trying to draw the rectangle
and then draw the tiles in there propper places
I'm not sure how I'd do that >.>
well if you know that the map is 64x64, why not loop over the list and with the index say something like (index) / 64 as ints that will give you the row i.e 0,1,2
foreach(var kvp in tileList)
drawTile(kvp,Key, kvp.Value) dunno what darwTile would be I only know system.drawing GDI not XNA
lol @HollyStyles
the problem is not that
think of it something like this...
I know this is going to be wrong...
foreach(keyvaluepair<int,int> pos in _tiles){
i++;
08:17
what's the i++ for?
you're in a foreach
(to keep track
...
ok here
can you use linq on xbox?
Man i'm gonna have to go for a shave in a minute, me beard's groing :)
for(int i = 0;i < 4096;i++){
Rectangle sourceRectangle = new Rectangle(_tlevel[a].Key, _tlevel[a].Value, 16, 16);
}
for (int i = 0; i < 64; i++)
{
var row = text.Skip(int).Take(64);

foreach ( blar in row)
{
//draw your tile
}
}
08:20
foreach(var xyPos in _tlevel){
Rectangle sourceRectangle = new Rectangle(xyPos .Key, xyPos .Value, 16, 16);
}
for(int i = 0;i < 4096;i++){
Rectangle sourceRectangle = new Rectangle(_tlevel[a].Key, _tlevel[a].Value, 16, 16);
Vector2 origin = new Vector2(16, 16);
_spritebatch.Draw(_tiles, new Vector2((x * 16), (y * 16)), sourceRectangle, Color.White, 0f, origin, 1, SpriteEffects.None, 0.1f);
}
he's probably struggling with the fact that you either have to mod 64 or use two loops
@HarryMexican yes
>.>
see e.l. dunn's last response
ok kind of when to do the "carriage return"
finally we get to the nub of the problem :)
No hang on
surely the x,y's take care of that
08:22
lol the problem is the new Vector2((x * 16), (y * 16))
the x and y?
not sure about that math haha
I think we're still struggling to understand your problem Bryan
okl how about this
for (int i = 0; i < 64; i++)
{
var row = text.Skip(int).Take(64);

for (int ri = 0; ri < 64; ri++)
{
//draw your tile
// get tile data from original source (bmp) using value pair x ys

// position to draw on screen
// col row
//Vector2((ri * 16), ( (i/64) * 16));
}
}
doh one second
List<KeyValuePair<int, int>> test = new List<KeyValuePair<int, int>>;
for (int i = 0; i < 64; i++)
{
var row = test.Skip(i * 64).Take(64);

for (int ri = 0; ri < 64; ri++)
{
//draw your tile
// get tile data from original source (bmp) using value pair x ys

// position to draw on screen
// col row
//Vector2((ri * 16), ( (i/64) * 16));
}
}
also replace "i/64" with just "i"
@Bryan is your list of X Y's actually just row/col indexes? [0:0, 1:0, 2:0 ...]
08:31
brb smoke
@E.LDunn what do i do with row?
@Bryan well your math looks fine to me, what happens when you run this?
Assuming x and y start at 0 and are integers between 0 and 64
i made a dump of my app
it shows a few problems, one of which is that
The finalizer thread 2 in this BETRAT~1.DMP is blocked
how do i fix that O.o
ok ok, i assume your valuepairs represent the positions of your tile from your master bitmap so the first tile is 16,0 or valuepair(16,0), you decode the entire map file with your base64 method and end up with one continous list .... you then need to know where to draw your tiles on screen as the valuepair index of 65 isnt after 64 but actually the start of a new line
yea
08:40
@Samy000rathore don't block obviously. This may help dotnetdebug.net/2005/06/22/blocked-finalizer-thread
Tessa Fernandez would know
i've been through that article, the resolve part was quite too much for me
i was hoping for some help there
so the "i" represents a screen row value , the inner loop of "ri" represents the column index of that row... you do row[ri] to get the value pair of the current row and current column
this will give you the value pair you need to load up from your master bmp...
but again if your looking to improve performance on the xbox, I would recommend that you look into drawing to a texture2d at the start. a texture2d is fast drawing as it is in a format the gfx can understand
@Samy000rathore are any of your threads accessing a global variable? Are you still trying to man-handle the GarbageCollector? leave it the hell alone you bad-boy!
donno how id draw to a texture :-/
first question, maybe yes, second que. nah.... :P
what's wrong with threads accessing global variables??
08:51
Morning/Afternoon/Evening all
@Samy000rathore there's nothing wrong with threads accessing global variables as long as you make them thread safe :)
@E.LDunn KeyValuePair<int, int> testz = row[ri];?
ahhh....now that's a thought
@Samy000rathore depends. Thread1 lock(objecta){ waiting to lock (objectb) { accessVariable}} Thread2 lock(objectb) { waiting to lock(objecta) { accessVariable } } so both threads waiting for each other, they will wait forever.
a deadlock condition
08:56
Error 1 Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValue
one second
i realize the problem, but m pretty sure it's not the case with my code
test.Skip(i * 64).Take(64).ToList();
@Samy000rathore I had this once with a WCf WebService, but I can't for the life of me remember how I fixed it. But it did invlove what you have done finding the blocked thread in a dump file in WinDbg. Have you loaded SOS can you see your .NET methods?
anyone using VS2012? Worth upgrading from Vs2010?
08:59
@E.LDunn again bricks have been shat!
no, i'll just do that
Use SpinLock

bool lock = false;
var spin = new SpinLock(true);
try {
spin.Enter (ref lock);

// do stuff here
}
finally {
if (lock) spin.Exit();
}
@HarryMexican i tried it and felt no immediate need too.
did it work for you Bryan?
@E.LDunn k thx
yeah.. time to see if this was worth all the trouble
09:00
@Sres why would i need that, sorry just being curious
@Samy000rathore to avoid deadlocking as above
yeah, but i don't think that's the problem with my case
oh yey a whol 5 frame increase!
@HarryMexican I've just started using it, once you've fixed up the theme and removed the horrible caps from the TOOL bar it's a nice environment.
i checked that
09:04
@Bryan lol... may want to do some googling on textures :P
@Sres anything you would REALLY miss if you had to go back to VS2010?
24fps on a 2d game on the xbox
@HarryMexican not really.
from just displaying tiles
wahooo
@Sres ok thanks. that's what I'm hearing.
09:05
yea
i can't find anything about drawing to a texture
@HarryMexican I'd honestly say there are more annoyances at the moment. The preview c# files is terrible (but customisable)
@Bryan if i get time over the weekend ill run you up a little sample from the files i have of yours ( if i still have them )
haha ok
I guess you should target the next generation of consoles Bryan :)
atleast this is a mild improvement haha
@HarryMexican if only we knew what the next xbox's specs where going to be
if theres even going to be another xbox
I doubt using a different thread would make this perform any better would it?
09:09
yea there will be, its a giant cash cow for microsoft
I'm sure there will be. They spent too much money to get themselves in this (profitable) position.
not really bryan as the only place you can call that tread is from within your draw method, but the fact your doing all this in your draw method is whats creating the slow fps
lol i don't see of any other way around the lag aside from some how creating a image of the level
just so i know, is the 64x64 tiles all shown on screen at once ?
09:26
how can I pass an Integration Code for calling web services using c#.
09:46
any Mercurial gurus about?
high low everyone!
o/
Since I discovered this chat a couple days ago, I feel like I am back to IRC days
minus the juvenile 'operator control' attitude stuff
slaps Harry with a wet trout
09:55
haha
high five! anyone? ........
no? awwww :(

« first day (720 days earlier)      last day (4454 days later) »