In my asp.net I am using Datalist in that I want to limit row count and want the sort to be in vertical. Let me know how to do this.
Ex: I want my list to be like this
The .NET framework provides a few handy general-use delegates for common tasks, such as Predicate<T> and EventHandler<T>.
Is there a built-in delegate for the equivalent of CompareTo()?
The signature might be something like this:
delegate int Comparison<T>(T x, T y);
This is to implement sorting in such a way that I can provide a lambda expression for the actual sort routine (ListView.ListViewItemSorter, specifically), so any other approaches welcome.
How can i access recent 10 values from cassandra. i need to get the recent values from a particular super column. I am getting the result, but which is not sorted properly. i need to sort the result with descending order(latest first based on the column name/timestamp)
What do functional programmers mean when they say a certain thing is composable or not composable?
Some of the statements of this sort that I've read are:
Control structures are not composable.
Threads do not compose.
Monadic operations are composable.
This is sort of the Java analogue of this question about C#.
Suppose I have a String object which I want to represent in code and I want to produce a string literal that maps to the same thing.
I was just about to write a state machine that ingests the string character by character and escapes appropriately, but then I wondered if there was a better way, or a library that provides a function to do this.
I have a drupal site where all the views and times associated with nodes are off by 1-hour.
-I checked the server time, and it is correct
-I checked that my admin user (uid 1) had a zero in the timezone offset
-Checked all CCK date fields in question to make sure there was no timezone handling
Yet still when the admin user views nodes, there is a 1-hour offset.
Is there some sort of system variable - or something else I haven't checked....?
I'm a newbie at networking. I understand the concept of multicast, but was wondering if it's reliable on the open/public internet?
It seems like sort of an edge case that different backbones or ISPs might intentionally break to reduce router load or generally segment the network for practical high-use applications.
Is my fear reasonable?
P.S. Follow-up question here:
http://stackoverflow.com/questions/256125/best-tutorial-for-application-multicasting
This may be a silly question but I was under the impression that it was possible to use IronRuby and MS Visual Studio 2010 together to sort of build interfaces\edit XAML in one window and code ruby in the other?
Is this only possible to do with C#, Basic and C++ ?
I've browsed SO and seen some IronRuby snippets like this one:
button1.click do |sender, args|
MessageBox.show("Hello World!")
end
So it stands to reason you can create GUIs somehow, but is the visual gui creator not available for ironruby?
In win32 programming in C:
Whats the best way to execute a win32 console program within another win32 program, and have the program that started the execution capture the output? At the moment I made the program redirect output to a file, but I am sure I must be able to open some sort of pipe?
Been Googling around without finding much at all, so does anyone know of a class or library that helps you parse any sort of language, like a Domain Specific Language (I'm creating one, so I'm flexible in what the syntax and format can be) into either PHP code or some helpful struct or a class hiearchy or ... ? Anything goes at this point. :)
I want to experiment with parsing text files into tokens, building up a small grammar and syntax library to express things like Business Natural Languages.
What exactly does setting the length on a column do in JPA?
@Column(name = "middle_name", nullable = false, length = 32)
public String getMiddleName() {
return this.middleName;
}
I understand that you can use the annotations to generate the database schema based on the entity objects, but does length do any sort of check or truncation when persistence happens, or it solely used for schema creation?
I also realize that JPA can sit on top of various implementations, the implementation I am concerned with in this case, is Hibernate.
I want to know how to use variables for objects and function names in Python. In PHP, you can do this:
$className = "MyClass";
$newObject = new $className();
How do you do this sort of thing in Python? Or, am I totally not appreciating some fundamental difference with Python, and if so, what is it?
I'm doing a web application for articles
Articles must be shown by month, with its published date stored as mm/yyyy
Now:
1- Should I use a DATE type field for storing?
2- Will jQuery UI datePicker be useful for showing mm/yyyy?
3- How could I sort by mm/yyyy?
I guess it will be more complicated if I store date normally and extract the day from date each time I want to do something, right?
Thanks,
Akamai is way too expensive. Photobucket is not reliable. Is there a great content delivery network that I can use just to host my images?
We deploy images programmatically via FTP, so there is some programming behind the scenes.
Having some sort of reporting about the reliability of the service, whether it's raw logs files or a web-based admin screen that shows http errors, would also be important.
Has anyone worked with edgecast?
hello everybody!
can anyone tell me how to create 2 different thumbnails of same images with different sizes and location in codeigniter. I have created a upload function and another thumbnail generation function, it works fine but can't sort out how to create 2 different thumbnail at accordingly at once. any help will be appreciated.
Looking to expand a current J2EE project using JSTL and Apache Torque with some sort of template engine so we can easily modify the views.
Any suggestions?
I have 6 columns in jquery grid..
Initially I need to hide the 6th column for user..
I did that made Visible= false for that perticular column
now I need to make disabled that column perminently that is i should not give access for the user to sort or do something else on the column only readable?
thanks
Here's the scenario:
You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.
Please note that this is the not the same as just retrieving the current interactive user.
I'm guessing that there is some sort of API access to Terminal Services to get this info?
Came across this error today. Wondering if anyone can tell me what it means:
Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094.
Is that 8094 bytes? Characters? Fields? Is this a problem joining multiple tables that are exceeding some limit?
I currently have a script that scrapes proxies off websites, but I'm just wondering what the best way to test them would be, I want to test and sort into different categories like
All
ALL HTTP
ALL SOCKS
Socks 4
Socks 5
HTTPS
HTTP Connect
I'm curious if anyone has seen an Open Source radio automation package (I found one in Russian on CodePlex) built on .NET
In addition if I wanted to build something like this in a client server environment is WCF and WPF the best way to do it? Is it fast enough to trigger songs to play/encode on the server from a remote WPF client?
Sort of vague questions but I wanted to get some community feedback.
I have a list containing version strings, such as things:
versions_list = ["1.1.2", "1.0.0", "1.3.3", "1.0.12", "1.0.2"]
I would like to sort it, so the result would be something like this:
versions_list = ["1.0.0", "1.0.2", "1.0.12", "1.1.2", "1.3.3"]
The order of precendece for the digits should obviously be from left to right, and it should be decending. So 1.2.3 comes before 2.2.3 and 2.2.2 comes before 2.2.3.
How do I do this in Python?
When I type in Borland C++,it types over the line,not on a new one.That means that every time I press enter,it doesn't give me a fresh,new,empty line in which to type but goes to the one underneath.
And there when I try to type I expect the symbols,numbers and letters to move as I add text behind them in the line,but the new symbols keep overwriting the old ones.Sort of deleting them and replacing them with the new characters as I type.
Could it be some kinda option I've activated unvoluntarily?
What are some non commercial deployment tools that allows a developer to speficy:
a branch/tag,
a revision and a
target machine to deploy code to?
I was wondering if there's a ccnet plugin of some sort that would allow the above to be specified.
I know this could be done with a NAnt deploy script. However considering we're mostly using gui tools for feedback, plus the tortoise svn repository browser, it be cool to lear if there's an GUI simple GUI tool/plugin
cheers.
I want to open a file for reading, the C++ way. I need to be able to do it for text files, which would involve some sort of read line function, and a way to do it for binary files, which would provide a way to read raw data into a char* buffer.