Why is this disallowed in C#?
Actually I'd like to be able to write
alias Y<A, B> : X<A, B>, X<B, A>
The unification is actually desired here; if the A = B then just one method should be defined.
hi i have many prebuild and postbuild events in different projects.
i want to write these events in a single batch file and then call this script in the main
project please tell me this is the correct way or any other best way of handlling these events while making a setup
thanks
I am trying to make a macro in Outlook that will scan the To: list for a certain text string, and spit out a message if all but one (or two, etc) addresses have it. Is there a simple way to do this?
Essentially, I am trying to write something that'll avoid being able to send a restricted message to a bunch of people with the string 'xyz' in the address, if one or more do not have it. AutoComplete makes this difficult, without checking through one-by-one.
A simple question: what is the more efficient way to access a db in Java/JDBC?
I'm a web developper and I'd like to write some reusable and scalable code.
What can you suggest?
I'm looking for ideas on recommended approach.
I'm trying to scrape some headlines and body text from articles for a few specific sites, similar to what Google does with Google News.
The problem is across different sites, they may have articles on the same exact subject, worded slightly differently.
Can anyone point to me what I need to know in order to write a comparison algorithm to auto-detect similar articles?
Thanks very much in advance.
I use Python.
Tornadoweb and Nginx are popular web servers for the moment and many benchmarkings show that they have a better performance than Apache under certain circumstances. So my question is:
Is 'epoll' the most essential reason that make them so fast? And what can I learn from that if I want to write a good socket server?
I am attempting to manage my projects a little better so I am looking at attempting to apply some of (eventually all) the features of scrum.
Looking at user stories specifically the high level format seems to be:
As a User I can Feature Description
or
Artifact is Doing Something
How would I write "Upgrade the Database"?
Is it simply Upgrade the Database?
I think I am being thrown off as there is no specific actor/customer and that the customer is the IT department.
I am using the following Expression to select all hyperlinks
//a[@href]
How can I write an expression to select all hyperlinks which match this format
http://abc.com/articles/1
here http://abc.com/articles/ is constant and the article number increases
Does anyone know a c++ library that uses advanced encryption standard encryption that can achieve encryption and decryption (using counter mode) in just two lines of codes. No need of padding or buffering the plaintexts the library will take care of all this. I have had a look at crypto++, openssl and libtomcrypt but in these it seems I need to write codes to buffer and pad the plaintexts which I don't want. In brief, I need something along these lines:
ciphertext = encrypt(ctr_mode(),plaintext,key)
plaintext = decrypt(ctr_mode(),ciphertext,key)
Thanks!
I have a an array of byte, size n, that really represents an array of short of size n/2. Before I write the array to a disk file I need to adjust the values by adding bias values stored in another array of short. In C++ I would just assign the address of the byte array to a pointer for a short array with a cast to short and use pointer arithmetic or use a union.
How may this be done in Java - I'm very new to Java BTW.
Hi,
i have this line below in frontend/config/view.yml:
stylesheets: [main.css]
The rules of that file are applied to the templates of the modules of frontend, but no to the templates of sfDoctrineGuardPlugin.
Even if i write at the beginning of the template it doesn't work..
What should i do?
Javi
I want to read MP3 files in C++ and I prefer to write my own code for this. Basically to learn how the filetype works. I want to read all the bits of hex data of a MP3 file and have my speakers play it. :) I have no idea where to start since I don't yet know how data is actually stored into a MP3 file.
Thanks for your help
Hi,
I am using C# to write/read to an Access 2007 Database. The table is
ID - AutoNumber [pkey]
Fname - Text
Lname - Text
Address - Text
The query string I Use is
"Insert into TblMain (Fname,Lname,Address) Values ('"+fname+"','"+lname+"','"+adrs+"')"
No errors are returned, the query executes but data is not added to the db.
Inserting to table using which does not have an autonumber data column works perfectly.
What am I missing?
Hi,
I have developed a site, which has some static pages. Like explore, home, feedback.
The link for these goes as follows
website.com/views/explore.php
website.com/index.php
website.com/views/feedback.php
I want to write a different SEO URL for each of the URL mentioned above.
Is it possible ?
i.e. for example
website.com/views/explore.php should be convereted/visible as website.com/explore
website.com/views/feedback.php should be convereted/visible as website.com/give/feedback
and so on
Can someone please write to me source code in Java? I have a task: create a program, that contains two dimensional array (with numbers) and the programm needs to sum zeros in each column and then get out the number of column in which the zeros are least.. thanks!
i've created a dialog that allows to kick an user. this dialog has a textbox where the user must write the name of the one to kick and then press the OK button to kick. I created all the dialog but i don't understand how to give the command on the ok.
somebody can help me?
I am new to learning prolog, and I want to know, if we have some procedure like
father("Nic","Adam").
and I want to write a function that it will add new value to this
father("Nic","Adam","something"..)
how can I do this? Using list? Or what?
Can I use NSTableView like I've used ListView in Windows? By that I mean JUST adding rows to the view.
I need to display a very simple two columned table and I don't want to write all this data related crap. Can I just 'add' stuff to a table view?
If not what is the simplest way to do what I'm trying to do (preferably without data sources)?
I write a sokoban solver for fun and practice, it uses a simple algorithm (something like BFS).
now i want to estimate its running time ( O and omega). but i need to know how to calculate count of paths from a vertex to another in a network. each path from a to b is a sequence of edges with no circuit.
for example this is a correct path:
http://www.imgplace.com/viewimg143/4789/501k.png
but this is not:
http://www.imgplace.com/viewimg143/6140/202.png
Anyone know how to write an m4 macro to accepts an arbitrary list of parameters?
Here is an example for what I want to implement:
ADD_OBJECTS_TO_LAYOUT(`LAYOUT_1', (`OBJ_ID_SQUARE', `COLOR_ID_RED'))
ADD_OBJECTS_TO_LAYOUT(`LAYOUT_2', (`OBJ_ID_SQUARE', `COLOR_ID_RED'), (`OBJ_ID_CIRCLE', `COLOR_ID_GREEN'))
ADD_OBJECTS_TO_LAYOUT(`LAYOUT_3', (`OBJ_ID_CIRCLE', `COLOR_ID_GREEN'), (`OBJ_ID_CIRCLE', `COLOR_ID_BLUE'), (`OBJ_ID_TIRANGLE', `COLOR_ID_RED'))
I have lists of data such as
a = [1,2,3,4]
b = ["a","b","c","d","e"]
c = ["001","002","003"]
And I want to create new another list that was mixed from all possible case of a,b,c like this
d = ["1a001","1a002","1a003",...,"4e003"]
Is there any module or method to generate d without write many for loop?
Hi,
say there is an xml file, which not created by me, with a known schema (for example, rss).
how would you parse it with C#? would you do that manually by XDocument etc, or would you use XMLSerializer and create a correspond class? or would you use Visual Studio tools to generate classes using a dtd file (that you'll write).
what do you think the most aesthetic, easy, not error-prone way?