Computing desk | ||
---|---|---|
< March 26 | << Feb | March | Apr >> | March 28 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Are there any email clients supporting binary MIME#Content-Transfer-Encoding encoding method? Such email application could store email attachments in message bodies as efficiently as storing them outside as files in filesystem. - Yyy ( talk) 08:21, 27 March 2011 (UTC)
I recently had need of a C# class representing ordered pairs of any generic type, so I wrote the following:
public class Pair<T, U> { private T first; private U second; public Pair(T first, U second) { this.first=first; this.second=second; } public T First { get { return first; } } public U Second { get { return second; } } }
Now this works OK, but I came to think: sooner or later I will probably need ordered triples, ordered quadruplets, and so on. It is of course very easy to write a class such as the above for all of them, but it would be easier still if I could do something like this (not legal C#):
Tuple<3><string, int, bool> tuple = new Tuple<3><string, int, bool>("Hello world!", 6858, true);
with me having to only write one definition of the class Tuple
. Is such a thing even possible in C# or any other C-based object oriented language?
JIP |
Talk
17:43, 27 March 2011 (UTC)
python vararg constructor
|
---|
#!/usr/bin/python
class Mytuple:
def __init__(self, *args):
self.store=args
def __len__(self):
return len(self.store)
def __str__(self):
val = "Mytuple:"
for x in self.store:
val += str(x)+" "
return val
def __getitem__(self,index):
return self.storeindex
a = Mytuple("Hello world!", 6858, True)
print a1
|
tuple<>
, tuple<A>
, tuple<A,B>
, tuple<A,B,C>
, up to the maximum length you think you'll ever need. The new
C++0x standard has template varargs, and I believe that can be used to declare a truly arbitrary-length tuple template. But either way, you should not write your own tuple template; you should use
boost::tuple. --
BenRG (
talk)
04:23, 28 March 2011 (UTC)Pair<A,Pair<B,Pair<C,D>>>
. It's the traditional way to do it in ML-like languages (though I should point out that it looks much uglier ported to C# like this, since C# lacks infix type constructors and type-based pattern matching).
Paul (
Stansifer)
23:31, 28 March 2011 (UTC)How do I read iPhone app code? I've heard that it exists on the phone only as binary and as such cannot be read, but even if this is true there must be a way to convert back. Some decompiler of some sort? Elatanatari ( talk) 18:53, 27 March 2011 (UTC)
Is Gtalk the same as Google Talk? I presume it is as http://en.wikipedia.org/wiki/Gtalk redirects to http://en.wikipedia.org/wiki/Google_Talk, and googling Gtalk mostly leads to pages titled Google Talk. But where does the name Gtalk come from? I see Gtalk (or GTalk, gtalk or gTalk) used much more often than Google Talk. -- Mortense ( talk) 19:24, 27 March 2011 (UTC)
Can the Samsung Wave run unsigned apps, a la Android or jailbroken iPhone? -- Melab±1 ☎ 19:59, 27 March 2011 (UTC)
I want to connect my Intel PC webcam type CS120 to a PC running Vista but lack the necessary driver. On the web I have found only driver sources that demand payment, installation of a scanning program, and/or registration with e-mail address. Is there any free source of the driver? Cuddlyable3 ( talk) 20:06, 27 March 2011 (UTC)
I have recently purchased a HP Officejet 4500 printer with the installation CD installing only in Chinese. Regardless, I installed the programs. Furthermore, I just scanned a postcard and it created the PDF file in a folder listed in Chinese. How do I switch the program to English? Is this a software issue? -- Blue387 ( talk) 20:43, 27 March 2011 (UTC)
While I like "good" Google, I do not like "evil" Google. Despite their "Don't be evil" motto, I do not like the "
bait and switch" privacy policy, where at first they bait you in by offering goodies without any personal information demands, but then switch to demanding personal information so that they can take over the world use us as targeted advertising fodder. Another example is gathering people's wifi details "by mistake", sure. Its like the
Stasi, where they put their information together to have a file on everyone.
Supposing I wanted to boycot all of Google and its sub-companies under different names, what should I avoid please? What could I use instead? Thanks 2.97.210.137 ( talk) 22:23, 27 March 2011 (UTC)
You are in luck my freind, because boycotting Google is much easier than boycotting Microsoft. Just keep using its rival Empire's software from Microsoft, Yahoo, Apple etcetera. — Preceding unsigned comment added by Roberto75780 ( talk • contribs) 03:23, 28 March 2011 (UTC)
Are there any companies which use a different name but are in fact owned by Google? I thought Yahoo was, but the comments above suggest not. YouTube is. Android is I believe Googleware. Any others please? Thanks 92.15.14.99 ( talk) 11:16, 28 March 2011 (UTC)
Computing desk | ||
---|---|---|
< March 26 | << Feb | March | Apr >> | March 28 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Are there any email clients supporting binary MIME#Content-Transfer-Encoding encoding method? Such email application could store email attachments in message bodies as efficiently as storing them outside as files in filesystem. - Yyy ( talk) 08:21, 27 March 2011 (UTC)
I recently had need of a C# class representing ordered pairs of any generic type, so I wrote the following:
public class Pair<T, U> { private T first; private U second; public Pair(T first, U second) { this.first=first; this.second=second; } public T First { get { return first; } } public U Second { get { return second; } } }
Now this works OK, but I came to think: sooner or later I will probably need ordered triples, ordered quadruplets, and so on. It is of course very easy to write a class such as the above for all of them, but it would be easier still if I could do something like this (not legal C#):
Tuple<3><string, int, bool> tuple = new Tuple<3><string, int, bool>("Hello world!", 6858, true);
with me having to only write one definition of the class Tuple
. Is such a thing even possible in C# or any other C-based object oriented language?
JIP |
Talk
17:43, 27 March 2011 (UTC)
python vararg constructor
|
---|
#!/usr/bin/python
class Mytuple:
def __init__(self, *args):
self.store=args
def __len__(self):
return len(self.store)
def __str__(self):
val = "Mytuple:"
for x in self.store:
val += str(x)+" "
return val
def __getitem__(self,index):
return self.storeindex
a = Mytuple("Hello world!", 6858, True)
print a1
|
tuple<>
, tuple<A>
, tuple<A,B>
, tuple<A,B,C>
, up to the maximum length you think you'll ever need. The new
C++0x standard has template varargs, and I believe that can be used to declare a truly arbitrary-length tuple template. But either way, you should not write your own tuple template; you should use
boost::tuple. --
BenRG (
talk)
04:23, 28 March 2011 (UTC)Pair<A,Pair<B,Pair<C,D>>>
. It's the traditional way to do it in ML-like languages (though I should point out that it looks much uglier ported to C# like this, since C# lacks infix type constructors and type-based pattern matching).
Paul (
Stansifer)
23:31, 28 March 2011 (UTC)How do I read iPhone app code? I've heard that it exists on the phone only as binary and as such cannot be read, but even if this is true there must be a way to convert back. Some decompiler of some sort? Elatanatari ( talk) 18:53, 27 March 2011 (UTC)
Is Gtalk the same as Google Talk? I presume it is as http://en.wikipedia.org/wiki/Gtalk redirects to http://en.wikipedia.org/wiki/Google_Talk, and googling Gtalk mostly leads to pages titled Google Talk. But where does the name Gtalk come from? I see Gtalk (or GTalk, gtalk or gTalk) used much more often than Google Talk. -- Mortense ( talk) 19:24, 27 March 2011 (UTC)
Can the Samsung Wave run unsigned apps, a la Android or jailbroken iPhone? -- Melab±1 ☎ 19:59, 27 March 2011 (UTC)
I want to connect my Intel PC webcam type CS120 to a PC running Vista but lack the necessary driver. On the web I have found only driver sources that demand payment, installation of a scanning program, and/or registration with e-mail address. Is there any free source of the driver? Cuddlyable3 ( talk) 20:06, 27 March 2011 (UTC)
I have recently purchased a HP Officejet 4500 printer with the installation CD installing only in Chinese. Regardless, I installed the programs. Furthermore, I just scanned a postcard and it created the PDF file in a folder listed in Chinese. How do I switch the program to English? Is this a software issue? -- Blue387 ( talk) 20:43, 27 March 2011 (UTC)
While I like "good" Google, I do not like "evil" Google. Despite their "Don't be evil" motto, I do not like the "
bait and switch" privacy policy, where at first they bait you in by offering goodies without any personal information demands, but then switch to demanding personal information so that they can take over the world use us as targeted advertising fodder. Another example is gathering people's wifi details "by mistake", sure. Its like the
Stasi, where they put their information together to have a file on everyone.
Supposing I wanted to boycot all of Google and its sub-companies under different names, what should I avoid please? What could I use instead? Thanks 2.97.210.137 ( talk) 22:23, 27 March 2011 (UTC)
You are in luck my freind, because boycotting Google is much easier than boycotting Microsoft. Just keep using its rival Empire's software from Microsoft, Yahoo, Apple etcetera. — Preceding unsigned comment added by Roberto75780 ( talk • contribs) 03:23, 28 March 2011 (UTC)
Are there any companies which use a different name but are in fact owned by Google? I thought Yahoo was, but the comments above suggest not. YouTube is. Android is I believe Googleware. Any others please? Thanks 92.15.14.99 ( talk) 11:16, 28 March 2011 (UTC)