What would be the correct RegEx to fetch the following substring out of the text?
[aaaa-aaaaa] from 'HelloWorld[aaaa-aaaaa][][asdfsadf][aas-asda-asdas]asdasd'
SELECT PATINDEX('%[[]%', 'HelloWorld[aaaa-aaaaa][][asdfsadf][aas-asda-asdas]asdasd')
Hi Room, just wondering if anyone knew about some good book for C#, most of the ones i have just turned out to be references. I'm an introductory programmer to C#. I've done some python for a while but nothing object-oriented yet.
@KendallFrey @CCInc it's not that i don't understand programming, i was able to write a program in C# today including some IO and variable declaration in 3 minutes of reading. But the reference books always keep going off on a tangent and ruins the flow of the book.
@CCInc @KendallFrey thanks a lot. I'm ok with references...but i guess i'm reading them wrong...i'm usually trying to read cover to cover....references are supposed to be more of a supplement to a tutorial
I have built a little C# application that allows visualization of perpective transformations with a matrix, in 2D XYW space. Now I would like to be able to calculate the matrix from the four corners of the transformed square. Here is a screenshot to help you understand what I am working with:
...
BitTorrent is a protocol that supports the practice of peer-to-peer file sharing and is used for distributing large amounts of data over the Internet. BitTorrent is one of the most common protocols for transferring large files and peer-to-peer networks have been estimated to collectively account for approximately 43% to 70% of all Internet traffic (depending on geographical location) . In November of 2004 BitTorrent was responsible for 35% of all Internet traffic.
Programmer Bram Cohen designed the protocol in April 2001 and released the first available version on July 2, 2001. Currentl...
I have found a bunch of answers for this question using mysql , but I wasn't able to convert anything into a query ms sql 2008 can use. I have a longitude and latitude column for each row in the database. I am going to have a latitude and longitude for where the user is. I want to be able to f...
@ScottSelby yeah ;) still, you've just reinvented the wheel. Should work well on such a small scale. Pointed this one out only, because I've witnessed what spatial indexes can do on high volume data (on mongodb, but it's similar in spatial stuff to MS SQL). Good luck!
public List<SelectListItem> GetAttributeName() { try { var attri = (from z in _entities.Attributes select z).AsEnumerable().Select(z => new SelectListItem { Text = z.AttributeName + " (" + z.AttributeType.AttributeTypeCode + ")".ToString(), Value = z.AttributeID.ToString() });
need to clear one doubt on linq
public List<SelectListItem> GetAttributeName()
{
var attri = (from z in _entities.Attributes
select z).AsEnumerable().Select(z => new SelectListItem
{
Text = z.AttributeName + " (" + z.AttributeType.AttributeTypeCode + ")".ToString(),
Value = z.Attr...
My blog and all the sites in and around it are a mix of .NET 2.0, 3.5 and 4. This blog engine is currently .NET 3.5 and runs at http://hanselman.com/blog, but the application at http://hanselman.com/ (the root) is .NET 4. You can happily mix and match applications across .NET versions on a single IIS instance. You can see how mixed my system is in the screenshot at right there. However,…