text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
hours with no records:
```
select floor( active_minute / 60 ) as hour,
count(*) / 60 as avg_concurent_calls_per_minute_for_hour
from record_active_minutes_all
where (month(date) = 1 and year(date) = 2008)
or date is null
group by floor( active_minute / 60 ) ;
```
Note that in the last two examples, I'm usin... | [
0.2897804081439972,
0.24788281321525574,
0.4470507800579071,
-0.14302627742290497,
0.25059378147125244,
0.11897855997085571,
0.08473570644855499,
-0.07656687498092651,
-0.4037601947784424,
-0.4187505543231964,
-0.1850154548883438,
0.1273990124464035,
-0.10696066170930862,
0.540219366550445... | |
the table allows the possibility of inconsistent rows, in which `date(s) <> date` or `time(s) <> time`. I'd prefer to do it like this:
```
create table record ( id int not null primary key, s, duration) ;
create view record_date as
select *, dateadd( ss, s, '1970-01-01') as call_date
from record
;
``... | [
-0.12970702350139618,
-0.09735661000013351,
0.2747955024242401,
-0.31524625420570374,
0.07166246324777603,
0.15938058495521545,
-0.14095953106880188,
-0.12212976813316345,
-0.28104230761528015,
-0.5370504856109619,
-0.23132064938545227,
0.13988982141017914,
-0.138141468167305,
0.3783355355... | |
So far, my https deployments have commonly involved a naive lockdown of the entire site with https and provide an http-to-https redirect on the web server.
I now plan to have a single ASP.NET MVC site (on the cloud) that will contain both http and https pages. So, the site will have 2 conceptual (not physical) zones p... | [
0.33909493684768677,
-0.15559405088424683,
0.5330616235733032,
-0.07174708694219589,
-0.05463695153594017,
0.07499045878648758,
0.5396497845649719,
-0.17724792659282684,
-0.37402233481407166,
-0.720656156539917,
-0.32999008893966675,
0.37394288182258606,
-0.24554535746574402,
-0.0380236990... | |
the secure zone? For instance, the kind of things that action filters can do.
Thanks much.
**edit:** *Please note that the whole idea of this is to avoid using absolute urls on the form action attribute because of portability issues and because the user will not see the https:// assurance visual cues on the browser.*... | [
0.1816512644290924,
-0.6332336068153381,
0.6219779253005981,
0.23096963763237,
0.10805270820856094,
-0.36000338196754456,
0.25909391045570374,
-0.41243505477905273,
-0.2582970857620239,
-0.2822023332118988,
-0.2326941341161728,
0.48755311965942383,
-0.5554866790771484,
-0.07867443561553955... | |
the request to be redirected to the same URL but via https instead of http if required.
WARNING: As Daniel points out though, by the time you hit this Action it may already be too late if data was posted to a non secure version of the page - it is already potentially compromised, so you still need to exercise care whe... | [
0.06113680452108383,
0.10699129849672318,
0.30112820863723755,
0.26537027955055237,
-0.12915794551372528,
-0.23661993443965912,
0.46983006596565247,
0.03945571556687355,
-0.27876532077789307,
-0.3375433087348938,
-0.47660642862319946,
0.2929115295410156,
-0.36551153659820557,
0.22199255228... | |
out, in MVC2 this attribute is now part of the core framework and is renamed to [RequireHttps] | [
0.1516454666852951,
-0.1326502114534378,
0.383195161819458,
-0.10161132365465164,
-0.09943418204784393,
-0.1616089642047882,
0.28849419951438904,
-0.1371401697397232,
-0.15922535955905914,
-0.31911876797676086,
-0.3043898642063141,
0.26395612955093384,
-0.4988342523574829,
-0.0328974947333... | |
I have an existing website that I need to develop a small portion of for mobile devices. For reasons that are not in the scope of this entry - I am using the Microsoft platform and tools - VS2008, ASP.Net, VB.net, .Net AJAX Framework, jquery.
I have 2 questions:
1. What is the best page size (Height and Width - most... | [
0.4095393717288971,
0.1501268595457077,
0.3496246337890625,
0.1806182861328125,
-0.053613901138305664,
-0.13774912059307098,
0.03866477310657501,
-0.020756453275680542,
-0.2248612344264984,
-0.8575621247291565,
0.1048254445195198,
0.15393954515457153,
0.09229554980993271,
0.187986254692077... | |
not want to write customized content for each mobile device - so I would like to create something that will be sort of a one size fits all mobile app.
2. Any suggestions or links for Mobile Web development in the .Net 3.5 framework environment?
Thanks
Your average mobile device still has a very small screen resolution... | [
0.22101756930351257,
0.039387427270412445,
0.5334253907203674,
0.0768684521317482,
-0.15275773406028748,
0.20668956637382507,
-0.007721842732280493,
0.10190964490175247,
-0.45109638571739197,
-0.816878080368042,
0.08630956709384918,
0.317930668592453,
-0.11198116838932037,
0.06839873641729... | |
mobile version, I'd start with [System.Web.Mobile](http://msdn.microsoft.com/en-us/library/system.web.mobile.aspx), and work my way on from there - taking in [System.Web.Ui.MobileControls](http://msdn.microsoft.com/en-us/library/system.web.ui.mobilecontrols.aspx), and also [their walkthroughs](http://msdn.microsoft.com... | [
0.042499441653490067,
0.22454585134983063,
0.7580851912498474,
-0.47199347615242004,
0.08054252713918686,
0.0670505091547966,
0.30512288212776184,
0.1880180835723877,
-0.16797909140586853,
-0.8690496683120728,
-0.20959164202213287,
0.4112360179424286,
-0.2551076114177704,
-0.18924467265605... | |
do - then your controllers can all be the same, and just return a modified view based on the browser caps - [Scott Hanselmann included a bit about this in his MIX talk](http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx), all good stuff.
---
I knew I had more here.
Sco... | [
0.7532700896263123,
-0.1701909452676773,
0.6305993795394897,
0.4172682464122772,
0.23258863389492035,
-0.3776783049106598,
-0.2800181210041046,
-0.2512742877006531,
-0.19688889384269714,
-0.5478861331939697,
0.0910978838801384,
0.37319767475128174,
-0.23562689125537872,
0.05326907709240913... | |
I have received this error, but don't know what it means:
> System.Configuration.ConfigurationErrorsException: Exactly one `<siteMapNode>` element is required directly inside the `<siteMap>` element.
Can you help me?
Could be something with sitemap... I googled and found this:
<http://forums.asp.net/t/1245553.aspx... | [
-0.2792988121509552,
0.10683509707450867,
0.5435018539428711,
-0.1276288628578186,
0.36224886775016785,
-0.20004287362098694,
0.25414541363716125,
-0.14787550270557404,
-0.17674453556537628,
-1.1389164924621582,
-0.18828435242176056,
0.2341097891330719,
-0.18492791056632996,
0.244140610098... | |
a child of the root node. When
> displaying the Menu you can chose to
> not show the root node, or to show
> both it and the child nodes together. | [
-0.47844579815864563,
-0.18730419874191284,
0.17692048847675323,
0.12999695539474487,
0.06420889496803284,
0.4538969397544861,
0.03859905153512955,
0.3136419653892517,
-0.010154904797673225,
-0.9627559185028076,
-0.35156863927841187,
0.1750565469264984,
-0.28566792607307434,
0.402509540319... | |
What's the best way to convert datetimes between local time and UTC in C/C++?
By "datetime", I mean some time representation that contains date and time-of-day. I'll be happy with `time_t`, `struct tm`, or any other representation that makes it possible.
My platform is Linux.
Here's the specific problem I'm trying t... | [
0.32464051246643066,
-0.20686976611614227,
0.4703705608844757,
0.1584705263376236,
0.1033308207988739,
0.16647054255008698,
-0.16124841570854187,
0.42163094878196716,
-0.17140589654445648,
-0.7569460272789001,
0.07861857116222382,
0.5443431735038757,
0.04309090971946716,
0.2286132425069809... | |
seconds into HHMMSS. However, the tricky part is the timezone conversion. I'm sure I can figure out a solution, but I'd prefer to find a "standard" or "well-known" way rather than stumbling around.
---
A possibly related question is [Get Daylight Saving Transition Dates For Time Zones in C](https://stackoverflow.com/... | [
0.059047918766736984,
-0.2928847372531891,
0.5906139612197876,
0.07793622463941574,
0.4030699133872986,
0.029818488284945488,
0.006180046126246452,
-0.15783455967903137,
-0.27363094687461853,
-0.7218116521835327,
-0.26393255591392517,
0.4095017611980438,
-0.06915449351072311,
0.23020246624... | |
don't think this is supposed to be called more than once.
If you're trying to convert between timezones, you should modify the `struct tm`'s `tm_gmtoff`. | [
0.405590683221817,
-0.14358127117156982,
0.3620328903198242,
0.09124995023012161,
0.1566011756658554,
-0.20435386896133423,
0.11841858178377151,
0.4486168622970581,
-0.47051751613616943,
-0.5296873450279236,
-0.0329052172601223,
0.15709148347377777,
-0.14051112532615662,
0.3328648805618286... | |
i have the following code:
```
if (Membership.FindUsersByName(username) == null)
{
Membership.CreateUser(username, password, email);
}
if (!Roles.RoleExists("USR"))
{
Roles.CreateRole("USR");
}
Roles.AddUserToRole(username,"USR");
```
D... | [
-0.09629078954458237,
-0.13775350153446198,
0.7947617173194885,
-0.16559283435344696,
0.3641282916069031,
0.15295839309692383,
0.15498848259449005,
-0.3244306743144989,
0.0672798603773117,
-0.7995278239250183,
-0.05126262828707695,
0.31998103857040405,
-0.19431935250759125,
0.2471715211868... | |
data is not being inserted in the aspnet\_membership and i need this data as i'm using the asp login control.
can someone help me out?
To remove all whitespace surrounding a string, use [`.strip()`](https://docs.python.org/library/stdtypes.html#str.strip). Examples:
```
>>> ' Hello '.strip()
'Hello'
>>> ' Hello'.stri... | [
-0.03729308396577835,
-0.14025656878948212,
0.49846547842025757,
0.05488286167383194,
0.29542276263237,
0.12335184961557388,
0.05558491870760918,
-0.23587465286254883,
-0.27090173959732056,
-0.7829907536506653,
-0.5035989284515381,
0.2342722862958908,
-0.4453883767127991,
-0.07021597027778... | |
if s.endswith(" "): s = s[:-1]
if s.startswith(" "): s = s[1:]
return s
>>> strip_one_space(" Hello ")
' Hello'
``` | [
-0.13550125062465668,
-0.17235398292541504,
0.9196974039077759,
-0.26521074771881104,
0.195795476436615,
-0.06590148061513901,
-0.049302101135253906,
-0.11071670800447464,
-0.28385472297668457,
-0.9906671643257141,
-0.7968928813934326,
0.07741023600101471,
-0.15747955441474915,
0.111027196... | |
I've been studying up on static reflection with LINQ expressions - very cool!
One thought I had - is it possible for one class to 'generate' fields on one class based on static reflection done on another class? I'm thinking specifically of the Builder pattern I've seen here many times. I would like to do a fluent-nhib... | [
0.5274980068206787,
0.04571614786982536,
-0.11389290541410446,
-0.1088947281241417,
-0.14712969958782196,
-0.08697157353162766,
0.1754581332206726,
-0.18444223701953888,
0.07787451893091202,
-0.5129004716873169,
-0.03860494866967201,
0.7767696976661682,
-0.2143489271402359,
0.2204082906246... | |
}
public class Builder : BuilderBase<Color>
{
public Builder()
{
Property(x => x.Name);
}
public Build()
{
return built_up_color;
}
}
}
```
and support constructor syntax like this:
```
Color c | [
0.34162500500679016,
-0.030083445832133293,
-0.10801292210817337,
-0.3027721047401428,
0.3069430887699127,
0.07969563454389572,
0.18208058178424835,
-0.31974196434020996,
0.21076621115207672,
-0.8055827021598816,
-0.5335707068443298,
0.7549691200256348,
-0.28398779034614563,
0.229911446571... | |
= new Color.Builder() { Name = "Red" }.Build();
```
The point of all this is to reduce the number of times I have to repeat defining the properies of Color. I played with this:
```
public class Color
{
private Color()
{
}
public string Name { get; private set; }
public class Builder
{
... | [
0.26576462388038635,
-0.18469488620758057,
0.07821832597255707,
-0.5077570676803589,
0.20676469802856445,
0.16514945030212402,
0.565536379814148,
-0.4221001863479614,
-0.0840558260679245,
-0.8549706935882568,
-0.35637566447257996,
0.9835323691368103,
-0.3584303855895996,
0.4333905279636383... | |
get { return _color.Name; }
set { _color.Name = value; }
}
public Build()
{
return _color;
}
}
}
```
which certainly works AND lists the properties the same # of times but feels wordier and less flexible. It | [
0.06309044361114502,
-0.19555142521858215,
0.25212913751602173,
-0.10052857547998428,
0.2267962247133255,
-0.21696339547634125,
0.27932003140449524,
-0.23028990626335144,
0.07044791430234909,
-0.8836330771446228,
-0.4941208064556122,
0.6852108240127563,
-0.25806790590286255,
0.050766322761... | |
seems like I should be able to do something anonymous-type-y here?
Worth pointing out that Having a class called Color clashing with the System.Drawing.Color is probably a bad idea.
It is *very* likely to lead to confusion in others (worse still System.Drawring.Color has value semantics whereas your class has referenc... | [
0.20295265316963196,
-0.12376929819583893,
0.009662212803959846,
0.013837728649377823,
-0.10887490957975388,
-0.009344374760985374,
0.24256233870983124,
0.07087026536464691,
-0.2886912226676941,
-0.36803632974624634,
0.004988689906895161,
0.7514020800590515,
-0.2408340573310852,
-0.0934105... | |
that are required (or if need be to avoid type signature collisions static factory methods on the class) | [
0.2600667476654053,
-0.07570043206214905,
-0.07338429242372513,
0.20254744589328766,
0.02988450601696968,
-0.3962443172931671,
0.26715055108070374,
-0.18464964628219604,
-0.2391035109758377,
-0.43184781074523926,
-0.48436856269836426,
0.4298356771469116,
-0.18857155740261078,
-0.1483637094... | |
If I have a hello.php file like this:
```
Hello, <?php echo $foo; ?>!
```
I would like to do something like this in some php code:
```
$text = renderPhpToString('hello.php', array('foo'=>'World'));
```
and end up with
```
$text == 'Hello, World!'
```
Is this possible with standard PHP 5? Obviously I want more ... | [
-0.05797874182462692,
0.008596460334956646,
0.4745306074619293,
-0.4442891776561737,
-0.06744604557752609,
-0.00615199189633131,
0.39354032278060913,
-0.1824267953634262,
-0.06904454529285431,
-0.6471590995788574,
0.0029563053976744413,
0.3917314112186432,
-0.4024219810962677,
0.1005949825... | |
the following output until it’s returned by `ob_get_clean()`.
**Edit** Make sure that you validate the data passed to this function so that `$vars` doesn’t has a `file` element that would override the passed `$file` argument value. | [
0.08483944088220596,
-0.03917478770017624,
0.3536294102668762,
-0.2966209053993225,
-0.09890738129615784,
-0.053733669221401215,
0.45611444115638733,
0.11696450412273407,
-0.07335159182548523,
-0.6342827677726746,
-0.34682875871658325,
0.6886382102966309,
-0.19349822402000427,
0.2105998098... | |
[ReSharper Unit Test Runner: Support for Deployment Items](https://stackoverflow.com/questions/747263/resharper-unit-test-runner-support-for-deployment-items)
I have a follow up question for the question above. I'm using resharper version 4.5 with native mstest support to run mstest unit tests. When I configure reshar... | [
-0.04778973385691643,
-0.0437261238694191,
0.26394322514533997,
-0.04646926373243332,
-0.04461636766791344,
-0.09176178276538849,
0.6024085283279419,
-0.3154183626174927,
-0.13216952979564667,
-0.5818798542022705,
-0.25679877400398254,
0.7377390265464783,
-0.05443129688501358,
0.1086346358... | |
my test run config file. | [
0.1936238557100296,
0.09083415567874908,
0.0039897700771689415,
0.25232017040252686,
0.28819721937179565,
-0.36613181233406067,
-0.1590578705072403,
0.1378984898328781,
-0.03812408074736595,
-0.17979060113430023,
0.18736451864242554,
0.26412880420684814,
-0.11774789541959763,
0.07378696650... | |
What happened to Hibernate.org? I get redirected to jboss.org and then once on that site I can not find it. Does this mean that hibernate is no longer an independent project - it is now a component of jboss.
It has always been part of JBoss. They were the ones that created Hibernate.
Now, if you are looking for [NHIBE... | [
0.2708069384098053,
0.05057055875658989,
0.24924036860466003,
-0.09745984524488449,
-0.3533610999584198,
-0.4341050684452057,
0.258854478597641,
0.24224485456943512,
-0.24146708846092224,
-0.2722775936126709,
-0.018739886581897736,
0.0025995124597102404,
-0.2753213942050934,
0.550258159637... | |
My company develops and sells a SaaS application that has hundreds of customers. Some of our customers have asked us to support LDAP integration for authenticating user accounts against their existing systems instead of having to create another login account for each of their employees. Seems like this is referred to a... | [
0.8233653903007507,
0.2355252057313919,
0.16621443629264832,
0.06634034961462021,
0.10279416292905807,
-0.17669162154197693,
0.07195792347192764,
-0.02857961319386959,
0.03317869082093239,
-0.2546900808811188,
0.06567103415727615,
0.33465543389320374,
-0.20041736960411072,
-0.0878751054406... | |
(remember, we're a little ignorant about this).
We think we understand the basics of how this might work:
* Our customer configures their account to "turn on" the "remote authentication" feature for their account. They provide the remote URL that will authenticate their users.
* Users come to our login page and attem... | [
0.3450358211994171,
0.12807795405387878,
0.4525388181209564,
0.17360183596611023,
0.30607539415359497,
-0.18145357072353363,
0.369252473115921,
0.18108491599559784,
0.24998410046100616,
-0.5454006195068359,
-0.3724067211151123,
0.5380420088768005,
0.1596217155456543,
0.14428238570690155,
... | |
them back to our site with the "authentication status".
* Our page will analyze the "authentication status" and either accept the user as logged in or not.
Assuming the above information is even semi-correct, we'll still need each user to have an account in our system. Won't we need some way to synchronize our user ac... | [
0.5494425892829895,
0.15084438025951385,
0.6675560474395752,
0.16915807127952576,
0.20792920887470245,
-0.1695963442325592,
0.23643654584884644,
-0.15709485113620758,
-0.08523912727832794,
-0.5152047872543335,
-0.06933967769145966,
0.4350726306438446,
0.04982016235589981,
0.039014324545860... | |
user account in our system to associate the login with?
What are we missing?
BTW, our platform is IIS, ASP.Net 2.0, and SQL Server 2005.
There are several options. If you really mean LDAP, as opposed to just Active Directory, I would probably look at using System.DirectoryServices.Protocols to perform an LDAP bind us... | [
0.3535672128200531,
0.055827636271715164,
0.4247466027736664,
0.004756517242640257,
-0.1841621994972229,
-0.4135509431362152,
-0.06021782383322716,
0.03490421921014786,
-0.29528582096099854,
-0.7613707780838013,
0.07484766095876694,
0.4616725742816925,
-0.3957898020744324,
-0.0207950137555... | |
of platforms and technologies, SSO is achieved by a client added to the desktop which manages authentication to various systems. In an MS-only environment, you might achieve SSO if all of your web apps are on IIS, you use IE and use Integrated Windows Authentication, impersonation and all of that stuff.
You could cons... | [
-0.11029855906963348,
-0.10157401859760284,
0.3453514277935028,
0.23418831825256348,
0.10100164264440536,
-0.4527663290500641,
0.21774671971797943,
-0.11843160539865494,
-0.4785364866256714,
-0.738012433052063,
-0.5238872170448303,
0.09053784608840942,
-0.38016119599342346,
-0.226290300488... | |
the admins select from an existing list of not-configured users rather than typing in IDs. Otherwise, you risk your admins typing in the wrong user ID and having mismatches.
You could provide an API such that Identity and Access Management solutions (given your Microsoft slant, see ILM2 007 as one example) can integra... | [
0.4474056661128998,
0.07027886807918549,
0.16615283489227295,
0.21391649544239044,
0.14251817762851715,
0.10382911562919617,
0.09480410069227219,
-0.32792750000953674,
-0.01769835874438286,
-0.8179342746734619,
-0.23763933777809143,
0.7524082064628601,
-0.4129548668861389,
-0.2538359463214... | |
I have the following python script and I would like to send "fake" header information along so that my application acts as if it is firefox. How could I do that?
```
import urllib, urllib2, cookielib
username = '****'
password = '****'
login_user = urllib.urlencode({'password' : password, 'username' : username})
... | [
0.0936281681060791,
0.21059124171733856,
0.5915557742118835,
-0.19432970881462097,
-0.4416515529155731,
0.11513419449329376,
0.4846912920475006,
-0.10926016420125961,
-0.0687669962644577,
-0.9208519458770752,
-0.33717456459999084,
0.37376168370246887,
-0.44995203614234924,
0.01293061114847... | |
ECMAScript 6 introduced [the `let` statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let).
I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyword.
What are the differences? When should `let` be used instead... | [
0.322067528963089,
-0.2484113574028015,
0.7505722045898438,
-0.34227538108825684,
0.04983268305659294,
-0.251473993062973,
-0.0046514468267560005,
-0.33864542841911316,
-0.003741846652701497,
-0.1147005707025528,
-0.3062123656272888,
0.5819386839866638,
-0.664246678352356,
-0.0642043426632... | |
var moo = "Mooo"
let baz = "Bazz";
console.log(moo, baz); // Mooo Bazz
}
console.log(moo); // Mooo
console.log(baz); // ReferenceError
}
run();
```
The reason why `let` keyword was introduced to the language was function scope is confusing and was one of the main sources of bugs in JavaScript.
Take a ... | [
0.12296360731124878,
0.08236093074083328,
0.5171959400177002,
-0.4622422754764557,
0.18278110027313232,
-0.03534230589866638,
0.542482316493988,
-0.5250760316848755,
-0.08032659441232681,
-0.4611746370792389,
-0.5185723304748535,
0.5621248483657837,
-0.7801731824874878,
-0.0829076617956161... | |
log its value.
console.log("My value: " + i);
};
}
for (var j = 0; j < 3; j++) {
// and now let's run each one to see
funcs[j]();
}
```
`My value: 3` was output to console each time `funcs[j]();` was invoked since anonymous functions were bound to the same variable.
People had to create immediately invoked ... | [
0.09292589128017426,
0.20791849493980408,
0.6952728033065796,
-0.17484764754772186,
0.018857277929782867,
-0.09910352528095245,
0.29478225111961365,
-0.514075517654419,
-0.28491005301475525,
-0.34134528040885925,
-0.13629648089408875,
0.4080866873264313,
-0.4079970419406891,
-0.12715880572... | |
declared:
```js
function run() {
console.log(foo); // undefined
var foo = "Foo";
console.log(foo); // Foo
}
run();
```
`let` variables are not initialized until their definition is evaluated. Accessing them before the initialization results in a `ReferenceError`. The variable is said to be in "temporal dead zo... | [
-0.03810873627662659,
-0.04298839718103409,
0.40909749269485474,
-0.05946292355656624,
0.38479116559028625,
-0.215445414185524,
0.1958107054233551,
-0.03510452061891556,
-0.07423951476812363,
-0.1448233425617218,
-0.6505102515220642,
0.43588367104530334,
-0.4636046290397644,
0.556761562824... | |
allowed to be globally scoped
console.log(window.foo); // Foo
console.log(window.bar); // undefined
```
Redeclaration
=============
In strict mode, `var` will let you re-declare the same variable in the same scope while `let` raises a SyntaxError.
```js
'use strict';
var foo = "foo1";
var foo = "foo2"; // No proble... | [
0.17874027788639069,
-0.02741791307926178,
0.7056085467338562,
-0.37283194065093994,
0.06395718455314636,
-0.26831042766571045,
0.47359761595726013,
-0.16123363375663757,
-0.11525692790746689,
-0.25338271260261536,
-0.572676956653595,
0.6082689166069031,
-0.6875972747802734,
0.137875631451... | |
I have a XML file describing the name of the company the product is licensed for, the version and some extra information.
Looking something like this
```
<Licence>
<Name>sdfsdf</Name>
<Version>1.2.1.1</Version>
<NumberOfServer>4</NumberOfServer>
</Licence>
```
I then sign this fiel using a private key and get... | [
0.7637487649917603,
0.08513559401035309,
0.8946526050567627,
-0.16158276796340942,
-0.14701205492019653,
-0.017857437953352928,
-0.30890604853630066,
-0.639807403087616,
0.2281227856874466,
-0.47262081503868103,
0.12128088623285294,
0.5729964971542358,
-0.2781500220298767,
0.31625404953956... | |
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>M368eFB9ydifttSxX26sB6XiPV4=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>TTYP6d+zESn6/2PtL5ikN+7E9u8Njm32vYVyVANC5U0EGLBwS//3yPjUoBx3glJXHClzPQBQEUi0LJNauTFvo1IBYwLjAuaYGtleti4IXpjrQ... | [
0.3767753839492798,
0.06297216564416885,
0.7273641228675842,
0.1669253557920456,
-0.22438505291938782,
-0.1599045991897583,
0.19335661828517914,
-0.5593064427375793,
0.032518357038497925,
-0.7316367626190186,
-0.04234359785914421,
0.7525792121887207,
0.10601138323545456,
0.2440674006938934... | |
realized that it was incredibly easy for anyone to deduce what I was doing just by looking at the XML file itself (since the algorithms and such are specified).
So, instead, I combined each piece of data (customer number, license key, and version in my case), hashed it, and signed the result, rather than the entire XM... | [
0.48764458298683167,
0.3825843036174774,
0.2747548520565033,
0.08232782036066055,
0.2520745098590851,
-0.06483548134565353,
-0.10520598292350769,
-0.2197594940662384,
0.070648692548275,
-0.05844610929489136,
-0.03754908964037895,
0.37746819853782654,
-0.048360876739025116,
0.06034671515226... | |
easily open my assembly in Reflector and see how it's being verified. However, since a copy of each license is kept on file, if I suspect that a customer has changed the license to give them more capabilities, I can verify their copy with mine and deny them any further support and/or take legal action. | [
0.8212899565696716,
0.3591556251049042,
0.31405410170555115,
-0.00410050805658102,
0.0799117460846901,
-0.1035674586892128,
0.36323148012161255,
-0.08712776005268097,
-0.01125603448599577,
-0.6236036419868469,
0.10993402451276779,
0.5392370820045471,
0.17037419974803925,
0.1331977099180221... | |
My problem is this: I have a simple block image that I want to make a grid out of. I have created an array of CGPoints in my UIView. Then I used
```
blackImage = [UIImage imageNamed:@"black.png"];
```
and then
```
- (void)drawRect:(CGRect)rect {
for (int j = 0 ; j <= 11; j++)
{
for (int i = 0 ; i <=... | [
0.06388452649116516,
-0.0651802122592926,
0.3500837981700897,
-0.29530900716781616,
-0.097178153693676,
0.2001677304506302,
0.23812220990657806,
-0.3435647785663605,
0.022307660430669785,
-0.818739116191864,
0.044040367007255554,
0.617572009563446,
-0.6113911271095276,
-0.00954985059797763... | |
}
}
[whiteImage drawAtPoint:(CGPointMake((CGFloat)(floor((touchX+0.001)/40)*40), (CGFloat)(floor((touchY+0.001)/40))*40))];
// [whiteImage drawAtPoint:(CGPointMake(240.0, 320.0))];
}
```
Where TouchX and TouchY are the CGPoints where the user has touched the screen. So I'm basically displaying a diff... | [
-0.1089296042919159,
0.11111738532781601,
0.4967813491821289,
-0.560104489326477,
0.06026431918144226,
0.171487495303154,
0.2730659246444702,
-0.07650855928659439,
-0.16488789021968842,
-0.736622154712677,
0.11475486308336258,
0.5123534798622131,
-0.46811962127685547,
0.17289124429225922,
... | |
I'm unable to use the "drawAtPoint" method on the UImage when I'm outside of DrawRect. (throws an error).
Anyhow, I started looking into the CoreAnimation and Quartz docs, and got really confused. I'm not sure if I should be creating multiple UIViews for each brick (seems excessive), or a grid of CALayers or CGLayers.... | [
0.5772908329963684,
-0.02146160416305065,
0.506590723991394,
-0.13566461205482483,
-0.3423449695110321,
-0.014032342471182346,
-0.05314325913786888,
-0.025125306099653244,
0.14549840986728668,
-0.8114050626754761,
0.4110173285007477,
0.6435478925704956,
-0.11923517286777496,
0.279918074607... | |
to swap images in the grid so that the user can essentially 'paint' across the screen and toggle the images.
---
Edit
----
I've tried implementing this using [self setNeedsDisplayinRect], and passing in the CGRect that is under the user's finger. However, this is still calling DrawRect within TouchesMoved, which IS ... | [
0.6111298203468323,
-0.3660758435726166,
0.6291213631629944,
0.009833578020334244,
-0.15334925055503845,
0.09534324705600739,
-0.1402718722820282,
-0.004135764669626951,
-0.00036067754263058305,
-0.8375185132026672,
0.32257160544395447,
0.7571612596511841,
-0.20203590393066406,
-0.15285505... | |
app and give good performance. The issue looks to be that you are forcing the whole screen to redraw in response to every `drawRect:` message. The rect that is passed in specifies the 'dirty area' that you need to redraw. Any other drawing is just wasting time.
Similarly the rect you pass to your view's `setNeedsDisp... | [
0.06560785323381424,
-0.17986440658569336,
0.8184899091720581,
-0.09259961545467377,
-0.16322727501392365,
0.2620658874511719,
0.1780809760093689,
-0.3776073157787323,
-0.23532940447330475,
-0.8392548561096191,
-0.3784310817718506,
0.8709846138954163,
-0.7109120488166809,
-0.18208555877208... | |
(in the debugger) and if it is less than the full screen write code to make sure you only repaint images within the dirty rect
2. Use the touches event to make sure you only invalidate the areas that need redrawing and then revisit 1.
3. If this doesn't get the performance you need, use Quartz to draw the black and whi... | [
0.40507808327674866,
-0.2532404661178589,
0.4690404236316681,
0.12503613531589508,
-0.10949940979480743,
0.008971546776592731,
0.5911388397216797,
-0.2449326515197754,
-0.00793781690299511,
-0.7942742705345154,
0.08821973949670792,
0.8104894161224365,
-0.2723638713359833,
-0.21943597495555... | |
level technology. There are lots of examples around including [this question](https://stackoverflow.com/questions/258292/how-do-i-use-calayer-with-the-iphone) on SO. | [
0.3968561291694641,
-0.046787284314632416,
0.27049916982650757,
0.30099764466285706,
0.39504891633987427,
-0.15716665983200073,
-0.20670442283153534,
0.12205041944980621,
0.21390879154205322,
-0.40123435854911804,
0.014100732281804085,
0.8974781036376953,
0.10405667126178741,
-0.5060540437... | |
I'm using Spring's `SimpleFormController` for form processing. In my case, the edit view (JSP) can vary depending on what's being edited. `SimpleFormController`'s `formView` is a field (class variable) which means that it's shared by all threads that use the instance of it. Thus it's not safe (nor appropriate) to set t... | [
0.2828716039657593,
-0.07143525779247284,
0.4285989999771118,
-0.27380847930908203,
-0.30777841806411743,
-0.16775883734226227,
0.3094923198223114,
-0.3245290219783783,
0.06903361529111862,
-0.5479744672775269,
-0.11530814319849014,
0.7851325869560242,
-0.362474262714386,
0.222250983119010... | |
whatever view I want.
I believe SimpleFormController provides two "showForm" protected methods. These can be overridden and the BindException used to retrieve the "target" which is your form object, you can then return a ModelAndView based on any bound form object property. You should also take a look at processFormSub... | [
0.49150004982948303,
-0.3667902946472168,
0.8583629727363586,
0.05253385379910469,
-0.08002208918333054,
-0.11985181272029877,
0.2018537074327469,
-0.20998476445674896,
-0.010683267377316952,
-0.6776285767555237,
0.05763137340545654,
0.8147992491722107,
-0.10089945048093796,
0.120369352400... | |
learn how to use this hierarchy is by examining it. It is not very good - it provides many things, but not very well. Spring MVC typically has to be extended in order for it to be very useful. | [
0.16347041726112366,
-0.10004774481058121,
0.42361509799957275,
0.08875931054353714,
0.10607258230447769,
-0.2536177933216095,
0.1812603920698166,
-0.29089978337287903,
-0.24729788303375244,
-0.02249080128967762,
-0.06133319437503815,
0.5378761291503906,
0.10911864787340164,
-0.14939993619... | |
The code below is what I'm using for a website menu which moves the link for the current month's page to the top of the link list on the change of the month.
But this fails on the 31st of some months, such as April; I get two links to the same month for most of the links. I've read through the issues with the way php ... | [
0.05794132128357887,
-0.000028288330213399604,
0.802376925945282,
-0.018164178356528282,
-0.1044263020157814,
0.08439984172582626,
0.5252072215080261,
-0.02092658169567585,
-0.34599629044532776,
-0.3970268666744232,
-0.016492698341608047,
0.110458604991436,
-0.1499272882938385,
0.201551198... | |
date('i'), date('s'), date('m')+2 , date('d'), date('Y'))));
$month3 = (date('F', mktime(date('H'), date('i'), date('s'), date('m')+3 , date('d'), date('Y'))));
$month4 = (date('F', mktime(date('H'), date('i'), date('s'), date('m')+4 , date('d'), date('Y'))));
$month5 = (date('F', mktime(date('H'), date('i'), date('s')... | [
-0.11935953795909882,
-0.1796545833349228,
1.081345558166504,
0.02419511415064335,
0.45620590448379517,
0.6575461030006409,
0.5150079727172852,
-0.22327746450901031,
-0.33709219098091125,
-0.27550724148750305,
-0.5558235049247742,
0.14980274438858032,
0.0075932336039841175,
0.8143211603164... | |
href="http://mydomain.com/<?php echo strtolower($month1); ?>/" title="<?php echo $month1; ?>"><?php echo $month1; ?></a><br />
...(2 through 10)...
<a href="http://mydomain.com/<?php echo strtolower($month11); ?>/" title="<?php echo $month11; ?>"><?php echo $month11; ?></a><br />
```
``<?php``
```
$current_month = ... | [
-0.02666306309401989,
0.24648664891719818,
0.873842716217041,
-0.41843414306640625,
-0.04253260791301727,
0.2734358310699463,
0.4120423495769501,
-0.6507242918014526,
-0.3369748592376709,
0.010955462232232094,
-0.4795862138271332,
0.1226230263710022,
-0.2997536063194275,
0.4667918086051941... | |
Is it possible to import modules based on location?
(eg. do all modules i import have to be in /usr/lib64/python2.5/ or a similar dir?)
I'd like to import a module that's local to the current script.
You can extend the path at runtime like this:
```
sys.path.extend(map(os.path.abspath, ['other1/', 'other2/', 'yourl... | [
0.24823960661888123,
-0.40036413073539734,
0.2759248614311218,
-0.21685786545276642,
0.4443996548652649,
-0.33978819847106934,
0.105196014046669,
-0.11148404330015182,
-0.3259965479373932,
-0.7916343808174133,
-0.23689208924770355,
0.5694323778152466,
-0.3411417007446289,
-0.26050117611885... | |
I'm writing a website that will be hosted on a shared hosting environment. As a consequence, I won't have any access to things such as the task scheduler. The website needs to perform various checks on a half-daily basis. What is the best way of firing these tasks in this scenario?
The best two things I could think of... | [
0.5777122378349304,
0.3250356614589691,
0.04041978716850281,
0.02969914674758911,
-0.05411149561405182,
0.1093909740447998,
0.5166520476341248,
-0.3322192430496216,
-0.24522553384304047,
-0.6052862405776978,
0.29312989115715027,
0.6304225921630859,
-0.010073388926684856,
-0.126510471105575... | |
and then get some external entity to ping this page at 12 hour intervals.
Both methods seem a bit ropey?
you can use a little trick that uses the [asp.net cache](https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/). | [
0.2173498272895813,
-0.3133834898471832,
0.283180832862854,
0.243081197142601,
0.276437371969223,
-0.2973406910896301,
0.31610578298568726,
0.008155341260135174,
-0.6119003295898438,
-0.43185460567474365,
0.00655633257701993,
0.5899224877357483,
-0.0030365625862032175,
-0.40467050671577454... | |
I've never worked with COM before, and I've been tasked with writing an application that uses some third party COM objects. If anyone could point me to some good tutorials on how to use them it would be much appreciated. More immediately, it appears that I don't have the Active Template Library installed. I've searched... | [
0.20320452749729156,
0.1038970947265625,
0.011871765367686749,
0.013528766110539436,
-0.3972768783569336,
0.2688380181789398,
0.2272767424583435,
-0.17726969718933105,
-0.31074970960617065,
-0.5993711948394775,
0.17857684195041656,
0.8965111970901489,
-0.2899572253227234,
-0.12348034977912... | |
(Itanium)](http://www.microsoft.com/downloads/details.aspx?familyid=526BF4A7-44E6-4A91-B328-A4594ADB70E5)
* [2008 SP1 (32-bit)](http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2)
* [2008 SP1 (64-bit)](http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40... | [
-0.6578183770179749,
0.07778371125459671,
0.38107192516326904,
0.13185669481754303,
-0.22808881103992462,
0.31640124320983887,
0.28375616669654846,
0.09953257441520691,
-0.32870662212371826,
-0.5627553462982178,
-0.5559731125831604,
0.34663957357406616,
0.0571921207010746,
0.15820279717445... | |
I'm using jcreatorLE and JDK 1.6 to run my program. I don't know why I get an error when I try to run.
Could somebody explain the reason to me?
**This is the code for the Server:**
```
import java.io.*;
import java.net.*;
class ServidorTCP {
// variable to wait for connections
private static ServerSocket servi... | [
0.0694621130824089,
-0.380910724401474,
0.6390954852104187,
-0.1504717320203781,
-0.0263515692204237,
0.11274290829896927,
0.16450899839401245,
-0.0375959612429142,
-0.3228973150253296,
-0.9033786654472351,
0.2762119770050049,
0.3390446901321411,
-0.44826266169548035,
0.3505566418170929,
... | |
= null;
public static void main(String args[]) {
// args [0] is the port number to be listened to
int puerto = new Integer(args[0]).intValue();
// opening of the socket
try {
// Port where the client requests pending
servidor = new ServerSocket(puerto);
System.ou... | [
0.1545691043138504,
-0.1159856989979744,
0.9109066724777222,
-0.44215089082717896,
0.10946164280176163,
0.3725872337818146,
0.7326255440711975,
-0.11181727051734924,
-0.1406698375940323,
-0.2667344808578491,
-0.2221468836069107,
0.8758416175842285,
-0.4964117705821991,
0.5417701601982117,
... | |
ejecutar = true;
// It is starting to respond to requests
while (ejecutar) {
System.out.println("\nWaiting for Connections...");
conexion = servidor.accept(); // Connection is expected
// The connection was established with the client
entrada = ne... | [
-0.38800883293151855,
-0.2661862075328827,
0.7360523343086243,
-0.19681495428085327,
-0.001860203337855637,
-0.05974253639578819,
0.6470730900764465,
-0.3523297905921936,
-0.008953625336289406,
-0.49904289841651917,
-0.1128782331943512,
0.4418354630470276,
-0.2774491608142853,
0.0964063927... | |
DataInputStream(conexion.getInputStream());
salida = new DataOutputStream(conexion.getOutputStream());
System.out.println("\nConexion recibida...\n");
String inicio = entrada.readUTF();
System.out.println("Reception Date: "+new java.util.Date());
System.out.p... | [
-0.4089396297931671,
-0.6903080344200134,
0.9129905104637146,
-0.05941316857933998,
0.030131030827760696,
0.11091309785842896,
0.30864712595939636,
-0.3359259366989136,
-0.17769140005111694,
-0.49142229557037354,
-0.6301553249359131,
0.22534726560115814,
-0.1843288540840149,
0.368114799261... | |
entrada.close();
salida.close();
conexion.close();
}
// Close the socket
System.out.println("\ntransmission completed...\n");
servidor.close();
} catch (Exception e) {
e.printStackTrace();
} | [
-0.09008776396512985,
-0.20540644228458405,
0.5341025590896606,
-0.354508638381958,
0.3570502996444702,
0.05751088261604309,
0.17063285410404205,
-0.24805715680122375,
0.13152657449245453,
-0.46597397327423096,
-0.4755204916000366,
0.3756185472011566,
-0.30329886078834534,
0.34802266955375... | |
}
}
```
**This is the code for the client socket program:**
```
import java.io.*;
import java.net.*;
class ClienteTCP {
private static Socket cliente = null;
private static DataInputStream entrada = null;
private static DataOutputStream salida = null;
public static void main(String args[]) ... | [
0.004669655114412308,
-0.5267074108123779,
0.5249961018562317,
-0.2549408972263336,
-0.011893431656062603,
0.27196770906448364,
0.1977779120206833,
0.04438885673880577,
-0.195110484957695,
-0.48803120851516724,
-0.19240570068359375,
0.8155179023742676,
-0.429155558347702,
0.155727401375770... | |
cadena = cadena + args[i];
cadena = cadena + " ";
}
System.out.println("\nLa Cadena: "+cadena);
int puerto = new Integer(args[1]).intValue();
try {
cliente = new Socket(args[0],puerto);
entrada = new DataInputStream(cliente.getInputStream());
salida = new Da... | [
-0.19600948691368103,
-0.7115093469619751,
0.6153624653816223,
0.10207168757915497,
-0.0625811293721199,
0.37604135274887085,
0.17899267375469208,
-0.2990128695964813,
-0.33361953496932983,
-0.6205309629440308,
-0.19268818199634552,
0.5983224511146545,
-0.24875378608703613,
0.1514620929956... | |
System.out.println("\nEnviando datos al servidor: "+cadena);
salida.writeUTF(cadena);
//Recibiendo la información
System.out.println("Recibido: "+entrada.readUTF());
entrada.close();
salida.close();
//Cierre del socket
cliente.close();
System.out... | [
-0.2527938485145569,
-0.47372719645500183,
0.34010860323905945,
-0.03904334083199501,
0.17024414241313934,
-0.092151939868927,
0.31316569447517395,
0.048301007598638535,
-0.2910163402557373,
-0.21111395955085754,
-0.6536592245101929,
0.6356890201568604,
-0.2852928638458252,
0.1659728288650... | |
{
e.printStackTrace();
}
}
}
```
**This is the result from running it:**
```
[Loaded java.lang.Object from shared objects file]
[Loaded java.io.Serializable from shared objects file]
[Loaded java.lang.Comparable from shared objects file]
[Loaded java.lang.CharSequence from shared objects file]
[Loa... | [
-0.0050338078290224075,
-0.27619457244873047,
0.36607298254966736,
-0.1287749707698822,
-0.15706372261047363,
-0.01494569145143032,
0.21283762156963348,
-0.27011945843696594,
-0.28472810983657837,
-0.7400025129318237,
0.0667559877038002,
0.5147088766098022,
-0.6027944684028625,
-0.03909818... | |
java.lang.Exception from shared objects file]
[Loaded java.lang.RuntimeException from shared objects file]
[Loaded java.security.ProtectionDomain from shared objects file]
[Loaded java.security.AccessControlContext from shared objects file]
[Loaded java.lang.ClassNotFoundException from shared objects file]
[Loaded java... | [
-0.3127903938293457,
-0.09798788279294968,
0.4090564250946045,
0.15036238729953766,
-0.015335578471422195,
0.13099709153175354,
0.586969792842865,
-0.3621797561645508,
-0.3652430772781372,
-0.515166699886322,
-0.3601367175579071,
0.6461379528045654,
-0.3549816608428955,
0.07495202124118805... | |
java.lang.Thread from shared objects file]
[Loaded java.lang.Thread$UncaughtExceptionHandler from shared objects file]
[Loaded java.lang.ThreadGroup from shared objects file]
[Loaded java.util.Dictionary from shared objects file]
[Loaded java.util.Map from shared objects file]
[Loaded java.util.Hashtable from shared ob... | [
-0.036535754799842834,
0.19073453545570374,
0.27401819825172424,
-0.14016002416610718,
-0.4093438982963562,
0.28740525245666504,
0.14879381656646729,
-0.6008102893829346,
-0.01758730597794056,
-0.5249608159065247,
0.24160133302211761,
0.4348386228084564,
-0.5620001554489136,
0.138925284147... | |
sun.reflect.FieldAccessorImpl from shared objects file]
[Loaded sun.reflect.UnsafeFieldAccessorImpl from shared objects file]
[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from shared objects file]
[Loaded java.lang.Iterable from shared objects file]
[Loaded java.util.Collection from shared objects file]
[Loaded ja... | [
-0.036543551832437515,
0.21382562816143036,
0.5719702243804932,
-0.27384522557258606,
-0.35117918252944946,
0.20223093032836914,
0.1386120617389679,
-0.5413641333580017,
-0.14356140792369843,
-0.29598551988601685,
0.24661138653755188,
0.5675052404403687,
-0.43196600675582886,
-0.0525485724... | |
java.lang.Float from shared objects file]
[Loaded java.lang.Double from shared objects file]
[Loaded java.lang.Byte from shared objects file]
[Loaded java.lang.Short from shared objects file]
[Loaded java.lang.Integer from shared objects file]
[Loaded java.lang.Long from shared objects file]
[Loaded java.io.ObjectStrea... | [
-0.2031111866235733,
0.06955409049987793,
0.11289350688457489,
-0.07046020776033401,
-0.18511880934238434,
0.2626250088214874,
0.2491569072008133,
-0.693187415599823,
-0.27103814482688904,
-0.5595776438713074,
-0.21128083765506744,
0.5578470826148987,
-0.5596317052841187,
-0.08650834858417... | |
java.util.Map$Entry from shared objects file]
[Loaded java.util.HashMap$Entry from shared objects file]
[Loaded java.security.AccessController from shared objects file]
[Loaded java.lang.reflect.ReflectPermission from shared objects file]
[Loaded java.security.PrivilegedAction from shared objects file]
[Loaded sun.refl... | [
-0.1257515400648117,
0.060211870819330215,
0.4074506461620331,
-0.029968643561005592,
-0.36209601163864136,
0.14084722101688385,
0.5432111620903015,
-0.6962850093841553,
-0.04967082291841507,
-0.7442876696586609,
-0.11552999913692474,
0.5901100039482117,
-0.4775252938270569,
-0.07854110002... | |
java.util.Set from shared objects file]
[Loaded java.util.AbstractSet from shared objects file]
[Loaded java.util.Collections$EmptySet from shared objects file]
[Loaded java.util.Collections$EmptyList from shared objects file]
[Loaded java.util.Collections$EmptyMap from shared objects file]
[Loaded java.util.Collection... | [
-0.3547697365283966,
0.1656275987625122,
0.006761508993804455,
-0.16393226385116577,
-0.3017016351222992,
0.6053945422172546,
0.45030298829078674,
-0.40979310870170593,
-0.33799004554748535,
-0.1336202770471573,
0.005656735971570015,
0.25242382287979126,
-0.6509557366371155,
0.064260423183... | |
java.io.File$1 from shared objects file]
[Loaded sun.misc.SharedSecrets from shared objects file]
[Loaded sun.misc.Unsafe from shared objects file]
[Loaded java.lang.IncompatibleClassChangeError from shared objects file]
[Loaded java.lang.NoSuchMethodError from shared objects file]
[Loaded sun.jkernel.DownloadManager f... | [
-0.14464114606380463,
0.08132902532815933,
0.13599643111228943,
-0.1000087633728981,
-0.41668885946273804,
0.09763522446155548,
0.35979339480400085,
-0.5061618685722351,
-0.24887290596961975,
-0.774963915348053,
-0.017268575727939606,
0.5358505249023438,
-0.4347357749938965,
0.097666285932... | |
java.io.FileDescriptor from shared objects file]
[Loaded java.io.Flushable from shared objects file]
[Loaded java.io.OutputStream from shared objects file]
[Loaded java.io.FileOutputStream from shared objects file]
[Loaded java.io.FilterInputStream from shared objects file]
[Loaded java.io.BufferedInputStream from shar... | [
0.051454316824674606,
-0.18097718060016632,
0.2222071886062622,
-0.04379396140575409,
-0.3160027265548706,
0.10082373023033142,
0.28357717394828796,
-0.5161161422729492,
-0.14591462910175323,
-0.8338004350662231,
-0.011076707392930984,
0.45061224699020386,
-0.522524893283844,
-0.3169422149... | |
sun.nio.cs.StandardCharsets$Aliases from shared objects file]
[Loaded sun.nio.cs.StandardCharsets$Classes from shared objects file]
[Loaded sun.nio.cs.StandardCharsets$Cache from shared objects file]
[Loaded sun.nio.cs.HistoricallyNamedCharset from shared objects file]
[Loaded sun.nio.cs.MS1252 from shared objects file... | [
0.16258984804153442,
0.23507250845432281,
0.061168212443590164,
-0.01890782080590725,
-0.3570701479911804,
0.17681314051151276,
0.41802671551704407,
-0.7226928472518921,
-0.09049621224403381,
-0.5649492740631104,
-0.007863514125347137,
0.38126465678215027,
-0.3498397469520569,
0.1301329731... | |
java.nio.ByteOrder from shared objects file]
[Loaded java.lang.Readable from shared objects file]
[Loaded java.nio.CharBuffer from shared objects file]
[Loaded java.nio.HeapCharBuffer from shared objects file]
[Loaded java.nio.charset.CoderResult from shared objects file]
[Loaded java.nio.charset.CoderResult$Cache from... | [
-0.41303151845932007,
-0.08655790984630585,
0.15395978093147278,
0.016879450529813766,
-0.42810913920402527,
0.42310163378715515,
0.24797599017620087,
-0.34119054675102234,
-0.3310093879699707,
-1.0220553874969482,
-0.032483458518981934,
0.1560211479663849,
-0.33259961009025574,
0.12777058... | |
java.lang.Shutdown from shared objects file]
[Loaded java.util.ArrayList from shared objects file]
[Loaded java.lang.Shutdown$Lock from shared objects file]
[Loaded java.lang.ApplicationShutdownHooks from shared objects file]
[Loaded java.util.IdentityHashMap from shared objects file]
[Loaded sun.misc.OSEnvironment fro... | [
-0.2823579013347626,
0.15922336280345917,
0.07023829221725464,
-0.06350532174110413,
-0.12256854772567749,
0.16201885044574738,
0.35802027583122253,
-0.4246329069137573,
-0.4118679165840149,
-0.6147650480270386,
-0.2600329518318176,
0.46735814213752747,
-0.5379242300987244,
0.0572506114840... | |
sun.misc.JavaNetAccess from shared objects file]
[Loaded java.net.URLClassLoader$7 from shared objects file]
[Loaded java.util.StringTokenizer from shared objects file]
[Loaded java.security.PrivilegedExceptionAction from shared objects file]
[Loaded sun.misc.Launcher$ExtClassLoader$1 from shared objects file]
[Loaded ... | [
-0.14312666654586792,
0.17742040753364563,
0.2182144671678543,
0.059873346239328384,
-0.2145853042602539,
0.09844544529914856,
0.30065038800239563,
-0.4030759334564209,
-0.39710474014282227,
-0.7439098358154297,
0.02712930180132389,
0.4166618287563324,
-0.4340871274471283,
0.08809149265289... | |
java.util.concurrent.locks.ReentrantLock$Sync from shared objects file]
[Loaded java.util.concurrent.locks.ReentrantLock$NonfairSync from shared objects file]
[Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer$Node from shared objects file]
[Loaded java.util.concurrent.ConcurrentHashMap$HashEntry from shared... | [
-0.2921569049358368,
0.08742737025022507,
0.21466337144374847,
0.0598757266998291,
-0.21954858303070068,
0.2305562049150467,
0.3390291631221771,
-0.29128655791282654,
-0.5272600054740906,
-0.5682429075241089,
-0.05508709326386452,
0.22092461585998535,
-0.43327316641807556,
0.24015395343303... | |
java.lang.ThreadLocal$ThreadLocalMap$Entry from shared objects file]
[Loaded java.lang.StringCoding$StringDecoder from shared objects file]
[Loaded java.net.URLClassLoader$1 from shared objects file]
[Loaded sun.misc.URLClassPath$3 from shared objects file]
[Loaded sun.misc.URLClassPath$Loader from shared objects file]... | [
-0.27393510937690735,
-0.06632016599178314,
0.09453810751438141,
-0.04904931038618088,
-0.12794409692287445,
0.08659107238054276,
0.406091570854187,
-0.2446080595254898,
-0.3482506275177002,
-0.6640906929969788,
-0.07584241032600403,
0.22915633022785187,
-0.4690684676170349,
0.319448202848... | |
java.io.FilePermission from shared objects file]
[Loaded java.io.FilePermission$1 from shared objects file]
[Loaded java.security.Policy from shared objects file]
[Loaded sun.security.provider.PolicyFile from shared objects file]
[Loaded java.security.Policy$UnsupportedEmptyCollection from shared objects file]
[Loaded ... | [
-0.1686435043811798,
0.1109284907579422,
0.2147900015115738,
-0.1834004819393158,
-0.09685865789651871,
-0.03345300257205963,
0.44865360856056213,
-0.786129355430603,
-0.28965285420417786,
-0.35394981503486633,
-0.23423272371292114,
0.598639965057373,
-0.23009401559829712,
0.17320016026496... | |
shared objects file]
[Loaded java.util.LinkedHashSet from shared objects file]
[Loaded java.util.HashMap$KeySet from shared objects file]
[Loaded java.util.LinkedHashMap$LinkedHashIterator from shared objects file]
[Loaded java.util.LinkedHashMap$KeyIterator from shared objects file]
Process completed.
```
You have t... | [
-0.15026305615901947,
0.23275388777256012,
0.2527382969856262,
-0.09751645475625992,
0.1521533578634262,
-0.03854355961084366,
0.3094499409198761,
-0.4455965757369995,
-0.554723858833313,
-0.7485237121582031,
-0.17717285454273224,
0.31368058919906616,
-0.3386977016925812,
0.553159058094024... | |
attempted to access an **array out of its bounds**. That is if the array size is 5 you probably attempted to access the 6th element. That's illegal, that's an exception ( more formally a RuntimeException that means you have a programming mistake )
Then the log adds information where that happened.
```
at Servidor... | [
-0.1005062386393547,
0.0022240434773266315,
0.40123260021209717,
-0.38143107295036316,
0.14141736924648285,
-0.0447351410984993,
0.7536091804504395,
-0.5624069571495056,
-0.5375875234603882,
-0.5295166969299316,
-0.07483814656734467,
0.4277404248714447,
-0.28220832347869873,
0.238234475255... | |
puerto = new Integer(args[0]).intValue();
```
That says, the value of the variable "puerto" will be a new Integer created with the content of **args[0]** That is the first element of the args array.
That array is defined in the main method:
```
public static void main(String args[]){
```
And filled automatical... | [
0.1726776361465454,
-0.172389417886734,
0.6097291707992554,
-0.5180010795593262,
-0.10441461205482483,
0.18960526585578918,
0.1832503378391266,
-0.41830477118492126,
-0.10540224611759186,
-0.13524775207042694,
0.3307438790798187,
0.8894792199134827,
-0.250205934047699,
0.14567334949970245,... | |
like that, there should be something like "program arguments" You can fill that value with a port number, try using 8085.
**OR**
======
You can also change the line 21 of the server and initialize it like this:
```
//int puerto = new Integer(args[0]).intValue();
int puerto = 8085; // por mis pistolas :)
```
And s... | [
0.1325102597475052,
-0.04639274999499321,
0.5800046324729919,
-0.32770827412605286,
-0.12079908698797226,
0.19123026728630066,
0.1251078099012375,
-0.586480438709259,
-0.16761429607868195,
-0.20180879533290863,
0.2990705668926239,
1.0109941959381104,
-0.33775636553764343,
-0.24300897121429... | |
Is there a way to get a list of roles a Windows authenticated user is in, without explicitly checking by `WindowsPrincipal.IsInRole` method?
`WindowsPrincipal.IsInRole` just checks if the user is a member of the group with that name; a Windows Group *is a* Role. You can get a list of the groups that a user is a member ... | [
-0.16235800087451935,
-0.1951422095298767,
0.4304666817188263,
0.17394569516181946,
-0.006136402953416109,
-0.18043524026870728,
0.10115532577037811,
-0.12663710117340088,
-0.3980516493320465,
-0.5437436699867249,
-0.05347327142953873,
0.3727402687072754,
-0.36391836404800415,
-0.094021692... | |
you need the group names you will need to translate the `IdentityReference` into an `NTAccount` and get the Value:
```
var groupNames = from id in identity.Groups
select id.Translate(typeof(NTAccount)).Value;
``` | [
0.00968177616596222,
0.08285161107778549,
0.2594742178916931,
-0.0006818198598921299,
0.23191700875759125,
-0.1758953034877777,
0.09349656105041504,
-0.3800991177558899,
0.18223844468593597,
-0.5366007685661316,
-0.16846491396427155,
0.5528473258018494,
-0.3571797311306,
0.0728728100657463... | |
I have a WPF RichTextBox with `isReadOnly` set to `True`. I would like users to be able to click on HyperLinks contained within the RichTextBox, without them having to hold down `Ctrl`.
The Click event on the HyperLink doesn't seem to fire unless `Ctrl` is held-down, so I'm unsure of how to proceed.
Managed to find a ... | [
0.305142879486084,
0.1258094757795334,
0.6195895075798035,
-0.2376306653022766,
-0.2532755434513092,
-0.2873503267765045,
0.3724067509174347,
-0.2352323681116104,
-0.0139228580519557,
-0.6046454310417175,
-0.06825807690620422,
0.7130377888679504,
-0.23243845999240875,
0.09993606060743332,
... | |
overload that looks something like this (code non-essential to the solution has been stripped out):
```
FlowDocument doc = new FlowDocument();
Paragraph graph = new Paragraph();
Hyperlink textLink = new Hyperlink(new Run(textSplit));
textLink.NavigateUri = new Uri(textSplit);
textLink.RequestNavigate +=
new System... | [
-0.3425179719924927,
-0.17416693270206451,
0.9259761571884155,
-0.07134191691875458,
-0.15494777262210846,
0.06040897220373154,
0.40319570899009705,
-0.24597930908203125,
-0.21413250267505646,
-0.8225817680358887,
-0.27393898367881775,
0.5427181720733643,
-0.6312333345413208,
0.17325410246... | |
I have a test method that is run. When the method generates an exception I want to know what the name of the test was and the exception content.
In the teardown for the test I want to get access to this information. How would I get access to it from the `[TearDown]` attributed method?
**OPTION 1:** I don't think you ... | [
0.7598246932029724,
0.021816937252879143,
-0.21784712374210358,
0.31468552350997925,
-0.0034364417660981417,
-0.2191413938999176,
0.37723076343536377,
-0.11536425352096558,
-0.10495532304048538,
-0.3473931550979614,
0.09585359692573547,
0.3668593764305115,
-0.3865688443183899,
-0.022119104... | |
the test could fail.
```
try{
// do something that can potentially throw;
}
catch(Exception ex){
// do something interesting with the ex;
throw;
}
```
**OPTION 2:** If you've not gone too far along, you may want to use xUnit which has a different exception expectation model and may provide some of the co... | [
0.1414586901664734,
-0.28105679154396057,
-0.12714698910713196,
0.08388721197843552,
0.10815233737230301,
-0.3810250759124756,
0.11758614331483841,
-0.09984545409679413,
0.05791205167770386,
-0.46222466230392456,
-0.19205915927886963,
0.4650108218193054,
-0.20336930453777313,
-0.0217369832... | |
**ft2build.h** is located here:
**C:\Program Files\GnuWin32\include**
Initially, I made the same mistake as here:
[Fatal Error C1083: Cannot Open Include file: 'tiffio.h': No such file or directory VC++ 2008](https://stackoverflow.com/questions/160938/fatal-error-c1083-cannot-open-include-file-tiffio-h-no-such-file-... | [
-0.05267706513404846,
0.39389127492904663,
0.21098056435585022,
-0.6109222173690796,
-0.007740892469882965,
-0.1915741115808487,
0.4736853837966919,
-0.12904846668243408,
-0.2805826961994171,
-0.30471810698509216,
-0.3086797893047333,
0.5866684317588806,
-0.48778989911079407,
0.05507906526... | |
14 2009, 21:19:36) [MSC v.1500 32 bit (Intel)]
platform: win32
Windows version: (5, 1, 2600, 2, 'Service Pack 3')
REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: found, but unknown version (no pkg-config) | [
-0.4179498851299286,
-0.08727208524942398,
0.6142863631248474,
-0.04889966920018196,
0.0064620827324688435,
0.01865829899907112,
0.5915579795837402,
0.09363780915737152,
-0.21537673473358154,
-0.285384863615036,
-0.4276684820652008,
0.48302510380744934,
-0.3131992816925049,
-0.048329949378... | |
* WARNING: Could not find 'freetype2' headers in any
* of '.', '.\freetype2'.
OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* | [
-0.02255995199084282,
-0.17125894129276276,
-0.20683099329471588,
0.08516296744346619,
0.03445691615343094,
-0.16525298357009888,
0.6430901288986206,
0.33917590975761414,
-0.0704139843583107,
-0.49201101064682007,
-0.3490821123123169,
0.4015353322029114,
-0.5532267689704895,
-0.06840431690... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.