text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I'm new to PS so I may get some of the terminology wrong.
If you want to roll out a custom PowerShell environment (snap-in) for a team of 30 developers/DBAs. What is the best way to do this... if you intend to be rolling out new functionality once a week? Does PowerShell 2.0 help in this regards?
Assumption:
Ther... | [
0.5736935138702393,
-0.037374164909124374,
0.31727054715156555,
0.14448583126068115,
0.14929981529712677,
-0.3087404668331146,
0.10522764921188354,
-0.0023863420356065035,
-0.24069634079933167,
-0.6133561134338379,
-0.4840012192726135,
0.6410816311836243,
-0.2224152535200119,
-0.3520545065... | |
roll out a pretty standard PS install then add one line to everyone's profile to run a script from a shared folder on a server. Then in that script I can do whatever customization that I want to have applied to everyone.
We add the line to the machine specific MS profile (the one in %Windir%) this was an intentional c... | [
0.6720761656761169,
-0.22027470171451569,
0.5262503623962402,
0.1080283373594284,
-0.05374756082892418,
0.2524522840976715,
0.1873764842748642,
0.11712352931499481,
0.046066559851169586,
-0.7563653588294983,
0.11286994069814682,
0.09101718664169312,
-0.05027460306882858,
-0.233180716633796... | |
script will deploy without nay dependencies on these customizations.
Currently the customizations are pretty mundane. Mostly just some added functions and aliases. I also have a logger that I wrote in C# specifically for powershell so it loads that up from the dll that is in that same network folder.
Because I play... | [
0.0035887828562408686,
-0.09061543643474579,
0.4504048824310303,
-0.03554443269968033,
0.016032708808779716,
-0.07087434828281403,
0.44256651401519775,
0.34932756423950195,
-0.018790580332279205,
-1.0051668882369995,
-0.0399387888610363,
0.44298186898231506,
-0.2951672673225403,
0.02316126... | |
I have a field on a form that takes the following values: -1, 2-10, 99
I have a business rule that's concerned with answers 2-10.
I'm trying to write a regular expression that will match 2-10 but *not* 99, and I'm having trouble.
The original expression:
```
^2|3|4|5|6|7|8|9|10$
```
Fails because 99 is matched (t... | [
0.19868439435958862,
0.15798194706439972,
0.3376721441745758,
-0.010837569832801819,
-0.2943758964538574,
-0.10423144698143005,
0.4366975426673889,
-0.12031664699316025,
-0.029566476121544838,
-0.40667375922203064,
-0.04352466017007828,
0.3383994698524475,
-0.3809531629085541,
-0.062503203... | |
brackets:
```
^[2|3|4|5|6|7|8|9|10]$
^[2-9]$
```
either "all spelled out" or as a range, expresso never returns any matches if I specify the opening line/string closing line/string characters (and yes, I was trying to match the 10 separately in the second case there).
I know, I know. If you use a regex to solve a... | [
-0.05935171619057655,
0.012252995744347572,
0.42653584480285645,
0.16529595851898193,
-0.16892580687999725,
-0.06966254860162735,
0.3437328338623047,
-0.3137558400630951,
-0.22949346899986267,
-0.3580915331840515,
-0.12337792664766312,
0.5857937932014465,
-0.3231191337108612,
0.05140276625... | |
thing to do. I'm still pretty green when it comes to the regex;
You need parantheses for that. I would further use ranges to keep things readable:
```
^([2-9]|10)$
``` | [
0.2241569459438324,
0.002297991653904319,
0.36072343587875366,
-0.2078765630722046,
0.3199513256549835,
0.3569197356700897,
0.1343848705291748,
-0.0031299579422920942,
-0.32312604784965515,
-0.46359431743621826,
0.01724497601389885,
0.7494456171989441,
-0.18866769969463348,
-0.190689161419... | |
I'm working on a regression-testing tool that will validate a very large number of Excel spreadsheets. At the moment I control them via COM from a Python script using the latest version of the pywin32 product. Unfortunately COM seems to have a number of annoying drawbacks:
For example, the slightest upset seems to be ... | [
0.2638104259967804,
0.23144374787807465,
0.34507298469543457,
0.26588016748428345,
-0.11034194380044937,
0.05238698795437813,
0.15056593716144562,
0.11198175698518753,
-0.08479591459035873,
-0.6947153210639954,
0.1466245949268341,
0.6529738903045654,
-0.18550923466682434,
0.369595199823379... | |
the Excel application operating on the same workbook file, even if they are read-only.
Also when something does go wrong I seldom get any useful error-messages... at best I can except a numerical error-code or a barely useful message such as "An Exception has occurred". It's almost impossible to know why something wen... | [
0.19098909199237823,
0.19809848070144653,
0.24423043429851532,
0.3221651613712311,
-0.3178142011165619,
-0.41783544421195984,
0.10730049014091492,
0.1386335790157318,
-0.013200399465858936,
-0.4858454167842865,
0.028142977505922318,
0.7437275648117065,
-0.1866397112607956,
0.12354722619056... | |
I were to completely abandon COM?** Is there an alternative way to control Excel?
All I want to do is run macros, open and close workbooks and read and write cell-ranges? Perhaps some .NET experts know a trick or two which have not yet bubbled into the Python community? What about you office-hackers? Could there be a... | [
0.6877717971801758,
0.07076375931501389,
0.11589909344911575,
0.20701807737350464,
-0.1746608465909958,
-0.2002868503332138,
0.35166022181510925,
0.06196952983736992,
-0.24207822978496552,
-0.5927402377128601,
0.04857228696346283,
0.8063006401062012,
-0.11859501898288727,
0.125576645135879... | |
I want to implement keyboard shortcuts using jQuery.
Specifically, I want to fire an event when e.g. F5 is clicked.
What kind of issues do you run into with keyboard shortcuts?
**Also, any online chart that has all the keyboard mappings to numbers?**
You can't and shouldn't use `F5` key - it's reserved by most brows... | [
0.43518680334091187,
0.07109927386045456,
0.19383519887924194,
0.045267585664987564,
-0.12127162516117096,
-0.24785973131656647,
0.5405828356742859,
-0.17068304121494293,
-0.16928903758525848,
-0.6185781359672546,
-0.0029495852068066597,
0.5930301547050476,
0.046001531183719635,
-0.0760356... | |
I'm trying to create an SQL query that will order the results by a version number (e.g. 1.1, 4.5.10, etc.)
Here's what I tried:
```
SELECT * FROM Requirements
WHERE Requirements.Release NOT LIKE '%Obsolete%'
ORDER BY Requirements.ReqNum
```
Now, the ReqNum field is a string field and unfortunately I can't... | [
0.22717246413230896,
0.2727833688259125,
0.5002073049545288,
-0.0637325793504715,
-0.09906767308712006,
0.018542831763625145,
0.04305645450949669,
-0.20624516904354095,
-0.27397778630256653,
-0.5984222888946533,
-0.11390361189842224,
0.4508529007434845,
-0.43405118584632874,
0.183855757117... | |
input in advance!
For best results, refactor version number storage so that each section has it's own column: MajorVersion, MinorVersion, Revision, Build. Then the ordering problem suddenly becomes trivial. You can also build a computed column for easy retrieval of the full string. | [
-0.14419618248939514,
-0.3292381465435028,
0.4842628836631775,
-0.01184474304318428,
-0.16756612062454224,
0.12999656796455383,
0.10344555228948593,
0.14543162286281586,
-0.29231327772140503,
-0.500485360622406,
-0.24637290835380554,
0.42171457409858704,
-0.2802506983280182,
0.325089901685... | |
When creating a new ASP.NET application in Visual Studio, a couple of files and folders are created automatically. One of those folders is called `App_Data`.
Also when publishing a website by selecting the menu option `Build->Publish` a checkbox is available `Include files from the App_Data folder`.
Am I right assumi... | [
0.2565734386444092,
0.09925427287817001,
0.24721843004226685,
0.06540567427873611,
-0.0739334300160408,
-0.030619727447628975,
0.2907724678516388,
-0.12219130247831345,
-0.48236170411109924,
-0.8960224986076355,
-0.40323981642723083,
0.6379798054695129,
-0.2989709973335266,
-0.392841845750... | |
you for all the answers. From the answers received so far I am interested mostly in two points mentioned:
1. [App\_Data is essentially a storage point for file-based data store](https://stackoverflow.com/questions/528858/what-is-the-appdata-folder-used-for-in-visual-studio/528876#528876)
2. [It should not be viewable... | [
0.1423717886209488,
0.06963133066892624,
0.5289044380187988,
0.2782576382160187,
0.12934529781341553,
0.260293185710907,
-0.03100733458995819,
-0.35361018776893616,
-0.5193976163864136,
-0.3860597014427185,
-0.2442304790019989,
0.6852805614471436,
-0.29587695002555847,
-0.37959542870521545... | |
I want to be accessible only from the application. Would App\_Data folder be the right place to use, or should I create a separate folder and manually set IIS to ensure that it is not accessible by Web?
App\_Data is essentially a storage point for file-based data stores (as opposed to a SQL server database store for ex... | [
0.4855358302593231,
0.3802243173122406,
0.25518620014190674,
0.11120978742837906,
0.06860353797674179,
-0.027335399761795998,
0.07917755842208862,
-0.02318475767970085,
-0.0579502247273922,
-0.6286891102790833,
-0.20111441612243652,
0.4094626009464264,
-0.2589758336544037,
0.18890845775604... | |
I have a form with two panels(top, bottom), each panel contains grids. Basically, it's a Master-Detail form where selecting a row from the top grid would show details in the bottom grid.
Binding the data to the detail grid is taking some time. Since binding is done on UI thread, it blocks the thread and therefore the... | [
0.5753335952758789,
-0.06396854668855667,
0.7915809154510498,
0.18469840288162231,
-0.1511942446231842,
-0.07236334681510925,
-0.1944425404071808,
-0.5210506916046143,
-0.013339674100279808,
-1.0792322158813477,
0.1641654074192047,
0.19882209599018097,
-0.1801132708787918,
0.37791287899017... | |
can I keep the UI thread free while the detail grid is doing it's binding?
Thanks a million.
Finally I found the solution. The solution doesn't include multithreading to start with. As I said that the delay was in binding the grid meaning the main thread was held, we couldn't do much. So the solution is to bring delay... | [
0.36854979395866394,
-0.23448446393013,
0.6791634559631348,
0.035827673971652985,
-0.02354767546057701,
-0.13070273399353027,
0.2488050013780594,
-0.44939449429512024,
-0.4195620119571686,
-0.5237733721733093,
0.1743057370185852,
0.4599354863166809,
-0.43811550736427307,
0.4694880545139313... | |
too fast. Once timer is expired, I take the selected row and display data. Simple and elegant solution. | [
-0.19503286480903625,
-0.056215956807136536,
0.8476898670196533,
0.20855961740016937,
0.2647978365421295,
0.24924756586551666,
0.21667362749576569,
-0.1380612850189209,
0.041704434901475906,
-0.7469696402549744,
0.06447746604681015,
0.37174445390701294,
-0.0832650363445282,
0.2141505330801... | |
I've noticed with `Integer.parseInt()` that you don't have to surround it with a try catch or declare that the method might throw an exception, despite the fact that it "throws" a `NumberFormatException`.
Why don't I have to explicitly catch the `NumberFormatException` or state that my method throws it?
Because that i... | [
0.2503780722618103,
0.15693961083889008,
-0.19656646251678467,
0.14856486022472382,
-0.12057523429393768,
-0.2490740716457367,
0.23377440869808197,
-0.05476232245564461,
-0.39499494433403015,
-0.36825770139694214,
-0.07436162233352661,
0.42579883337020874,
-0.25140586495399475,
-0.06928293... | |
about [them here](https://stackoverflow.com/questions/27578/when-to-choose-checked-and-unchecked-exceptions)
There are actually [three kinds of exceptions](https://stackoverflow.com/questions/462501/exception-other-than-runtimeexception/462745#462745), only one of them should be handled ( most of the times ) | [
0.16995011270046234,
0.27786508202552795,
0.07151171565055847,
0.2045629620552063,
0.18357139825820923,
-0.2567521631717682,
0.16825266182422638,
-0.15109370648860931,
-0.6385736465454102,
-0.268071711063385,
-0.07374262809753418,
0.36301812529563904,
-0.15962867438793182,
-0.1020801141858... | |
I want to access the full model of users with their roles in my SOAP app. For example, I might want to know the role of a user called "Fred."
How do I reach into some sort of global JAAS registry and do (pseudocode) *globalRegistry.getUser("Fred").getPrincipals()*? (Note that in JAAS, a role is represented by a *Prin... | [
-0.026818053796887398,
-0.2856218218803406,
0.2949599027633667,
0.14103981852531433,
-0.05797186121344566,
0.1824331134557724,
0.40389975905418396,
0.17175109684467316,
-0.07114379853010178,
-0.8230388760566711,
0.0259479321539402,
0.43003788590431213,
-0.03350789472460747,
0.3074685037136... | |
they are already stored by the appserver.
2. Preferably, I want to be able to access this information even when Fred is not the current user.
I am using Jetty, but I presume that these behaviors are standard to JAAS.
We use a ThreadLocal variable to reference the current user as has been authenticated at the system en... | [
0.21126042306423187,
-0.04619096964597702,
0.5330608487129211,
0.23759475350379944,
0.3153292238712311,
-0.15038403868675232,
0.24215003848075867,
0.2863742411136627,
-0.3650800585746765,
-0.6137638688087463,
-0.34057939052581787,
0.5397722125053406,
-0.11206483095884323,
0.048579413443803... | |
other users would typically be done via some type of admin module. | [
0.6004454493522644,
0.1566835641860962,
0.10976331681013107,
0.0674503892660141,
0.126270592212677,
0.024558881297707558,
0.045883648097515106,
0.13509967923164368,
-0.07425481826066971,
-0.31785133481025696,
-0.5366575717926025,
0.5164283514022827,
0.07145894318819046,
-0.0942092165350914... | |
This is a follow up to my last question [Open a window if the window does not already exist](https://stackoverflow.com/questions/528671/javascript-window-open-only-if-the-window-does-not-already-exist)
Essentially, I am now keeping a list of all the window references that have been opened by a page, and only allowing t... | [
0.41904616355895996,
0.0631435215473175,
0.3089853823184967,
-0.09375640749931335,
-0.11980577558279037,
-0.4362953305244446,
0.5026199221611023,
-0.004635718185454607,
-0.5454409718513489,
-0.38206830620765686,
-0.1682114601135254,
0.21505972743034363,
-0.31246668100357056,
0.252421021461... | |
of helpful comments here (and on the other question), here is the final code for the application launcher. Essentially, it tries to get the location of the open window with the appropriate name. If that causes an exception (because of a privacy issue), then the application is judged to have been loaded. If it is "about... | [
0.3123946785926819,
0.21237556636333466,
0.45535191893577576,
-0.130964457988739,
-0.07264444231987,
-0.26363441348075867,
0.4788256585597992,
-0.07453716546297073,
-0.14741024374961853,
-0.9187064170837402,
-0.15398195385932922,
0.29317715764045715,
-0.3923686146736145,
0.2631983160972595... | |
if (i === value) {
return true;
}
}
return false;
};
function launchApplication(l_url, l_windowName)
{
var l_width = screen.availWidth;
var l_height = screen.availHeight;
var winRef;
var l_params = 'status=1' +
',resizable=1' +
',scrollbars=1' +
',wi... | [
0.026243511587381363,
-0.2092139720916748,
0.6729363799095154,
-0.19473007321357727,
0.26723846793174744,
0.22782225906848907,
0.14429612457752228,
-0.20808036625385284,
-0.031002359464764595,
-0.5188881754875183,
-0.6721887588500977,
0.6415148973464966,
-0.07200006395578384,
-0.0119463661... | |
',height=' + l_height +
',left=0' +
',top=0';
if (g_urlarray.has(l_url)) {
winRef = g_urlarray[l_url];
}
if (winRef == null || winRef.closed) {
winRef = window.open('', l_windowName, l_params);
var l_openNew = 0;
try {
if (winRef.location == 'about... | [
-0.21659395098686218,
-0.06389517337083817,
0.822140634059906,
-0.36223188042640686,
0.30575835704803467,
0.1907905787229538,
0.19156011939048767,
-0.14495903253555298,
-0.08253178745508194,
-0.5535764694213867,
-0.7448609471321106,
0.39979174733161926,
-0.10130541771650314,
0.397608608007... | |
l_openNew = 1;
}
}
catch (e) {
l_openNew = 0;
}
if (l_openNew === 1)
{
winRef.location | [
-0.26484382152557373,
-0.3595210313796997,
0.40872153639793396,
-0.2973346412181854,
0.638593316078186,
-0.00419600261375308,
-0.06469306349754333,
0.05771086364984512,
0.04701290652155876,
-0.5948632955551147,
-0.47287648916244507,
0.13859747350215912,
-0.16727952659130096,
0.303740888833... | |
= l_url;
winRef.moveTo(0,0);
winRef.resizeTo(l_width, l_height);
}
g_urlarray[l_url] = winRef;
}
}
```
> @annakata (and even if you stored them, you wouldn't have permission to close them any more)
Not true. If you have the name of the window, you can use window.open to ree... | [
-0.023766545578837395,
-0.15674324333667755,
0.5577738881111145,
-0.39621782302856445,
-0.08357533812522888,
0.2301843762397766,
0.5001064538955688,
-0.2025836706161499,
-0.1634904146194458,
-0.632315456867218,
-0.3591062128543854,
0.44104325771331787,
-0.16766168177127838,
0.5792204737663... | |
var win = window.open("",getWinName(url));
win.close();
}
function getWinName(url){
return "win" + url.replace(/[^A-Za-z0-9\-\_]*/g,"");
}
</script>
<a href="#" onclick="winOpen('http://google.com');return false;">Click me first</a>, close and open this window, then
<a href="#" onclick="winClose('http://google.com'... | [
-0.06978743523359299,
0.09909573942422867,
0.9797030091285706,
-0.2594697177410126,
0.025737574324011803,
0.09790072590112686,
0.4364739954471588,
-0.14173899590969086,
0.24248450994491577,
-0.59385746717453,
-0.6009740829467773,
0.824293315410614,
-0.22406184673309326,
0.21410438418388367... | |
My app has its own installer but I have to guide my users to install Firebird on their own.
I'd like to install it automatically.
Thanks.
You can download Firebird source code. It contains [InnoSetup](http://www.jrsoftware.org/isinfo.php) script that actually installs firebird on windows targets. You can then modify ... | [
0.6283596754074097,
0.144490048289299,
0.19236654043197632,
-0.206919327378273,
0.3838126063346863,
0.014832282438874245,
0.29798436164855957,
0.1935356706380844,
-0.09265213459730148,
-0.8611075282096863,
-0.05897095054388046,
0.8725574612617493,
-0.40437936782836914,
-0.484816312789917,
... | |
In addition to the basic `*`, `?` and `[...]` patterns, the Bash shell provides extended pattern matching operators like `!(pattern-list)` ("match all except one of the given patterns"). The `extglob` shell option needs to be set to use them. An example:
```
~$ mkdir test ; cd test ; touch file1 file2 file3
~/test$ ec... | [
0.3281502425670624,
-0.04382186010479927,
0.03016810677945614,
-0.2644786834716797,
-0.026245733723044395,
-0.056264638900756836,
0.40713992714881897,
-0.7041082978248596,
-0.14465264976024628,
-0.4530484080314636,
-0.1348518580198288,
0.7982245683670044,
-0.4087814688682556,
-0.3678728938... | |
directory to make sure expansion doesn't happen prematurely):
```
~/test$ cd ..
~$ bash -c "cd test ; echo *"
file1 file2 file3
~$ bash -c "cd test ; echo !(file2)" # expected output: file1 file3
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `cd test ; echo !(file2)'
```
I've tried all ... | [
-0.12652753293514252,
-0.06255713850259781,
0.41713646054267883,
-0.18056583404541016,
0.38021349906921387,
0.049678023904561996,
0.45952168107032776,
-0.6491503119468689,
-0.24554462730884552,
-0.4131334125995636,
-0.31544938683509827,
0.6393920183181763,
-0.3338874280452728,
0.1574681103... | |
0: `cd test ; echo !(file2)'
```
Any solution appreciated!
```
$ bash -O extglob -c 'echo !(file2)'
file1 file3
``` | [
0.11308934539556503,
0.23180723190307617,
0.16772882640361786,
-0.34258463978767395,
0.05629945546388626,
-0.2943066358566284,
0.27472418546676636,
-0.5192015767097473,
-0.03313635289669037,
-0.27820631861686707,
-0.5742929577827454,
0.8144643306732178,
-0.4235168397426605,
-0.260407447814... | |
I got a question regarding content types and their IDs and how to use them with the object model.
First of all, I defined some site columns, a content type using these columns and a list definition using this content type via CAML. Each of the three components is realized as a feature. Another feature creates a list ... | [
0.4220878481864929,
0.09702954441308975,
0.8232151865959167,
0.09130670130252838,
-0.15629181265830994,
-0.18838323652744293,
0.025923630222678185,
-0.4054621160030365,
-0.4330049753189087,
-0.4772816002368927,
0.05644512549042702,
0.6007250547409058,
-0.2791632115840912,
0.268939971923828... | |
"Titel";
listItem.Update();
```
When I execute this piece of code the type object is still null, also I'm sure the content type is attached to the list. Debugging the code and inspecting the list's content types shows me that the content type attached to the list doesn't have the id I defined in the content type def... | [
0.31490078568458557,
-0.015488510951399803,
0.37675175070762634,
-0.07543140649795532,
0.03328761085867882,
-0.4170948266983032,
0.5679086446762085,
-0.08468131721019745,
-0.14713820815086365,
-0.5198275446891785,
0.04896673560142517,
0.7067764401435852,
-0.4741533100605011,
0.056902986019... | |
main goal is avoiding to use the name of the content type to retrieve it from the list's content types, but to use the unique id.
bye
Flo
When you create a list based on a content type, each instance of the list is actually a new content type that inherits from the parent.
Take a look at this...
<http://soerennielse... | [
0.39183416962623596,
-0.39414823055267334,
0.48159751296043396,
0.3285166621208191,
-0.16788406670093536,
-0.5118743777275085,
0.28184086084365845,
-0.13850535452365875,
-0.46535953879356384,
-0.18634596467018127,
-0.01659184880554676,
0.5839179158210754,
-0.07746855169534683,
-0.077024072... | |
I have a friend who needs to reinstall windows, but he can't find his VS2008 activation code/product key. Is there a way to look up which product key he entered when he last installed VS2008 in the registry? Any other method of finding the key is also welcome.
For 32 bit Windows:
-------------------
Visual Studio 2003... | [
-0.2577252686023712,
-0.11649564653635025,
0.562461793422699,
-0.05043339729309082,
-0.16847911477088928,
0.4290117621421814,
0.36169523000717163,
-0.11361213028430939,
0.05792194604873657,
-0.7971982359886169,
0.0792294293642044,
0.587242603302002,
0.08523017168045044,
-0.0688167139887809... | |
try to look at the subfolders e.g.
> ...\Registration\1000.0x0000\PIDKEY
or
> ...\Registration\2000.0x0000\PIDKEY | [
-0.028976401314139366,
0.0223874282091856,
0.04523357376456261,
-0.16293208301067352,
-0.0302118007093668,
-0.047206979244947433,
-0.029019739478826523,
-0.3981483280658722,
-0.19144971668720245,
-0.7818343043327332,
-0.28237587213516235,
0.1563228815793991,
-0.427697092294693,
0.082716673... | |
In main:
```
char *myData[500][9]; //dynamic rows??
char **tableData[500]={NULL}; //dynamic rows??
int r;
newCallBack(db, &myData, &tableData, &r);
```
and passing into function by:
```
void newCallBack(sqlite3 *db, char** mdat, char*** tdat, int* r )
{
```
Doesn't seem to like this? Any suggestions? Lo... | [
-0.3078347146511078,
-0.025454148650169373,
0.3604716956615448,
-0.15137864649295807,
0.024805540218949318,
0.22033557295799255,
0.08126000314950943,
-0.1973899006843567,
-0.21609334647655487,
-0.532418966293335,
-0.0825624093413353,
0.4680260717868805,
-0.3960416913032532,
0.1795013397932... | |
don't mind limiting the size of the strings.
To get fully dynamic array sizes you'll have to manually allocate (and release!) memory with malloc() and free(), and change the types of your variables to char \*\*myData and char \*\*\*tableData. | [
0.04013001546263695,
-0.2757304608821869,
0.16787071526050568,
0.10076764225959778,
0.1965578943490982,
0.12342202663421631,
0.0945529118180275,
-0.0886194258928299,
-0.31866931915283203,
-0.4564019739627838,
-0.15863050520420074,
0.5833731293678284,
-0.298605740070343,
-0.0774527639150619... | |
I'd like to add a little variablility onto the path of my css link everytime my Site.Master view is processed. What is the correct way to do this? My code currently breaks on the Default.aspx saying I have not defined cssLink. Site.Master code below:
```
<script runat="server">
void Page_Load(object sender... | [
0.16225184500217438,
-0.11880970001220703,
0.6638883948326111,
-0.22626522183418274,
-0.09572205692529678,
-0.04050223156809807,
0.6720463037490845,
-0.05134861543774605,
-0.34606465697288513,
-0.790756344795227,
0.0272932481020689,
0.3119334876537323,
-0.16750817000865936,
0.3341905176639... | |
String.Format(@"<link rel=""stylesheet"" type=""text/css"" href=""{0}"" />", cssLoc);
}
</script>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<asp:ContentPlaceHolder ID="head" runat="server">
<title></title>
</asp:ContentPlaceHolder>
<meta http... | [
-0.17479711771011353,
-0.069559745490551,
0.7461705803871155,
0.0055003054440021515,
-0.09873779863119125,
-0.0735064223408699,
0.05277757719159126,
-0.4051908850669861,
-0.3133954405784607,
-0.606536328792572,
-0.5016168355941772,
0.2983585298061371,
-0.3055325746536255,
0.087159506976604... | |
</head>
```
Also, is there anyway to fix the "XHTML transitional, Title occurs too few times" message?
**UPDATE:**
Please ignoring the scoping issue. See Richard's answer. I should note however that fixing this does not solve the issue.
I think because of the Inherits="System.Web.Mvc.ViewMasterPage" declarati... | [
-0.009212150238454342,
0.06874046474695206,
0.758644700050354,
0.06910974532365799,
-0.05126960948109627,
-0.2568816542625427,
0.16955600678920746,
-0.25665220618247986,
-0.2691059410572052,
-0.4899061322212219,
-0.3915902376174927,
0.3533999025821686,
-0.18654361367225647,
0.2821008861064... | |
Html.DatedStylesheet("~/Content/css/expect.css", DateTime.Now);
```
On an unrelated note, does anyone know a cleaner way to do use UrlHelper outside of a view page? | [
0.401242196559906,
0.06699096411466599,
0.5775408744812012,
-0.07466576993465424,
-0.21042616665363312,
-0.3733748495578766,
0.09254874289035797,
0.32727909088134766,
-0.26455438137054443,
-0.6682490110397339,
-0.04319056496024132,
0.06332959979772568,
-0.08449839800596237,
0.1412586867809... | |
Castle Validator uses attributes to specify validation rules. How can you hook these up with Subsonic's generated classes (or any classes where you can't define the attributes on)? Is there a way to programatically specify validation rules without using the attribute method?
I think the best way to do that is using `Me... | [
0.17276187241077423,
0.010982975363731384,
0.5605465173721313,
0.2228081375360489,
-0.21654587984085083,
-0.2442159205675125,
0.24692927300930023,
-0.6390426754951477,
0.05974643677473068,
-0.14290300011634827,
0.3344722390174866,
0.7782160639762878,
-0.07858829945325851,
0.022469494491815... | |
an attribute specifying that this class has an `MetadataType`:
```
[MetadataType(typeof(UserMetadata))]
public partial class User
{
}
```
Then you create your metadata class with your castle validation:
```
public class UserMetadata
{
[ValidateNonEmpty]
[ValidateLength(6, 24)]
public string Username ... | [
0.08627436310052872,
0.18185554444789886,
0.6475861668586731,
0.11072100698947906,
0.17765934765338898,
-0.27680081129074097,
0.217182919383049,
-0.5614002346992493,
-0.02649758942425251,
-0.4950008690357208,
-0.36503252387046814,
0.5186412334442139,
-0.11233832687139511,
0.188763841986656... | |
To start out, I have looked at the following pages and don't quite have my answer:
[how-would-you-organize-a-subversion-repository-for-in-house-software-projects](https://stackoverflow.com/questions/51217/how-would-you-organize-a-subversion-repository-for-in-house-software-projects) and
[how-do-you-organize-your-versio... | [
0.41038620471954346,
-0.04718177393078804,
0.10288814455270767,
0.024129435420036316,
-0.05859338492155075,
-0.3367384076118469,
-0.1535704880952835,
-0.23006005585193634,
-0.38187578320503235,
-0.4509512782096863,
-0.01114263478666544,
0.18617528676986694,
-0.29431581497192383,
0.08373239... | |
a hundred or so of these small "projects" that are all pretty much independent of each other, but all live under the same $WEBROOT on the same webserver.
Our code is not in subversion yet, but I want it to be - I am just having trouble organizing it efficiently. We can have multiple svn repositories if needed, but if ... | [
0.6898375749588013,
0.10445491969585419,
0.1431034952402115,
0.16491660475730896,
-0.04860866442322731,
-0.3127461075782776,
0.30466097593307495,
0.11286367475986481,
-0.21238453686237335,
-0.5307242274284363,
0.32925018668174744,
0.2590295970439911,
-0.0781322568655014,
0.1350676864385604... | |
say I have a perl script, a js file, and a css file. I could name the "project" webserver\_processes, and check it into the repository as:
```
/svnrepo/webserver_processes/trunk
```
Under trunk, I could have:
```
htdocs/html/webserver_processes
htdocs/js/webserver_processes
htdocs/css/webserver_processes
cgi-bin/we... | [
0.49688485264778137,
0.3880167007446289,
0.2135247141122818,
-0.10276678949594498,
-0.06310334801673889,
-0.0911649838089943,
0.027156122028827667,
-0.11667288839817047,
-0.33439457416534424,
-0.6242429614067078,
-0.1454441249370575,
0.4098201394081116,
-0.18842360377311707,
0.127879619598... | |
don't see how it would be possible to create a working copy with my structure of $WEBROOT/htdocs and $WEBROOT/cgi-bin using this method.
**Another option:**
I could create a svn repository like this:
```
/svnrepo/webcode/trunk
```
Under trunk would be all of the code on my web server, in these two directories:
``... | [
0.43653902411460876,
0.09206140041351318,
0.14614161849021912,
0.18328191339969635,
-0.013537040911614895,
-0.22009213268756866,
0.17802773416042328,
0.006090712733566761,
-0.4595811367034912,
-0.7742955088615417,
0.10220323503017426,
0.5959567427635193,
-0.12579432129859924,
0.09567979723... | |
complex than it should be, but does anyone have any advice on how I could efficiently organize my code in subversion?
Many thanks in advance!
Brian
I think you're making the right call by keeping a single repository for your many projects, so I would only make a change to your deployment process:
Your svn repo would... | [
0.11249274015426636,
-0.20763622224330902,
0.11154063791036606,
0.1855737566947937,
0.08004168421030045,
-0.18581591546535492,
0.06677950918674469,
-0.1549634486436844,
-0.5202497243881226,
-0.73277348279953,
-0.16193567216396332,
0.5447481274604797,
-0.06524226814508438,
-0.04799173027276... | |
files.
edit:accidentally saved & additional directories added for clarity | [
0.12383240461349487,
0.064064621925354,
0.09319871664047241,
0.5639653205871582,
0.39072155952453613,
-0.3139033615589142,
0.3438643515110016,
0.20553994178771973,
-0.38343316316604614,
-0.698418915271759,
-0.37514349818229675,
0.13558274507522583,
-0.2557699680328369,
0.33186978101730347,... | |
**Hi All,**
I have two .net applications, these applications want to talk to each other, I made a setting in the first project as follows
```
[CompilerGeneratedAttribute()]
[GeneratedCodeAttribute("SettingsSingleFileGenerator", "9.0.0.0")]
public sealed partial class Settings :ApplicationSettingsBase
{
[Use... | [
0.10006876289844513,
0.13401389122009277,
0.45648193359375,
-0.3573678433895111,
0.02500929683446884,
-0.045646846294403076,
0.5969308614730835,
-0.31805962324142456,
0.2163422554731369,
-0.6826419234275818,
-0.379472553730011,
0.69305020570755,
-0.31883755326271057,
-0.10002916306257248,
... | |
}
set {
this["BeginWorking"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public b... | [
0.05398149788379669,
-0.07846192270517349,
0.1579180210828781,
-0.34289923310279846,
0.17967362701892853,
-0.2170814722776413,
0.5205545425415039,
-0.35805511474609375,
0.05624277517199516,
-0.2506032884120941,
-0.36535367369651794,
0.6424560546875,
-0.17215299606323242,
0.1825026869773864... | |
get {
return ((bool)(this["Result"]));
}
set {
this["Result"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()] | [
-0.3882201015949249,
-0.37135079503059387,
0.5518509149551392,
0.10030464828014374,
0.2660021185874939,
0.13605862855911255,
0.2571873366832733,
-0.1908494383096695,
-0.19706280529499054,
-0.4184199571609497,
-0.5649034380912781,
0.5812731385231018,
-0.2352505922317505,
-0.0319512635469436... | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool Completed{
get {
return ((bool)(this["Completed"]));
}
set {
this["Completed"] = value; | [
0.1019415408372879,
-0.06621291488409042,
0.32300880551338196,
-0.21211236715316772,
0.22966554760932922,
0.010254913941025734,
0.6017302870750427,
-0.3218103051185608,
-0.21232300996780396,
-0.1479722261428833,
-0.6647907495498657,
0.3419838547706604,
-0.026506008580327034,
0.302935034036... | |
}
}
}
```
the second project may set the BeginWorking setting for the first project in order to tell it to work, and waits for the Completed setting to be set and get the result from the Result setting.
**Is that possible and how??**
I feel it may be not easy to answer but excuse me I'm get unable to think... | [
0.4431241452693939,
0.04261668771505356,
0.35943228006362915,
0.1604582518339157,
0.1650972068309784,
0.03077211230993271,
0.20706412196159363,
0.1056160181760788,
-0.028003515675663948,
-0.898004412651062,
-0.265296995639801,
0.696724534034729,
-0.29399627447128296,
-0.07645173370838165,
... | |
I'm looking for a standard way to name components in my Flex application. For example, all TextFields begin with "txt" in their ID attribute (i.e., "txtFirstName"). Rather than re-invent the wheel, is anyone familiar with a list of prefix naming conventions that I can use?
There is no prefix convention that Adobe recom... | [
0.4098375737667084,
-0.2156030237674713,
0.532028317451477,
0.061718426644802094,
-0.19254618883132935,
0.028763238340616226,
0.058093298226594925,
-0.06559550017118454,
-0.22781385481357574,
-0.6565763354301453,
0.05497872829437256,
0.6639958024024963,
-0.25471001863479614,
0.134741395711... | |
to indicate type. For example, name a border Shape border, borderSkin, or borderShape, but not border\_mc.
More info: <http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Naming>
If you really want to use prefixes, you might want to use the VB prefixes: <http://www.rwc.uc.edu/cook/VB... | [
0.8768541216850281,
-0.0412239134311676,
0.521251916885376,
-0.02190263569355011,
-0.38596969842910767,
-0.16813497245311737,
-0.14606256783008575,
-0.574228823184967,
-0.5386534333229065,
-0.5672078728675842,
-0.20845258235931396,
-0.006001769099384546,
-0.14397263526916504,
0.38778209686... | |
I have a web application that uses Integrated Windows Authentication to validate users. Most of them are remote and don't have access to a workstation to update their AD password.
Rather than manually managing passwords my self, I'd like to put together a script so they can change them on their own.
How would I updat... | [
0.3381396234035492,
0.2239515632390976,
0.341476172208786,
0.08932902663946152,
0.08264178782701492,
-0.012776090763509274,
0.20607061684131622,
0.03666131570935249,
-0.17537470161914825,
-0.728155791759491,
0.2073797732591629,
0.38998106122016907,
0.14210902154445648,
0.17107819020748138,... | |
I am doing some asynchronous work on a separate thread using:
```
ThreadPool.QueueUserWorkItem()
```
and in this separate thread, I need to call `HttpContext.Current` so that I can access:
```
HttpContext.Current.Cache
HttpContext.Current.Server
HttpContext.Current.Request
```
However, `HttpContext.Current`... | [
0.27538004517555237,
0.11589539796113968,
0.2721235454082489,
-0.05089457705616951,
-0.15345399081707,
-0.10055000334978104,
0.25259122252464294,
0.0009851916693150997,
-0.3550783395767212,
-0.7864260673522949,
0.14370332658290863,
0.34196510910987854,
-0.17267093062400818,
0.4933141469955... | |
want to wait in the ASP.NET one till your task is finished. And maybe the Request/Context/Session is terminated while your thread is not.
You should pass an object with the data needed for your thread. | [
0.4535449743270874,
-0.4362553656101227,
0.14093591272830963,
0.22070489823818207,
0.005681545007973909,
-0.3107750415802002,
0.08415130525827408,
0.2781922221183777,
-0.510231614112854,
-0.6083780527114868,
0.15319611132144928,
0.2251334935426712,
-0.18887175619602203,
0.09408573806285858... | |
I've got a VirtualHost that looks something like:
```
<VirtualHost *:80>
ServerName domain1.com
ServerAlias www.domain1.com domain2.com www.domain2.com
</VirtualHost>
```
When someone visits www.domain1.com/test, they should be redirected to:
```
domain1.com/test
```
When someone visits www.domain2.com/tes... | [
-0.009590710513293743,
0.03261113166809082,
0.8900777101516724,
0.04674302414059639,
0.08740066736936569,
-0.06893055886030197,
0.35579827427864075,
-0.09602820128202438,
-0.25228580832481384,
-0.6927438974380493,
0.26826173067092896,
0.5547546744346619,
-0.3481563329696655,
0.357219219207... | |
^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1$1 [L,R=301]
``` | [
0.23619583249092102,
0.1766124665737152,
0.5741387605667114,
-0.22243937849998474,
0.2815994620323181,
0.12659959495067596,
0.04624736309051514,
-0.05359623581171036,
-0.2606058418750763,
-0.32425546646118164,
-0.16472114622592926,
0.42323318123817444,
-0.2581154406070709,
0.10600935667753... | |
what's the best way to do this? I'm no command line warrior, but I was thinking there's possibly a way of using `grep` and `cat`.
I just want to replace a string that occurs in a folder and sub-folders. what's the best way to do this? I'm running ubuntu if that matters.
```
find . -type f -print0 | xargs -0 -n 1 sed -... | [
-0.020135488361120224,
0.009081360884010792,
0.39763209223747253,
0.08112896233797073,
0.23704709112644196,
-0.28925421833992004,
-0.06492281705141068,
0.31160441040992737,
-0.11682303994894028,
-0.9001742601394653,
-0.39246174693107605,
0.6567094922065735,
-0.33563846349716187,
0.16635037... | |
command to it. The `sed` command takes every instance of *from* and replaces it with *to*. That's a standard regular expression, so modify it as you need.
If you are using svn beware. Your .svn-directories will be search and replaced as well. You have to exclude those, e.g., like this:
```
find . ! -regex ".*[/]\.svn... | [
-0.2588209807872772,
-0.04481787979602814,
0.4795449674129486,
-0.037142470479011536,
0.21704651415348053,
-0.13689987361431122,
0.21635442972183228,
0.09155672043561935,
0.02668023481965065,
-0.7358546257019043,
-0.7077233195304871,
0.5002302527427673,
-0.3118874132633209,
0.1823971569538... | |
I want to create a sort of light/thick box that only acts on a single DIV within a page.
When mine fires off the first div(phantom\_back) acts as I want it but the second, phantom\_top sets its self after phantom\_back regardless of its z-index and positioning.
What am I doing wrong?
Here is what I have so far:
```
... | [
0.1524496227502823,
0.05893884599208832,
0.6875552535057068,
-0.2974558174610138,
-0.12520910799503326,
0.1486436426639557,
0.001751069794408977,
-0.4177473187446594,
0.017390061169862747,
-0.48358848690986633,
-0.12297631055116653,
0.5071104764938354,
-0.1166289672255516,
0.09666600078344... | |
document.getElementById('phantom_back').style.height = '100%';
document.getElementById('phantom_back').style.width = '100%';
phantom_top();
}
function phantom_top(image)
{
document.getElementById('phantom_top').style.zIndex = 102;
document.getElem... | [
-0.27453476190567017,
-0.13083018362522125,
0.9878667593002319,
-0.019031142815947533,
0.3803838789463043,
-0.1366310715675354,
0.123959980905056,
-0.14585816860198975,
-0.16136404871940613,
-0.1994217485189438,
-0.7919726371765137,
0.8468925952911377,
0.1477854698896408,
-0.09111777693033... | |
= 600;
document.getElementById('phantom_top').style.top = 0;
document.getElementById('phantom_top').style.left = 0;
}
//-->
</script>
</head>
<body>
<a href="#" onclick="phantom_back()">Change</a>
<div style="height: 700px; width: 700px; border: 2px black solid; margin:0... | [
-0.173580139875412,
-0.4294097125530243,
0.8961852192878723,
-0.08738125115633011,
0.09717971086502075,
0.12788498401641846,
0.2962566316127777,
-0.5519258379936218,
-0.14567695558071136,
-0.39894866943359375,
-0.5049290657043457,
0.6508834362030029,
-0.08770895004272461,
0.064137451350688... | |
<div style="height: 10px; width: 10px; position: relative; z-index: -3; margin: 0 auto; background-color: green;" id="phantom_top">asdf</div>
</div>
</body>
</html>
```
I was wandering why none of the tutorials I've been able to find offer something like this.
So, I got it. I set an absolute positioning on phant... | [
-0.41530975699424744,
-0.45428869128227234,
0.7820190787315369,
-0.2047431915998459,
-0.3117298185825348,
-0.07666828483343124,
0.07889938354492188,
-0.24478267133235931,
-0.16798141598701477,
-0.6181893348693848,
-0.08554113656282425,
0.48866599798202515,
0.12471814453601837,
-0.314689815... | |
{
document.getElementById('phantom_back').style.height = 700;
document.getElementById('phantom_back').style.width = 700;
document.getElementById('phantom_back').style.zIndex = 50;
phantom_top();
}
function phantom_top() | [
-0.3583425283432007,
-0.23349320888519287,
0.9381954073905945,
-0.09416590631008148,
0.4023365080356598,
-0.16859541833400726,
0.19991272687911987,
-0.13851182162761688,
-0.25058645009994507,
0.0008396413177251816,
-0.7181707620620728,
0.9388746619224548,
0.21704182028770447,
-0.0522744804... | |
{
document.getElementById('phantom_top').style.height = 600;
document.getElementById('phantom_top').style.width = 600;
document.getElementById('phantom_top').style.visibility = "visible";
}
//-->
</script>
</head>
<body>
<a href="#" onclick="phanto... | [
-0.32454684376716614,
-0.192804753780365,
0.8827546834945679,
0.024409236386418343,
0.2808750569820404,
0.05458797514438629,
0.28677311539649963,
-0.417371928691864,
-0.2165314257144928,
-0.3360394537448883,
-0.561820924282074,
0.6406461000442505,
0.138812854886055,
-0.060352716594934464,
... | |
id="overlord">
<div style="height: 10px; width: 10px; position: absolute; z-index: -1; background-color: #000000; filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5;" id="phantom_back"></div>
<div style="margin: 0 auto; text-align: center; height: 10px; width: 10px; position... | [
-0.529870867729187,
-0.4129534959793091,
0.8788661360740662,
0.04110382869839668,
-0.09858773648738861,
0.05191798135638237,
0.21736635267734528,
-0.67436283826828,
0.06038759648799896,
-0.446672260761261,
-0.31299352645874023,
0.6960995197296143,
-0.03755556792020798,
0.01988757587969303,... | |
How do I traverse a list in reverse order in Python? So I can start from `collection[len(collection)-1]` and end in `collection[0]`.
I also want to be able to access the loop index.
Use the built-in [`reversed()`](https://docs.python.org/library/functions.html#reversed) function:
```
>>> a = ["foo", "bar", "baz"]
>>>... | [
-0.09757018834352493,
0.13973596692085266,
0.48227381706237793,
-0.3908960223197937,
-0.13407297432422638,
0.28322094678878784,
0.26220571994781494,
-0.4600798487663269,
-0.186033234000206,
-0.46711769700050354,
-0.17266571521759033,
0.42129528522491455,
-0.5848351716995239,
0.007300402503... | |
Is there a way to use DecimalFormat (or some other standard formatter) to format numbers like this:
> 1,000,000 => 1.00M
>
>
> 1,234,567 => 1.23M
>
>
> 1,234,567,890 => 1234.57M
Basically dividing some number by 1 million, keeping 2 decimal places, and slapping an 'M' on the end. I've thought about creating a new... | [
0.25044602155685425,
0.034153226763010025,
0.3458682894706726,
0.16876220703125,
-0.05070621892809868,
0.09468192607164383,
-0.17742221057415009,
-0.2975219488143921,
-0.3303768038749695,
-0.37871238589286804,
0.16433539986610413,
0.15487460792064667,
0.09320735186338425,
0.339187622070312... | |
Unit unit)
{
NumberFormatter formatter = formatters.get(unit);
return formatter.format(value);
}
```
Note that because of this, I can't expect the client to divide by 1 million, and I can't just use String.format() without wrapping it in a NumberFormatter.
```
String.format("%.2fM", theNumber/ 1000000.0);
``... | [
0.2529798150062561,
-0.16957247257232666,
0.6623134613037109,
-0.375080943107605,
0.1651303917169571,
0.12164892256259918,
0.11507030576467514,
-0.7347967624664307,
-0.26639866828918457,
-0.6273115277290344,
-0.20796309411525726,
0.5470575094223022,
0.10858312994241714,
0.4272311329841614,... | |
We are computing something whose runtime is bound by matrix operations. (Some details below if interested.) This experience prompted the following question:
Do folk have experience with the performance of Java libraries for matrix math (e.g., multiply, inverse, etc.)? For example:
* [JAMA](http://math.nist.gov/javanu... | [
0.2559034526348114,
-0.13097675144672394,
0.4028443992137909,
0.20944899320602417,
0.03869733214378357,
0.1868503838777542,
0.3178337514400482,
-0.43408361077308655,
-0.2792075574398041,
-0.40897855162620544,
0.07697921991348267,
0.5786776542663574,
0.472115695476532,
-0.27555373311042786,... | |
Java 33 minutes, same machine. jvisualm profiling shows much time spent in RealMatrixImpl.{getEntry,isValidCoordinate} (which appear to be gone in unreleased Apache commons math 2.0, but 2.0 is no faster). Fortran is using Atlas BLAS routines (dpotrf, etc.).
Obviously this could depend on our code in each language, bu... | [
0.008877209387719631,
-0.15948235988616943,
0.025690121576189995,
-0.04422543942928314,
-0.30145081877708435,
-0.07073380053043365,
0.5563269853591919,
-0.2327696681022644,
-0.49236148595809937,
-0.6830917596817017,
0.3375634253025055,
0.2172330617904663,
-0.13783815503120422,
-0.281596541... | |
itself. The results are as follows.
Using multithreaded ATLAS with C/C++, Octave, Python and R, the time taken was around 4 seconds.
Using Jama with Java, the time taken was 50 seconds.
Using Colt and Parallel Colt with Java, the time taken was 150 seconds!
Using JBLAS with Java, the time taken was again around 4 s... | [
-0.040294960141181946,
-0.061454810202121735,
0.0356319360435009,
0.2687855660915375,
-0.14022928476333618,
0.08565598726272583,
0.32562243938446045,
-0.4723653197288513,
-0.26091423630714417,
-0.4732396900653839,
0.07732605934143066,
0.8290707468986511,
0.2623397409915924,
-0.456495761871... | |
I've got an Oracle 10g database, and I have a third-party jar file. I want to be able to run a SQL select query in my database that ultimately runs code in my third-party library to retrieve info for inclusion in a SQL result set. I see lots of tutorials on "Java stored procedures" and these seem to be a promising way ... | [
0.3588489294052124,
0.4881972670555115,
-0.24553479254245758,
-0.003498238744214177,
-0.07146643847227097,
0.027750158682465553,
0.3570787310600281,
-0.026397155597805977,
-0.05693637952208519,
-0.747905433177948,
0.2528485953807831,
0.46341758966445923,
-0.13376487791538239,
0.14323331415... | |
I do this?
You can load the JAR file into the database using the loadjava tool.
This tool accepts also .class, .java, .properties, .sqlj, .ser, .jar, or .zip files.
See the manual ( <http://docs.oracle.com/cd/B19306_01/java.102/b14187/cheleven.htm#CACFHDJE> ) for more information. | [
0.9205447435379028,
0.41227108240127563,
-0.061969682574272156,
-0.16066521406173706,
-0.16130296885967255,
-0.29910191893577576,
0.3209134340286255,
-0.10594531893730164,
-0.009041712619364262,
-0.19010905921459198,
0.17022813856601715,
0.434246301651001,
-0.18539109826087952,
0.273572802... | |
in .NET is there a function that returns the root letter (the letter without special attributes like cedilla), kinda:
```
Select Case c
Case "á", "à", "ã", "â", "ä", "ª" : x = "a"
Case "é", "è", "ê", "ë" : x = "e"
Case "í", "ì", "î", "ï" : x = "i"
Case "ó", "ò", "õ", "ô", "ö", "º" : x = "o"
Case "ú", "ù", "û... | [
0.1409175992012024,
-0.3072078824043274,
0.6947968602180481,
0.24416901171207428,
-0.05651050806045532,
0.06757451593875885,
0.06382143497467041,
0.03761879727244377,
0.05063173547387123,
-0.6428858637809753,
-0.23282134532928467,
0.3894299268722534,
-0.1151297390460968,
0.1079597622156143... | |
"Î", "Ï" : x = "I"
Case "Ó", "Ò", "Õ", "Ô", "Ö" : x = "O"
Case "Ú", "Ù", "Û", "Ü" : x = "U"
Case "ç" : x = "c"
Case "Ç" : x = "C"
Case Else
x = c
End Select
```
This code miss some letters, but it's only for the example sake :)
See if this works out for you:
<http://weblogs.asp.net/fmarguerie/arch... | [
-0.2687682509422302,
0.5240601301193237,
0.5710963010787964,
-0.24512138962745667,
0.25869515538215637,
0.389455109834671,
0.4036136567592621,
-0.25486084818840027,
-0.04095364362001419,
-0.24986521899700165,
-0.4072331190109253,
0.7442812919616699,
-0.044642459601163864,
-0.08978649973869... | |
I'm trying to use XPath to find all elements that have an element in a given namespace.
For example, in the following document I want to find the `foo:bar` and `doodah` elements:
```
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foo="http://foo.example.com">
<foo:bar quux="value">Content</foo:bar>
<widget>Co... | [
0.29450786113739014,
0.49011221528053284,
0.2853369414806366,
-0.08662892878055573,
-0.17443937063217163,
-0.030072256922721863,
0.03820203244686127,
-0.42232179641723633,
-0.09926795959472656,
-0.4864736497402191,
0.0446246899664402,
0.41052666306495667,
-0.33903560042381287,
0.0614256635... | |
and calculate the unique set of elements they correspond to?
Use:
```
//*[namespace-uri()='yourNamespaceURI-here'
or
@*[namespace-uri()='yourNamespaceURI-here']
]
```
the predicate two conditions are or-ed with the XPath `or` operator.
The XPath expression thus selects any element that either:
* belongs... | [
-0.0022286558523774147,
0.2524827718734741,
0.2766644060611725,
-0.0028904296923428774,
0.21905517578125,
-0.0011857615318149328,
-0.10140641778707504,
-0.284111350774765,
0.3667384386062622,
-0.45286649465560913,
-0.23748543858528137,
0.7227762341499329,
-0.09934378415346146,
-0.259121209... | |
We are trying to prevent users from typing beyond the maximum characters our DB allows for text area fields in our web app. Once they have reached the max length allowed in the text area we would still like to allow them to hit keys that are non-printing for example: `Tab`, `backspace`, `ctrl`+`s`, etc.
I'm wondering ... | [
0.3239157795906067,
0.05631601810455322,
0.3977855145931244,
-0.07250047475099564,
-0.12871381640434265,
-0.12242157757282257,
0.39425864815711975,
-0.24254384636878967,
0.13072405755519867,
-0.5893767476081848,
0.027514686807990074,
0.47246018052101135,
-0.19344496726989746,
0.08099011331... | |
I have a string of values separated by a space that I return to the Jquery call, but it does not separate the words into rows. Should the data be returned as a string or a list or something else?
By default it wants the results separated by newlines. If you supply a list of values separated by spaces you'll want to pro... | [
0.24580293893814087,
-0.031365714967250824,
0.21891823410987854,
-0.06782403588294983,
-0.08068685233592987,
0.151964470744133,
-0.17227406799793243,
-0.13535864651203156,
-0.13043710589408875,
-0.46775349974632263,
0.07945165783166885,
0.23547935485839844,
-0.2093656212091446,
0.136172339... | |
list of strings via JSON from an MVC action.
```
$('#eventName').autocomplete( '<%= Url.Action("SearchEvent", "Donor" ) %>', {
dataType: "json",
formatItem: function(data,i,max,value,term){
return value;
},
parse: function(data){
var array = new Array();
for(var i=0;i<data.length... | [
-0.16792242228984833,
-0.2932845950126648,
0.2979712188243866,
-0.3514297604560852,
-0.1795150488615036,
0.4118112623691559,
0.17586934566497803,
-0.44069236516952515,
-0.2718023359775543,
-0.34438613057136536,
-0.3894699215888977,
0.3017658591270447,
-0.5345168709754944,
0.182272493839263... | |
return array;
}
});
``` | [
-0.1661682426929474,
0.10788722336292267,
0.1697368621826172,
-0.46691980957984924,
0.03117290697991848,
-0.0885746031999588,
0.42457252740859985,
-0.0512830913066864,
0.1552862673997879,
-0.23690126836299896,
-0.5068626999855042,
0.7294524312019348,
-0.47163859009742737,
0.208344325423240... | |
I'm trying to return sequence.nextval to my program from a proc stored in a package. I'm pretty green when it comes to PL/SQL and I'm kind of at a loss as to what is happening. The error that is actually being return is
PLS-00306: Wrong number or types of arguments in call to PROCGET\_BOOKMARKID line 1, column 7 stat... | [
-0.050606220960617065,
0.16895900666713715,
0.3548700511455536,
-0.36562761664390564,
0.06675047427415848,
0.27787503600120544,
0.3894455134868622,
-0.25187212228775024,
-0.09666594117879868,
-0.6871227622032166,
-0.11288922280073166,
0.7129383683204651,
-0.43655961751937866,
0.15399666130... | |
NUMBER);
end BOOKMARKS;
```
And the proc for get\_bookmark\_id looks like this (the other procs work fine so I'm not going to post them)...
```
procedure procGet_Bookmark_Id(bookmarkId out NUMBER)
IS
BEGIN
SELECT seq_bookmarks.nextval INTO bookmarkId
FROM dual;
END procGet_Bookmark_Id;
```
No... | [
-0.22446733713150024,
0.1131574809551239,
0.5858906507492065,
-0.25996124744415283,
0.07715339213609695,
0.21145115792751312,
0.38888710737228394,
-0.3242189884185791,
-0.0687950998544693,
-0.8387751579284668,
-0.3116084933280945,
0.684707522392273,
-0.29899075627326965,
0.2997462749481201... | |
in my PL/SQL and that would make sense because I've hardly used it. Any ideas?
**EDIT**
Ok, so here is the code that is actually making the call.
```
DataOperationResult result = DataAccess.GetBookmarkId();
DataRow currResult = result.DataTableResult.Rows[0];
```
Where DataAccess is a class of just queries and th... | [
0.19730524718761444,
0.17667517066001892,
0.7170615792274475,
-0.06356105208396912,
0.19632035493850708,
-0.18488076329231262,
0.06406889110803604,
-0.23739208281040192,
-0.18715564906597137,
-0.5612989068031311,
-0.16463391482830048,
0.6348088383674622,
-0.2960106432437897,
0.157774150371... | |
of what's happening though.
I've just compiled your package, in `PL/SQL Developer` it works fine.
The problem seems to be with the datatypes in your `C#` code.
From what I see in description, you don't bind any parameters. You should bind parameters somewhere in your code, like
```
OracleParameter bid = new OraclePa... | [
0.10779391974210739,
-0.06528958678245544,
0.4441431760787964,
0.2251024842262268,
-0.1216590479016304,
0.08388403058052063,
0.17020100355148315,
-0.6698899269104004,
-0.0862174779176712,
-0.7252227067947388,
-0.04523719847202301,
0.7470612525939941,
-0.23530696332454681,
0.256939589977264... | |
to be able to do. | [
0.4003564715385437,
0.0991663932800293,
-0.13249798119068146,
-0.01441003754734993,
0.10435967147350311,
0.0007966087432578206,
0.38596677780151367,
-0.10524630546569824,
-0.2124718725681305,
-0.464309960603714,
-0.07717835158109665,
0.14162391424179077,
-0.13323435187339783,
0.27653414011... | |
Is it possible to send attributes in a SAML authentication request?
```
<samlp:AuthnRequest
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="aaf23196-1773-2113-474a-fe114412ab72"
Version="2.0"
IssueInstant="2004-12-05T09:21:59Z"
AssertionConsum... | [
-0.11784375458955765,
0.021983124315738678,
0.8091381192207336,
0.023437615483999252,
-0.017474856227636337,
-0.32033681869506836,
0.32467466592788696,
-0.4285230040550232,
-0.11013557761907578,
-0.18233682215213776,
-0.5013774633407593,
0.3645535707473755,
-0.051126785576343536,
-0.144696... | |
this way.
I can't see a more 'conventional' way to do this, since Attributes are usually in Assertions, rather than AuthnRequests. | [
0.1808643788099289,
0.333255410194397,
0.06760600209236145,
0.3278232514858246,
-0.2207787185907364,
-0.1979357898235321,
0.22202718257904053,
-0.21883141994476318,
0.06389802694320679,
-0.3677407503128052,
0.0439116545021534,
0.8166230916976929,
0.4139409065246582,
0.09667002409696579,
... | |
how do I make a pointer to a multidimensional array, which have a unknown size? I've tried this:
`int **triangles;`
`triangles = new int[numTriangles][3];`
But i get this error:
`cannot convert 'int (*)[3]' to 'int**' in assignment`
```
triangles = new int[numTriangles*3];
```
Then access it as:
```
triangles[nu... | [
0.019263019785284996,
0.09563178569078445,
0.2337328940629959,
-0.021923793479800224,
-0.22980047762393951,
0.168767511844635,
0.32176047563552856,
-0.5607678294181824,
-0.34164959192276,
-0.8039413690567017,
-0.14246156811714172,
0.6202002167701721,
-0.24464969336986542,
-0.07819700241088... | |
data[y * w + x]; }
T const& operator()(int x, int y) const { return data[y * w + x]; }
private:
std::vector<T> data;
int w, h;
};
// usage:
int main() {
Matrix<float> triangles(numTriangles, 3);
triangles(triangleIndex, vertexIndex) = blah;
}
```
If, on the other hand, you actually want an array... | [
0.04544125497341156,
-0.27649006247520447,
0.3629230558872223,
0.0014216355048120022,
-0.21785862743854523,
0.3237316310405731,
0.13433587551116943,
-0.5671436190605164,
-0.45964014530181885,
-0.633906364440918,
-0.2551640570163727,
0.4715752899646759,
-0.4012637734413147,
-0.0483137071132... | |
I just ran across this error message while working in C#
> A property or indexer may not be passed as an out or ref parameter
I known what caused this and did the quick solution of creating a local variable of the correct type, calling the function with it as the `out`/`ref` parameter and then assigning it back to th... | [
0.11585409194231033,
0.12398896366357803,
0.39616745710372925,
-0.11419030278921127,
-0.12039373070001602,
-0.1575993299484253,
0.5276979804039001,
-0.3380720913410187,
-0.08355607837438583,
-0.386097252368927,
-0.11117018014192581,
0.7098636627197266,
-0.5290094614028931,
0.38428610563278... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.