text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
recursion in the instantiation of templates
* Calling a function using different parameters or linkage to the parameters and linkage that the function is defined as using.
### OOP
* Cascading destructions of objects with static storage duration
* The result of assigning to partially overlapping objects
* Recursively ... | [
-0.039805807173252106,
-0.3731310963630676,
0.24656029045581818,
0.0832972377538681,
-0.256195992231369,
0.08042996376752853,
0.4022051990032196,
-0.44348761439323425,
-0.4606114625930786,
-0.29040637612342834,
-0.5132310390472412,
0.4642939567565918,
-0.513181209564209,
0.0081476494669914... | |
or ends with a backslash (prior to C++11)
* A backslash followed by a character that is not part of the specified escape codes in a character or string constant (this is implementation-defined in C++11).
* Exceeding implementation limits (number of nested blocks, number of functions in a program, available stack space ... | [
-0.10542921721935272,
-0.0032730523962527514,
0.2736280560493469,
-0.3245823085308075,
0.07344184815883636,
0.02093246765434742,
0.3860641419887543,
-0.0958370715379715,
-0.42877882719039917,
-0.14901404082775116,
-0.41098374128341675,
0.10689455270767212,
-0.14643187820911407,
0.253619998... | |
I have a Solaris daemon written in Java6. Clients can connect to it using a telnet style interface. They telnet to a particular port, and I read lines of input and act on them.
At one point in I need to prompt the user to enter a password, and while they're entering that I want to disable the echoing of characters bac... | [
0.32021036744117737,
-0.008024182170629501,
0.3098401427268982,
-0.12178217619657516,
-0.18628975749015808,
0.27143150568008423,
-0.14984826743602753,
0.01899578608572483,
0.014666100032627583,
-0.91908198595047,
0.03391166403889656,
0.43238696455955505,
-0.456206738948822,
0.1285809874534... | |
InputStream or the Socket to disable the echoing of characters back to the client.
Can someone nudge me in the right direction?
Sounds like you need to build a simple Network Virtual Terminal that supports the no echo etc commands. There is already a good answer you should refer to on SO : [Telnet Server](https://stac... | [
0.293512225151062,
0.03462665155529976,
0.3216414451599121,
0.08646050840616226,
-0.010811674408614635,
-0.03435865789651871,
0.41372331976890564,
0.1940254420042038,
-0.3372375965118408,
-0.5160989761352539,
0.18609175086021423,
0.45866602659225464,
0.00015030946815386415,
0.0627997070550... | |
I need to get substed drive letter in Perl. Could anyone kindly help me?
$ENV{SYSTEMDRIVE} does not work; it gives me real logical drive letter, not the substed one.
```
perl -e 'use Cwd; print( substr(getcwd(),10,1 )) ' # prints 10th char.
``` | [
0.03375707194209099,
0.01462525874376297,
0.5349664092063904,
0.10909876227378845,
0.0441986583173275,
-0.06391381472349167,
0.3433835506439209,
0.10990633815526962,
0.05806411802768707,
-0.3465530574321747,
-0.17300377786159515,
0.7042095065116882,
-0.12187626212835312,
0.3064859211444855... | |
To summarize, as we all know,
a) Silverlight is expected to be hosted by a browser, and runs in an isolated sandbox so that there won’t be any security issues
1. Silverlight don’t have direct access
to the file system, other than the
isolated storage area
2. There is no
direct way to open common dialog
boxes like F... | [
0.45280924439430237,
0.16899573802947998,
0.2803763449192047,
-0.04412548616528511,
-0.24501022696495056,
-0.3289377987384796,
0.1779351830482483,
-0.009534619748592377,
-0.21276284754276276,
-0.6034383773803711,
0.07614953070878983,
-0.013402001932263374,
-0.3919374942779541,
-0.006641985... | |
to a printer, and so on..
**Update:**
Is full WPF is not an option for me? No. I'm also interested in a cross platform solution - for instance, you could host Silverlight in Mono Web browser control, so that you can run it virtually anywhere.
The idea is to re-use the same application that I'm building for web in my... | [
0.5854600071907043,
-0.06022496148943901,
0.5892304182052612,
0.028542490676045418,
-0.15247006714344025,
-0.34920743107795715,
-0.11419359594583511,
-0.05778169259428978,
-0.5757775902748108,
-0.6862500309944153,
0.00832228921353817,
0.3192974627017975,
-0.32358136773109436,
-0.1273911744... | |
me to access printer and save files locally, of course through a shell where I'm hosting my Silverlight application. If you wan't you can have a look at the post [here in my blog](http://amazedsaint.blogspot.com/2008/12/thinking-outside-silverlight-sandbox.html)
Two ways I can think about is,
**Create a "Shell"**
Hos... | [
0.550140917301178,
0.3123011291027069,
0.2090657651424408,
-0.16256076097488403,
-0.3177296221256256,
0.09108183532953262,
0.3030698001384735,
-0.2964073717594147,
-0.2920149862766266,
-0.6714674830436707,
0.31607913970947266,
0.5859693288803101,
-0.09239500761032104,
-0.04898015037178993,... | |
Silverlight inside that. Another option might be using Webkit.

**Embed a web server**
Embed a light weight web server with in the Host application, and handle requests to perform such operations. You can pr... | [
0.3870258331298828,
0.11562540382146835,
0.32393234968185425,
0.04324328526854515,
-0.37871813774108887,
-0.32242581248283386,
0.23827864229679108,
-0.290649950504303,
-0.37322184443473816,
-0.4532244801521301,
0.08935397863388062,
0.15629707276821136,
-0.09250760078430176,
0.0544590502977... | |
I would like to execute the jQuery $(document).ready() in a drupal site. While i know that i can just stick it in the index page , this is really messy and a hack.
What i want to know is where is the correct location to put this, it would also need to be theme specific as i dont want all themes to use it.
Thanks in ... | [
0.5377216935157776,
0.16517044603824615,
0.6255944967269897,
0.5655301809310913,
-0.10294660180807114,
-0.574047863483429,
0.295377254486084,
0.20744620263576508,
-0.1010092943906784,
-0.8078741431236267,
-0.12022026628255844,
0.2711808383464813,
0.35903745889663696,
0.2934205234050751,
... | |
execute the jQuery code to update the document , can i use the context to modify the document ?
VonC adequately answered the "how" part of the question, so I'll focus on the "where" part.
If the script is theme-specific, then the natural place to put the script file is in your theme. The problem is that by the time Dr... | [
0.07614614814519882,
-0.18109451234340668,
0.634638786315918,
-0.03613302484154701,
0.0790950208902359,
-0.3765188753604889,
0.1895507276058197,
-0.12652264535427094,
-0.0821441039443016,
-0.6015012860298157,
-0.25017741322517395,
0.5459077954292297,
-0.0368560254573822,
0.1186108440160751... | |
go in your `theme_preprocess_page()` function:
```
drupal_add_js(drupal_get_path('theme', 'theme_name') .'/example.js', 'theme');
$variables['scripts'] = drupal_get_js();
```
Just change the second argument of `drupal_get_path()` to reflect the name of your theme, then change the name of the script file from `exampl... | [
-0.1936972439289093,
-0.11561468988656998,
0.6997026205062866,
-0.10880178958177567,
0.3720241189002991,
-0.1783347874879837,
0.2580968141555786,
0.10839661210775375,
-0.14578759670257568,
-0.8080284595489502,
-0.6828182339668274,
0.5702446699142456,
-0.28371116518974304,
0.179979145526886... | |
What is the standard way of incorporating helper/utility functions in Obj-C classes?
I.e. General purpose functions which are used throughout the application and called by more than 1 class.
Can an Obj-C method exist outside of a class, or does it need to be a C function for it to have this kind of behaviour?
There a... | [
0.259676456451416,
-0.19159966707229614,
-0.03055485151708126,
0.2431444674730301,
-0.01490234024822712,
-0.08541376143693924,
0.10247515887022018,
-0.17833222448825836,
-0.33322739601135254,
-0.3825932741165161,
-0.08041843771934509,
0.6324691772460938,
-0.6869690418243408,
-0.01316661946... | |
source file (.m file) you can then call back into/use objects.
If your generic functions are logically manipulating other, established objects (for instances, operates on an NSString), you can use categories to graph your functions on already existing classes (where that makes sense).
Finally, as Tony points out, you... | [
0.4092053472995758,
0.022381793707609177,
-0.061000265181064606,
0.29168403148651123,
-0.059421442449092865,
-0.14613807201385498,
0.15951083600521088,
0.10146233439445496,
-0.24163086712360382,
-0.7752056121826172,
-0.02672065980732441,
0.7321522831916809,
-0.3595060706138611,
0.161955952... | |
It looks like if I load dynamic content using `$.get()`, the result is cached in browser.
Adding some random string in QueryString seems to solve this issue (I use `new Date().toString()`), but this feels like a hack.
Is there any other way to achieve this?
Or, if unique string is the only way to achieve this, any s... | [
0.03043997660279274,
-0.028177371248602867,
0.6678914427757263,
0.03250652179121971,
0.03239819407463074,
-0.2034309208393097,
0.4095039665699005,
-0.06046553701162338,
-0.3216257095336914,
-0.5039187073707581,
-0.08518188446760178,
0.4233907163143158,
-0.24819859862327576,
0.3912135064601... | |
it), but **there are better/cleaner ways of achieving this now**. My preference is for [this](https://stackoverflow.com/a/735084/43140) method, but [this](https://stackoverflow.com/a/735101/43140) answer is also useful if you want to disable caching for *every* request during the lifetime of a page. | [
-0.11868385970592499,
-0.1481291800737381,
0.3999824821949005,
0.15433678030967712,
0.0383649542927742,
-0.2922789454460144,
0.4909239411354065,
-0.01754740998148918,
-0.3158559203147888,
-0.5894091725349426,
-0.4934997856616974,
0.2458982616662979,
-0.34126171469688416,
0.140902578830719,... | |
I am using `Path.Combine`, and one of the strings contain a Unicode characters. I get `{System.ArgumentException} exception; illegal characters in path`.
According to [MSDN](http://msdn.microsoft.com/en-us/library/aa365247.aspx) filepath/name can have unicode characters. Why do I get this exception?
### Edit:
Here i... | [
0.3154942989349365,
0.24171137809753418,
0.25400424003601074,
0.072175994515419,
0.008284695446491241,
0.013564727269113064,
0.37392812967300415,
-0.1849021464586258,
-0.2668828070163727,
-0.7886538505554199,
0.012683816254138947,
0.47750306129455566,
-0.39581260085105896,
0.14724206924438... | |
Can anyone tell me how to write a nested SQL query like
SELECT \* FROM X WHERE X.ID IN (SELECT Y.XID FROM Y WHERE .....)
in LINQ?
You could try:
```
var yIds = from y in dataContext.Y
where ...
select y.XId;
var query = from x in dataContext.X
where yIds.Contains(x.Id)
... | [
0.14476077258586884,
0.10770118236541748,
0.3486613929271698,
0.25391656160354614,
-0.10385411977767944,
-0.13936369121074677,
-0.08099880814552307,
-0.06181987747550011,
-0.04775911197066307,
-0.5055025219917297,
0.0849156379699707,
0.4820522665977478,
-0.07751533389091492,
0.022513715550... | |
why you don't want to just do a join instead? For instance:
```
var query = from x in dataContext.X
join y in dataContext.Y.Where(...) on x.Id equals y.Xid
select x;
``` | [
-0.03633822500705719,
-0.20241142809391022,
0.041950661689043045,
0.05031410604715347,
-0.11491281539201736,
-0.2744253873825073,
-0.03110755980014801,
-0.12053672224283218,
-0.09119481593370438,
-0.23227307200431824,
-0.10098692029714584,
0.2791818380355835,
-0.5602002143859863,
0.1979988... | |
Below is my stored procedure. I want use stored procedure select all row of date from tbl\_member and insert 2 table. But it's not work. Some one can help me?
```
Create PROCEDURE sp_test
AS
BEGIN
SET NOCOUNT ON;
Declare @A Varchar(255), @B Varchar(255), @C Varchar(255), @D int
Declare Table_Cursor Curso... | [
-0.013556128367781639,
0.1442532241344452,
0.6913847923278809,
-0.2828672528266907,
0.02279927022755146,
0.3445497453212738,
-0.050491541624069214,
-0.6501591205596924,
-0.1774388700723648,
-0.5652125477790833,
0.17876774072647095,
0.381630539894104,
-0.3751276135444641,
0.2526765167713165... | |
'insert into NewMember (A, B, C, D) values (@A, @B, @C, @D)
set @D = @@IDENTITY
Insert into MemberId (Mid) VALUES(@D)
)
Fetch Next From Table_Cursor Into @A, @B, @C End Close Table_Cursor
Deallocate Table_Cursor
END
GO
```
The first thing I can see here is that you are using a cursor whe... | [
-0.33309051394462585,
-0.04191257804632187,
0.8599742650985718,
-0.047316040843725204,
0.36405763030052185,
0.14662452042102814,
-0.11659535020589828,
-0.42056992650032043,
-0.17285171151161194,
-0.7754121422767639,
-0.18510644137859344,
0.4919489622116089,
-0.21298563480377197,
0.04399752... | |
D
FROM tbl_member
```
Then, I would have an INSERT trigger against NewMember that inserted the identity column.
```
create trigger myInsertTrigger
on newmember
for insert
as
insert into memberid(mid)
select <<identity_column>> from inserted
```
BTW - it's a bad idea to use @@IDENTITY to get the identity of an inse... | [
0.15208378434181213,
-0.1660221517086029,
0.308752179145813,
-0.2855832874774933,
0.26459547877311707,
-0.15001280605793,
-0.0020414062310010195,
-0.3846570551395416,
0.2081300914287567,
-0.6303741931915283,
-0.059412144124507904,
0.7606396675109863,
-0.3722602128982544,
0.3619869649410248... | |
If someone logs on to my application this user contains a dictionary with certain permissions.
```
ex: module.view.workspace = true
module.view.reporting = false
...
```
Then we know to what parts of the application the user has access.
What I want to know is how we can apply these permissions on the view.
W... | [
0.43100398778915405,
0.14706715941429138,
0.5738122463226318,
0.06625071167945862,
0.3229941129684448,
-0.18946269154548645,
0.15106253325939178,
-0.2537643313407898,
-0.2056078016757965,
-0.800086498260498,
-0.008343128487467766,
0.8054234981536865,
-0.1155211478471756,
0.2137989848852157... | |
SecurityManager class that has a function called hasAccess("permission").
This object will check the PermissionObject in the modellocator and return true/false.
In the view we just check if the user has access and then show the control.
```
If (SecurityManager.hasAccess("module.view.workspace") {
// code that gen... | [
0.031389180570840836,
-0.14141418039798737,
0.2576743960380554,
0.21553701162338257,
0.10974638909101486,
-0.2148323953151703,
0.139319509267807,
-0.4650096595287323,
-0.020734313875436783,
-0.530636727809906,
-0.037379078567028046,
0.9032468795776367,
-0.1848304569721222,
-0.1361128091812... | |
*
FROM Call
WHERE phone_number NOT IN (SELECT phone_number FROM Phone_book)
```
alternatively (thanks to [Alterlife](https://stackoverflow.com/users/36848/alterlife))
```
SELECT *
FROM Call
WHERE NOT EXISTS
(SELECT *
FROM Phone_book
WHERE Phone_book.phone_number = Call.phone_number)
```
or (than... | [
-0.08448061347007751,
0.28331515192985535,
0.4433022439479828,
-0.02733328752219677,
-0.05468442663550377,
0.21968768537044525,
0.18380267918109894,
-0.008429846726357937,
-0.31313350796699524,
-0.6238373517990112,
-0.1928054541349411,
0.46166008710861206,
-0.29099541902542114,
-0.09023503... | |
> Possible duplicate
> [Debug Visual Studio Release in .NET](https://stackoverflow.com/questions/90871/debug-vs-release-in-net)
What is the difference between Debug and Release in Visual Studio?
The most important thing is that in Debug mode there are no optimizations, while in Release mode there are optimizations. T... | [
0.3997257947921753,
-0.0013752526137977839,
-0.05497247353196144,
0.09011947363615036,
-0.11201194673776627,
-0.0505094975233078,
0.291015088558197,
-0.03923659771680832,
-0.31695324182510376,
-0.6357804536819458,
-0.17868484556674957,
0.6467254161834717,
-0.4043850302696228,
-0.1124859377... | |
often don't work because the variable is "optimized away". And there are multitudes of other optimizations too. Try debugging optimized .NET code sometime and you'll see.
Another key difference is that because of this the default Release settings don't bother with generating extensive debug symbol information. That's ... | [
0.20861662924289703,
0.021772712469100952,
0.1861540526151657,
0.057438094168901443,
0.3371843993663788,
-0.2634733021259308,
0.4582062363624573,
-0.00924823060631752,
-0.08676108717918396,
-0.7113673686981201,
-0.23742200434207916,
0.5269808173179626,
-0.39401134848594666,
-0.064002998173... | |
I'm trying to use a dll, namely libcurl, with my program, but, it's not linking. Libcurl comes with .h files that I can include (takes care of dllimport), but then I guess I must specify which dll to actually use when linking somehow... How do I do that? I'm compiling with Borland C++ builder, but I really want to know... | [
0.12854571640491486,
-0.16485385596752167,
0.864864706993103,
-0.2244412899017334,
-0.11594399809837341,
-0.17741508781909943,
0.40190306305885315,
-0.3341992199420929,
-0.2258930206298828,
-0.547196626663208,
-0.32943081855773926,
0.7137283682823181,
-0.561263382434845,
-0.013594137504696... | |
return false;
}
}
```
And here are the errors:
```
[Linker Error] Error: Unresolved external '_curl_easy_init' referenced from C:\PROJECTS\PC\TOOLBOX\DEBUG_BUILD\FTPGETFILE.OBJ
[Linker Error] Error: Unresolved external '_curl_easy_setopt' referenced from C:\PROJECTS\PC\TOOLBOX\DEBUG_BUILD\FTPGETFILE.OBJ
[Linker Er... | [
0.051906343549489975,
0.3604348301887512,
0.3646160364151001,
-0.1894911527633667,
-0.0663989782333374,
-0.1556682288646698,
0.4917457699775696,
-0.19885921478271484,
0.0022048200480639935,
-0.6271199584007263,
-0.24071723222732544,
0.7817729711532593,
-0.5436391234397888,
0.07681790739297... | |
convention.
You didn't mention which version of Builder you are using, but
it is usually under Project options - Advanced compiler - Calling convention.
* You may need to enable MFC compatibility option.
* It could be a name mangling issue (Project options - C++ compatiblity options).
* Or generation underscores
* Or a... | [
0.5077602863311768,
0.06827089935541153,
0.2912168502807617,
-0.22856074571609497,
-0.24734163284301758,
-0.5248546004295349,
0.398945152759552,
-0.2529008984565735,
-0.07093397527933121,
-0.549291729927063,
0.0015407026512548327,
0.8127105236053467,
-0.49900391697883606,
-0.04194943606853... | |
C coded DLLs should work. | [
0.19059254229068756,
-0.1517563760280609,
-0.08168723434209824,
0.4272525906562805,
-0.1976681351661682,
-0.4596262276172638,
-0.11509203165769577,
0.387708455324173,
-0.23098450899124146,
-0.5477576851844788,
-0.43191272020339966,
0.4801251292228699,
-0.28510582447052,
-0.2219530940055847... | |
How does the processing overhead of the length() function in REXX change with the length of the string?
---
Update: I'm using:
* uni-REXX (R) Version 297t
* Open-REXX
(TM) Copyright (C) iX Corporation
1989-2002. All rights reserved.
The overhead is 0. The length is stored in a descriptor.
Neil Milsted
Author of uni... | [
0.41446176171302795,
0.14024588465690613,
0.231667622923851,
0.15853609144687653,
0.01699024625122547,
-0.24046072363853455,
0.40949249267578125,
0.002155215246602893,
-0.29452553391456604,
0.09070370346307755,
-0.16918449103832245,
0.5039762258529663,
-0.559345543384552,
0.296428084373474... | |
Is there a htop/top on Linux where I get to sort processes by network usage?
[jnettop](https://sourceforge.net/projects/jnettop/) is another candidate.
edit: it only shows the streams, not the owner processes. | [
0.2638651430606842,
-0.4472181797027588,
0.19297532737255096,
0.3833464980125427,
0.048411138355731964,
-0.28501203656196594,
-0.15839116275310516,
0.36124274134635925,
-0.6237651109695435,
-0.43609628081321716,
-0.19355474412441254,
0.2024640142917633,
-0.33427390456199646,
-0.08975958079... | |
Is there any way to detect if the iPhone wakes up from sleep while you're app is running? Eg: your app is running, the user locks the screen (or the screen auto locks) and some time later the user unlocks the screen and up pops your app. Is there some way to get an event at that point or detect it somehow?
I've tried... | [
0.2872268855571747,
-0.14629173278808594,
0.46584078669548035,
0.08956698328256607,
0.132289320230484,
-0.2225712537765503,
0.4642409384250641,
0.32014188170433044,
-0.5056583881378174,
-0.5258954167366028,
-0.24994640052318573,
0.48045283555984497,
0.033213432878255844,
-0.210044279694557... | |
I'm trying to replace every multiline import inside a Python source file.. So, the source goes like
```
from XXX import (
AAA,
BBB,
)
from YYY import (
CCC,
DDD,
EEE,
...
)
...other instructions...
```
and I'd like to get something like
```
from XXX import AAA, BBB
from YYY import CCC, DDD, EEE, .... | [
0.3345075249671936,
0.4562426805496216,
-0.014821489341557026,
-0.24622346460819244,
-0.056402064859867096,
0.055058401077985764,
0.21592800319194794,
0.35238340497016907,
-0.1134064644575119,
-0.5457320809364319,
-0.1404910534620285,
0.6217656135559082,
-0.610862672328949,
0.0158481318503... | |
Python?
```
lineIter= iter(aFile)
for aLine in lineIter:
if aLine.startswith("import"):
if aLine.endswith("("):
for aModule in lineIter:
if aModule.endwith(")"):
break
print "import", aModule.strip()
else: | [
-0.004699552431702614,
-0.1439133882522583,
0.047504033893346786,
-0.2726456820964813,
-0.10256209224462509,
0.36513933539390564,
0.26054006814956665,
-0.1208590492606163,
-0.33898353576660156,
0.011187972500920296,
-0.6979376673698425,
0.547970712184906,
-0.6456922292709351,
-0.5112129449... | |
print aLine.stri()
else:
print aLine.strip()
``` | [
0.4392205774784088,
-0.21807929873466492,
0.2616818845272064,
-0.06545615196228027,
-0.36993226408958435,
0.4874529242515564,
-0.24457499384880066,
-0.18236355483531952,
-0.2347920835018158,
-0.5596925020217896,
-0.35725709795951843,
0.2847963273525238,
-0.6610878705978394,
0.0537820160388... | |
Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of files (dirs, subdirs) mapped in a treeview in C#?
It would be great to have some code samples.
For a quick linear undo/redo, you can use [Memento pattern](http://www.dofactory.com/Patterns/PatternMemento.aspx) using zip of file a... | [
0.4203295111656189,
-0.2751617431640625,
-0.03173457831144333,
0.188829243183136,
-0.02037137560546398,
0.024822015315294266,
0.11296870559453964,
-0.21699316799640656,
-0.3342556953430176,
-0.7719947099685669,
0.08883611112833023,
0.14482244849205017,
-0.04966539144515991,
0.0768591687083... | |
I have an HTML form with two buttons as follows:
```
<input type="submit" name="confirm" value="Yes, Delete" />
<button name="confirm" type="button" onclick="history.back()" value="No, Go Back">No, Go Back</button>
```
Now, when I click on either in Firefox, the behavior is as expected. If I click the submit button... | [
-0.03282398357987404,
0.07539107650518417,
0.5924091935157776,
-0.19019128382205963,
-0.13277415931224823,
-0.19811630249023438,
0.07160201668739319,
0.043411653488874435,
-0.20073825120925903,
-0.9781137704849243,
-0.028734240680933,
0.6667871475219727,
-0.2949184477329254,
0.025458568707... | |
the "*last match wins*" game.
([see bug/feature report here](http://webbugtrack.blogspot.com/2008/06/bug-or-feature-round-three.html))
In general, I would name the buttons differently unless they are part of a radio/checkbox set. | [
0.014071694575250149,
-0.048138413578271866,
0.22344379127025604,
-0.2448369264602661,
0.12502171099185944,
-0.0000054202469073061366,
0.04582865163683891,
0.02494429238140583,
-0.30010586977005005,
-0.4817971885204315,
0.312501460313797,
0.6629800200462341,
-0.14212839305400848,
-0.029713... | |
I have a dataset in a worksheet that can be different every time. I am creating a pivottable from that data, but it is possible that one of the PivotItems is not there. For example:
```
.PivotItems("Administratie").Visible = False
```
If that specific value is not in my dataset, the VBA script fails, saying that it ... | [
0.3448995351791382,
-0.09658792614936829,
0.4781569242477417,
-0.21831975877285004,
-0.24962729215621948,
0.23505380749702454,
0.05083382874727249,
-0.6517461538314819,
-0.3403250277042389,
-0.25892698764801025,
0.09645158797502518,
0.5626751780509949,
-0.5396608710289001,
0.15495756268501... | |
91 error at the For Each pvtItem line:
```
Object variable or With block variable not set
```
I thought I declared the variables well enough, but I am most likely missing something obvious...
I've got it! :D
```
Dim Table As PivotTable
Dim FoundCell As Object
Dim All As Range
Dim PvI As PivotItem
Set All = Wor... | [
0.011996685527265072,
-0.06053456664085388,
0.5075522065162659,
-0.2580712139606476,
-0.02827306278049946,
0.12930907309055328,
0.2807309627532959,
-0.48713454604148865,
-0.2212163358926773,
-0.2501167058944702,
-0.17271161079406738,
0.4906853437423706,
-0.23618219792842865,
-0.09710854291... | |
PvI.Visible = False
End If
Next
```
woohoo
Thanks to MrExcel, the answer *was* there after all, though deeply buried. | [
0.24116331338882446,
-0.07983365654945374,
0.06853868067264557,
0.353500097990036,
-0.14883844554424286,
-0.22848254442214966,
0.08878152072429657,
0.21848829090595245,
-0.26277729868888855,
-0.38128533959388733,
-0.20372025668621063,
0.265691339969635,
-0.29589203000068665,
-0.02624586038... | |
I have some code that prints out databse values into a repeater control on an asp.net page. However, some of the values returned are null/blank - and this makes the result look ugly when there are blank spaces.
How do you do conditional logic in asp.net controls i.e. print out a value if one exists, else just go to n... | [
0.13941515982151031,
-0.05341430380940437,
-0.22233232855796814,
0.0597953274846077,
-0.17849208414554596,
-0.1539512574672699,
0.38527438044548035,
-0.020430168136954308,
0.022310588508844376,
-0.4383230209350586,
0.20339186489582062,
0.3872002959251404,
-0.1571645438671112,
-0.2209352701... | |
of values I am getting back from my database. (It is common for **Address 2** not to have a value at all).
```
<div id="results">
<asp:Repeater ID="repeaterResults" runat="server">
<ItemTemplate>
Company: <strong><%#Eval("CompanyName") %></strong><br />
Contact Name: <strong>... | [
-0.11557209491729736,
0.3771926164627075,
0.534618616104126,
-0.31375598907470703,
0.06321322917938232,
0.3388367295265198,
0.09843606501817703,
-0.3367723226547241,
-0.3517220914363861,
-0.4747045338153839,
-0.4280236065387726,
0.43653008341789246,
-0.2013428807258606,
0.23074060678482056... | |
<strong><%#Eval("Address2")%></strong><br />..................
```
Many thanks
It's going to be a pretty subjective one this as it completely depends on where and how you like to handle null / blank values, and indeed which one of those two you are dealing with.
For example, some like to handle nulls at the database... | [
0.022686341777443886,
0.24839653074741364,
0.11883331090211868,
-0.13635790348052979,
-0.4450257122516632,
-0.1821518838405609,
0.44970113039016724,
-0.20604433119297028,
0.016549821943044662,
-0.39375561475753784,
-0.11701294034719467,
0.5536496639251709,
-0.04849750176072121,
-0.24516643... | |
and others like to handle default / blank values at the UI - not to mention the plethora of options in between.
Either way my personal choice would be to make sure you display that no data was available for that field at the UI level to avoid confusion. At worst something along the lines of:
```
<strong><% If (Eval("... | [
0.01121285930275917,
0.2127903699874878,
0.24221543967723846,
-0.07631111890077591,
-0.1028924360871315,
-0.15041141211986542,
0.2809489369392395,
0.22853192687034607,
-0.41229361295700073,
-0.6494485139846802,
-0.15651480853557587,
0.4944797456264496,
-0.009684687480330467,
0.107045777142... | |
I have this little function
```
function makewindows(){
child1 = window.open ("about:blank");
child1.document.write("<?php echo htmlspecialchars(json_encode($row2['ARTICLE_DESC']), ENT_QUOTES); ?>");
child1.document.close();
}
```
Which whatever I try, simply outputs the php code as the html source, and not the res... | [
0.39875075221061707,
0.3865543305873871,
0.6342089176177979,
-0.15183232724666595,
0.10760661214590073,
0.2862835228443146,
0.31865692138671875,
-0.402292937040329,
-0.05411278083920479,
-0.5544161796569824,
0.11232107877731323,
0.20400412380695343,
-0.12362207472324371,
0.3335990607738495... | |
still have it in a file that is parsed by PHP, like the others already have said. Then it is probably something above this code snippet that confuses the php-parser so it don't recognize the php-tag.
To test that, try to output something else before this function, maybe just a comment or something.
Also, use "var" b... | [
0.3192981779575348,
0.12972187995910645,
0.32918089628219604,
0.12732702493667603,
-0.07627120614051819,
-0.28367331624031067,
0.3946649730205536,
0.19104622304439545,
-0.4264453649520874,
-0.5449885129928589,
0.10662577301263809,
0.52897047996521,
-0.08942213654518127,
0.04963574185967445... | |
files (its not the default setting I believe), create a new file: **test.js**
```
<?php echo "This is a test"; ?>
```
Open the **test.js** file in your browser and look at the page source. If it has the php tags your server don't parse .js files.
**update 2**
If the php works in .js files, try to rewrite the funct... | [
0.5313634872436523,
0.3599015176296234,
0.2794203758239746,
-0.2064763754606247,
0.01693739928305149,
0.15421554446220398,
0.670945942401886,
-0.5519996285438538,
0.009222765453159809,
-0.6365071535110474,
-0.03289540112018585,
0.19615745544433594,
-0.2589268982410431,
0.16305837035179138,... | |
I have a `NSTimer` object that I need to invalidate if a user taps on a button or if they exit a view.
So I have:
```
[myNSTimer invalidate];
```
inside my button handler and inside `viewWillDisappear`. If user taps on a button and then exists a view the app throws an exception because `myNSTimer` has already been ... | [
0.12214954942464828,
0.2627114951610565,
0.7436319589614868,
-0.2454458624124527,
-0.004962702747434378,
0.06598031520843506,
0.37915605306625366,
-0.07791975885629654,
-0.2589808404445648,
-0.5654256343841553,
-0.06264606863260269,
0.5674839615821838,
-0.3190339505672455,
0.41990044713020... | |
you're holding on to) and then nil out your reference. That way when you exit the view, trying to invalidate the timer a second time will just call that method on nil instead, which does nothing.
Alternatively, you can use `-[NSTimer isValid]` to check if it's valid before invalidating, but there's really no reason to... | [
0.17559665441513062,
-0.07196429371833801,
0.7922641038894653,
0.18992605805397034,
0.021762803196907043,
-0.0371236689388752,
0.10634239763021469,
-0.2222580760717392,
-0.4492015540599823,
-0.24422743916511536,
-0.22129379212856293,
0.5218808650970459,
-0.08517507463693619,
0.546003341674... | |
I am compiling a c++ static library in vs2008, and in the solution i also have a startup project that uses the lib, and that works fine.
But when using the lib in another solution i get an run-time check failure.
"The value of ESP was not properly saved across a functioncall"
Stepping through the code i noticed a fun... | [
0.1604154109954834,
0.08887755125761032,
0.21456190943717957,
-0.026723632588982582,
0.058431923389434814,
-0.28963977098464966,
0.4331623911857605,
-0.09008581936359406,
-0.2656344175338745,
-0.45171597599983215,
-0.024019546806812286,
0.6800249218940735,
-0.6099308133125305,
-0.098659321... | |
functions (methods) are part of a class, if that helps.
Forgive me for stating the bleeding obvious here, but... I've seen this sort of thing happen many times before when object (.o) and header (.h) files get out of sync. Especially with respect to virtual methods.
Consider: The object file is compiled with header:
... | [
-0.11033890396356583,
-0.36962494254112244,
0.25864318013191223,
0.12183725833892822,
-0.15527145564556122,
0.08209267258644104,
0.24869143962860107,
-0.027720732614398003,
-0.042647168040275574,
-0.43729066848754883,
-0.22368833422660828,
0.642013430595398,
-0.5614362955093384,
0.08355321... | |
I'm having trouble with the following two items:
* How to retrieve all of the subkey values in ClassesRoot\Typelib, and;
* How to find a match for a known value (path/dll name) in the array of subkey values.
As background info, I'm trying to find a way to check if a DLL has been registered. Someone mentioned that che... | [
0.3229619562625885,
0.09989388287067413,
0.27087926864624023,
0.16498325765132904,
-0.009287458844482899,
-0.3129480183124542,
0.07294425368309021,
0.21168507635593414,
-0.2752698063850403,
-0.6974238157272339,
0.17595210671424866,
0.6131853461265564,
0.06806982308626175,
0.066973328590393... | |
help you start.
```
public static bool IsRegistered(string name, string dllPath)
{
RegistryKey typeLibKey = Registry.ClassesRoot.OpenSubKey("TypeLib");
foreach (string libIdKeyName in typeLibKey.GetSubKeyNames())
{
RegistryKey libIdKey = typeLibKey.OpenSubKey(libIdKeyName);
foreach (string ... | [
-0.20772738754749298,
0.08992060273885727,
0.7239841222763062,
-0.11365250498056412,
0.38192644715309143,
0.053399085998535156,
0.6489259004592896,
-0.35737624764442444,
0.04302436113357544,
-0.928875744342804,
-0.4956616461277008,
0.6751140356063843,
-0.4978717565536499,
0.417949408292770... | |
if (regName == name)
{
foreach (string itterKeyName in versionKey.GetSubKeyNames())
{
int throwawayint;
if (int.TryParse(itterKeyName, out throwawayint)) | [
-0.2777126431465149,
-0.16898618638515472,
0.1085771843791008,
-0.3907169699668884,
0.30078238248825073,
0.09644438326358795,
0.37025365233421326,
-0.373576819896698,
0.19347189366817474,
-0.39799797534942627,
-0.39477431774139404,
0.4218754172325134,
-0.21262119710445404,
0.29526239633560... | |
{
RegistryKey itterKey = versionKey.OpenSubKey(itterKeyName);
string regDllPath = (string)itterKey.OpenSubKey("win32").GetValue("");
if (regDllPath == dllPath) | [
-0.40158092975616455,
-0.2207746058702469,
0.8037964701652527,
-0.005956663750112057,
0.3297606110572815,
-0.015099774114787579,
0.19766481220722198,
-0.19380226731300354,
0.007364647462964058,
-0.7152029275894165,
-0.49082523584365845,
0.6099100112915039,
-0.4807223081588745,
0.5352038741... | |
{
return true;
}
} | [
-0.13520550727844238,
-0.03505249693989754,
-0.1155015304684639,
-0.3518534302711487,
0.26720425486564636,
0.010463506914675236,
0.5123206377029419,
0.2958774268627167,
0.34357765316963196,
-0.03546542674303055,
-0.3232465982437134,
0.9085355401039124,
-0.07060907036066055,
0.0192147064954... | |
}
}
}
}
return false;
}
```
} | [
-0.17314431071281433,
0.18346156179904938,
-0.04157416895031929,
-0.32582852244377136,
0.3597419559955597,
-0.17879115045070648,
0.3259333372116089,
0.2920868396759033,
0.2437671273946762,
-0.14812777936458588,
-0.3591691851615906,
0.9776923060417175,
-0.3259027302265167,
0.211953610181808... | |
Why would I want to use PHP's [filter](http://www.php.net/filter) library? Why wouldn't I?
It seems to try and do a bit of clean-up (it's awful when you have to work with regular expressions), but on the other hand function naming and parameter constants seem to be a disaster, if you ask me. It must have been included... | [
0.41144391894340515,
0.1707514524459839,
-0.03558797389268875,
0.027404069900512695,
-0.29605573415756226,
-0.11481767892837524,
0.2293514609336853,
0.0675114244222641,
-0.35666096210479736,
-0.4216938018798828,
0.3349894881248474,
0.2333434820175171,
-0.35440191626548767,
0.25409212708473... | |
is about using it wherever it fits. There's a high chance of needing a filter that won't fit PHP's functions, so I'll have to create my own filter. In that case, the application will use two completely different kinds of functions for data filtering. I consider that to be a much worse practice than just inventing a bet... | [
0.29408010840415955,
0.029283389449119568,
0.128691628575325,
-0.05376424640417099,
-0.2075941264629364,
-0.09603291004896164,
0.26186278462409973,
-0.33715203404426575,
-0.12399080395698547,
-0.624496579170227,
0.16691339015960693,
0.5783203840255737,
-0.21507033705711365,
0.0147515358403... | |
What are the trade-offs between using a System V and a Posix semaphore?
From [O'Reilly](http://www.linuxdevcenter.com/pub/a/linux/2007/05/24/semaphores-in-linux.html?page=4):
> * One marked difference between the System V and POSIX semaphore
> implementations is that in System V
> you can control how much the semaph... | [
0.3214665353298187,
-0.010697250254452229,
0.39677637815475464,
0.13031989336013794,
-0.19546742737293243,
0.15173420310020447,
0.05217095464468002,
-0.4303542971611023,
-0.226166233420372,
-0.5330402255058289,
-0.1285579800605774,
0.3124258518218994,
-0.5140200853347778,
-0.03795614466071... | |
is atomic (from the user's
> perspective) in POSIX semaphores.
> * From a usage perspective, System V semaphores are clumsy, while POSIX
> semaphores are straight-forward
> * The scalability of POSIX semaphores (using unnamed semaphores) is much
> higher than System V semaphores. In a
> user/client scenario, where ... | [
-0.12216401845216751,
0.12572413682937622,
0.33833634853363037,
0.2629745900630951,
0.17031194269657135,
0.08759088814258575,
0.29464101791381836,
-0.39653775095939636,
-0.3987553119659424,
-0.5104674696922302,
-0.10230384767055511,
0.033996954560279846,
-0.7053085565567017,
-0.04188437387... | |
footprint-wise) is costlier in System
> V semaphores when compared to POSIX
> semaphores.
> * It has been said that POSIX semaphore performance is better than
> System V-based semaphores.
> * POSIX semaphores provide a mechanism for process-wide semaphores rather
> than system-wide semaphores. So, if a
> developer... | [
0.09825016558170319,
0.12481662631034851,
0.24161426723003387,
0.22733841836452484,
0.21371765434741974,
0.10805772244930267,
0.19857366383075714,
-0.2194536030292511,
-0.28190678358078003,
-1.2060376405715942,
0.030138004571199417,
0.2524740397930145,
-0.29730942845344543,
-0.029788717627... | |
Besides the fact that `$_REQUEST` reads from cookies, are there any reasons why I should use `$_GET` and `$_POST` instead of `$_REQUEST`? What are theoretical and practical reasons for doing so?
I use $\_REQUEST when I just want certain data from the user to return certain data.
Never use $\_REQUEST when the request w... | [
0.36413946747779846,
0.09360439330339432,
0.18950890004634857,
0.1380462795495987,
-0.19980889558792114,
-0.3949181139469147,
0.5464482307434082,
-0.012173641473054886,
-0.16002453863620758,
-0.6119686961174011,
-0.231143519282341,
0.5145326256752014,
-0.40572845935821533,
0.25979354977607... | |
results. | [
0.13234591484069824,
0.1304675042629242,
0.5369216203689575,
0.294845849275589,
0.04139767214655876,
-0.023549672216176987,
0.041299834847450256,
-0.4010744094848633,
-0.3734276294708252,
-0.3878253400325775,
-0.14746664464473724,
0.14382530748844147,
0.08372664451599121,
0.257804334163665... | |
Sample data:
!!Part|123456,ABCDEF,ABC132!!
The comma delimited list can be any number of any combination of alphas and numbers
I want a regex to match the entries in the comma separated list:
What I have is:
!!PART\|(\w+)(?:,{1}(\w+))\*!!
Which seems to do the job, the thing is I want to retrieve them in order int... | [
0.03353987634181976,
0.06502038985490799,
0.46476712822914124,
-0.356394499540329,
-0.056346189230680466,
0.32978180050849915,
0.21740218997001648,
-0.8172726631164551,
0.15432040393352509,
-0.1632680743932724,
-0.02155488170683384,
0.388637900352478,
-0.5118560791015625,
0.021322391927242... | |
missing?
Thanks
**Edit:**
A solution would be to use a regex like !!PART\|(\w+(?:,??\w+)\*)!! to capture the comma separated list and then split that as suggested by Marc Gravell
I am still curious for a working regex for this however :o)
You can either use split:
```
string csv = tag.Substring(7, tag.Length - 9);
... | [
-0.018849413841962814,
-0.08243515342473984,
0.13698361814022064,
0.11397481709718704,
0.08448737114667892,
-0.14957517385482788,
0.09416309744119644,
-0.4059447646141052,
-0.5820935368537903,
-0.12999674677848816,
-0.3281966745853424,
0.4269416034221649,
-0.6757549047470093,
0.06238140538... | |
When I try to create a a new snapshot in SQL Server Reporting Services 2005, i get the message: "report history may not be created because the credentials used to run the report are not stored, the report is using user-defined parameter values, default report parameter values are missing, or if a linked report, the lin... | [
0.30886754393577576,
0.6113929748535156,
0.18335866928100586,
-0.05531308427453041,
-0.15440836548805237,
-0.5021649599075317,
0.5440917611122131,
-0.11814961582422256,
-0.44998180866241455,
-0.404071569442749,
0.23109038174152374,
0.39899685978889465,
-0.14700518548488617,
0.2390316426753... | |
Im just running it on my local machine (<http://localhost/Reports>$SQL2005/), so I don't know why I would be getting these errors
Any ideas?
setting a data source to use "credentials stored securely in the report server" is required when you want to use Reporting Services features like Subscriptions and Report Snapsho... | [
0.5916827321052551,
0.12251781672239304,
0.2898915410041809,
0.021357377991080284,
-0.1361127346754074,
-0.3139302730560303,
0.14738693833351135,
-0.19065146148204803,
-0.16703765094280243,
-0.5814319252967834,
0.3656502962112427,
0.6032034754753113,
-0.30595409870147705,
0.132364392280578... | |
a specific domain account for Reporting Services and use these credentials for the data sources (making sure you have given the domain account necessary permissions to the underlying databases involved). This means that the reports are executed as the Reporting Services account whenever they are run.
More info: <http:... | [
0.5575509071350098,
0.1770840436220169,
0.34532901644706726,
0.29453322291374207,
-0.05638456344604492,
-0.4410046339035034,
0.26483288407325745,
-0.04251950979232788,
-0.2738863229751587,
-0.2438220977783203,
-0.42937618494033813,
0.21253862977027893,
-0.0624333955347538,
0.15625584125518... | |
I am working on creating a .asmx webservice to meet the specific needs of an integration environment and for the life of me I cannot figure out how to get one section of it to work. The key is that the request WSDL needs to be something like the following. (Note I removed the soap envelope and namespace information)
`... | [
0.3011888861656189,
0.01847321353852749,
0.24610239267349243,
0.007033511996269226,
-0.2057705521583557,
-0.3035060465335846,
0.2485775649547577,
-0.22385293245315552,
-0.042363934218883514,
-0.7507481575012207,
0.036465488374233246,
0.4110781252384186,
-0.25483062863349915,
-0.02232413180... | |
<subItem1>string</subItem1>
<subItem2>string</subItem2>
</mySubStructure>
</myComplexGroup
</methodOne>
```
Now, I know how to take care of most of this, the method one tag is handled by the name of my parameter, and then the items inside are simply elements in the class. SO something like thi... | [
0.05894484743475914,
0.011322502046823502,
0.49945545196533203,
0.05082876980304718,
0.045607879757881165,
-0.19278214871883392,
0.2705261707305908,
-0.3105022609233856,
-0.12496733665466309,
-0.5061861872673035,
-0.24890705943107605,
0.11431475728750229,
-0.4995402693748474,
0.19088996946... | |
public MyDemoGroupInfo myDemoGroup {get; set;}
}
public class MyDemoGroupInfo
{
public string myDemoGroupItem {get; set;}
public string myDemoGroupItem2 {get; set;}
}
```
The question is how to I define the "myComplexGroup" to allow the creation of multiple mySubStructure elements, while still outputting all... | [
0.05374739691615105,
0.06403163075447083,
0.6527795195579529,
0.061969462782144547,
0.005310733802616596,
-0.13266722857952118,
0.1670418232679367,
-0.1785535216331482,
-0.1023542508482933,
-0.3790329396724701,
-0.4048978090286255,
0.29683414101600647,
-0.38173380494117737,
0.1780416369438... | |
of it, but instead of listing subItem1 and subItem2 it simply says MySubStructureInfo with nil set to one.
How can I get around this?
If you have WSDL contract that needs to be implemented, you may try `wsdl.exe /serverInterface` to get service stub generated. | [
0.3284512162208557,
-0.08550018817186356,
0.4824976921081543,
-0.2000076025724411,
-0.1978120505809784,
-0.42360642552375793,
0.0766512006521225,
0.1326322853565216,
-0.26089194416999817,
-0.7198671102523804,
0.06463473290205002,
0.33640286326408386,
-0.2570931613445282,
0.3434901833534241... | |
We are slowly rolling out team foundation, and I have to get up to speed on setting up a Build process on TFS.
What are some good starting points TFS builds?
From what it seems, there is no GUI for TFS build right? It is just about learning MSBuild?
Team Build in 2008 is completely revamped from what was provided in ... | [
0.3064793646335602,
0.07536029815673828,
-0.08459391444921494,
-0.01252965908497572,
-0.40086764097213745,
-0.45531585812568665,
0.37891727685928345,
-0.05989556387066841,
-0.14058201014995575,
-0.7854726314544678,
0.24631750583648682,
0.4607776403427124,
-0.12289741635322571,
-0.162449881... | |
2008: A basic guide to Team Build 2008](http://blogs.msdn.com/buckh/archive/2007/08/14/tfs-2008-a-basic-guide-to-team-build-2008.aspx) which is a great starting point.
Also, as a person working on a team migrating to Team Foundation Server, I highly recommend training with a Microsoft-endorsed training provider. We we... | [
-0.01076517067849636,
-0.2394152134656906,
-0.012457797303795815,
0.33737513422966003,
0.027080820873379707,
-0.18625661730766296,
0.33509373664855957,
-0.4591805338859558,
0.2092084437608719,
-0.7108163237571716,
0.08217396587133408,
0.7632616758346558,
0.4773823320865631,
-0.283081233501... | |
Is there a tool that will show me what applications are writing to the hard drive in real time? I'm thinking something like Task Manager but for I/O. I've got a number of background processes running, and can never tell when Visual Studio is holding everything up, or some other process is hogging the disk (especially w... | [
0.3299156129360199,
-0.2162681370973587,
-0.15679410099983215,
0.19868741929531097,
0.15629427134990692,
-0.1497485190629959,
0.04919224977493286,
0.601606547832489,
-0.520482063293457,
-0.5885677933692932,
-0.31660905480384827,
0.465768963098526,
-0.12006765604019165,
-0.2891155481338501,... | |
I have code that sends HTML emails to users. To accommodate users who dont have/ want HTML email, the email contains 2 alternate views, View(0) is HTML, View(1) is Plain text.
The HTML view has a header and footer graphics, but the style is done inline and not via css file. The text view is only the text; no tags, im... | [
0.5738218426704407,
0.14155055582523346,
0.601926326751709,
-0.01058613508939743,
-0.26347067952156067,
-0.02309194765985012,
0.33867111802101135,
-0.1464371532201767,
0.07123551517724991,
-0.832743227481842,
-0.04441211000084877,
0.250031441450119,
-0.23469994962215424,
0.0795026719570159... | |
entire HTML alternate view is packaged as an attachment (with the 3 pdfs as an attachment to it), and the parent message contains picture alphabet / random characters like this...
> "㰡䑏䍔奐䔠桴浬⁐啂䱉䌠∭⼯圳䌯⽄呄⁈呍䰠㐮〱⁔牡湳楴楯湡氯⽅丢㰾桴浬㰾桥慤‾ഀ
> 㰀⽨敡搾㱢潤礠执捯汯爽∣晦晦晦∠瑥硴㴢⌰〰〰〢㰾扲㰾⽢潤社㰯桴浬ാ
> � "
* The Email is received with the a... | [
-0.06771347671747208,
-0.12250629812479019,
0.667891800403595,
-0.08712145686149597,
-0.34489819407463074,
0.025502493605017662,
0.5329369902610779,
0.08535120636224747,
0.012249412015080452,
-0.5505481958389282,
-0.2433699518442154,
0.36332109570503235,
-0.6047403812408447,
-0.10697957128... | |
I do realize that from the receivers perspective that this is email is from an unknown sender, has graphics, has attachments, and therefore will likely be recognized as spam in some cases, but its what the biz wants, so they get it.
My gut tells me that this is some kind of encoding problem, I am using Unicode for al... | [
0.49881112575531006,
0.11559996008872986,
0.4826127886772156,
-0.04836798086762428,
-0.3045565187931061,
-0.11078210920095444,
0.5597529411315918,
0.2531234323978424,
-0.042546290904283524,
-0.5670697689056396,
-0.013345754705369473,
0.3977254629135132,
-0.2521640956401825,
0.1054945364594... | |
http-equiv="Content-Type" content="text/html; charset=utf-8">
```
at the top, but the AlternateView.CreateAlternateViewFromString() method is getting System.Text.Encoding.Unicode (utf-16) applied. I can see where this can be conflicting and will update it, but this will likely take some time to see if its fixed.
Th... | [
0.1712130755186081,
0.024053314700722694,
0.5948481559753418,
0.012537793256342411,
-0.3191303014755249,
-0.20475079119205475,
0.3517143726348877,
-0.008591416291892529,
-0.07597710937261581,
-1.067176342010498,
-0.2593424916267395,
0.38162657618522644,
-0.4386993944644928,
-0.002960397629... | |
by W3C, you should be encoding using UTF8.
This may do the trick. | [
0.30853918194770813,
0.053811848163604736,
0.006591816432774067,
-0.04463912919163704,
-0.09557026624679565,
-0.3880314528942108,
0.25822311639785767,
0.3426547050476074,
-0.26401540637016296,
-0.6545693874359131,
-0.3737355172634125,
0.2255246490240097,
-0.39456120133399963,
-0.1192407682... | |
For example I have two tables. The first table is student while the second table are the courses that the a student is taking. How can I use a select statement so that I can see two columns student and courses so that the courses are separated by commas.
Thanks.
Assuming you're using SQL Server 2005:
This should do w... | [
-0.09074459224939346,
0.13358546793460846,
0.29858458042144775,
-0.04671994224190712,
-0.04459225386381149,
0.08941963315010071,
-0.1658506691455841,
-0.3457014262676239,
-0.22317193448543549,
-0.5016480088233948,
-0.10071621090173721,
0.40584662556648254,
0.10256144404411316,
0.2413954585... | |
Key References Students(STU_PKEY),
CRS_NAME nvarchar(64)
)
```
Now this query should do the job you're after:
```
Select s.STU_PKEY, s.STU_NAME As Student,
Stuff((
Select ',' + c.CRS_NAME
From Courses c
Where s.STU_PKEY = c.STU_KEY
For XML Path('') | [
0.245827317237854,
0.435344398021698,
0.523633599281311,
0.18662165105342865,
0.2919689118862152,
-0.12465473264455795,
-0.33191171288490295,
-0.003471994772553444,
-0.2653050422668457,
-0.40622541308403015,
-0.49213024973869324,
0.23512209951877594,
0.10322173684835434,
0.4787169992923736... | |
), 1, 1, '') As Courses
From Students s
Group By s.STU_PKEY, s.STU_NAME
```
Way simpler than the currently accepted answer... | [
0.16191859543323517,
0.4244970679283142,
0.03986010327935219,
-0.09219277650117874,
-0.08612486720085144,
0.10055100917816162,
0.13240334391593933,
-0.2280522882938385,
-0.05683097988367081,
-0.20645855367183685,
-0.5571366548538208,
0.23679788410663605,
0.02874433808028698,
-0.01442354638... | |
We are in the process of designing a simple service-oriented architecture using WCF as the implementation framework. There are a handful of services that a few applications use. These services are mostly used internally, so a basic authentication and authorization scheme (such as Windows-based) is enough.
We want, how... | [
0.5504224896430969,
0.10196354985237122,
0.22780077159404755,
-0.06602989882230759,
0.17197871208190918,
-0.17144839465618134,
0.43722325563430786,
-0.09570898115634918,
-0.10608145594596863,
-0.8254590034484863,
-0.2607727646827698,
0.37155231833457947,
-0.10075724124908447,
0.11427160352... | |
can centralize the authentication/authorization code and expose one single endpoint to the world. I looked at some available ESB toolkits, but they seem way too complex for this purpose. We do not need to integrate a lot of different services, but just to expose some of them to the Internet.
How can I design and imple... | [
0.4814150929450989,
-0.07959219068288803,
0.27185505628585815,
0.30056479573249817,
0.049305278807878494,
-0.5775821208953857,
0.36324089765548706,
0.11563729494810104,
-0.14392229914665222,
-0.6174007654190063,
0.014248888939619064,
0.22374622523784637,
-0.12222111225128174,
0.10297144204... | |
endpoint with a single operation.
That operation would look something like
```
[OperationContract(Namespace="www.fu.com", Action="*")]
void CallThis(Message msg);
```
Have your clients use a proxy that is intended for the service they intended to calling the operation they want. Then have them change the configurat... | [
0.0891568586230278,
-0.18233822286128998,
0.7853229641914368,
-0.16669166088104248,
0.02274107187986374,
-0.0937102660536766,
-0.009918608702719212,
-0.05701088905334473,
-0.10843156278133392,
-0.529534101486206,
-0.18573921918869019,
0.4016234278678894,
-0.46220311522483826,
0.29856002330... | |
questions, let me know.
Joe. | [
0.49847015738487244,
-0.061925843358039856,
0.14070099592208862,
0.19335560500621796,
0.0807332843542099,
-0.019617607817053795,
-0.0030148879159241915,
-0.016830747947096825,
-0.5100972652435303,
-0.8179036378860474,
-0.003913819324225187,
0.4943767488002777,
-0.32562583684921265,
0.07691... | |
We have a number of web servers, each running one version of ColdFusion. The cluster has a load balancer on front of it.
Obviously each of these servers has its own CF application running and this implements query caching at the CF application level. However, since all of these servers service the one web application... | [
0.12582895159721375,
0.45569342374801636,
0.3033270239830017,
0.342325359582901,
0.0780436098575592,
0.035925716161727905,
-0.16484525799751282,
0.10330921411514282,
-0.12211620062589645,
-0.3476869761943817,
0.3192531168460846,
-0.07038507610559464,
-0.20562335848808289,
0.101748064160346... | |
load on our database server?
I hope I made myself clear :)
Cheers,
Ciarán
Decided to use [EHCache](http://ehcache.sourceforge.net/) on each of our web servers, as it allows partial page caching and can be extended to a centralised cache server i.e. like memcached. Very happy with it so far.
Many thanks for all the... | [
0.32734814286231995,
0.25812557339668274,
0.3846353590488434,
0.14142711460590363,
-0.027862384915351868,
-0.38194045424461365,
0.18934722244739532,
0.1728970855474472,
-0.2550240457057953,
-0.12395869940519333,
-0.20432201027870178,
0.005485692527145147,
-0.057769469916820526,
-0.04647605... | |
I wrote a `while loop` in a function, but don't know how to stop it. When it doesn't meet its final condition, the loop just go for ever. How can I stop it?
```
def determine_period(universe_array):
period=0
tmp=universe_array
while True:
tmp=apply_rules(tmp)#aplly_rules is a another function
... | [
0.21662354469299316,
-0.08705303072929382,
0.5754435658454895,
-0.07699046283960342,
0.15433970093727112,
-0.04412204772233963,
0.556300163269043,
-0.019610442221164703,
-0.5779089331626892,
-0.10691482573747635,
-0.2459619790315628,
0.16176283359527588,
-0.47763025760650635,
0.40906098484... | |
return 0 if the
#period is bigger than 12
if period>12: #i wrote this line to stop it..but seems it
#doesnt work....help..
return 0
else: | [
0.1106535866856575,
-0.13021859526634216,
0.4314659833908081,
-0.13197113573551178,
-0.10830345004796982,
-0.1620795875787735,
0.6045776009559631,
0.05152410641312599,
-0.18521128594875336,
-0.21841897070407867,
-0.37675052881240845,
0.32915937900543213,
-0.22105205059051514,
-0.0672015175... | |
return period
```
just indent your code correctly:
```
def determine_period(universe_array):
period=0
tmp=universe_array
while True:
tmp=apply_rules(tmp)#aplly_rules is a another function
period+=1
if numpy.array_equal(tmp,universe_array) is True:
return period
... | [
0.14549121260643005,
-0.24248331785202026,
0.568203330039978,
-0.3221783936023712,
0.030657239258289337,
-0.008266272954642773,
0.34126436710357666,
-0.3136220872402191,
-0.40596532821655273,
-0.400015264749527,
-0.27973780035972595,
0.48482099175453186,
-0.03269077464938164,
0.04252868145... | |
return 0
else:
return period
```
You need to understand that the `break` statement in your example will exit the infinite loop you've created with `while True`. So when the break condition is True, the program will quit the infinite loop and continue to the next indented block. Since there is n... | [
0.10815273970365524,
-0.10759429633617401,
0.07847703248262405,
-0.08413434773683548,
0.23933160305023193,
-0.1019083559513092,
0.5808771252632141,
0.08174879848957062,
-0.21887445449829102,
-0.04157394543290138,
-0.5328880548477173,
0.5094116926193237,
-0.34209737181663513,
0.305572450160... | |
`return` statement.
Following your idea to use an infinite loop, this is the best way to write it:
```
def determine_period(universe_array):
period=0
tmp=universe_array
while True:
tmp=apply_rules(tmp)#aplly_rules is a another function
period+=1
if numpy.array_equal(tmp,universe_ar... | [
0.23302559554576874,
-0.20095837116241455,
0.4929272532463074,
-0.27600085735321045,
0.04230228811502457,
-0.06551995873451233,
0.44607865810394287,
-0.3437331020832062,
-0.4006441831588745,
-0.24572089314460754,
-0.1365295648574829,
0.39620834589004517,
-0.20530934631824493,
0.24553146958... | |
period = 0
break
return period
``` | [
-0.09733904153108597,
0.2393636405467987,
0.38194704055786133,
-0.5141220688819885,
0.16788750886917114,
-0.4037916958332062,
0.6418372988700867,
0.00489756278693676,
-0.3071182370185852,
-0.09495867043733597,
-0.2827850878238678,
0.5828624367713928,
0.04106763005256653,
0.2942999005317688... | |
I have a small program to order and sort email messages, outputting to a textfile using `$msg->decoded->string`. The perl program outputs to `stdout`, and I redirect it to a txt file. However, gedit is unable to open this text file because of a character set problem, and I would like to know how to restore or set a cha... | [
0.03668541461229324,
0.1772250533103943,
0.5894579887390137,
-0.4220066964626312,
-0.2916567027568817,
0.25308385491371155,
0.4009174108505249,
-0.11083309352397919,
-0.05705331638455391,
-0.5823097229003906,
-0.18193133175373077,
0.38582637906074524,
-0.5188911557197571,
0.385919809341430... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.