unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How do you check and see if a propel object has an i18n record? === I'm using symfony and propel, and I'm trying to invoke a specific culture on an object and output some fields of that object to the screen in that specific culture. However, if the object's mapped database record doesn't have those fields in that specific culture, I would like it to default to the base culture (in this case, en_US) I'm doing it like this: $currentLesson = $currentLesson->getCurrentLessonsI18n($lessonCulture); But when I output such as this $currentLesson->getTitle(); It outputs an empty string if there is no culture record for it. My question is, is there a way to make an object default to a specific culuture if the one I specify isn't available, or is there a method to see if a specific object has a culture i18n record? something like this: if($currentLesson->cultureExists($lessonCulture) $currentLesson = $currentLesson->getCurrentLessonsI18n($lessonCulture); or > sfConfig::setPropelDefaultCulture("en_US"); Thanks for the help.
0
[ 2, 184, 107, 42, 2631, 17, 196, 100, 21, 17799, 3095, 63, 40, 31, 1087, 103, 571, 60, 800, 3726, 3726, 31, 22, 79, 568, 13, 7261, 10229, 93, 17, 17799, 15, 17, 31, 22, 79, 749, 20, 28371, 21, 1903, 1365, 27, 40, 3095, 17, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using PowerShell to add an extension to files === I have a directory of files that I'd like to append file extension to as long as they don't have an existing, specified extension. So add .txt to all file names that don't end in .xyz. PowerShell seems like a good candidate for this, but I don't know anything about it. How would I go about it?
0
[ 2, 568, 414, 15984, 20, 3547, 40, 3896, 20, 6488, 800, 3726, 3726, 31, 57, 21, 16755, 16, 6488, 30, 31, 22, 43, 101, 20, 4865, 2451, 3893, 3896, 20, 28, 175, 28, 59, 221, 22, 38, 57, 40, 3149, 15, 9931, 3896, 9, 86, 3547, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should you declare methods using overloads or optional parameters in C# 4.0? === I was watching [Anders' talk about C# 4.0 and sneak preview of C# 5.0][1], and it got me thinking about when optional parameters are available in C# what is going to be the recommended way to declare methods that do not need all parameters specified? For example something like the `FileStream` class has about fifteen different constructors which can be divided into logical 'families' e.g. the ones below from a string, the ones from an `IntPtr` and the ones from a `SafeFileHandle`. FileStream(string,FileMode); FileStream(string,FileMode,FileAccess); FileStream(string,FileMode,FileAccess,FileShare); FileStream(string,FileMode,FileAccess,FileShare,int); FileStream(string,FileMode,FileAccess,FileShare,int,bool); It seems to me that this type of pattern could be simplified by having three constructors instead, and using optional parameters for the ones that can be defaulted, which would make the different families of constructors more distinct [note: I know this change will not be made in the BCL, I'm talking hypothetically for this type of situation]. What do you think? From C# 4.0 will it make more sense to make closely related groups of constructors and methods a single method with optional parameters, or is there a good reason to stick with the traditional many-overload mechanism? [1]: http://channel9.msdn.com/pdc2008/TL16/
0
[ 2, 378, 42, 10123, 3195, 568, 84, 8294, 18, 54, 12832, 12905, 19, 272, 5910, 268, 9, 387, 60, 800, 3726, 3726, 31, 23, 1953, 636, 7510, 18, 22, 930, 88, 272, 5910, 268, 9, 387, 17, 10476, 16121, 16, 272, 5910, 331, 9, 387, 500...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Storing Three Matrices vs One Matrix === I am trying to create a simple matrix library in C++ that I will hopefully be able to use in game development afterwards. I have the basic implementation done, but I have just realized a problem with storing only one matrix per object: the rotation order will get mixed up fairly quickly. To the best of my knowledge: AB != BA Therefore, if I am continually multiplying arbitrary rotations to my matrix, than the rotation will get mixed up, correct? In my case, I need to rotate globally on the Y axis, and locally on the X axis (and locally on the Z axis would be nice as well). These seem like the qualities of the average first person shooter. So by "mixed up", I mean that if I go to rotate on the Y axis (or Z axis), then it will start rotating around the local X axis, instead of the intended axis (if that makes any sense). So, these are the solutions I came up with: 1. Keep 3 Euler angles, and rebuild the matrix in the correct order when one angle changes 2. Keep 3 Matrices, one for each axis 3. Somehow destruct the matrix during multiplication, and reconstruct it properly afterwards (?) Or am I worrying about nothing? Are my qualms false, and the order will somehow magically solve itself? Thank you for your patience!
0
[ 2, 25615, 132, 24849, 4611, 53, 8187, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 1935, 8187, 1248, 19, 272, 20512, 30, 31, 129, 13416, 44, 777, 20, 275, 19, 250, 522, 4601, 9, 31, 57, 14, 2125, 6123, 677, 15, 47, 31, 57, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use ontouchevent() with onitemclick Listener? === I am trying to make horizontal scroll view for grid view. I am succeeded in with horizontal scroll view. But now i need to implement onItemClickListener too for the same grid view. I used GestureDetector.SimpleOnGestureListener and onTouchEvent for horizontal scroll.If i use this onItemClickListener is not working. Con somebody help me to get both working. Thanks in advance.
0
[ 2, 184, 20, 275, 27, 15725, 4943, 38, 5, 6, 29, 27, 2119, 4829, 10129, 21772, 60, 800, 3726, 3726, 31, 589, 749, 20, 233, 10095, 12159, 1418, 26, 7354, 1418, 9, 31, 589, 2914, 19, 29, 10095, 12159, 1418, 9, 47, 130, 31, 376, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get points from openlayers map === i am developing an openlayers map. i need to get all points of a line that user drawn. The longitude and latitude should be saved in the database. The problem is, i can not use the save strategy to save all points and i don't know how to get the longitude and latitude of all points. Can anyone help me? Here's my code in save strategy. var saveStrategy = new OpenLayers.Strategy.Save(); saveStrategy.events.register('success', null, saveSuccess); saveStrategy.events.register('fail', null, saveFail); var vectorLayer = new OpenLayers.Layer.Vector("Line Vectors", { styleMap: sm, eventListeners: { "featuresadded": dataLoaded }, strategies: [ new OpenLayers.Strategy.Fixed(), saveStrategy ], protocol: new OpenLayers.Protocol.HTTP({ url: "testing.xml", format: new OpenLayers.Format.GeoJSON({ ignoreExtraDims: true, internalProjection: map.baseLayer.projection, externalProjection: wgs84 }) }) });
0
[ 2, 164, 819, 37, 368, 15187, 18, 2942, 800, 3726, 3726, 31, 589, 3561, 40, 368, 15187, 18, 2942, 9, 31, 376, 20, 164, 65, 819, 16, 21, 293, 30, 4155, 3160, 9, 14, 22291, 17, 16337, 378, 44, 4377, 19, 14, 6018, 9, 14, 1448, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML center input buttons === Here is my code: <p align="center">Do you want to play the game?</p><br> <Input type = 'Submit' Name ='StartQuiz' value="Yes" align="center"> <Input type = 'Submit' Name ='LogOut' value="No" align="center"> The buttons are not in the center. Do I have to use CSS for this? I read on the net to just use the simple align tag. How should I go about aligning these buttons to the center?
0
[ 2, 13, 15895, 459, 6367, 12861, 800, 3726, 3726, 235, 25, 51, 1797, 45, 13, 1, 306, 23389, 3726, 7, 12641, 7, 1, 537, 42, 259, 20, 418, 14, 250, 60, 1, 118, 306, 1, 5145, 1, 13, 1, 108, 4881, 1001, 800, 13, 22, 7563, 5130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Parsing XML with YUI === I am using YUI and I want to parse XML, preferably in a cross-platform, object-oriented manner (not messy DOMs). Googling around did not give me a clear example. Can you post clear example of it? Or is there other cross-platform libraries I must depend?
0
[ 2, 2017, 18, 68, 23504, 29, 2600, 49, 800, 3726, 3726, 31, 589, 568, 2600, 49, 17, 31, 259, 20, 2017, 870, 23504, 15, 6369, 4801, 19, 21, 919, 8, 27035, 15, 3095, 8, 6800, 3832, 13, 5, 1270, 21503, 11859, 18, 6, 9, 162, 5598, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CakePHP and Twitter bootstrap === I saw few different solutions to implement twitter bootstrap with cakephp My question is - what the best solution of them??? I wish to use for my app latest versions of cakephp and twitter bootstrap. Solution that I need is to bake app and after that views must be already working with twitter bootstrap (so additional helpers for twitter bootstrap is not a good solution). What I found is: - [http://www.mtkocak.net/?p=338][1] - as I understand this is js libriary that will add additional classes to standart cake view or thomething like this - [https://github.com/netors/cakephp-shell-template-twitter-bootstrap][2] - this solution seems like what I need, but I think it wouldn't work with latest versions of cake/bootstrap correctly Can anyone who already tried to find best solution for this tell me what he/she found??? Thanx. [1]: http://www.mtkocak.net/?p=338 [2]: https://github.com/netors/cakephp-shell-template-twitter-bootstrap
0
[ 2, 8390, 26120, 17, 10623, 5894, 16514, 800, 3726, 3726, 31, 441, 310, 421, 6776, 20, 8713, 10623, 5894, 16514, 29, 8390, 26120, 51, 1301, 25, 13, 8, 98, 14, 246, 4295, 16, 105, 60, 60, 60, 31, 2536, 20, 275, 26, 51, 4865, 5736,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get last li's anchor tag with simple dom html in php === I am crawling a web with the help of simple dom in PHP. I am getting following html with the help curl: <ul class="inline_list paging_list"> <li class="arrow disabled"><a title="Erste Seite" onclick="return false;" class="bgsg first pager">Erste Seite</a></li><li class="arrow disabled"><a title="Vorherige Seite" onclick="return false;" class="bgsg prev pager">Vorherige Seite</a></li><li class="first bgsg act"> <b>1-15</b><span class="bgsg">&nbsp;</span> </li> <li class=""> <a href="http://www.gelbeseiten.de/orchester/woltershausen,,31099,,,umkreis-50000/s2" class="pager pagerPage_1">16-30</a> </li> <li class=""> <a href="http://www.gelbeseiten.de/orchester/woltershausen,,31099,,,umkreis-50000/s3" class="pager pagerPage_2">31-45</a> </li> <li class="last "> <a href="http://www.gelbeseiten.de/orchester/woltershausen,,31099,,,umkreis-50000/s4" class="pager pagerPage_3">46-52</a> </li> <li class="arrow"><a title="Nächste Seite" href="http://www.gelbeseiten.de/orchester/woltershausen,,31099,,,umkreis-50000/s2" class="bgsg next pager pagerPage_1">Nächste Seite</a></li><li class="arrow"><a title="Letzte Seite" href="http://www.gelbeseiten.de/orchester/woltershausen,,31099,,,umkreis-50000/s4" class="bgsg last pager pagerPage_3">Letzte Seite</a></li></ul> Now, I need to href (link) of anchor tag which is in the last li of this ul with the help of simple dom object. Please provide me syntax how can I do this?
0
[ 2, 184, 20, 164, 236, 2093, 22, 18, 6265, 3383, 29, 1935, 11859, 13, 15895, 19, 13, 26120, 800, 3726, 3726, 31, 589, 19108, 21, 2741, 29, 14, 448, 16, 1935, 11859, 19, 13, 26120, 9, 31, 589, 1017, 249, 13, 15895, 29, 14, 448, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Retina and Non Retina Graphics in Cocos2d === I have a game in iphone already developed one year back in older version of cocos2d. Now i want to upgrade the game with both retina and non-retina graphics for all iphone3G,3GS and 4+ devices. I have used many buttons and CCMenus how can i handle them in code. Do i have to write conditions for every graphic? Any help or tutorial? Thanks in advance
0
[ 2, 24325, 17, 538, 24325, 8351, 19, 22470, 18, 135, 43, 800, 3726, 3726, 31, 57, 21, 250, 19, 21024, 614, 885, 53, 159, 97, 19, 1234, 615, 16, 22470, 18, 135, 43, 9, 130, 31, 259, 20, 9483, 14, 250, 29, 156, 24325, 17, 538, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically show a panelGroup when an event happens (JSF/ICEFACES) === I want to show a panelGroup dynamically. In this code, I have boxes which can be filled up. When the last available box is filled up with data, a panelGroup with a new set of boxes should show up. <ice:panelGroup binding="#{myPage.boxes0to9}" /> <ice:panelGroup binding="#{myPage.boxes10to19}" /> How do I let the second panelGroup display only when the last box in #{myPage.boxes0to9} has been filled in? Thanks!
0
[ 2, 7782, 1326, 298, 21, 4113, 8024, 76, 40, 807, 5531, 13, 5, 728, 18, 410, 118, 3568, 6413, 18, 6, 800, 3726, 3726, 31, 259, 20, 298, 21, 4113, 8024, 7782, 1326, 9, 19, 48, 1797, 15, 31, 57, 8120, 56, 92, 44, 1943, 71, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to fix a misconfiguration with Phusion Passenger and a VirtualHost directive? === I have done this, can anyone tell me why my Rails application isn't loading? hack ~ # cd /www ; rails mysite.com ; cd /etc/apache2/sites-available hack sites-available # cat default <VirtualHost *:80> ServerName mysite.com ServerAlias dev.mysite.com DocumentRoot /www/mysite.com ErrorLog "|/usr/sbin/rotatelogs /www/logs/mysite.com/error_combined_log 7862400" CustomLog "|/usr/sbin/rotatelogs /www/logs/mysite.com/access_combined_log 7862400" combined ServerSignature email RailsBaseURI /mysite.com <Directory /www/mysite.com> Allow from all Options -MultiViews </Directory> </VirtualHost> hack sites-available #
0
[ 2, 184, 20, 6098, 21, 2462, 1126, 13549, 857, 29, 18464, 5991, 3093, 17, 21, 6599, 11694, 15626, 60, 800, 3726, 3726, 31, 57, 677, 48, 15, 92, 1276, 494, 55, 483, 51, 2240, 18, 3010, 2532, 22, 38, 12797, 60, 11835, 13, 1, 6926, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
a struct doesn't belong in an object oriented program ... === Or does it?
0
[ 2, 21, 13, 10346, 1437, 22, 38, 6219, 19, 40, 3095, 13, 6800, 625, 13, 9, 9, 9, 800, 3726, 3726, 54, 630, 32, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
SPCrossListQuery fails to bring back results === I am calling `SPWeb.GetSiteData(anSpCrossListQuery)`. It fails to bring back any results or any errors when I call it with an accidental space at the end of the CAML query `<Where></Where>` clause. Anyone have an idea why?
0
[ 2, 3782, 7703, 5739, 8190, 93, 13614, 20, 1499, 97, 1736, 800, 3726, 3726, 31, 589, 2555, 13, 1, 3401, 14113, 9, 3060, 9097, 18768, 5, 210, 3401, 7703, 5739, 8190, 93, 6, 1, 9, 32, 13614, 20, 1499, 97, 186, 1736, 54, 186, 11908,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Displaying unit test results in VS 2008 === I am a rookie was using the Visual Studio 2008 built-in Unit Testing components, what would be the best way to record or display your results in a unit test? I want to my service method when it returns a System.GUID and an empty System.GUID [TestMethod] public void GetGUID() { MyWcfServiceService.MyWcfServiceClient proxy = new MyWcfServiceService.MyWcfServiceClient(); string name = "HasGuid"; System.GUID guid = proxy.GetGUID(name); } [TestMethod] public void GetEmptyGUID() { MyWcfServiceService.MyWcfServiceClient proxy = new MyWcfServiceService.MyWcfServiceClient(); string name = "HasEmptyGuid"; System.GUID guid = proxy.GetGUID(name); }
0
[ 2, 17418, 1237, 1289, 1736, 19, 4611, 570, 800, 3726, 3726, 31, 589, 21, 7959, 23, 568, 14, 3458, 1120, 570, 392, 8, 108, 1237, 4431, 5090, 15, 98, 83, 44, 14, 246, 161, 20, 571, 54, 3042, 154, 1736, 19, 21, 1237, 1289, 60, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
glDrawPixels causes AccessViolationException === I am using glDrawPixels to display an image. I know, I should probably be using textures but there are reasons I'm not. Well at least not for now. Anyways, image being displayed is frequently being updated as if it is being scanned in. This works fine as long as I let it sit and finish the "scanning", however, if I click on the screen while the "scanning is still going on I get an AccessViolation Exception at my glDrawPixels. Gl.glDrawPixels(mImageWidth, mImageHeight, Gl.GL_LUMINANCE, Gl.GL_UNSIGNED_SHORT, mDisplayBuffer); mImageWidth and mImageHeight are the expected values so they are not this issue. I put a for loop that looks at every element in mDisplayBuffer just before glDrawPixels call. No problem occurred here so the Access Violation doesn't seem to be coming from the mDisplayBuffer. So it must be something within the glDrawPixels right? I am using the TAO framework so that I can use C# and OpenGl. Any thoughts would be greatly appreciated since I have run out of ideas.
0
[ 2, 13, 8430, 43, 12404, 18321, 6798, 4047, 1381, 13327, 10832, 10066, 872, 800, 3726, 3726, 31, 589, 568, 13, 8430, 43, 12404, 18321, 6798, 20, 3042, 40, 1961, 9, 31, 143, 15, 31, 378, 910, 44, 568, 12714, 18, 47, 80, 50, 2932, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to do full text search of all oracle packages and procedures? === I would like to search through all of my procedures packages and functions for a certain phrase. Since it is possible to retrieve the code for compiled procedures using toad I assume that the full text is stored in some data dictionary table. Does anyone know where that would be? Thanks a lot
0
[ 2, 25, 80, 21, 161, 20, 107, 503, 1854, 2122, 16, 65, 15759, 16875, 17, 8876, 60, 800, 3726, 3726, 31, 83, 101, 20, 2122, 120, 65, 16, 51, 8876, 16875, 17, 3719, 26, 21, 1200, 6845, 9, 179, 32, 25, 938, 20, 11917, 14, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DSOFramer closing Excel doc in another window. If unsaved data in file, dsoframer fails to open with "Attempt to access invalid address" === I'm using Microsoft's DSOFramer control to allow me to embed an Excel file in my dialog so the user can choose his sheet, then select his range of cells; it's used with an import button on my dialog. The problem is that when I call the DSOFramer's OPEN function, if I have Excel open in another window, it closes the Excel document (but leaves Excel running). If the document it tries to close has unsaved data, I get a dialog boxclosing Excel doc in another window. If unsaved data in file, dsoframer fails to open with a messagebox: "Attempt to access invalid address". I built the source, and stepped through, and its making a call in its CDsoDocObject::CreateFromFile function, calling BindToObject on an object of class IMoniker. The HR is 0x8001010a "The message filter indicated that the application is busy". On that failure, it tries to InstantiateDocObjectServer by classid of CLSID Microsoft Excel Worksheet... this fails with an HRESULT of 0x80040154 "Class not registered". The InstantiateDocObjectServer just calls CoCreateInstance on the classid, first with CLSCTX_LOCAL_SERVER, then (if that fails) with CLSCTX_INPROC_SERVER. I know DSOFramer is a popular sample project for embedding Office apps in various dialogs and forms. I'm hoping someone else has had this problem and might have some insight on how I can solve this. I really don't want it to close any other open Excel documents, and I really don't want it to error-out if it can't close the document due to unsaved data.
0
[ 2, 13, 43, 656, 8361, 139, 4239, 20700, 9765, 19, 226, 1463, 9, 100, 367, 19863, 43, 1054, 19, 3893, 15, 13, 43, 656, 8361, 139, 13614, 20, 368, 29, 13, 7, 10303, 14228, 20, 1381, 16671, 3218, 7, 800, 3726, 3726, 31, 22, 79, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is your "Watch out" list regarding avoiding memory leaks when you write .NET code? === What do you keep on mind to avoid memory leaks when you write thousands lines of .NET code? I'm a big fan of prevention over inspection , there is a famous example regarding this point which is using a "StringBuilder" to combine strings instead of "String1+String2", so what is else out there from your coding experience? thanks in advance for sharing your thoughts.
0
[ 2, 98, 25, 154, 13, 7, 9054, 70, 7, 968, 3467, 10298, 1912, 11724, 18, 76, 42, 2757, 13, 9, 2328, 1797, 60, 800, 3726, 3726, 98, 107, 42, 643, 27, 594, 20, 2658, 1912, 11724, 18, 76, 42, 2757, 3805, 1560, 16, 13, 9, 2328, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use maven to export a project from subversion? === Maven has a plugin called [maven-scm-plugin][1], which can interact with source control systems. According to the documentation, I should be able to export a project like this: mvn scm:export -DconnectionUrl=scm:svn:svn://url... -DexportDirectory=./project-export However when I run this command with maven 2.0.9, I got the following error from maven: [INFO] Required goal not found: scm:export in org.apache.maven.plugins:maven-scm-plugin:1.0-beta-3 So it seems the beta-3 version of the plugin doesn't have the "export" goal, but it was added in 1.1. I do have both versions in my maven repo (.m2\repository\org\apache\maven\plugins\maven-scm-plugin\), however maven insists on using the old beta version, and errors out when it can't find the "export" goal. How can I force maven to use the 1.1 version of the scm plugin? The mvn scm:export command is used independently, so there is no POM file to configure. Thanks! [1]: http://maven.apache.org/scm/maven-scm-plugin/index.html
0
[ 2, 184, 20, 275, 1216, 3124, 20, 7487, 21, 669, 37, 972, 10898, 60, 800, 3726, 3726, 1216, 3124, 63, 21, 10922, 108, 227, 636, 540, 3124, 8, 18, 9095, 8, 18527, 5831, 500, 2558, 165, 500, 15, 56, 92, 10001, 29, 1267, 569, 1242, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The fifteenth of Febuary isn't found... === I'm in javascript, running this in the console d = new Date(); d.setMonth(1); d.setFullYear(2009); d.setDate(15); d.toString(); outputs this: "Sun Mar 15 2009 18:05:46 GMT-0400 (EDT)" Why would this be happening, it seems like a browser bug. FF3/OSX
0
[ 2, 14, 18967, 16, 14907, 291, 1857, 2532, 22, 38, 216, 9, 9, 9, 800, 3726, 3726, 31, 22, 79, 19, 8247, 8741, 15, 946, 48, 19, 14, 8650, 13, 43, 800, 78, 1231, 5, 6, 73, 13, 43, 9, 3554, 6444, 5, 165, 6, 73, 13, 43, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Show a custom image for some images if image not found - Lighttpd === I have a site that creates images for some bit of content after the content is created. I'm trying to figure out what to do in between the time the content is created and the image is created. My thought is that I might be able to set a custom image to display on a 404 error on the original image. However, I'm not sure how to do this with lighttpd. Any ideas or alternatives?
0
[ 2, 298, 21, 5816, 1961, 26, 109, 3502, 100, 1961, 52, 216, 13, 8, 471, 38, 9251, 800, 3726, 3726, 31, 57, 21, 689, 30, 9695, 3502, 26, 109, 1142, 16, 2331, 75, 14, 2331, 25, 679, 9, 31, 22, 79, 749, 20, 1465, 70, 98, 20, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you use Source Control without IDE integration? === I am currently using Subversion as my Source Control system, mainly because I found ANkhSVN to be a quite nicely integrated into Visual Studio. But many people seem to be using Git or Mercurial and others with great success. Now, I am wondering how to use a system like Git without some sort of IDE ingetration. Going to the command line to do source control seems very awkward to me, too much hassle.
0
[ 2, 184, 107, 42, 275, 1267, 569, 366, 13, 3448, 8078, 60, 800, 3726, 3726, 31, 589, 871, 568, 972, 10898, 28, 51, 1267, 569, 329, 15, 2011, 185, 31, 216, 40, 4278, 18, 16578, 20, 44, 21, 1450, 24050, 5547, 77, 3458, 1120, 9, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MS SQL 2005 Table to XML === I have a simple table in SQL Server 2005, I wish to convert this to XML (using the "FOR XML" clause). I'm having trouble getting my XML to look like the required output. I've tried looking through various tutorials on the web, but I am struggling. Can someone help? The table I have looks like this TYPE,GROUP,VALUE Books,Hardback,56 Books,Softcover,34 CDs,Singles,45 CDS,Multis,78 The output style I need is: <data> <variable name="TYPE"> <row> <column>GROUP</column> <column>VALUE</column> </row> <row> <column>GROUP</column> <column>VALUE</column> </row> </variable> <variable name="TYPE"> <row> <column>GROUP</column> <column>VALUE</column> </row> <row> <column>GROUP</column> <column>VALUE</column> </row> </variable> </data>
0
[ 2, 4235, 4444, 255, 812, 859, 20, 23504, 800, 3726, 3726, 31, 57, 21, 1935, 859, 19, 4444, 255, 8128, 812, 15, 31, 2536, 20, 8406, 48, 20, 23504, 13, 5, 12655, 14, 13, 7, 1106, 23504, 7, 9040, 6, 9, 31, 22, 79, 452, 2572, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which SQL Read TRANSACTION ISOLATION LEVEL do I want for long running insert? === I have a long running insert transaction that inserts data into several related tables. When this insert is running, I cannot perform a select * from MainTable. The select just spins its wheels until the insert is done. I will be performing several of these inserts at the same/overlapping time. To check that the information is not inserted twice, I query the MainTable first to see if an entry is there and that its processed bit is not set. During the insert transaction, it flips the MainTable processed bit for that row. So I need to be able to read the table and also be able to tell if the specific row is currently being updated. Any ideas on how to set this up in Microsoft SQL 2005? I am looking through the [SET TRANSACTION ISOLATION LEVEL](http://msdn.microsoft.com/en-us/library/ms173763.aspx) documentation. Thank you, Keith
0
[ 2, 56, 4444, 255, 1302, 12799, 13300, 662, 107, 31, 259, 26, 175, 946, 14692, 60, 800, 3726, 3726, 31, 57, 21, 175, 946, 14692, 12799, 30, 14692, 18, 1054, 77, 238, 1597, 7484, 9, 76, 48, 14692, 25, 946, 15, 31, 1967, 2985, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sharing .NET session/authentication with Flex === I have a .NET 1.1 application (VB.NET 1.1 shopping cart) into which a user authenticates. I want to 'bolt on' a Flex application but dont want to have to have the user reauthenticate. They shouldn't know it is a separate application. I want to use WebServices (C# 3.5) over some kind of secure channel. My main question here is how do I know the user is authenticated in Flex when communicating to the webservices. I've seen a suggestion to use [EnableSession][1], but I dont even know if that would work because I dont see how Flex would know to send any cookie that exists in the parent browser. Currently the shopping cart's idea of authentication is to just stick a custom 'User' object in session. I dont think thats true ASP but in any case if I have session I can get to it. What are my options? [1]: http://stackoverflow.com/questions/59945/accessing-net-web-service-securely-from-flex-3
0
[ 2, 6126, 13, 9, 2328, 3723, 118, 1346, 2504, 1786, 857, 29, 14409, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 137, 9, 165, 3010, 13, 5, 20468, 9, 2328, 137, 9, 165, 4884, 6420, 6, 77, 56, 21, 4155, 14351, 7759, 9, 31, 259, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to delete in perforce without syncing to your client? === I often accidentally create a branch that contains more code than it needs to. When that happens, I delete the branch files, the branch tag, and then start over. The thing that stinks is having to sync the huge pile of data just so I can delete it. Is there a way to delete server-side?
0
[ 2, 25, 80, 21, 161, 20, 27448, 19, 416, 8774, 366, 6063, 6302, 20, 154, 6819, 60, 800, 3726, 3726, 31, 478, 9746, 1600, 21, 1686, 30, 1588, 91, 1797, 119, 32, 2274, 20, 9, 76, 30, 5531, 15, 31, 27448, 14, 1686, 6488, 15, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Databinding DropDown Control in .Net === I am binding the dropdown with db entity. ddlCustomer.DataSource = Customer.GetAll(); ddlCustomer.DataTextField = "CustomerName"; ddlCustomer.DataBind(); I want to add "SELECT" as the first itemlist in dropdown and bind then entity to the dropdown. How can i do this?
0
[ 2, 1054, 22260, 2804, 2968, 569, 19, 13, 9, 2328, 800, 3726, 3726, 31, 589, 8728, 14, 2804, 2968, 29, 13, 9007, 9252, 9, 13, 43, 8643, 4636, 262, 1263, 9, 18768, 12097, 800, 7705, 9, 3060, 1233, 5, 6, 73, 13, 43, 8643, 4636, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I access properties from global.asax in some other page's code behind === Imagine i have a property defined in global.asax. public List<string> Roles { get { List<string> roles = (List<string>) Session["global.Roles"]; if (roles == null) { roles = fromDB.GetRolesFromDB(); Session["global.Roles"] = roles; } return roles; } set { Session["global.Roles"] = value; } } I want to use the value in another page. how to I refer to it?
0
[ 2, 184, 107, 31, 1381, 3704, 37, 2062, 9, 8588, 396, 19, 109, 89, 2478, 22, 18, 1797, 439, 800, 3726, 3726, 4382, 31, 57, 21, 1354, 2811, 19, 2062, 9, 8588, 396, 9, 317, 968, 1, 11130, 1, 2954, 13, 1, 164, 13, 1, 968, 1, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you describe the difference between Managed and Unmanaged Code to a Non-Programmer? === Sometimes it's difficult to describe some of the things that "us programmers" may think are simple to non-programmers and management types. So... How would you describe the difference between Managed and Unmanaged Code to a Non-Programmer?
0
[ 2, 184, 83, 42, 4996, 14, 2841, 128, 1471, 17, 367, 177, 8030, 1797, 20, 21, 538, 8, 19746, 1263, 60, 800, 3726, 3726, 1030, 32, 22, 18, 1956, 20, 4996, 109, 16, 14, 564, 30, 13, 7, 267, 17968, 18, 7, 123, 277, 50, 1935, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javax.jms does not exist - compiling activemq examples === I'm trying to compile the examples that come with activemq in apache-activemq-5.1.0\example\src\ TopicPublisher.java, CommandLineSupport.java on compiling thru netbeans it has some referencing problems saying javax.jms does not exist. I've tried the j2ee.jar, openjms, sun jms but they all give the same error. its also complaining about org.apache.activemq.util does not exist but I'm referencing activemq-all-5.1.0.jar. note: all other references to external jars are working fine any ideas?
0
[ 2, 8247, 396, 9, 728, 79, 18, 630, 52, 3182, 13, 8, 24378, 1348, 79, 1251, 3770, 800, 3726, 3726, 31, 22, 79, 749, 20, 26561, 14, 3770, 30, 340, 29, 1348, 79, 1251, 19, 17140, 8, 7889, 79, 1251, 8, 264, 9, 165, 9, 387, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to serve static web pages from within a django app? === I am building a relatively simple django app and apart from the main page where most of the dynamic parts of the application are, there are a few pages that I will need that will not be dynamic at all (About, FAQ, etc.). What is the best way to integrate these into django, idealing still utilizing the django template engine? Should I just create a template for each and then have a view that simply renders that template?
0
[ 2, 98, 25, 14, 246, 161, 20, 1884, 12038, 2741, 4434, 37, 363, 21, 3857, 14541, 4865, 60, 800, 3726, 3726, 31, 589, 353, 21, 3109, 1935, 3857, 14541, 4865, 17, 2629, 37, 14, 407, 2478, 113, 127, 16, 14, 7782, 1341, 16, 14, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cross Resulotion Applications in .NET === We are developing a little in house application that will run on monitor having multi resolutions. Now we want that the application should adjust itself and remain consistant over all monitors. I came from Java background too where we used different layouts to accomplish the task. I experimented in .NET with different layouts like UniGrid (which provide the consistancy but very restrictive) , Grid etc but failed in the required task. Can some one suggest me some possible layout model or some other solution?
0
[ 2, 919, 10719, 12415, 3309, 3767, 19, 13, 9, 2328, 800, 3726, 3726, 95, 50, 3561, 21, 265, 19, 191, 3010, 30, 129, 485, 27, 7626, 452, 1889, 4302, 18, 9, 130, 95, 259, 30, 14, 3010, 378, 14328, 1145, 17, 2166, 7929, 1830, 84, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How have you applied ITSM concepts to your development projects? === I have taken over a large project at work that requires a lot of TLC to get it into a manageable state. The whys and hows of this situation don't really matter at this point. I was thinking I could use some of the concepts of IT Service Management to rein in this project. It has no coding standards, no change management, no issue tracking, and no build process to speak of. Everything is done by hand in Explorer with issues added to a Word document as the help desk receives them. What kind of formal process would you use to address this situation?
0
[ 2, 184, 57, 42, 2435, 82, 79, 8700, 20, 154, 522, 2314, 60, 800, 3726, 3726, 31, 57, 658, 84, 21, 370, 669, 35, 170, 30, 4781, 21, 865, 16, 13, 38, 6109, 20, 164, 32, 77, 21, 4705, 579, 146, 9, 14, 483, 18, 17, 184, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Generics (Wildcards) === I have a couple of questions about java generics wildcards: 1) whats the difference between `List<? extends T>` and `List<? super T>` 2) What is a bounded wildcard and what is an unbounded wildcard? Thanks!
0
[ 2, 8247, 12733, 18, 13, 5, 14324, 6648, 18, 6, 800, 3726, 3726, 31, 57, 21, 1335, 16, 2346, 88, 8247, 12733, 18, 23003, 18, 45, 137, 6, 98, 18, 14, 2841, 128, 13, 1, 5739, 1, 60, 9073, 13, 38, 1, 17, 13, 1, 5739, 1, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to execute an MS SQL Server 2000 DTS package from a trigger? === I looked around and found some ideas about how to do this, but no definitive best way. One of the ideas was to use sp&#95;start&#95;job to kick off an SQL Server Agent job that runs the DTS package. If this is the best way to do it, then the next question would be, "How do I schedule a DTS package from a job?" I'm not sure what type of job step it should be or how to do it. Thanks, Tim
0
[ 2, 98, 25, 14, 246, 161, 20, 15644, 40, 4235, 4444, 255, 8128, 824, 13, 43, 38, 18, 6030, 37, 21, 7286, 60, 800, 3726, 3726, 31, 292, 140, 17, 216, 109, 3478, 88, 184, 20, 107, 48, 15, 47, 90, 15676, 246, 161, 9, 53, 16, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2005 - Running a website under a different user account === I am building a ASP.NET website, and when I click the START DEBUGGING icon, it will always run Internet Explorer as the account that I ran Visual Studio with. I would like to run IE as a different user when debugging. Is there a way?
0
[ 2, 3458, 1120, 812, 13, 8, 946, 21, 2271, 131, 21, 421, 4155, 2176, 800, 3726, 3726, 31, 589, 353, 21, 28, 306, 9, 2328, 2271, 15, 17, 76, 31, 10840, 14, 799, 121, 16254, 2762, 9801, 15, 32, 129, 550, 485, 2620, 8520, 28, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What would be the best way to match up two object instances between two different applications in a J2EE server? === I have a J2ee application where I basically want two objects, created by two separate servlets to communicate directly and I need these intances to be stable, i.e. to "know" each other during the session. The sequence is roughly: <br> 1. Client sends a request to Servlet #1, which creates object A 2. Client sends a second request (after the first returns) to servlet #2 which creates object B. 3. Object B finds A, using JNDI, and the two objects interact. 4. The client now continues to send requests to object A which needs to find B again. How do I make sure that these two instances know each throughout the session? Binding them to JNDI doesn't entirely solve the problem, since object B needs to communicate with its original servlet (servlet #2), which is not kept stable across requests. Any ideas? Thanks in advance.
0
[ 2, 98, 83, 44, 14, 246, 161, 20, 730, 71, 81, 3095, 13946, 128, 81, 421, 3767, 19, 21, 487, 135, 2851, 8128, 60, 800, 3726, 3726, 31, 57, 21, 487, 135, 2851, 3010, 113, 31, 11374, 259, 81, 3916, 15, 679, 34, 81, 1725, 13, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the (M|m)akefile semantics? === Is there a difference between using a makefile and a Makefile?
0
[ 2, 98, 50, 14, 13, 5, 79, 1, 79, 6, 13297, 16877, 17220, 18, 60, 800, 3726, 3726, 25, 80, 21, 2841, 128, 568, 21, 233, 16877, 17, 21, 233, 16877, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Timer and animation events trumping TouchesEnded events === I've implemented a tap-and-hold handler using an NSTimer that I first set in the TouchesBegan overload. However, what I actually want is for an action to be continuously performed in quick-fire succession while the touch is being held. So, on timer expiry I call a handler to do the work, which then sets another timer and the cycle continues until the TouchesEnded comes in and cancels it, or another terminating condition is met. This works fine, until my handler code triggers an animation to go off at the same time. Now we have animation events and timer events going off, and in all that we need to handle TouchesEnded as well. What I am finding is that, if the animation is triggered, and I set my timer to less than 0.025 seconds, my TouchesEnded event doesn't come through until the timer cycle stops (the other terminating condition). Setting a slower timer, or not triggering the animation, make it work (TouchedEnded comes in straight away), but are not what I want. Obviously this is all on the device (release build - no NSLogs) - in the sim it all works fine Is there any way of setting the relative priorty of these events - or is it likely I'm missing something else obvious here?
0
[ 2, 85, 139, 17, 6236, 963, 7095, 68, 13935, 10726, 963, 800, 3726, 3726, 31, 22, 195, 6807, 21, 5526, 8, 290, 8, 5344, 24641, 568, 40, 13, 2172, 891, 139, 30, 31, 64, 309, 19, 14, 13935, 863, 2342, 84, 8294, 9, 207, 15, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is AMQP suitable as both an intra and inter-machine software bus? === I'm trying to get my head around [AMQP][1]. It looks great for inter-machine (cluster, LAN, WAN) communication between applications but I'm not sure if it is suitable (in architectural, and current implementation terms) for use as a software bus within one machine. Would it be worth pulling out a current high performance message passing framework to replace it with AMQP, or is this falling into the [same trap as RPC][2] by blurring the distinction between local and non-local communication? I'm also wary of the performance impacts of using a WAN technology for intra-machine communications, although this may be more of an implementation concern than architecture. War stories would be appreciated. [1]: https://jira.amqp.org/confluence/display/AMQP/About+AMQP [2]: http://steve.vinoski.net/blog/2008/07/01/convenience-over-correctness/
0
[ 2, 25, 589, 1251, 306, 6445, 28, 156, 40, 14369, 17, 1480, 8, 20442, 2306, 1683, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 51, 157, 140, 636, 765, 1251, 306, 500, 2558, 165, 500, 9, 32, 1879, 374, 26, 1480, 8, 20442, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to give the user weekly updates from your program? === I have a program that, for the most part, operates in the background. Let's say it DoesWork(). Once a week, I want it to notify the user on some of the work it has completed over the past few days. It will be a basic status report, listing some files that have been downloaded. Initially, I wanted to sent this status update via email, so I looked into that but there are a lot of problems. I need an SMTP server so I looked at GMail. It's okay but has a daily limit of 500 emails, so this wouldn't be suitable for release. Also, there would be issues with the same email account password being given out in each copy of the program, which as I understand it, is a risk even if the password is stored using encryption. Then I thought maybe I could use the user's own email account to send email to his/her self. This has a couple of complications too: the user would need to specify all of the smtp information for his/her email account, which is too complicated for the target user. Also, I don't want to have to have people entering their email account password into my program just to send emails. I don't think that's a good habit to promote. Is there any way I could do this via email? Email was my first choice because it's a system of notification that users will already be checking. It's fairly non-intrusive. Is it necessary to setup my own smtp server? If so, how can I do that? If email is a no-go, I was also thinking about just generating a local HTML file with the relevent information, and then having a notification popup from the program once a week to inform the user that a new update report is ready. I think this is totally doable, it's just overly instrusive and not my first choice. I want to piggyback on a system that the user is already using. Thanks! -greg
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 590, 14, 4155, 3481, 16779, 37, 154, 625, 60, 800, 3726, 3726, 31, 57, 21, 625, 30, 15, 26, 14, 127, 141, 15, 4554, 19, 14, 2395, 9, 408, 22, 18, 395, 32, 630, 3783, 5, 6, 9, 382, 21, 877...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I debug GRUB handing on "GRUB Loading stage2..." ? === I've seen this asked a lot around on the internet, with no satisfactory answers or root cause. Sometimes it's just 'well, replace your RAID controller', or 're-run grub install', etc. I'm running into this issue on a substantially large amount of hosts as to convince me there's some non-hardware reason it's happening - but it's also nondeterministic (not 100% of hosts fail here, although they're built the same way). I'd like some more information about how GRUB loads stage2, i.e. more specifically what it's looking for and where it gets the information about where stage2 is. Thanks!
0
[ 2, 184, 107, 31, 121, 16254, 8961, 220, 15517, 27, 13, 7, 15244, 220, 12797, 876, 135, 9, 9, 9, 7, 13, 60, 800, 3726, 3726, 31, 22, 195, 541, 48, 411, 21, 865, 140, 27, 14, 2620, 15, 29, 90, 25549, 6709, 54, 5900, 1679, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Overview of Virtual Server Migration? === I'm looking for a broad overview of what I need to do and in what order to migrate a W2003 Server to a virtual server environment. Specifically: How does it work in general? Do I need to prepare my disks in any way? What do I install first? The toolkit? Virtual Server? Can I install linux later? etc. Any pointers welcome!
0
[ 2, 21598, 16, 6599, 8128, 8443, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 2748, 21598, 16, 98, 31, 376, 20, 107, 17, 19, 98, 389, 20, 22985, 21, 619, 3325, 8128, 20, 21, 6599, 8128, 2307, 9, 3524, 45, 184, 630, 32, 170, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JPEG -> more compressed JPEG — is it worth it? === I'm working on a site that involves displaying a ton of product images from a variety of online retailers. Since most of the page weight is in the images, I thought it'd be worth looking into techniques for trimming down the file size a bit more. The images are already JPEGs. I know PNGs have a lot of extra cruft that can balloon the file size considerably, but I have less experience with JPEGs. So, a couple related questions: 1. Is it worth further compressing the JPEGs? Seems like further compressing something that's already in a lossy format could lead to more harm (poor quality) than good (saving 10+% on the file size). 2. Are there other techniques to reducing the filesize? I don't know if the EXIF metadata or other metadata are a part of any of these images, and if cutting those is a substantial improvement. 3. Any experience / recommendations for using GD or ImageMagick (or something else?) There's also commercial image compression library from a company called Spinwave.
0
[ 2, 487, 20427, 13, 8, 1, 91, 18472, 487, 20427, 13, 1, 25, 32, 2715, 32, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 689, 30, 6569, 17418, 21, 13, 444, 16, 2374, 3502, 37, 21, 1747, 16, 2087, 19609, 9, 179, 127, 16, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Insert text in Javascript contenteditable div === I have a problem where I need to insert a text (string, may or may not have html tags) to a div. It has to be a div and not a textarea. Is there anyway to do that? First of all, I need to get the cursor position, then inserting the text in that position. It's similar to function insertAdjacentText, but it can only insert before or after a tag, and only works in IE. Thanks guys. Ferdinand
0
[ 2, 14692, 1854, 19, 8247, 8741, 2331, 69, 242, 579, 13, 12916, 800, 3726, 3726, 31, 57, 21, 1448, 113, 31, 376, 20, 14692, 21, 1854, 13, 5, 11130, 15, 123, 54, 123, 52, 57, 13, 15895, 3383, 18, 6, 20, 21, 13, 12916, 9, 32, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sql Server 2005: what data type to use to store passwords hashed by SHA-256 algorithm? === In Sql Server 2005 what data type should be used to store passwords [hashed by SHA-256 algorithm][1]? The data is [hashed by the application][1] and passed to the database [1]: http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha256managed(VS.71).aspx
0
[ 2, 4444, 255, 8128, 18228, 98, 1054, 1001, 20, 275, 20, 1718, 20884, 18, 19170, 69, 34, 4116, 8, 16910, 9083, 60, 800, 3726, 3726, 19, 4444, 255, 8128, 812, 98, 1054, 1001, 378, 44, 147, 20, 1718, 20884, 18, 636, 25436, 69, 34, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing data to server code from a client-side control using ASP.NET AJAX === I have a ListView on a page that displays a list of widgets. When a user clicks on one of the items in the list, I want to display a <a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx">ModalPopup</a> that contains controls allowing the user to operate on the item they selected. I could easily accomplish this by placing a Panel and a ModalPopupExtender in the ListView's ItemTemplate, but this mean one set of hidden controls for each and every widget, which would massively bloat the page size. (There are going to be some rather heavyweight controls in there.) Instead I want to reuse a single ModalPopup for each of the widgets in the list. I've done some searching but I haven't found anything that applies directly to my situation before. From what I've been able to figure out, however, I have to do something like this: 1. Place a Panel and a ModalPopupExtender on the page inside an UpdatePanel. 2. Build a custom `WidgetManipulator` user control that has a `WidgetID` property. Put this in the Panel, along with a couple OK/Cancel buttons. 2. In Javascript on the page, attach a click handler to each widget in the ListView that triggers a postback on the UpdatePanel. 3. On the `UpdatePanel_Load` event on the server, display the ModalPopup and then set the `WidgetID` propety on the `WidgetManipulator` to the ID of the clicked widget. 4. On the `OKButton_Click` event or `CancelButton_Click` event on the server, hide the ModalPopup. If OKButton was clicked, call `WidgetManipulator.SaveChanges()` first. The part I haven't figured out is: How the heck do I know what widget was clicked on, and how do I pass that back to the server when I refresh the UpdatePanel? Is this even the right approach at all?
0
[ 2, 2848, 1054, 20, 8128, 1797, 37, 21, 6819, 8, 1416, 569, 568, 28, 306, 9, 2328, 20624, 800, 3726, 3726, 31, 57, 21, 968, 4725, 27, 21, 2478, 30, 9412, 21, 968, 16, 4807, 43, 3060, 18, 9, 76, 21, 4155, 10840, 18, 27, 53, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Equivalent is_file() function for URLs? === What is the best way to check if a given url points to a valid file (i.e. not return a 404/301/etc.)? I've got a script that will load certain .js files on a page, but I need a way to verify each URL it receives points to a valid file. I'm still poking around the PHP manual to see which file functions (if any) will actually work with remote URLs. I'll edit my post as I find more details, but if anyone has already been down this path feel free to chime in.
0
[ 2, 4602, 25, 1, 16877, 5, 6, 1990, 26, 13, 911, 7532, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 2631, 100, 21, 504, 287, 6362, 819, 20, 21, 7394, 3893, 13, 5, 49, 9, 62, 9, 52, 788, 21, 1417, 12918, 18979, 118, 1198, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code Signing Certificate Options === I've been assigned the task of buying a digital certificate for my company to sign our code. We develop applications in the Microsoft space - mostly WPF or Web Based. I've investigated options and found Comodo to be well priced and responsive, and we're ready to go ahead and purchase a cert through them.. however in the signup form there are various private key options that I'm not too sure about, namely: 1. CSP - Microsoft Base Cryptographic Provider - Microsoft Base Smart Card Crypto Provider - Microsoft Enhanced Cryptographic Provider v1.0 - Microsoft Software Cryptographic Provider 2. Key Size - 1024 - 2048 - 4096 3. Exportable? - Yes / No 4. User Protected? - Yes / No Just wondering what all of this means, and what the best options are for our requirements? Any advice/ suggestions would be appreciated thanks heaps Greg
0
[ 2, 1797, 5479, 6259, 6368, 800, 3726, 3726, 31, 22, 195, 74, 2467, 14, 3005, 16, 9459, 21, 1888, 6259, 26, 51, 237, 20, 1676, 318, 1797, 9, 95, 2803, 3767, 19, 14, 7099, 726, 13, 8, 1555, 619, 7721, 54, 2741, 432, 9, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[.NET] How do I disable a system device? === Is there any way to disable a system device from C#.NET. Basically emulating when you go to Device Manager and disable a device that way? I am assuming there is a WinAPI function that I can invoke, but I don't know which one it is? The reason I need to do this is that I need to disable and straight after enable the device again. I need to work in Windows XP and Vista (x86 & x64). I had a look at something called "DevCon" but it doesn't seem to work on Vista x64. Thanks.
0
[ 2, 636, 9, 2328, 500, 184, 107, 31, 1460, 579, 21, 329, 3646, 60, 800, 3726, 3726, 25, 80, 186, 161, 20, 1460, 579, 21, 329, 3646, 37, 272, 5910, 9, 2328, 9, 11374, 3579, 10038, 76, 42, 162, 20, 3646, 1382, 17, 1460, 579, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is Your Experience with TaskJuggler? === We are an all Unix shop (Solaris, Linux). This last product cycle I returned to a project lead capacity, and needed to produce a schedule. I asked what tools my managers would accept, and was surprised to hear "text files". My teammate and I gamely tried this, and probably worse, HTML tables, to track the tasks we wanted to size. It was pretty painful. We then tried a few tools. MrProject is buggy, limited and crashes too frequently. My manager swears that Microsoft Project is inflexible. Whenever they needed to change a task, reassign a resource or rebalance, it generally hosed their plan. So I started looking around on the Internet for a Linux-capable project planning tool. One that sounded interesting is [TaskJuggler](http://www.taskjuggler.org/). It's neat in that the inputs are declarative files. I feel like I'm building a makefile for a project. However. I have a limited amount of time to devote to evaluating this tool and it seems pretty complex. Before diving into the next product cycle, I'd like to know that if TaskJuggler is robust, flexible and capable of handling multi-month, multiple resource projects with frequent changes. So I'm calling on all engineers who have had experience with this tool to share their insights. Thanks!
0
[ 2, 98, 25, 154, 1496, 29, 3005, 728, 27400, 139, 60, 800, 3726, 3726, 95, 50, 40, 65, 22540, 2546, 13, 5, 5594, 14688, 15, 13024, 6, 9, 48, 236, 2374, 4150, 31, 587, 20, 21, 669, 672, 2301, 15, 17, 851, 20, 2213, 21, 4345, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should I use enum or query a table in my database? === In my database I have tables that define types for example Table: Publication Types <pre> ID | Type ---------- 1 | Article 2 | Abstract 3 | Book .... </pre> Which is related through the ID key to a publication tables which has the field _TypeID_. I then create a PublicationTable data table my .NET application which I want to filter based on the publication type. For example the following function which will give me the number of publications for a specific author and publication type. <pre> Public Function countPublications(ByVal authorID As Integer, ByVal publicationType As Integer) As Integer Dim authPubs As New PublicationsDataSet.tblPublicationsDataTable authPubs = Me.getAuthorsPublications(authorID) Dim dv As New DataView(authPubs) dv.RowFilter = "status='published' AND type='" + publicationType.ToString + "'" Return dv.Count End Function </pre> to call this function to get a count of articles by an author with a specific ID, I could 1. call the function with two integers countPublications(authorID, 1) 2. setup an enum so that I could have countPublications(authorID, pubType.Article) or 3. Somehow use the publication type table to filter the publication data set but I haven't got my head around how to do this. What other approaches should I consider. Thanks
0
[ 2, 378, 31, 275, 1957, 723, 54, 25597, 21, 859, 19, 51, 6018, 60, 800, 3726, 3726, 19, 51, 6018, 31, 57, 7484, 30, 9267, 2551, 26, 823, 859, 45, 3176, 2551, 13, 1, 3515, 1, 4924, 13, 1, 1001, 13, 8, 8, 8, 8, 8, 8, 8, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Checking if a variable is not nil and not zero in ruby === I am using the following code to check if a variable is not nil and not zero if(discount != nil && discount != 0) . . . end Is there a better way to do this?
0
[ 2, 9886, 100, 21, 7612, 25, 52, 1781, 255, 17, 52, 4606, 19, 10811, 800, 3726, 3726, 31, 589, 568, 14, 249, 1797, 20, 2631, 100, 21, 7612, 25, 52, 1781, 255, 17, 52, 4606, 100, 5, 2906, 16549, 13, 187, 3726, 1781, 255, 279, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Possible Google Riddle? === My friend was given this free google website optimizer tshirt and came to me to try and figure out what the front logo meant. ![http://2.bp.blogspot.com/_iQVgmEEAit4/SPkKHA3e8fI/AAAAAAAAAB8/ugUerJjuBw8/s1600-h/GWO-tshirt.jpg][1] So, I have a couple of guesses as to what it means, but I was just wondering if there is something more. My first guess is that each block represents a page layout, and the logo "You should test that" just means that you should use google website optimizer to test which is the best layout. I hope that this isn't the answer, it just seems to simple and unsatisfying. Well, I've spent the past hour trying to figure out if there is any deeper meaning, but to no avail. So, I'm here hoping that someone might be able to help. I did though write a program to see if the blocks represent something in binary. I'll post the code below. My code tests every permutation of reading a block as 4 bits, and then tries to interpret these bits as letters, hex, and ip addresses. I hope someone knows better. #This code interprets the google t-shirt as a binary code, each box 4 bits. # I try every permutation of counting the bits and then try to interpret these # interpretations as letters, or hex numbers, or ip addresses. # I need more interpretations, maybe one will find a pattern import string #these represent the boxes binary codes from left to right top to bottom boxes = ['1110', '1000', '1111', '0110', '0011', '1011', '0001', '1001'] #changing the ordering permutations = ["1234", "1243", "1324", "1342", "1423", "1432", "2134", "2143", "2314", "2341", "2413", "2431", "3124", "3142", "3214", "3241", "3412", "3421", "4123", "4132", "4213", "4231","4312", "4321"] #alphabet hashing where 0 = a alphabet1 = {'0000':'a', '0001':'b', '0010':'c', '0011':'d', '0100':'e', '0101':'f', '0110':'g', '0111':'h', '1000':'i', '1001':'j', '1010':'k', '1011':'l', '1100':'m', '1101':'n', '1110':'o', '1111':'p'} #alphabet hasing where 1 = a alphabet2 = {'0000':'?', '0001':'a', '0010':'b', '0011':'c', '0100':'d', '0101':'e', '0110':'f', '0111':'g', '1000':'h', '1001':'i', '1010':'j', '1011':'k', '1100':'l', '1101':'m', '1110':'n', '1111':'o'} hex = {'0000':'0', '0001':'1', '0010':'2', '0011':'3', '0100':'4', '0101':'5', '0110':'6', '0111':'7', '1000':'8', '1001':'9', '1010':'a', '1011':'b', '1100':'c', '1101':'d', '1110':'e', '1111':'f'} #code to convert from a string of ones and zeros(binary) to decimal number def bin_to_dec(bin_string): l = len(bin_string) answer = 0 for index in range(l): answer += int(bin_string[l - index - 1]) * (2**index) return answer #code to try and ping ip addresses def ping(ipaddress): #ping the network addresses import subprocess # execute the code and pipe the result to a string, wait 5 seconds test = "ping -t 5 " + ipaddress process = subprocess.Popen(test, shell=True, stdout=subprocess.PIPE) # give it time to respond process.wait() # read the result to a string result_str = process.stdout.read() #For now, need to manually check if the ping worked, fix later print result_str #now iterate over the permuation and then the boxes to produce the codes for permute in permutations: box_codes = [] for box in boxes: temp_code = "" for index in permute: temp_code += box[int(index) - 1] box_codes.append(temp_code) #now manipulate the codes using leter translation, network, whatever #binary print string.join(box_codes, "") #alphabet1 print string.join( map(lambda x: alphabet1[x], box_codes), "") #alphabet2 print string.join( map(lambda x: alphabet2[x], box_codes), "") #hex print string.join( map(lambda x: hex[x], box_codes), "") #ipaddress, call ping and see who is reachable ipcodes = zip(box_codes[0:8:2], box_codes[1:8:2]) ip = "" for code in ipcodes: bin = bin_to_dec(code[0] + code[1]) ip += repr(bin) + "." print ip[:-1] #ping(ip[:-1]) print print [1]: http://2.bp.blogspot.com/_iQVgmEEAit4/SPkKHA3e8fI/AAAAAAAAAB8/ugUerJjuBw8/s1600-h/GWO-tshirt.jpg
0
[ 2, 938, 8144, 16551, 60, 800, 3726, 3726, 51, 860, 23, 504, 48, 551, 8144, 2271, 22864, 139, 13, 38, 5772, 17, 281, 20, 55, 20, 1131, 17, 1465, 70, 98, 14, 431, 6449, 1380, 9, 13, 187, 2558, 21127, 6903, 135, 9, 17620, 9, 7091...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access an asp:hiddenfield control in JavaScript === What is the best way to access an ASP.NET HiddenField control that is embedded in an ASP.NET PlaceHolder control through JavaScript? The Visible attribute is set to false in the initial page load and can changed via an AJAX callback. Here is my current source code: <script language="javascript" type="text/javascript"> function AccessMyHiddenField() { var HiddenValue = document.getElementById("<%= MyHiddenField.ClientID %>").value; //do my thing thing..... } </script> <asp:PlaceHolder ID="MyPlaceHolder" runat="server" Visible="false"> <asp:HiddenField ID="MyHiddenField" runat="server" /> </asp:PlaceHolder>
0
[ 2, 1381, 40, 28, 306, 45, 1822, 43, 817, 1109, 569, 19, 8247, 8741, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 1381, 40, 28, 306, 9, 2328, 3689, 1109, 569, 30, 25, 12138, 19, 40, 28, 306, 9, 2328, 209, 12427, 569, 120, 8247, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Signing a Windows exe file === I have an exe file that I should like to sign so that Windows will not warn the end user about an app from an "unknown publisher". I am not a Windows developer, the app in question is a screensaver app generated from an app that generates screensaver apps. As such I have no influence on how the file is generated. I've already found out that I wll need a code signing certificate from a CA like VeriSign or instantssl.com. What I don't understand is what I need to do (if at all possible) to sign my exe file. A simple explanation for slow people like me would be greatly appreciated. Thanks!
0
[ 2, 5479, 21, 1936, 1396, 62, 3893, 800, 3726, 3726, 31, 57, 40, 1396, 62, 3893, 30, 31, 378, 101, 20, 1676, 86, 30, 1936, 129, 52, 9296, 14, 241, 4155, 88, 40, 4865, 37, 40, 13, 7, 1020, 2929, 5916, 7, 9, 31, 589, 52, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to unify overlapping id into a single system? === What's the best way to unify several overlapping id systems into a unified one while maintaining the old id system. I have several different ids on my website... (E.g /publisher/1234 and /designer/1234) I would like to unify the ids into a new system, but want to preserve the functionality of the older system.
0
[ 2, 184, 20, 367, 8612, 23854, 4924, 77, 21, 345, 329, 60, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 367, 8612, 238, 23854, 4924, 1242, 77, 21, 11496, 53, 133, 8215, 14, 315, 4924, 329, 9, 31, 57, 238, 421, 13, 9178, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Store procedures or inline queries? === First of all there is [partial question][1] regarding this, but it is not exactly what I'm asking, so, bear with me and go for it. My question is, after looking at what [SubSonic][2] does and the excellent videos from Rob Connery I need to ask: **Shall we use a tool like this and do Inline queries or** shall we do the queries **using** a call to the **store procedure?** I don't want to minimize any work from Rob (witch I think it's amazing) but I just want your opinion on this cause I need to start a new project and I'm in the middle of the line, shall I use SubSonic (or other like tool, like NHibernate) or I just continue my method that is always call a store procedure even if it's a simple as Select this, that from myTable where myStuff = StackOverflow; [1]: http://stackoverflow.com/questions/59880/are-stored-procedures-more-efficient-in-general-than-inline-statements-on-moder [2]: http://subsonicproject.com/
0
[ 2, 1718, 8876, 54, 19, 1143, 9386, 2829, 60, 800, 3726, 3726, 64, 16, 65, 80, 25, 636, 3091, 2815, 1301, 500, 2558, 165, 500, 3467, 48, 15, 47, 32, 25, 52, 1890, 98, 31, 22, 79, 3379, 15, 86, 15, 2746, 29, 55, 17, 162, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby audio Library === is there any good Ruby audio libraries that we can build upon? Need to manage/edit mp3 files!!!
0
[ 2, 10811, 4023, 1248, 800, 3726, 3726, 25, 80, 186, 254, 10811, 4023, 8649, 30, 95, 92, 1895, 685, 60, 376, 20, 4705, 118, 69, 242, 4628, 240, 6488, 28116, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
In django, how do I sort a model on a field and then get the last item? === Specifically, I have a model that has a field like this pub_date = models.DateField("date published") I want to be easily grab the row with the most recent pub_date. What is the easiest/best way to do this? Would something like the following do what I want? Edition.objects.order_by('pub_date')[:-1]
0
[ 2, 19, 3857, 14541, 15, 184, 107, 31, 2058, 21, 1061, 27, 21, 575, 17, 94, 164, 14, 236, 9101, 60, 800, 3726, 3726, 3524, 15, 31, 57, 21, 1061, 30, 63, 21, 575, 101, 48, 6329, 1, 8209, 800, 2761, 9, 8209, 1109, 5, 7, 8209, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you run Lucene on .net? === Lucene is an excellent search engine, but the .NET port is no longer maintained and only goes up to version 2.0 (the latest Lucene version is 2.4, which has more features). How do you get around this?
0
[ 2, 184, 107, 42, 485, 18515, 556, 27, 13, 9, 2328, 60, 800, 3726, 3726, 18515, 556, 25, 40, 5977, 2122, 1406, 15, 47, 14, 13, 9, 2328, 1295, 25, 90, 1045, 3926, 17, 104, 1852, 71, 20, 615, 172, 9, 387, 13, 5, 124, 5736, 1851...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML UL width === Given the following markup: <ul> <li>apple</li> <li class="highlight">orange</li> <li>pear</li> </ul> Both the `ul`'s and the `li`'s widths appear to be 100%. If I apply a `background-color` to the list item, the highlight stretches the full width of the page. I only want the background highlight to stretch as wide as the widest item (with maybe some padding). How do I constrain the `li`'s (or perhaps the `ul`'s) width to the width of the widest item?
0
[ 2, 13, 15895, 13, 1287, 9456, 800, 3726, 3726, 504, 14, 249, 943, 576, 45, 13, 1, 1287, 1, 13, 1, 1210, 1, 24212, 1, 118, 1210, 1, 13, 1, 1210, 718, 3726, 7, 4542, 3130, 7, 1, 24304, 1, 118, 1210, 1, 13, 1, 1210, 1, 1664, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should I first study algorithms or another programming language? === As a fairly novice programmer who has acquired a reasonable level of competence in C++, what should I do next to advance in general programming ability? Obviously, both learning new programming languages and studying algorithms are important, but what should take highest priority? More generally, how in-depth should my eventual study of algorithms be in order to become a great, well-rounded programmer, but without wasting time in a particular category of computer science that isn't necessarily the most intriguing to me?
0
[ 2, 378, 31, 64, 949, 15935, 54, 226, 3143, 816, 60, 800, 3726, 3726, 28, 21, 6647, 21999, 17968, 72, 63, 2020, 21, 9954, 662, 16, 23628, 19, 272, 20512, 15, 98, 378, 31, 107, 328, 20, 3612, 19, 297, 3143, 2165, 60, 4409, 15, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why aren't classes sealed by default? === I was just wondering, since the **sealed** keyword's existence indicates that it's the class author's decision as to whether other classes are allowed to inherit from it, why aren't classes sealed by default, with some keyword to mark them explicitly as extensible? I know it's somewhat different, but access modifiers work this way. With the default being restrictive and fuller access only being granted with the insertion of a keyword. There's a large chance that I haven't thought this through properly, though, so please be humane!
0
[ 2, 483, 4847, 22, 38, 2684, 10854, 34, 12838, 60, 800, 3726, 3726, 31, 23, 114, 5712, 15, 179, 14, 13, 1409, 6858, 1294, 1409, 1246, 9587, 22, 18, 3012, 6475, 30, 32, 22, 18, 14, 718, 1314, 22, 18, 1401, 28, 20, 1472, 89, 2684...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
java.sql.Connection extension for SSH === I have a MySQL database behind a firewall which can only be accessed via an SSH connection. Does anyone know of an implementation of java.sql.Connection which would allow me to make an SSH connection to this database?
0
[ 2, 8247, 9, 18, 22402, 9, 25996, 872, 3896, 26, 13, 18, 1635, 800, 3726, 3726, 31, 57, 21, 51, 18, 22402, 6018, 439, 21, 535, 6051, 56, 92, 104, 44, 12904, 1197, 40, 13, 18, 1635, 2760, 9, 630, 1276, 143, 16, 40, 6123, 16, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why can't I call a method outside of an anonymous class of the same name === The code at the end produces a compile error: NotApplicable.java:7: run() in cannot be applied to (int) run(42); ^ 1 error The question is why? Why does javac think I am calling run(), and does not find run(int bar)? It correctly called foo(int bar). Why do I have to use NotApplicable.this.run(42);? Is it a bug? public class NotApplicable { public NotApplicable() { new Runnable() { public void run() { foo(42); run(42); // uncomment below to fix //NotApplicable.this.run(42); } }; } private void run(int bar) { } public void foo(int bar) { } }
0
[ 2, 483, 92, 22, 38, 31, 645, 21, 2109, 719, 16, 40, 10364, 718, 16, 14, 205, 204, 800, 3726, 3726, 14, 1797, 35, 14, 241, 6700, 21, 26561, 7019, 45, 52, 7753, 4663, 579, 9, 1004, 1385, 45, 465, 45, 485, 5, 6, 19, 1967, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to protect user inputs (not yet submitted) from session timeout? === I develop and maintain small intranet web apps(JSP and Resin). Some users takes so much time to complete the forms that, when they submit, they lose all their input data because of session timeout. Currently I prolonged session timeout to 30 minutes and display count-down clock till session timeout on top of the page, but, I think their must be better ways to protect user inputs. What is the best practices?
0
[ 2, 98, 25, 14, 246, 161, 20, 2196, 4155, 6367, 18, 13, 5, 1270, 768, 7368, 6, 37, 3723, 85, 1320, 60, 800, 3726, 3726, 31, 2803, 17, 4027, 284, 14369, 2328, 2741, 4865, 18, 5, 728, 3401, 17, 22839, 6, 9, 109, 3878, 1384, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel automation. Need to get the previous selection when selection changes === I'm working on an import (from Excel) dialog that uses automation to allow the user to select ranges of cells for import. When the range is selected, I'm using the event sink to catch the event and hilight the first row and first column. I need to have a way to unhilight the previous selection's first row and column. I don't think it's safe to just get the selected range at the time the selection changes, and remember it, such as (psuedocode for brevity and clarity): OnSelectionChange() { if (m_PrevSelection) UnHilite(m_PrevSelection); HiliteCurrentSelection(); GetSelectedRange(m_PrevSelection); } I'm guessing that just holding onto that range (obtained from _Application::Selection) without releasing it is going to cause all sorts of problems (but maybe I'm wrong). I haven't found a way to copy the range (IRange Copy just copies cell contents from one range to another). I guess I could take the range's cell addresses and store those, then recreate a range from the when I need to do the unhilighting, but this would seem to me to come up so often I'm wondering if anyone else had a more elegant solution.
0
[ 2, 20700, 23217, 9, 376, 20, 164, 14, 1158, 3155, 76, 3155, 1693, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 9010, 13, 5, 2665, 20700, 6, 28223, 30, 2027, 23217, 20, 1655, 14, 4155, 20, 5407, 9230, 16, 2934, 26, 9010, 9, 76, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I perform string operations on variables in a for loop? === This sounds dumb, but I can't get it to work. I think i just dont' understand the difference between `%%v, %v% and %v` Here's what I'm trying to do: for %%v in (*.flv) do ffmpeg.exe -i "%%v" -y -f mjpeg -ss 0.001 -vframes 1 -an "%%v.jpg" This successfully generates a thumbnail for each of the movies, but the problem is: movie.flv -> movie.flv.jpg So what I would like to do is pull the last 4 characters off `%%v` and use that for the second variable. I've been trying things like this: %%v:~0,-3% But it's not working, nor are any of the iterations of that that I could think of. Any ideas?
0
[ 2, 184, 107, 31, 2985, 3724, 1311, 27, 12157, 19, 21, 26, 5293, 60, 800, 3726, 3726, 48, 2795, 9317, 15, 47, 31, 92, 22, 38, 164, 32, 20, 170, 9, 31, 277, 31, 114, 1049, 22, 1369, 14, 2841, 128, 13, 1, 11881, 11881, 710, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Bizarre python ImportError === Here's my setup: a Mac, running OS X Tiger. Windows XP running in a virtual machine (Parallels). Windows XP has my Mac home directory mapped as a network drive. I have two files in a directory of my Mac home directory: ### foo.py pass ### test.py import foo If I run test.py from within my virtual machine by typing 'python test.py', I get this: Traceback (most recent call last): File "test.py", line 1, in <module> import foo ImportError: No module named foo If I try to import foo from the console (running python under Windows from the same directory), all is well: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import foo >>> If I run test.py with Mac python, all is well. If I copy test.py and foo.py to a different directory, I can run test.py under Windows without problems. There is an __init__.py in the original directory, but it is empty. Furthermore, copying it with the other files doesn't break anything in the previous paragraph. There are no python-related environment variables set. Any ideas?
0
[ 2, 15701, 20059, 9010, 29992, 800, 3726, 3726, 235, 22, 18, 51, 18161, 45, 21, 1572, 15, 946, 13, 759, 993, 5825, 9, 1936, 23045, 946, 19, 21, 6599, 1940, 13, 5, 6351, 211, 6798, 6, 9, 1936, 23045, 63, 51, 1572, 213, 16755, 2087...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
RegOpenKeyEx() is returning error code 2 on Vista 64bit === I was making the following call: result = RegOpenKeyEx(key, s, 0, KEY_READ, &key); (C++, Visual Studio 5, Vista 64bit). It is failing with error code 2 ("File not found") even though "regedit" shows that the key exists. This code has always worked on 32bit XP. Why is it "file not found" when it clearly is there?
0
[ 2, 7953, 10157, 4237, 1706, 5, 6, 25, 2485, 7019, 1797, 172, 27, 13520, 4384, 3326, 800, 3726, 3726, 31, 23, 544, 14, 249, 645, 45, 829, 800, 7953, 10157, 4237, 1706, 5, 4237, 15, 13, 18, 15, 713, 15, 1246, 1, 10647, 15, 279, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Singleton Data Access Layers === In our data access layer at work we have this standard implementation where the class is accessed through a singleton public property which looks something like this: public static CustomerController Instance { get { lock(singletonLock) { if( _instance == null ) { _instance = new CustomerController(); } return _instance; } } } now, I get what the code is doing, but I was wondering why you would do this over just creating an instance of the class each time it is used?
0
[ 2, 345, 444, 1054, 1381, 9124, 800, 3726, 3726, 19, 318, 1054, 1381, 5385, 35, 170, 95, 57, 48, 1236, 6123, 113, 14, 718, 25, 12904, 120, 21, 345, 444, 317, 1354, 56, 1879, 301, 101, 48, 45, 317, 12038, 7705, 12898, 1252, 4851, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web test to edit a SharePoint pages properties using Visual Studio Test Suite === I am using visual Studio 2008 sp1 to try and create a web test that will allow me to edit a page using the EditForm.aspx. I am trying using fiddler and the recorder. I have managed to get some test to run, but they do not change the properties. Anyone have any tips on how to do this?
0
[ 2, 2741, 1289, 20, 9392, 21, 1891, 3132, 4434, 3704, 568, 3458, 1120, 1289, 6160, 800, 3726, 3726, 31, 589, 568, 3458, 1120, 570, 3782, 165, 20, 1131, 17, 1600, 21, 2741, 1289, 30, 129, 1655, 55, 20, 9392, 21, 2478, 568, 14, 9392,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I add a console like element to a c# winforms program === I have a program that monitors debug messages and I have tried using a TextBox and appended the messages to it but it doesn't scale very well and slows way down when the number of messages gets large. I then tried a ListBox but the scrolling was snapping to the top when appending new messages. It also doesn't allow for cut and paste like the text box does. What is a better way to implement a console like element embedded in a winforms window.
0
[ 2, 184, 107, 31, 3547, 21, 8650, 101, 4520, 20, 21, 272, 5910, 628, 4190, 18, 625, 800, 3726, 3726, 31, 57, 21, 625, 30, 18521, 121, 16254, 7561, 17, 31, 57, 794, 568, 21, 1854, 5309, 17, 4865, 10726, 14, 7561, 20, 32, 47, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Product with LINQ === I am learning LINQ and have a very simple question that I think will help my understand the technology better. How can I find the product of an array of ints? For example, what is the LINQ way to do: int[] vals = { 1, 3, 5 }; return vals[0] * vals[1] * vals[2];
0
[ 2, 2374, 29, 6294, 1251, 800, 3726, 3726, 31, 589, 2477, 6294, 1251, 17, 57, 21, 253, 1935, 1301, 30, 31, 277, 129, 448, 51, 1369, 14, 1099, 574, 9, 184, 92, 31, 477, 14, 2374, 16, 40, 7718, 16, 19, 38, 18, 60, 26, 823, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I reload a datagrid in flash action script, after an xml file has loaded === Does anyone know how to change the rowcount of a datagrid in flash after it has been created on the stage. I am loading an xml file externally that contains the number of rows the datagrid should have, but the problem is that becuase this file is not loaded at runtime, it just picks the default 3 items. Maybe I have to reload the datagrid on the stage, or loop until it is defined. Does anyone have experince of this. Regards, Chris
0
[ 2, 184, 92, 31, 27339, 21, 1054, 16375, 19, 4433, 1028, 3884, 15, 75, 40, 23504, 3893, 63, 8572, 800, 3726, 3726, 630, 1276, 143, 184, 20, 753, 14, 3131, 16549, 16, 21, 1054, 16375, 19, 4433, 75, 32, 63, 74, 679, 27, 14, 876, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to write Asynchronous LINQ query? === After I read a bunch of LINQ related stuff, I suddenly realized that no articles introduce how to write asynchronous LINQ query. Suppose we use LINQ to SQL, below statement is clear. However, if the SQL database responds slowly, then the thread using this block of code would be hindered. var result = from item in Products where item.Price > 3 select item.Name; foreach (var name in result) { Console.WriteLine(name); } Seems that current LINQ query spec doesn't provide support to this. Is there any way to do asynchronous programming LINQ? It works like there is a callback notification when results are ready to use without any blocking delay on I/O.
0
[ 2, 184, 20, 2757, 21, 16023, 1291, 6294, 1251, 25597, 60, 800, 3726, 3726, 75, 31, 1302, 21, 7653, 16, 6294, 1251, 1597, 3217, 15, 31, 1605, 1896, 30, 90, 3376, 8500, 184, 20, 2757, 21, 16023, 1291, 6294, 1251, 25597, 9, 5787, 95,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a TCP Client Connection with SSL === I'm trying to create a TCP connection and send/read data that uses SSL, but I haven't been able to successfully accomplish this. What I'd like to do is something like this: TcpClient _tcpClient = new TcpClient("host", 110); BinaryReader reader = new BinaryReader(new System.Net.Security.SslStream(_tcpClient.GetStream(), true)); Console.WriteLine(reader.ReadString()); I haven't had any luck with it though. An exception is thrown when creating the BinaryReader. Does anyone know of a simple example that does this? I'm not interested in writing the server side of this, just the client.
0
[ 2, 2936, 21, 13, 38, 7439, 6819, 2760, 29, 13, 18, 18, 255, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 13, 38, 7439, 2760, 17, 2660, 118, 10647, 1054, 30, 2027, 13, 18, 18, 255, 15, 47, 31, 2933, 22, 38, 74, 777, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shared Hosting <trust level ="Medium" /> === I'm a bit surprised that this isn't on more forums as it is a total show stopper. I have a ASP.NET app that calls a web service I wrote. It is hosted on a shared hosting site. Recently the company moved my server to allow for both 1.1 and 2.0 applications. The trust level has changed from 'full' to 'medium' and my code has stopped working. The company will not make any changes to their machine.config file or add my web service as an endpoint. I can not override the setting in my web.config file and I cannot set the originUrl in my web.config file. My client's small business site is now off-line and she will go out of business. I have upgraded my code to 2.0 and in my web.config files I set the trust level to "Medium" (I learned that lesson the hard way) but even on my development machine I canot get past the call to my web service. I get the *"System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."* I have read that I should be able to 'code around' these issues but I have no idea where to even start. Has anyone any idea on what I need to do to get my code working on a totally locked down hosting server where no changes to my config file are allowed... A bottle of the best whiskey I can buy to the person who helps me find a solution to this. ;-)
0
[ 2, 2592, 10637, 13, 1, 11592, 662, 800, 7, 28451, 7, 13, 118, 1, 800, 3726, 3726, 31, 22, 79, 21, 1142, 2948, 30, 48, 2532, 22, 38, 27, 91, 5691, 18, 28, 32, 25, 21, 600, 298, 747, 1432, 9, 31, 57, 21, 28, 306, 9, 2328, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can setup a friendly email name in the MailSetting section of web.config? === Currently I have: <system.net> <mailSettings> <smtp from="me@mydomain.com"> <network host="localhost" port="25" /> </smtp> </mailSettings> </system.net> How can I change it so the email is sent with a name and not the email address only?
0
[ 2, 184, 92, 18161, 21, 4753, 8517, 204, 19, 14, 4216, 19831, 1050, 16, 2741, 9, 14093, 2816, 60, 800, 3726, 3726, 871, 31, 57, 45, 13, 1, 10724, 9, 2328, 1, 13, 1, 8079, 19831, 18, 1, 13, 1, 18, 79, 13726, 37, 3726, 7, 790, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Attending a top university for post-graduate education from an unknown CS programme === I'm currently in my second year of a Computer Science degree and all is going well. I finished the first year with flying colours, even whilst spending a couple of months out for physiotherapy on a previous injury, and now the second year's content seems relatively straightforward. If I can keep up this rate of achievement then I'm sure to place first or second in my class (out of 15-20). Whilst it is still early to be looking around I'm interested in viewing my options for post-graduate education. At the moment a Ph.D appears to be the ideal path for me to go down, as I'd love to go into research and perhaps the option of teaching. However, in my country all the best post-graduate degrees are taught at the top universities and my current university is ranked very poorly in nationwide league tables. Much of what I know I have taught myself, using my university and the facilities to my advantage. I regularly program in Haskell and Lisp and read books on Linear Algebra and Calculus, even though they're not part of my course. I have relevant work experience in several fields of IT and Business, ranging from Search Engine Optimisation Consultancy for a large real-estate website and working as an Administrator for my universities SU website, not to mention some personal development projects. The best universities in this country ask for students with a first in their chosen degree, but how much will my previous university stand-out on my application? Does an application from a student that was top in his/her class from a poor university mean less than a student that was 20th from a top university? As of now I am looking at opportunities to study for a Ph.D, although a Masters in Computer Science would be fantastic as well.
0
[ 2, 6237, 21, 371, 155, 26, 678, 8, 23676, 565, 37, 40, 2562, 272, 18, 2866, 800, 3726, 3726, 31, 22, 79, 871, 19, 51, 153, 159, 16, 21, 1428, 762, 1168, 17, 65, 25, 228, 134, 9, 31, 842, 14, 64, 159, 29, 2317, 8739, 15, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
restarting a java console application === At the moment I have a console application. I would like to be able to exit the application, update through svn, recompile and then relaunch. This is running under a Linux environment. At the moment I'm not sure how I would be able to relaunch the application. Is there a way to do this?
0
[ 2, 22767, 68, 21, 8247, 8650, 3010, 800, 3726, 3726, 35, 14, 688, 31, 57, 21, 8650, 3010, 9, 31, 83, 101, 20, 44, 777, 20, 4350, 14, 3010, 15, 11100, 120, 13, 18, 16578, 15, 302, 11103, 3599, 17, 94, 302, 18494, 9, 48, 25, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use a DLL from Python === What is the easiest way to use a DLL from within Python? Specifically, how can this be done without writing any additional wrapper C++ code to expose the functionality to Python? Native Python functionality is strongly preferred over using a 3rd party library.
0
[ 2, 184, 92, 31, 275, 21, 13, 43, 211, 37, 20059, 800, 3726, 3726, 98, 25, 14, 27237, 161, 20, 275, 21, 13, 43, 211, 37, 363, 20059, 60, 3524, 15, 184, 92, 48, 44, 677, 366, 1174, 186, 1351, 28051, 272, 20512, 1797, 20, 13833, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php email to send a form === I've just made a survey form, and I can't quite figure out how to get the body to come up on the email, does anyone know what I've done wrong? <?php require_once "Mail.php"; //send to and whats it called\\ $recipient = 'x@x.co.nz'; $subject = ' Completed Survey'; $from = "Mail House <x@x.co.nz>"; $to = "A <x@x.co.nz>"; //Get comments and scores\\ $q1s = $_POST['question1-score']; $q1c = $_POST['question1-comment']; $q2s = $_POST['question2-score']; $q2c = $_POST['question2-comment']; $q3s = $_POST['question3-score']; $q3c = $_POST['question3-comment']; $q4s = $_POST['question4-score']; $q4c = $_POST['question4-comment']; $q5s = $_POST['question5-score']; $q5c = $_POST['question5-comment']; $q6s = $_POST['question6-score']; $q6c = $_POST['question6-comment']; $comment = $_POST['final-comment']; $email = 'x@x.co.nz'; $name = 'Client'; //$email = htmlspecialchars($_POST['email']); $host = "smtp.host.com"; $username = "x"; $password = "x"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (strstr("\n",$email)){ // $from contains line breaks die("bad input in the email field"); } $body = "Name:\t $name \n\n"; $body .= "Question 1: $q1s - $q1c \n\n"; $body .= "Question 2: $q2s - $q2c \n\n"; $body .= "Question 3: $q3s - $q3c \n\n"; $body .= "Question 4: $q4s - $q4c \n\n"; $body .= "Question 5: $q5s - $q5c \n\n"; $body .= "Question 6: $q6s - $q6c \n\n"; $body .= "Final Comment:\t $comment \n"; $headers = "From: $email \n"; if(mail($recipient, $subject, $body, $headers)){ echo( "<h3 style='color:green;'>Thank you, satisfaction survey successfully sent!</h3><br>Summary of your feedback". "<ul id='output'>". "\t<li>Q1: <span>".$q1s."</span> &mdash; ".$q1c."</li>". "\t<li>Q2: <span>".$q2s."</span> &mdash; ".$q2c."</li>". "\t<li>Q3: <span>".$q3s."</span> &mdash; ".$q3c."</li>". "\t<li>Q4: <span>".$q4s."</span> &mdash; ".$q4c."</li>". "\t<li>Q5: <span>".$q5s."</span> &mdash; ".$q5c."</li>". "\t<li>Q6: <span>".$q6s."</span> &mdash; ".$q6c."</li>". "</ul>". "<p>Final comment: ".$comment."</p>" ); } else { echo("<h3 style='color:red;'>Oops, something went wrong <a href='index.php'>try again</a></h3>"); } ?>
0
[ 2, 13, 26120, 8517, 20, 2660, 21, 505, 800, 3726, 3726, 31, 22, 195, 114, 117, 21, 3431, 505, 15, 17, 31, 92, 22, 38, 1450, 1465, 70, 184, 20, 164, 14, 358, 20, 340, 71, 27, 14, 8517, 15, 630, 1276, 143, 98, 31, 22, 195, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
One SVN repository or many? === If you have multiple, unrelated projects, is it a good idea to put them in the same repository? myRepo/projectA/trunk myRepo/projectA/tags myRepo/projectA/branches myRepo/projectB/trunk myRepo/projectB/tags myRepo/projectB/branches or would you create new repositories for each? myRepoA/trunk myRepoA/tags myRepoA/branches myRepoB/trunk myRepoB/tags myRepoB/branches What are the pros and cons of each? All that I can currently think of is that you get mixed revision numbers (so what?), and that you can't use `svn:externals` unless the repository is actually external. (i think?) The reason I ask is because I'm considering consolidating my multiple repos into one, since my SVN host has started charging per repo.
0
[ 2, 53, 13, 18, 16578, 24869, 54, 151, 60, 800, 3726, 3726, 100, 42, 57, 1886, 15, 17379, 2314, 15, 25, 32, 21, 254, 882, 20, 442, 105, 19, 14, 205, 24869, 60, 51, 99, 1638, 118, 21011, 58, 118, 8989, 5719, 51, 99, 1638, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can i output NLog stuff to the vs2008 'output' window? === I'm using NLog to log my stuff. I'm trying to send the output to the console (or colouredconsole) ... which i'm hoping would goto the visual studio 'OUTPUT' window for any ASP.NET web site/app/mvc app. It's not. If i change the target to 'file' then it works for sure. So - can NLog output to the 'output' window for web apps? PS. Please do not post suggesting to use other progs, like log4net, etc. cheers!
0
[ 2, 184, 92, 31, 5196, 13, 103, 5567, 3217, 20, 14, 4611, 2753, 13, 22, 1320, 4881, 22, 1463, 60, 800, 3726, 3726, 31, 22, 79, 568, 13, 103, 5567, 20, 6738, 51, 3217, 9, 31, 22, 79, 749, 20, 2660, 14, 5196, 20, 14, 8650, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why was the switch statement designed to need a break? === Given a simple switch statement switch (int) { case 1 : { printf("1\n"); break; } case 2 : { printf("2\n"); } case 3 : { printf("3\n"); } } The absence of a break statement in case 2, implies that execution will continue inside the code for case 3. This is not an accident. It was designed that way. Why was this decisions made? What benefit does this provide vs, having an automatic break semantic for the blocks? What was the rational?
0
[ 2, 483, 23, 14, 5521, 3331, 1006, 20, 376, 21, 1442, 60, 800, 3726, 3726, 504, 21, 1935, 5521, 3331, 5521, 13, 5, 6391, 6, 13, 1, 610, 137, 13, 45, 13, 1, 4793, 410, 5, 7, 165, 1, 103, 7, 6, 73, 1442, 73, 13, 1, 610, 172...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the latest version of Boost compatible with VC++6? === What is the latest version of the Boost library that is compatible with Microsoft Visual C++ 6? And can you provide a link to download it directly? The Downloads link at http://www.boost.org only gives a download for version 1.36.0, and the documentation for that version lists Visual C++ 7.1 as the lowest version of Microsoft compiler tested. Do they purge out downloads for older versions?
0
[ 2, 98, 22, 18, 14, 5736, 615, 16, 10419, 14961, 29, 13, 8990, 20512, 379, 60, 800, 3726, 3726, 98, 25, 14, 5736, 615, 16, 14, 10419, 1248, 30, 25, 14961, 29, 7099, 3458, 272, 20512, 400, 60, 17, 92, 42, 1181, 21, 3508, 20, 712...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Date without hours, minutes and second === Besides the DateTime ctor (new DateTime(year, month, day)) , is there any other way to truncate a date?
0
[ 2, 1231, 366, 974, 15, 902, 17, 153, 800, 3726, 3726, 3410, 14, 1231, 891, 272, 2153, 13, 5, 2681, 1231, 891, 5, 731, 15, 1617, 15, 208, 6, 6, 13, 15, 25, 80, 186, 89, 161, 20, 22328, 62, 21, 1231, 60, 3, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Named queries with nHibernate === I am having a great deal of trouble getting named queries to work with nHibernate. My latest problem is getting the error message "could not execute query" with no additional information. Are there any complete examples I can download from somewhere because all the tutorials and documentation examples provide code snippits but only tell half the story about getting it to work.
0
[ 2, 377, 9386, 2829, 29, 12109, 15191, 8820, 800, 3726, 3726, 31, 589, 452, 21, 374, 1183, 16, 2572, 1017, 377, 9386, 2829, 20, 170, 29, 12109, 15191, 8820, 9, 51, 5736, 1448, 25, 1017, 14, 7019, 2802, 13, 7, 13431, 52, 15644, 2559...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create a cross platform Windows, Mac OS X application === I would like to build an application that runs on both Windows and Mac OS X. I would also like it to leverage the best of what the platform it runs on has to offer with regards to Frameworks, API's etc. Is there a way to do this without having to write Objective-C code and then C# code? I've been thinking of C++ as an alternative but I was wondering if there was anything else out there. The app will be GUI based (though I don't know exactly what it will do yet) -G.
0
[ 2, 1600, 21, 919, 2452, 1936, 15, 1572, 13, 759, 993, 3010, 800, 3726, 3726, 31, 83, 101, 20, 1895, 40, 3010, 30, 1461, 27, 156, 1936, 17, 1572, 13, 759, 993, 9, 31, 83, 67, 101, 32, 20, 19414, 14, 246, 16, 98, 14, 2452, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do we even need the "delete[]" operator? === This is a question that's been nagging me for some time. I always thought that C++ should have been designed so that the "delete" operator (without brackets) works even with the "new[]" operator. In my opinion, writing this: int* p = new int; should be equivalent to allocating an array of 1 element: int* p = new int[1]; If this was true, the "delete" operator could always be deleting arrays, and we wouldn't need the "delete[]" operator. Is there any reason why the "delete[]" operator was introduced in C++? The only reason I can think of is that allocating arrays has a small memory footprint (you have to store the array size somewhere), so that distinguishing "delete" vs "delete[]" was a small memory optimization.
0
[ 2, 483, 107, 95, 166, 376, 14, 13, 7, 24249, 591, 2558, 500, 7, 6022, 60, 800, 3726, 3726, 48, 25, 21, 1301, 30, 22, 18, 74, 9277, 2762, 55, 26, 109, 85, 9, 31, 550, 289, 30, 272, 20512, 378, 57, 74, 1006, 86, 30, 14, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Streaming directly to a database === I'm using c#, and have an open tcpip connection receiving data. Is it possible to save the stream to an ms sql server database as I'm receiving it, instead of receiving all the data then saving it all? If the stream could be sent to the database as it's being received, you wouldn't have to keep the entire chunk of data in memory. Is this at all possible?
0
[ 2, 11920, 1703, 20, 21, 6018, 800, 3726, 3726, 31, 22, 79, 568, 272, 5910, 15, 17, 57, 40, 368, 13, 38, 7439, 4307, 2760, 3396, 1054, 9, 25, 32, 938, 20, 2079, 14, 3766, 20, 40, 4235, 4444, 255, 8128, 6018, 28, 31, 22, 79, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Count work days between two dates in T-SQL === How can I calculate the number of work days between two dates in SQL Server? Monday to Friday and it must be T-SQL.
0
[ 2, 2468, 170, 509, 128, 81, 4076, 19, 13, 38, 8, 18, 22402, 800, 3726, 3726, 184, 92, 31, 18469, 14, 234, 16, 170, 509, 128, 81, 4076, 19, 4444, 255, 8128, 60, 5745, 20, 4619, 17, 32, 491, 44, 13, 38, 8, 18, 22402, 9, 3, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why won't Django 1.0 admin application work? === I've just started playing with Django and am loosely following the tutorial with my own set of basic requirements. The models I've sketched out so far are a lot more comprehensive than the tutorial, but they compile fine. Otherwise, everything should have been the same. My problem is with the admin application. I can log into it, and view the editable models, but when I click on a model or any of the change/add buttons, I get a 404. This is the exact error I get: Page not found (404) Request Method: GET Request URL: http://localhost:8000/admin/auth/user/add/ App u'', model u'auth', not found. These are the relevant files and what is in them: urls.py from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^daso/', include('daso.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: #(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^admin(.*)', admin.site.root) ) admin.py from daso.clients.models import Person, Client, Contact from django.contrib import admin admin.site.register(Person) admin.site.register(Client) admin.site.register(Contact) models.py - I'll just show one model class Client(Person): relationships = models.ManyToManyField("Contact", through="Relationship", null=True) disabilities = models.ManyToManyField("Disability", related_name="disability", null=True) medical_issues = models.ManyToManyField("MedicalIssue", related_name="medical_issue", null=True) medicare_num = models.CharField(max_length=15, blank=True) insurance = models.OneToOneField("Insurance", null=True, blank=True) medications = models.ManyToManyField("Medication", through="Medication_Details", null=True) def __unicode__(self): client = u"[Client[id: ", self.id, " name: ", self.first_name, " ", self.last_name, "]" return client settings.py INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'daso.clients', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) Those should be the relevant files/sections of files. If anyone has an idea about WHY I'm getting a 404, please enlighten me? Note, when pasting in here, installed apps had the last 2 apps tabbed instead of spaced*4, and when reloading the admin page it worked for half a second then 404'd again. Strange. Ideas?
0
[ 2, 483, 230, 22, 38, 3857, 14541, 137, 9, 387, 21, 43, 2160, 3010, 170, 60, 800, 3726, 3726, 31, 22, 195, 114, 373, 791, 29, 3857, 14541, 17, 589, 13166, 249, 14, 29724, 29, 51, 258, 309, 16, 2125, 4786, 9, 14, 2761, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCF REST starter kit fails to install === I just, quite anxiously, downloaded the spankin new WCF REST starter kit. The installed failed. Anyone else had this problem? <http://msdn.microsoft.com/en-us/netframework/cc950529.aspx>
0
[ 2, 11801, 410, 760, 11744, 6346, 13614, 20, 16146, 800, 3726, 3726, 31, 114, 15, 1450, 26309, 15, 23887, 14, 28361, 108, 78, 11801, 410, 760, 11744, 6346, 9, 14, 4066, 1702, 9, 1276, 962, 41, 48, 1448, 60, 13, 1, 21127, 6903, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does adding many many subviews to a viewcontrollers default view make my app slow? === I have an app where I create many uiviews and add them to the self.view of the UIViewController. My app is running really slowly. I am releasing all of my objects and have no memory leaks (I ran the performance tool). Can anyone tell me what could be making my app so slow? (code is below) Thanks so much! Here is the code for the loadView method of my UIViewController: - (void)loadView { UIView *contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; contentView.backgroundColor = [UIColor whiteColor]; self.view = contentView; [contentView release]; int length = 0; for(NSString *item in arrayTips) { length++; [item release]; } int index = 0; for(NSString *item in arrayTitles) { SingleFlipView *backView = [[SingleFlipView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; backView.userInteractionEnabled = YES; backView.backgroundColor = [UIColor whiteColor]; [backView setViewIndex:index]; [backView setLastViewIndex:length]; CGRect labelFrame = CGRectMake(10.0f, 0.0f, 300.0f, 30.0f); UILabel *backLabel = [[UILabel alloc] initWithFrame:labelFrame]; backLabel.textAlignment = UITextAlignmentCenter; backLabel.userInteractionEnabled = YES; backLabel.text = item; backLabel.font = [UIFont fontWithName:@"Georgia" size:24.0f]; backLabel.textColor = [UIColor blackColor]; backLabel.backgroundColor = [UIColor whiteColor]; CGRect textFrame = CGRectMake(10.0f, 30.0f, 300.0f, 110.0f); UITextView *tbxView = [[UITextView alloc] initWithFrame:textFrame]; tbxView.textAlignment = UITextAlignmentCenter; tbxView.userInteractionEnabled = YES; tbxView.editable = FALSE; tbxView.text = [arrayTips objectAtIndex:index]; tbxView.font = [UIFont fontWithName:@"Arial" size:14.0f]; tbxView.textColor = [UIColor blackColor]; tbxView.backgroundColor = [UIColor whiteColor]; //CGRect labelFrame = CGRectMake(10.0f, 0.0f, 84.0f, 30.0f); UIImage *nextTip = [[UIImage imageNamed:@"NextTip.png"] retain]; UIImageView *nextTipView = [ [ UIImageView alloc ] initWithImage:nextTip]; nextTipView.frame = CGRectMake(230.0f, -10.0f, 84.0f, 30.0f); nextTipView.userInteractionEnabled = YES; UIImageView *view = [[ UIImageView alloc ] init]; view.userInteractionEnabled = YES; if(self.sexString == @"Men") { UIImage *imgTip = [[UIImage imageNamed:@"feet_small.jpg"] retain]; view.image = imgTip; view.frame = CGRectMake(0.0f, 110.0f, 416.0f, 228.0f); //59*161 [imgTip release]; } [backView addSubview:view]; [backView addSubview:tbxView]; [backView addSubview:backLabel]; //[backView addSubview:nextTipView]; [self.view addSubview:backView]; [backView release]; [backLabel release]; [nextTip release]; [nextTipView release]; [tbxView release]; [view release]; index++; [item release]; } }
0
[ 2, 630, 4721, 151, 151, 972, 4725, 18, 20, 21, 1418, 12898, 1252, 18, 12838, 1418, 233, 51, 4865, 2276, 60, 800, 3726, 3726, 31, 57, 40, 4865, 113, 31, 1600, 151, 13, 5661, 4725, 18, 17, 3547, 105, 20, 14, 1119, 9, 4725, 16, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When is SqlConnection.RetrieveStatistics() useful? === What are the problems that calling this method can help with? Do you ever use it in debugging you data access?
0
[ 2, 76, 25, 4444, 255, 25996, 872, 9, 6239, 3272, 195, 29380, 8354, 5, 6, 4811, 60, 800, 3726, 3726, 98, 50, 14, 1716, 30, 2555, 48, 2109, 92, 448, 29, 60, 107, 42, 462, 275, 32, 19, 121, 16254, 2762, 42, 1054, 1381, 60, 3, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...