text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
return result;
}
}
}
```
How to use it:
```
...
TextBox myTextbox = new TextBox();
MockAutoCompleteSource autoComplete =
new MockAutoCompleteSource(myTextbox);
...
``` | [
-0.3890489637851715,
0.1316995620727539,
0.4953393340110779,
-0.21930913627147675,
-0.001825644401833415,
0.32270824909210205,
0.2670098543167114,
-0.14561764895915985,
-0.15365096926689148,
-0.706632137298584,
-0.4237344563007355,
0.6061906218528748,
-0.36166471242904663,
-0.0841405019164... | |
I often find myself writing a property that is evaluated lazily. Something like:
```
if (backingField == null)
backingField = SomeOperation();
return backingField;
```
It is not much code, but it does get repeated a lot if you have a lot of properties.
I am thinking about defining a class called LazyProperty:
`... | [
0.4414794147014618,
-0.15027910470962524,
0.1603124588727951,
-0.2491673231124878,
-0.13662078976631165,
-0.22522766888141632,
0.4960957467556,
-0.040712613612413406,
-0.23224544525146484,
-0.30165863037109375,
-0.2229166030883789,
0.7894194722175598,
-0.41968291997909546,
0.16398543119430... | |
public T Value
{
get
{
if (!loaded)
{
propertyValue = getter();
loaded = true;
} | [
0.3170243203639984,
-0.7205964922904968,
0.10194725543260574,
-0.036884333938360214,
0.024148350581526756,
-0.19195041060447693,
0.42998650670051575,
-0.11279755085706711,
0.12978409230709076,
-0.34209078550338745,
-0.5361453890800476,
0.9462397694587708,
-0.34553128480911255,
-0.008147689... | |
return propertyValue;
}
}
public static implicit operator T(LazyProperty<T> rhs)
{
return rhs.Value;
}
}
```
This would enable me to initialize a field like this:
```
first = new LazyProperty<HeavyObject>(() => new HeavyObject { MyProperty = Value });
```
And then the body of the p... | [
0.07674191892147064,
-0.1575150191783905,
0.45712247490882874,
-0.2966865301132202,
0.09761779010295868,
-0.015538034029304981,
0.11028578132390976,
-0.51936274766922,
0.10059100389480591,
-0.16946889460086823,
-0.2791365087032318,
0.9985432624816895,
-0.1759461760520935,
0.272473990917205... | |
into a common class library shared by most of our products.
I cannot decide whether this is a good idea or not. I think the solutions has some pros, like:
* Less code
* Prettier code
On the downside, it would be harder to look at the code and determine exactly what happens - especially if a developer is not familia... | [
0.27794983983039856,
-0.08187250047922134,
0.05013217031955719,
0.18447567522525787,
0.2595832049846649,
-0.004702439997345209,
0.32181814312934875,
-0.07090400159358978,
0.0013723693555220962,
-0.38483765721321106,
0.12542876601219177,
0.6968162059783936,
-0.4849932789802551,
0.2136486172... | |
using this class ?
Opinions and suggestions are welcomed :-)
Just to be overly pedantic:
Your proposed solution to avoid repeating code:
```
private LazyProperty<HeavyObject> first =
new LazyProperty<HeavyObject>(() => new HeavyObject { MyProperty = Value });
public HeavyObject First {
get {
return firs... | [
-0.11973837018013,
-0.4928572475910187,
0.28642258048057556,
-0.007305731065571308,
-0.2158736288547516,
0.08665670454502106,
0.14396031200885773,
-0.270452082157135,
-0.1886296421289444,
-0.5349709987640381,
-0.18608509004116058,
0.5952348709106445,
-0.5486940145492554,
-0.002989592729136... | |
I think that the implicit cast made the code very hard to understand. I would not have guessed that a method that simply returns first, actually end up creating a HeavyObject. I would at least have dropped the implicit conversion and returned first.Value from the property. | [
0.06896349787712097,
-0.016155129298567772,
0.16194289922714233,
0.03186759352684021,
-0.24563421308994293,
-0.012075595557689667,
0.17516522109508514,
-0.33308717608451843,
-0.01571650244295597,
-0.04968716949224472,
0.2458532452583313,
0.605729877948761,
-0.252280592918396,
0.21249085664... | |
This is more of a syntax question
I'm trying to write a store procedure or function that I can embed into a query such as:
```
select * from MyBigProcOrFunction
```
I'm trying to define a tabular function but I do not understand how to do it as I build tmp tables to work out the data before I finally have the return... | [
0.05276251584291458,
0.2748156785964966,
0.32104334235191345,
-0.10060242563486099,
0.12066332995891571,
0.052027054131031036,
0.006240073125809431,
-0.05949581786990166,
-0.07012293487787247,
-0.5622357130050659,
-0.10824693739414215,
0.396973580121994,
-0.43127843737602234,
0.28778356313... | |
Temporary Tables from within a SQL Function. You will need to use table variables so essentially:
```
ALTER FUNCTION FnGetCompanyIdWithCategories()
RETURNS @rtnTable TABLE
(
-- columns returned by the function
ID UNIQUEIDENTIFIER NOT NULL,
Name nvarchar(255) NOT NULL
)
AS
BEGIN
DECLARE @TempTable table (... | [
0.0782749354839325,
0.186792254447937,
0.7940166592597961,
0.0024159227032214403,
0.1663701981306076,
-0.04411083832383156,
-0.10173460841178894,
-0.04812288656830788,
-0.40567055344581604,
-0.5248938798904419,
0.03744282200932503,
0.39832037687301636,
-0.43419134616851807,
0.2720075547695... | |
it then you pick the one you prefer. I am going to be using sample code from one of my schemas, but you should be able to adapt it. Both are viable solutions first with a stored procedure.
```
declare @table as table (id int, name nvarchar(50),templateid int,account nvarchar(50))
insert into @table
execute industry_... | [
0.29645979404449463,
-0.03623261675238609,
0.3521008789539337,
-0.2031668722629547,
0.32102638483047485,
0.07377810031175613,
-0.4179784059524536,
-0.540884256362915,
-0.32331210374832153,
-0.5723729133605957,
0.12778738141059875,
0.7011605501174927,
-0.3140634596347809,
0.1180823221802711... | |
[user]
on account=[user].loginname
```
As you can see the UDF is a lot more concise easier to read, and probably performs a little bit better since you're not using the secondary temporary table (performance is a complete guess on my part).
If you're going to be reusing your function/procedure in lots of other ... | [
0.2731504440307617,
0.0007899344200268388,
0.3609693944454193,
0.01580488309264183,
-0.1081685945391655,
-0.2915715277194977,
0.2770504653453827,
0.2319268137216568,
-0.3874605596065521,
-0.7599315643310547,
-0.022602377459406853,
0.4707341492176056,
-0.42951202392578125,
0.293443590402603... | |
variables are kept in memory. | [
0.029533397406339645,
0.16163603961467743,
-0.29703909158706665,
0.34475594758987427,
0.09319576621055603,
0.2662491798400879,
0.0017406400293111801,
0.006916756741702557,
0.08131588250398636,
-0.38902002573013306,
-0.06842489540576935,
0.3966493308544159,
-0.11861775815486908,
0.203958734... | |
Newbie to LINQ, and trying to write the following query...
```
select
f.Section_ID,
f.Page_ID,
f.SortOrder,
f.Type
from
(
select
Section_ID,
min(SortOrder) as minSortOrder
from
ContentPages
group by
Section_ID
) as x
inner join
ContentPages as f on
f.Section_ID = x.Sect... | [
0.06417824327945709,
-0.05605807527899742,
0.8215335011482239,
-0.057611133903265,
0.11674731969833374,
-0.110463947057724,
-0.07141879200935364,
-0.3281187117099762,
-0.4028586447238922,
-0.37789860367774963,
-0.3854507803916931,
0.4287461042404175,
-0.3519408106803894,
0.2270067185163498... | |
....1.........One..........1......
....2.........Two..........3......
....3.........Three........2......
Table: ContentPage
Page\_ID.......Section\_ID.......Title..............SortOrder
....11.............1.......... Page One.............1......
....12.............1...........Page Two.............3........ | [
-0.4045639634132385,
0.4089774489402771,
0.7698273658752441,
0.20976188778877258,
-0.16649268567562103,
-0.17465980350971222,
0.3071928918361664,
-0.11636799573898315,
-0.40558117628097534,
-0.6723619699478149,
-0.34289121627807617,
0.3391799032688141,
-0.38558173179626465,
0.4380793571472... | |
One.............1......
....13.............2.........Two..........Page Three...........2......
Any help is appreciated. Thanks!
Here's my first attempt at it:
```
from sectionPage in pages
group sectionPage by sectionPage.Section_ID into sectionGroup
join page in pages on sectionGroup.Key equals page.Section_ID
w... | [
-0.32973119616508484,
-0.019210977479815483,
0.5539613366127014,
-0.12783488631248474,
-0.21085570752620697,
0.031318146735429764,
0.2161826342344284,
-0.34998613595962524,
-0.004966116975992918,
-0.7444016337394714,
-0.21669209003448486,
0.4653817117214203,
-0.5826125144958496,
-0.1423715... | |
an orderby to order the pages, and we return the page (note you can change this to certain fields if you prefer). | [
0.14003226161003113,
0.052093442529439926,
0.6135367751121521,
0.1438891738653183,
0.15342774987220764,
-0.20185570418834686,
-0.07405033707618713,
-0.029067715629935265,
-0.20696328580379486,
-0.5142132639884949,
-0.5856775641441345,
0.26497364044189453,
-0.2589779794216156,
0.09870242327... | |
I am supposed to perform ETL where source is a large and badly designed sql 2k database and a a better designed sql 2k5 database. I think SSIS is the way to go. Can anyone suggest a to-do list or a checklist or things to watchout for so that I dont forget anything? How should I approach this so that it does not bite me... | [
0.7606797218322754,
-0.07158347964286804,
0.1672542840242386,
0.10078094899654388,
-0.13089142739772797,
-0.34169304370880127,
0.20089568197727203,
0.22257861495018005,
0.10183584690093994,
-0.6081817746162415,
0.14562168717384338,
0.6270643472671509,
-0.11184488981962204,
-0.1294586658477... | |
Sometimes you get an "OleDb Error" that could have a lot of different meanings depeding on the context.
Read the API Documentation (they don't say much).
Some links to help you out starting there:
<http://technet.microsoft.com/de-de/library/ms135932(SQL.90).aspx>
<http://msdn.microsoft.com/en-us/library/ms345167.asp... | [
0.06473381817340851,
0.37116876244544983,
0.31145206093788147,
0.09812521189451218,
0.05194256454706192,
0.08302420377731323,
0.17084193229675293,
-0.17357276380062103,
-0.3847229480743408,
-0.6561757326126099,
-0.12589885294437408,
0.5028778910636902,
-0.17588920891284943,
0.3547852933406... | |
For some magical reason ii6 started to cache pages on the server. Even if I remove the page, it is still displayed. I tried to follow couple suggestions but no luck.
That's what I did so far:
1. Deleted \WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
2. Unchecked 'cache ISAPI extensions' in the ... | [
0.17910721898078918,
0.00007459650805685669,
0.43413394689559937,
0.10161343216896057,
-0.1990145742893219,
-0.04696927219629288,
0.7829979658126831,
-0.020662805065512657,
-0.28469765186309814,
-0.8417661786079407,
-0.054494839161634445,
0.24378566443920135,
-0.3523105978965759,
0.4525759... | |
the caching issue. I didn't cleared out Bin folder and the compiled version of the page with extension .compiled was seating there all the time. I don't what changed this time, but I followed the same process like 100 times before and copied files on top without clearing Bin.
I should be more accurate with such things... | [
0.15400788187980652,
0.17872357368469238,
0.20962414145469666,
0.06120055541396141,
-0.3504459857940674,
-0.08317110687494278,
0.0850621685385704,
-0.02472546696662903,
-0.3841075003147125,
-0.33673739433288574,
0.3822954297065735,
0.22508575022220612,
-0.20615333318710327,
0.1834614276885... | |
I'm trying to write a script that informs the user when someone has logged in on the machine via ssh.
My current idea is to parse the output of "w" using grep in intervals.
But that's neither elegant nor performant. Has anyone got a better idea how to implement such a program?
Any help would really be appreciated!
... | [
0.3520663380622864,
0.041554346680641174,
0.30704572796821594,
-0.12836222350597382,
-0.0851006805896759,
-0.12563443183898926,
0.4602229595184326,
0.03270341455936432,
-0.3817879855632782,
-0.9223683476448059,
0.009065158665180206,
0.6900949478149414,
-0.19753241539001465,
0.2412232905626... | |
to see the auth log):
```
sudo tail -F /var/log/auth.log | grep sshd
``` | [
-0.32437780499458313,
0.1674528270959854,
0.5986993908882141,
-0.31046533584594727,
-0.08646844327449799,
0.1130562350153923,
0.3584727346897125,
-0.009035584516823292,
-0.14273202419281006,
-0.46709388494491577,
-0.5015829801559448,
0.40089377760887146,
-0.12513448297977448,
0.16378700733... | |
I have a plugin for an RCP app that uses BIRT. I have a target for building my app which contains only the plugins/features that are required. I recently updated the BIRT plugin versions in my IDE, which created an incompatibility in the design files with previous versions of BIRT. I have the old version of BIRT in my ... | [
0.561279296875,
0.28114941716194153,
0.44787585735321045,
-0.07516198605298996,
-0.30556514859199524,
0.1447715014219284,
0.07398312538862228,
-0.22462798655033112,
-0.07864274084568024,
-0.6764231324195862,
0.3415900766849518,
0.2808194160461426,
-0.6438949704170227,
0.1026497483253479,
... | |
differently that will make this easier to control in the future?
I would recommend to keep all components separately and not copy them into a single folder. You can use Target Definition editor (see File / New / Other... / Target Definition). So, after downloading all the pieces, you can unpack them locally and assembl... | [
0.8083003163337708,
-0.0798637717962265,
0.15065577626228333,
0.15485292673110962,
-0.2151719629764557,
-0.17768079042434692,
-0.12611249089241028,
-0.4718431532382965,
-0.1646125167608261,
-0.885624885559082,
-0.060639433562755585,
0.5597086548805237,
-0.2177942991256714,
-0.0064058466814... | |
from local folders or remote sites.
Also, as far as I know the PDE team is currently working on expanding Target platform support in Eclipse 3.5. I think they are planning to allow to select Target Definition per-launch configuration and per-project. | [
0.5401600003242493,
-0.002572048222646117,
0.09998985379934311,
-0.1622265726327896,
-0.2781112790107727,
-0.1283731907606125,
-0.1772146373987198,
0.1427171230316162,
-0.10647757351398468,
-0.8053291440010071,
-0.19195175170898438,
0.3886798620223999,
-0.054629649966955185,
-0.49709022045... | |
While looking for an SFTP client in C# SSH File Transfer Protocol (SFTP), I've come across these two suitable projects - [one](http://sourceforge.net/projects/sharpssh) and [two](http://granados.sourceforge.net/).
While trying to understand the basics, I came across this confusing [Wikipedia article](http://en.wikiped... | [
0.3029021918773651,
-0.18561536073684692,
0.5145291686058044,
-0.12548096477985382,
-0.32307010889053345,
-0.2908874750137329,
-0.20759502053260803,
-0.17042571306228638,
-0.5228191018104553,
-0.39722901582717896,
-0.28570055961608887,
0.35698339343070984,
-0.4545132517814636,
-0.175489634... | |
but an [SSH tunnel](http://en.wikipedia.org/wiki/Tunneling_protocol#SSH_tunneling) is placed between client and server.
You probably won't find libraries for "FTP over SSH" because typically the tunnel is set up by running an SSH command, and once it is set up, clients and servers don't need to know about the tunnel; ... | [
0.09213026612997055,
-0.09388154000043869,
0.10936085134744644,
0.12493793666362762,
0.013420447707176208,
-0.3377493619918823,
0.3611961007118225,
0.02779991738498211,
-0.4835752844810486,
-0.7579812407493591,
-0.3925992250442505,
0.0315045602619648,
-0.42489972710609436,
0.17059096693992... | |
The basic idea of a masterpage is simple -- you have a block of content that you want to 'inject' into a location in a master page.
Its very easy to figure this out without even reading the documentation about masterpages (which I admit to not having read!).
What i want to do is pass 'properties' to a master page fr... | [
0.35801732540130615,
-0.009399273432791233,
0.23490655422210693,
0.39389973878860474,
-0.11075305193662643,
-0.09101561456918716,
-0.0872437059879303,
-0.23274698853492737,
-0.19955912232398987,
-0.9575573801994324,
0.06081316992640495,
0.2525692284107208,
-0.23830825090408325,
0.185958608... | |
to render its children. I want to avoid messing with style sheets as much as possible - or I'll end up with a tonne of similarly named items.
Is there a prefered way to do this?
In your master page create some type of hook (a property or method) that allows some piece of code to manipulate the master page in whatever ... | [
0.5810813307762146,
0.06726818531751633,
0.20190472900867462,
0.10376151651144028,
0.10236011445522308,
0.09608638286590576,
0.05258150026202202,
-0.09141846746206284,
-0.09156012535095215,
-0.6978455185890198,
-0.07022488862276077,
0.25470688939094543,
-0.14199575781822205,
0.288151949644... | |
You want to provide an *interface* to manipulate the master page, otherwise you'll end up with very messy code eventually. | [
0.31791776418685913,
0.1342829465866089,
-0.026361912488937378,
0.3685374855995178,
-0.035508859902620316,
-0.1534321904182434,
0.0282021164894104,
-0.024622969329357147,
-0.15707507729530334,
-0.8563895225524902,
-0.20917126536369324,
0.4693679213523865,
-0.24381984770298004,
0.0251783486... | |
Part of a programme builds this list,
```
[u'1 x Affinity for war', u'1 x Intellect', u'2 x Charisma', u'2 x Perception', u'3 x Population growth', u'4 x Affinity for the land', u'5 x Morale']
```
I'm currently trying to sort it alphabetically by the name of the evolution rather than by the number. Is there any way ... | [
0.5450388193130493,
0.024650095030665398,
0.06244072690606117,
0.19490304589271545,
-0.20365378260612488,
0.24319155514240265,
0.22980210185050964,
-0.10591073334217072,
-0.18855826556682587,
-0.7956513166427612,
-0.5083618760108948,
0.03785977140069008,
-0.22019658982753754,
0.39849108457... | |
label
aList.sort( key= myKeyFunc )
``` | [
0.00655928673222661,
0.12264034897089005,
0.2663729190826416,
-0.18973228335380554,
0.2484172284603119,
-0.30724477767944336,
0.11351439356803894,
-0.07653261721134186,
-0.22108344733715057,
-0.46079838275909424,
-0.2064702808856964,
0.32421770691871643,
-0.3744925558567047,
0.602931797504... | |
### The Question
What is the correct way to install Python 3.0 alongside Python 2.x using Cygwin?
### Notes
I already have a working copy of Cygwin, and Python 2.x is installed within Cygwin (`/lib/python2.x`, not `c:\python2.x`).
Also, I would like to be able to call python 3 separately (and only intentionally) by... | [
0.43524524569511414,
0.29451292753219604,
0.26692256331443787,
-0.2776296138763428,
-0.38697925209999084,
-0.3289285898208618,
0.3264365792274475,
-0.10560254752635956,
0.0000018181661971539143,
-0.33422207832336426,
-0.16123031079769135,
0.8418768048286438,
-0.40710049867630005,
-0.411263... | |
doesn't install a python binary. Instead, make install prints at the end
```
* Note: not installed as 'python'.
* Use 'make fullinstall' to install as 'python'.
* However, 'make fullinstall' is discouraged,
* as it will clobber your Python 2.x installation.
```
So don't worry.
If you easily want to remove the entir... | [
0.5840266942977905,
0.04509959742426872,
-0.08171149343252182,
-0.0980503261089325,
0.11873225122690201,
-0.4704555869102478,
0.45321357250213623,
0.3349384665489197,
-0.26398757100105286,
-0.3836503028869629,
-0.5062653422355652,
0.579796314239502,
-0.5895970463752747,
-0.0358047559857368... | |
I'm reading a lot about good and bad practices in OOP design. It's nice to know your design is bad, or good. But how do you get from bad to good design?
I've split the interface (xaml) and codebehind from the main businesslogic class. That last class is growing big. I've tried splitting it up into smaller classes, but... | [
0.6364754438400269,
0.11522149294614792,
0.18057399988174438,
0.3252326250076294,
-0.11025673151016235,
0.014895401895046234,
-0.06954047828912735,
0.21904420852661133,
-0.24317066371440887,
-0.6984319686889648,
0.06707543134689331,
0.4211202561855316,
-0.12513640522956848,
0.0536584816873... | |
which are called from events handled in the codebehind. Any ideas where to go from here?
**Additional Info:**
We are already about 6 months into this project. I've worked with object oriented laguages for years (first c++, java and now c#), but never on a large project like this one. I believe we've made some wrong t... | [
0.4921266436576843,
0.13306330144405365,
0.2507750689983368,
0.16487489640712738,
0.11749454587697983,
-0.2292051762342453,
0.18770171701908112,
0.17408128082752228,
-0.023848000913858414,
-0.6523892283439636,
0.13245077431201935,
0.4748867452144623,
0.5734609961509705,
0.04776576161384582... | |
Maybe it's even better to continue this way to the first release and rebuilt parts after that, for a second release?
> The main class has 1 list of data of
> different types. I'm doing
> calculations on the total, but also on
> the individual types. I've got methods
> to perform these calculations which
> are call... | [
0.22080959379673004,
-0.17012512683868408,
0.05045796558260918,
0.25501877069473267,
0.0576748251914978,
0.1321438103914261,
0.10780265927314758,
-0.14769107103347778,
-0.3859283924102783,
-0.7414824962615967,
0.17274734377861023,
0.5747728943824768,
-0.2075059562921524,
0.0434500090777874... | |
the operations on the specific types, perhaps they could live inside the types?
In terms of performing similar yet different operations on different types consider using the [state pattern](http://en.wikipedia.org/wiki/State_pattern) (see this as a replacement for switch statements) which enables you to treat the enti... | [
0.4412393271923065,
0.03490694984793663,
-0.3020694851875305,
0.3640943169593811,
0.006888289004564285,
-0.2731405198574066,
0.5013184547424316,
-0.09788394719362259,
-0.217072531580925,
-0.5131548047065735,
-0.2821159064769745,
0.5810781717300415,
-0.39868202805519104,
-0.0701168999075889... | |
I have a few remote SQL servers that I need to pull a large amount of data from regularly (say 5,000,000 rows per server). This data also needs to be formatted and FTPed to another server. The dial-up portion is fine, I can connect and communicate with the server, but sometimes the connection is slow, maybe only 19Kbps... | [
0.16538086533546448,
0.06948991864919662,
0.6721452474594116,
0.05182384327054024,
0.04544328525662422,
-0.010030986741185188,
0.4055265188217163,
0.2227524369955063,
-0.2555398941040039,
-0.547630786895752,
0.2182653397321701,
0.3764041066169739,
0.1318541318178177,
0.2585805654525757,
... | |
at around 30 seconds.
I tried using a DataReader and running SqlCommand.ExecuteNonQuery() to insert each row, which works OK, but it's slow and sometimes the connection is lost.
I also tried setting up a DTS package on the remote servers, scheduling them to dump the data I need to text, and then tried downloading th... | [
0.04519394785165787,
-0.1546766757965088,
0.5713179707527161,
0.17408429086208344,
0.18236224353313446,
0.15814080834388733,
0.487739235162735,
0.19251090288162231,
-0.004690905567258596,
-0.6160218715667725,
-0.042622439563274384,
0.454933226108551,
0.04007963463664055,
-0.176970347762107... | |
easiest way, it also allows other to retrieve the data manually if necessary without the ability to alter the source) that takes a few arguments to build the query I need. It then runs the query and dumps the results in the required CSV format. Then it calls 7zip with the highest compression level to compact the data a... | [
0.0708017572760582,
-0.033252373337745667,
0.7515662312507629,
0.019013458862900734,
0.26850196719169617,
-0.29761016368865967,
0.30171406269073486,
-0.1777360439300537,
-0.13948261737823486,
-0.6214780211448669,
-0.37412747740745544,
0.6488246321678162,
0.01887529343366623,
-0.11899797618... | |
copying the file to a windows share, then decompressing it locally and FTP the uncompressed data (as requested) to it's destination.
This may not be the best approach, but it's working. Thanks | [
0.2673119306564331,
-0.02303784154355526,
0.2825193405151367,
0.36296284198760986,
0.3556356430053711,
-0.3262103199958801,
0.042902134358882904,
0.2861804962158203,
-0.16236183047294617,
-0.6986770629882812,
-0.11032264679670334,
0.2511745095252991,
-0.07347934693098068,
0.137955218553543... | |
I was trying to build [Boost C++ Libraries](http://en.wikipedia.org/wiki/Boost_C%2B%2B_Libraries) for last two hours and stopped without any result. Since I am new to C++, I am unable to get the build right. How can I build it correctly using Visual Studio 2008?
I need to use the BCP tool to extract a subset of librar... | [
0.21626442670822144,
0.3094853162765503,
0.24906878173351288,
0.006947536487132311,
-0.3482648432254791,
-0.012790938839316368,
0.5110987424850464,
-0.4487038552761078,
-0.14659570157527924,
-0.3967571258544922,
-0.016706040129065514,
0.7360110878944397,
-0.2328042834997177,
-0.26794859766... | |
LIB environment variables in your command shell. For this, call the file "`vcvarsall.bat`" (or similar) with parameter:
```
vcvarsall.bat x86
```
Next you have to build bjam (you can also download it from the Boost page, but it's almost as quick). Go to the `tools\jam\src` folder in Boost and type:
```
build.bat
`... | [
0.006263270974159241,
0.18646124005317688,
0.507712721824646,
-0.44007018208503723,
-0.16529510915279388,
-0.18484480679035187,
0.29157885909080505,
-0.21428613364696503,
0.0008026292198337615,
-0.7618182897567749,
-0.2912336587905884,
0.6875041723251343,
-0.6721883416175842,
-0.1598409265... | |
buildable libraries can be shown with:
```
bjam –-show-libraries
```
There are many more bjam build parameters. Some parameters with keywords you can specify are:
```
variant=debug|release
link=shared|static
threading=multi|single
```
An example would be:
```
bjam toolset=msvc –-with-filesystem threading=multi v... | [
0.14548924565315247,
0.06055603176355362,
0.32119038701057434,
0.08108890801668167,
-0.20805881917476654,
0.016753442585468292,
0.2917317748069763,
-0.40042436122894287,
-0.43261483311653137,
-0.41762539744377136,
-0.27111169695854187,
0.4754835069179535,
-0.3651151657104492,
0.05839498713... | |
I need to give access to users to some Reports History (Reporting Services snapshots lists, under <http://SEVERNAME//Reports/_layouts/ReportServer/ReportHistory.aspx?list=>{REPORTID} but they shouldn't access and navigate the Report Library to do so.
A Links List did the trick to direct the users to the reports and the... | [
0.11815756559371948,
0.12453605234622955,
0.693998396396637,
0.05531131103634834,
-0.32305508852005005,
-0.24624218046665192,
0.0702926367521286,
-0.3106391429901123,
-0.2225482314825058,
-0.4943852722644806,
0.17352357506752014,
0.2141181230545044,
-0.06975805759429932,
0.1690412163734436... | |
I didn't know that SwingX provides a titled separator.
**@Bombe** Thank you for your help. | [
1.1320619583129883,
0.0758746787905693,
0.0605500191450119,
0.3488138020038605,
-0.3848963975906372,
-0.19920867681503296,
0.31379055976867676,
0.1761748492717743,
-0.15175583958625793,
-0.4171629548072815,
0.09067773073911667,
0.18315620720386505,
0.21849969029426575,
-0.18874868750572205... | |
Just dipping my toes into Linq2sql project after years of rolling my own SQL Server DB access routines.
Before I spend too much time figuring out how to make linq2sql behave like my custom code used to, I want to check to make sure that it isn't already "built" in behavior that I can just use by setting up the relatio... | [
-0.04331590607762337,
-0.012370409443974495,
0.5079210996627808,
0.15847595036029816,
0.062008313834667206,
0.09215337783098221,
0.08978967368602753,
-0.3323343098163605,
-0.06854301691055298,
-0.6449750065803528,
0.3945285677909851,
0.4013550877571106,
0.03259580582380295,
-0.107050813734... | |
continuing that) which makes the Link2SQL a bit more work for me.
**sp\_PersonGet(@ID int)** which returns the person record and **sp\_PersonNotesGet(@PersonID)** which returns a set of related notes for this person.
So far so good, I have an object:
```
Dim myPerson As Person = db.PersonGet(pnID).Single
```
and ... | [
-0.13071303069591522,
0.07003380358219147,
0.731706976890564,
-0.18117842078208923,
-0.29637494683265686,
0.13089093565940857,
0.18235695362091064,
-0.14196841418743134,
-0.2638407349586487,
-0.7986031174659729,
0.3014170527458191,
0.570892333984375,
0.1185939684510231,
0.17990820109844208... | |
I also end up with a myPerson.Notes collection that I can iterate thru.
```
For Each N As Note In myPerson.Notes
( do something)
Next
```
Basically, Linq2SQl would need to call 2 stored procedures each time a Person record is created...
Is this doable "out of the box", or is this something I need to code around ... | [
0.03560803830623627,
0.06980561465024948,
0.2758806347846985,
0.0923101156949997,
0.15994992852210999,
0.12164764106273651,
-0.023413682356476784,
-0.32188740372657776,
-0.38179558515548706,
-0.4186214208602905,
0.1749752312898636,
0.21916815638542175,
0.01630651205778122,
0.26682603359222... | |
My coworker and I constantly argue about button sizes. I like to have buttons that have a fixed size (ie if minimized/maximized the button sizes dont change,other controls may but not buttons), width= text in it and height=27 -30 pixels.
My co-worker prefers buttons that are only 20 pixels in height and the width is ... | [
0.3834375739097595,
-0.10922422260046005,
0.34178072214126587,
0.02361506037414074,
-0.11826134473085403,
0.34677597880363464,
0.11230012774467468,
-0.25691550970077515,
-0.28512436151504517,
-0.7413142323493958,
0.41015106439590454,
0.5572613477706909,
0.015286242589354515,
-0.00857212580... | |
[Vista UX Guidelines](http://msdn.microsoft.com/en-us/library/aa511258.aspx) the default button size should be 14 x 50 "dialog units" (about 28px by 100px on a 96dpi monitor), with about an 11px border from the side.
Regardless of how you feel about Microsoft as a company, I think they do a good job with an uniform UI... | [
0.07573414593935013,
-0.0851883590221405,
0.712489128112793,
0.10507304221391678,
0.20958378911018372,
0.17390041053295135,
0.08310791105031967,
-0.15724606812000275,
-0.14180372655391693,
-0.665050208568573,
-0.08039074391126633,
0.6790860295295715,
-0.09651403874158859,
-0.28899285197257... | |
I have a number of generated html tables that I need to output as an Excel file. The site is codded in classic ASP. Is this possible? Could it be done by somehow using the Open Office libraries?
---
EDIT: Thus far, I have tried some of the suggestions, but it seems to fail. Ideally, I want the user to be able to clic... | [
0.2912190556526184,
0.2014356553554535,
0.6241047382354736,
-0.04573451727628708,
-0.3234921395778656,
-0.12473728507757187,
0.23058533668518066,
-0.014663717709481716,
-0.009787335991859436,
-0.852958083152771,
-0.16532166302204132,
0.48265424370765686,
-0.25484445691108704,
0.06202429905... | |
<th>Test Col 2</th>
<th>Test Col 3</th>
<th colspan="2">Test Col 4</th>
<th>Test Col 6</th>
<th>Test Col 7</th>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td> | [
0.028569024056196213,
0.07654186338186264,
0.37496519088745117,
0.12621548771858215,
-0.21302717924118042,
0.20470619201660156,
0.40833041071891785,
-0.5253165364265442,
0.0834951251745224,
-0.5689912438392639,
-0.21636903285980225,
0.4733904004096985,
-0.07453785836696625,
0.0868308395147... | |
<td>Data</td>
<td>Data</td>
</tr>
</table>
```
seems to fail when IE7 is used to get the page. IE says that it "cannot download excelTest.asp" and that "The requested site is either unavailable or cannot be found."
It's AddHeader, not AppendHeader.
```
<%@ Language=VBScript %>
<% Option Explicit
Respon... | [
0.17079278826713562,
-0.032825447618961334,
0.5148691534996033,
-0.13584482669830322,
-0.4361276626586914,
0.03347869962453842,
0.4264674782752991,
-0.7014504671096802,
0.19285325706005096,
-0.5826729536056519,
-0.15533113479614258,
0.6046116948127747,
-0.310581773519516,
-0.07783224433660... | |
xls and csv files. | [
-0.025241849943995476,
0.09317468106746674,
0.07982838898897171,
0.15711937844753265,
-0.005513762589544058,
-0.12255971133708954,
-0.33024629950523376,
0.20353667438030243,
-0.28576499223709106,
-0.7215429544448853,
-0.5660571455955505,
0.09230701625347137,
-0.41380295157432556,
0.1624807... | |
I've seen a couple .net applications that allow you to select a C# .cs source file and the program itself will compile this code and run it.
How is this done?
It probably uses the CSharpCodeProvider class in the Microsoft.CSharp namespace. You would want to look at the following methods to compile code:
```
CompileA... | [
0.5783168077468872,
0.46610769629478455,
0.24084429442882538,
0.1278124451637268,
0.0834815502166748,
-0.19537360966205597,
-0.2321227788925171,
0.1657116860151291,
-0.39313435554504395,
-0.5737103223800659,
0.16680307686328888,
0.41156578063964844,
-0.1858622133731842,
0.17726275324821472... | |
I have my resource and they typical overridden method to handle POST requests.
```
public void acceptRepresentation(Representation rep) {
if (MediaType.APPLICATION_XML.equals(rep.getMediaType())) {
//Do stuff here
}
else {
//complain!
}
}
```
What I want to know is the best practice to handle my... | [
0.3851931691169739,
0.31659287214279175,
0.5305641293525696,
0.1184237152338028,
-0.12345927953720093,
-0.25814294815063477,
0.15265879034996033,
-0.2283414900302887,
-0.14160913228988647,
-0.8954696655273438,
-0.05844290554523468,
0.4982703626155853,
-0.052424825727939606,
0.2531191110610... | |
is much appreciated.
This is more of the kind of response I was looking for. Thanks to [Thierry Boileau](http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1024110) for the answer:
> You can use two kinds of "XML
> representations": DomRepresentation
> and SaxRepresentation. You can
> instantiate b... | [
-0.3681632876396179,
0.30463793873786926,
0.6507308483123779,
0.0743461400270462,
-0.12515324354171753,
0.30359089374542236,
0.19580112397670746,
-0.6918684244155884,
-0.6378799080848694,
-0.6173281669616699,
-0.5065038800239563,
0.8332414031028748,
-0.14938239753246307,
-0.167793616652488... | |
I'm currently writing a class to handle all database-activity in my application, and so I've come to the method that performs UPDATE-queries.
As of now I'm returning and displaying the content of the commandtext to check it, and it seems fine:
```
UPDATE news SET title = @title, newsContent = @newsContent, excerpt = ... | [
0.2542475163936615,
0.013168808072805405,
0.7189220786094666,
0.045960500836372375,
-0.12669381499290466,
-0.22901397943496704,
0.2668052613735199,
0.07191358506679535,
-0.12691953778266907,
-0.5837644934654236,
0.12112420052289963,
0.4738679826259613,
-0.20344503223896027,
0.1181467995047... | |
no reason for this.
```
public string updateQuery(string table, string[] fields, object[] values, string conditionField, object conditionValue)
{
try
{
StringBuilder cmd = new StringBuilder("UPDATE " + table + " SET ");
int i = 1;
foreach (string s in fields)
{
if (... | [
0.07296882569789886,
-0.18243128061294556,
0.6534296870231628,
-0.2786685824394226,
0.2493644654750824,
0.026459762826561928,
0.381496399641037,
-0.45409902930259705,
-0.016206922009587288,
-0.4778778553009033,
-0.43994632363319397,
0.5210537910461426,
-0.268837034702301,
0.183437526226043... | |
cmd.Append(s + " = @" + s + " ");
}
else
{
cmd.Append(s + " = @" + s + ", ");
} | [
-0.5182403922080994,
0.024056019261479378,
0.6842990517616272,
-0.1522504687309265,
-0.06098475679755211,
0.49155646562576294,
0.16411936283111572,
-0.3188450336456299,
-0.12431169301271439,
-0.7418344020843506,
-0.5469649434089661,
0.3122512698173523,
-0.4973185062408447,
-0.0059825954958... | |
i++;
}
cmd.Append("WHERE (" + conditionField + " = @" + conditionField + ");");
command.CommandText = cmd.ToString();
int j = 0;
foreach (object o in values)
{
command.Parameters.AddWithValue("@" + fields[j], o); | [
-0.28870755434036255,
-0.1068587601184845,
0.7623636722564697,
-0.4735790491104126,
0.27942177653312683,
0.44816744327545166,
0.3558172583580017,
-0.48913905024528503,
0.057974111288785934,
-0.3424908518791199,
-0.5206026434898376,
0.809795618057251,
-0.22308360040187836,
0.003703297115862... | |
j++;
}
command.Parameters.AddWithValue("@" + conditionField, conditionValue);
command.ExecuteNonQuery();
connection.Close();
return command.CommandText;
}
catch (Exception ex)
{
throw ex;
}
}
```
Anyone?
Thanks for the suggestions Joel Coehoorn, i will... | [
0.3355121910572052,
0.15226344764232635,
0.23708191514015198,
-0.21267950534820557,
0.27330851554870605,
-0.18842105567455292,
0.5365964770317078,
-0.14691270887851715,
-0.3670671582221985,
-0.43872296810150146,
-0.332841157913208,
0.5574712753295898,
-0.20503316819667816,
0.04389340803027... | |
have been updating itself all the time. None of the other fields, though. This just makes less sense the more i look at it. Maybe its better to try in the morning than at midnight.
EDIT:
Found out what the problem was, and it was far simpler than i expected. I'd forgotten to check if the page was a postback, so every ... | [
0.4035741090774536,
-0.18144312500953674,
0.7664169073104858,
-0.05213530734181404,
-0.23097506165504456,
0.07240571081638336,
0.07170127332210541,
-0.05086471140384674,
-0.28675583004951477,
-0.6570442318916321,
0.05291586369276047,
0.24870775640010834,
-0.03693728521466255,
-0.1716055721... | |
Well here's my problem I have three tables; regions, countries, states. Countries can be inside of regions, states can be inside of regions. Regions are the top of the food chain.
Now I'm adding a popular\_areas table with two columns; region\_id and popular\_place\_id. Is it possible to make popular\_place\_id be a f... | [
0.09881731867790222,
-0.07578107714653015,
0.4483067989349365,
0.2448439747095108,
0.3846946954727173,
0.26159071922302246,
-0.29857316613197327,
0.2467600703239441,
-0.41073593497276306,
-0.7774755954742432,
-0.009568631649017334,
-0.10075154900550842,
-0.17545992136001587,
0.926949560642... | |
one of a set of target tables. Typically the target tables are related in some way, such as being instances of some common superclass of data. You'd also need another column along side the foreign key column, so that on each row, you can designate which target table is referenced.
```
CREATE TABLE popular_places (
u... | [
0.12515012919902802,
0.22758042812347412,
0.164149209856987,
0.32587847113609314,
0.18942353129386902,
-0.09996841847896576,
-0.1362733542919159,
-0.09763912856578827,
-0.23459629714488983,
-0.8350445628166199,
-0.5311792492866516,
-0.1578965038061142,
-0.6082017421722412,
0.19627475738525... | |
frameworks such as Rails and Hibernate. But they explicitly say that you must disable SQL constraints to use this feature. Instead, the application or framework must do equivalent work to ensure that the reference is satisfied. That is, the value in the foreign key is present in one of the possible target tables.
Poly... | [
0.2906172275543213,
0.13837930560112,
0.15342819690704346,
0.30166947841644287,
-0.27731892466545105,
-0.2757585048675537,
0.42726731300354004,
-0.3626698851585388,
-0.21980059146881104,
-0.4786856174468994,
0.009957625530660152,
0.5570043921470642,
-0.551069438457489,
0.10210151970386505,... | |
table per target.** For example `popular_states` and `popular_countries`, which reference `states` and `countries` respectively. Each of these "popular" tables also reference the user's profile.
```
CREATE TABLE popular_states (
state_id INT NOT NULL,
user_id INT NOT NULL,
PRIMARY KEY(state_id, user_id),
FORE... | [
0.2969105839729309,
0.10116983950138092,
0.8065902590751648,
0.3417425751686096,
0.20558640360832214,
0.04561738297343254,
-0.24668677151203156,
0.24016042053699493,
-0.4032648503780365,
-0.5820847153663635,
-0.26697689294815063,
-0.009701717644929886,
-0.24157340824604034,
0.2898206114768... | |
to query both of these tables. But it means you can rely on the database to enforce consistency.
**Create a `places` table as a supertable.** As Abie mentions, a second alternative is that your popular places reference a table like `places`, which is a parent to both `states` and `countries`. That is, both states and ... | [
-0.01693420484662056,
0.10796177387237549,
0.4039725065231323,
0.4085855782032013,
0.1864035725593567,
-0.26961570978164673,
-0.1383049339056015,
0.04578021168708801,
-0.7620416879653931,
-0.70867919921875,
-0.337864488363266,
-0.40411314368247986,
-0.14141039550304413,
0.48124927282333374... | |
REFERENCES places(place_id)
);
CREATE TABLE states (
state_id INT NOT NULL PRIMARY KEY,
FOREIGN KEY (state_id) REFERENCES places(place_id)
);
CREATE TABLE countries (
country_id INT NOT NULL PRIMARY KEY,
FOREIGN KEY (country_id) REFERENCES places(place_id)
);
```
**Use two columns.** Instead of one column t... | [
0.06998072564601898,
0.4371502697467804,
0.5846352577209473,
0.3709193170070648,
0.4542933702468872,
0.009799518622457981,
-0.16178679466247559,
-0.19252218306064606,
-0.5685213208198547,
-0.7492595911026001,
-0.31983572244644165,
-0.5498279333114624,
-0.35632672905921936,
0.71578598022460... | |
NOT NULL OR country_id IS NOT NULL),
FOREIGN KEY (state_id) REFERENCES places(place_id),
FOREIGN KEY (country_id) REFERENCES places(place_id)
);
```
In terms of relational theory, Polymorphic Associations violates [First Normal Form](http://en.wikipedia.org/wiki/First_normal_form), because the `popular_place_id` ... | [
0.25111448764801025,
0.18799452483654022,
0.4591990113258362,
0.2242855429649353,
0.427255243062973,
-0.2162729650735855,
0.17295341193675995,
-0.019731538370251656,
-0.3881082236766815,
-0.4949983060359955,
-0.4005092978477478,
-0.12891219556331635,
-0.3677824139595032,
0.5162441730499268... | |
because the meaning of the column depends on the extra column which names the table to which the foreign key refers. In Third Normal Form, an attribute in a table must depend only on the primary key of that table.
---
Re comment from @SavasVedova:
I'm not sure I follow your description without seeing the table defin... | [
0.4958718419075012,
-0.0636829361319542,
0.1422739028930664,
-0.042660001665353775,
0.08604393154382706,
-0.09603407233953476,
-0.027450893074274063,
-0.35548052191734314,
-0.13627101480960846,
-0.5545366406440735,
-0.08913933485746384,
0.18720118701457977,
-0.5740933418273926,
0.135345891... | |
NULL,
FOREIGN KEY (product_id) REFERENCES Products(product_id)
);
CREATE TABLE FiltersType2 (
filter_id INT PRIMARY KEY,
product_id INT NOT NULL,
FOREIGN KEY (product_id) REFERENCES Products(product_id)
);
...and other filter tables...
```
Joining the products to a specific type of filter is easy if you kn... | [
0.19479525089263916,
-0.1626504808664322,
0.4114958941936493,
-0.1965315192937851,
-0.05667373910546303,
0.031659409403800964,
-0.21752488613128662,
-0.41185009479522705,
-0.23821841180324554,
-0.6659029722213745,
-0.07171186059713364,
0.43692484498023987,
-0.9606226086616516,
0.0936674997... | |
based on the values found in individual rows of `Products`.
The only other option is to join to *all* filter tables using outer joins. Those that have no matching product\_id will just be returned as a single row of nulls. But you still have to hardcode *all* the joined tables, and if you add new filter tables, you ha... | [
0.18720093369483948,
-0.09628970921039581,
0.2092670351266861,
-0.2704220414161682,
-0.10762893408536911,
0.11625289171934128,
0.07641150802373886,
-0.6535179018974304,
-0.14081521332263947,
-0.9674188494682312,
-0.05671057105064392,
0.1899857223033905,
-0.7844384908676147,
0.0627472847700... | |
* FROM Products
INNER JOIN FiltersType2 USING (product_id)
UNION ALL
SELECT * FROM Products
INNER JOIN FiltersType3 USING (product_id)
...
```
But this format still requires you to write references to all tables. There's no getting around that. | [
0.2048923671245575,
0.12597347795963287,
0.44048014283180237,
-0.29573217034339905,
-0.10175129026174545,
-0.009292270988225937,
-0.02463970147073269,
-0.4140363037586212,
-0.026512471958994865,
-0.8980923891067505,
0.0775565356016159,
0.2490745335817337,
-0.7022526264190674,
0.00585991609... | |
I'm trying to use this code to replace spaces with \_, it works for the first space in the string but all the other instances of spaces remain unchanged. Anybody know why?
```
function updateKey()
{
var key=$("#title").val();
key=key.replace(" ","_");
$("#url_key").val(key);
}
```
Try `.replace(/ /g,"_");... | [
0.3508789539337158,
0.04272941127419472,
0.25772103667259216,
-0.09419266879558563,
0.2115079164505005,
-0.1647554636001587,
0.45642343163490295,
-0.3660448491573334,
-0.0953749343752861,
-0.6283254623413086,
-0.27518799901008606,
0.752595841884613,
-0.42301735281944275,
0.1034832224249839... | |
to work that way in most
> modern browsers. (There are changes
> going in place to grossly improve the
> performance of .replace(/match/g,
> "replace") in the next version of
> Firefox - so the previous statement
> won't be the case for long.) | [
0.16447995603084564,
0.12103669345378876,
0.5316985249519348,
-0.08638313412666321,
0.21136784553527832,
-0.5047461986541748,
0.5524073839187622,
0.03310684859752655,
0.01609354093670845,
-0.8897944092750549,
-0.46956783533096313,
0.5685513615608215,
-0.5430393218994141,
-0.162010163068771... | |
can someone tell me why the following behavior occurs (Oracle 10.2):
```
SQL> create table part_test (
i int primary key,
d date
)
partition by range (d) (partition part_test_1 values less than (to_date(' 2 3 4 5 1980-01-01', 'yyyy-mm-dd')));
create public synonym part_test for part_test;
... | [
-0.15991921722888947,
0.05842381343245506,
0.1704995185136795,
0.13322122395038605,
0.2289634495973587,
-0.1922350972890854,
0.5632982850074768,
-0.2847730815410614,
0.14011919498443604,
-0.282067209482193,
0.05867068096995354,
0.5306537747383118,
-0.04950757697224617,
0.19459423422813416,... | |
object_type, status from all_objects where object_name = 'PART_TEST';
drop public synonym part_test;
drop table part_test;
Table created.
SQL> SQL>
Synonym created.
SQL> SQL>
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PART_TEST ... | [
-0.3461650013923645,
-0.1600501984357834,
0.43450984358787537,
0.36000069975852966,
0.0878257155418396,
0.14125759899616241,
0.3669179081916809,
-0.23890727758407593,
-0.13527418673038483,
-0.2997976839542389,
-0.3731294870376587,
0.184103861451149,
0.02495383657515049,
0.2488853484392166,... | |
TABLE PARTITION VALID
PART_TEST SYNONYM VALID
SQL> SQL>
Table altered.
SQL> SQL>
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PART_TEST | [
-0.3343016803264618,
-0.14882256090641022,
0.29360395669937134,
0.4428025186061859,
0.12284451723098755,
-0.08212433755397797,
0.09044382721185684,
-0.3228703439235687,
-0.05775788798928261,
-0.6356689929962158,
-0.10041408985853195,
-0.003463309956714511,
0.1531824916601181,
0.38677018880... | |
TABLE VALID
PART_TEST TABLE PARTITION VALID
PART_TEST TABLE PARTITION VALID
PART_TEST | [
-0.17972667515277863,
0.22790218889713287,
0.2680121064186096,
0.35785916447639465,
0.12116309255361557,
-0.039013635367155075,
-0.05361315235495567,
-0.32266172766685486,
0.039690643548965454,
-0.3939589858055115,
-0.16930678486824036,
0.006406559143215418,
0.3559512794017792,
0.102643109... | |
SYNONYM VALID
SQL> SQL>
Table altered.
SQL> SQL>
OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ ------------------- -------
PART_TEST TABLE VALID
PART_TEST | [
-0.20235081017017365,
0.004911377560347319,
0.27045610547065735,
0.5138905048370361,
0.043418679386377335,
-0.26987478137016296,
0.2756251096725464,
-0.17389442026615143,
0.06666897982358932,
-0.2703196108341217,
0.008370179682970047,
0.19198651611804962,
0.0543999969959259,
0.331793397665... | |
TABLE PARTITION VALID
PART_TEST SYNONYM INVALID
SQL> SQL>
Synonym dropped.
SQL>
Table dropped.
SQL>
```
The synonym becomes invalid after partitions are dropped, and I can't work out why.
Thanks for any thoughts.
I have tested it with Oracle 10.2 and the synonym becomes ind... | [
-0.06993304193019867,
0.20087477564811707,
0.14839717745780945,
0.13367526233196259,
0.01951655000448227,
-0.3284943997859955,
0.34714221954345703,
-0.16908642649650574,
-0.07200562953948975,
-0.5284335017204285,
-0.01542519312351942,
0.28048810362815857,
-0.06421944499015808,
0.3278464078... | |
the synonym and the synonym becomes valid.
It is the same with packages, procedures and functions. When you execute them and they are invalid, Oracle will try to compile them automatically. | [
0.21914783120155334,
0.14372387528419495,
-0.1629583239555359,
0.4680348038673401,
0.08551856875419617,
-0.4826643466949463,
0.1780412346124649,
-0.21312737464904785,
0.15564005076885223,
-0.09547661244869232,
-0.1806354820728302,
0.5567436814308167,
-0.17627902328968048,
0.315099716186523... | |
I have some classes that will do something based on some conditions . The conditions are sent as parameters to some methods . My questions is related to ruby coding style :
* should the conditions be sent as lambdas/blocks , or as some objects that inherit from a condition class ?
* which is more efficient in terms of... | [
0.5679136514663696,
0.08547619730234146,
-0.32846739888191223,
0.2503190338611603,
-0.1184944212436676,
0.06524793803691864,
0.26093724370002747,
-0.09346052259206772,
-0.14001144468784332,
-0.5987204909324646,
0.10897814482450485,
0.15492403507232666,
-0.4253709018230438,
0.02384755015373... | |
whole new class, create an instance, and pass it to your method. | [
0.10174988210201263,
-0.24572141468524933,
-0.2935636043548584,
0.5318735837936401,
-0.08143766969442368,
-0.18294383585453033,
0.275557279586792,
0.16621167957782745,
-0.03641411289572716,
-0.7265154719352722,
-0.07756518572568893,
0.15427549183368683,
-0.050802938640117645,
0.28452494740... | |
Regardless of what the user's local time zone is set to, using C# (.NET 2.0) I need to determine the time (DateTime object) in the Eastern time zone.
I know about these methods but there doesn't seem to be an obvious way to get a DateTime object for a different time zone than what the user is in.
```
DateTime.Now
D... | [
0.07944770157337189,
-0.2631830871105194,
0.49020564556121826,
0.013973446562886238,
0.41521328687667847,
-0.4667651057243347,
0.25160786509513855,
0.2678150534629822,
-0.166485995054245,
-0.8824671506881714,
-0.2684558629989624,
0.37299078702926636,
-0.36352598667144775,
-0.05310238152742... | |
Zones
```
contains sub-keys for all time zones. The TZI field value contains all the transition and bias properties for a time zone, but it's all stuffed in a binary array. The most important bits (bias and daylight), are int32s stored at positions 0 and 8 respectively:
```
int bias = BitConverter.ToInt32((byte[])tz... | [
0.09771549701690674,
-0.2526000142097473,
0.3518815040588379,
0.16008535027503967,
0.3615778982639313,
0.1298477053642273,
-0.11727014183998108,
0.04076063632965088,
-0.27887406945228577,
-0.42285993695259094,
-0.47156476974487305,
-0.10431329160928726,
-0.3794487416744232,
0.3304500877857... | |
I am trying create a WCF service that leverages the WPF MediaPlayer on the server to generate thumbnails for a video that a user uploads. I found a lot oif info on how to render a frame and save it to a file. But the problem is the key event MediaOpened (actually none of the events) I need to tie into **doesn't** - EDI... | [
0.3962656855583191,
-0.01290481723845005,
0.2587316036224365,
0.3781651258468628,
-0.41495856642723083,
-0.38703182339668274,
0.40235036611557007,
-0.15094707906246185,
-0.1161932572722435,
-0.7263539433479309,
0.19667749106884003,
0.829756498336792,
-0.4001113772392273,
0.1188668385148048... | |
code to generate thumbnails from a video - here is a snippet
```
public void GenerateThumbnails(string fileName, int numberOfThumbnails)
```
{
Queue \_positionsToThumbnail = new Queue();
Microsoft.Expression.Encoder.MediaItem video = new Microsoft.Expression.Encoder.MediaItem(fileName);
```
var totalMilliseconds ... | [
0.280264675617218,
-0.05458776652812958,
0.6508937478065491,
0.20333267748355865,
0.25317734479904175,
0.3590801954269409,
0.20720542967319489,
-0.36897337436676025,
-0.3413218557834625,
-0.46942630410194397,
-0.2260044664144516,
0.5892428755760193,
-0.1422235071659088,
0.167920783162117,
... | |
Is it a good practice to define DataContracts in an enterprise level assembly and then reference them in WCF service projects as opposed to defining them at the individual WCF service solution level? All of the WCF examples that I have seen have avoided that topic and have only defined DataContracts in the service solu... | [
0.5178971886634827,
-0.07720033079385757,
0.1510300636291504,
0.08120426535606384,
-0.3093573749065399,
-0.12020280212163925,
0.12284980714321136,
-0.16329863667488098,
-0.36843979358673096,
-0.5572643876075745,
-0.07435139268636703,
0.505068302154541,
-0.12990278005599976,
0.1332084536552... | |
a correct answer to this question, but I will try. I will at the very least give upvotes to anything that I feel adds to my understanding of the topic.
I really like the idea of putting DataContracts (and Service Contracts) into assemblies and then sharing them with the services and clients, etc, but I don't see any go... | [
0.7887797951698303,
0.15564094483852386,
0.000047372512199217454,
0.33095109462738037,
-0.015333447605371475,
-0.061038076877593994,
0.03936893120408058,
-0.11431843787431717,
-0.35552364587783813,
-0.495807945728302,
0.07271862030029297,
0.13956648111343384,
-0.008745388127863407,
0.23659... | |
assembly, etc.
Doing this eliminates the need to expose metadata and I think it'll let you do nifty stuff like hooking into the serialization events on both the server and client sides. | [
0.42199957370758057,
-0.08970438688993454,
-0.17471830546855927,
0.22596152126789093,
0.08505736291408539,
-0.28547269105911255,
-0.08182639628648758,
-0.1743006557226181,
-0.5086561441421509,
-0.39648720622062683,
-0.20348449051380157,
0.44684791564941406,
-0.10300766676664352,
-0.0869038... | |
When we start up Weblogic (8.1) from the command line, we’re passing it memory usage arguments of the form “-Xms256m -Xmx1024m” which gives it a GB to play with.
When we’re starting it up from ANT, we’re using a “wlserver” task instead which, I’m guessing, does a live launch of it. What memory parameters is it using ... | [
0.15042591094970703,
-0.33022671937942505,
0.5034898519515991,
-0.04902515560388565,
0.087557353079319,
-0.2759498953819275,
0.06896856427192688,
-0.01624029129743576,
-0.3070620894432068,
-0.615724503993988,
-0.06878747791051865,
0.5251929759979248,
-0.4224691689014435,
-0.025110635906457... | |
Like many other SharePoint users, I've had to create a custom list definition. After much trouble, I've managed to create one (I think, let me get through all the errors first), but is there a "basic" schema out there I can start with, or a purpose built editor for `Schema.xml` generation?
To create custom list definit... | [
0.6338455080986023,
0.008203329518437386,
0.1570052057504654,
0.15371789038181305,
-0.2644377052783966,
-0.19898247718811035,
0.058343857526779175,
-0.11619304865598679,
-0.30748000741004944,
-0.905540943145752,
0.28751111030578613,
0.4976674020290375,
-0.2518659830093384,
0.11778670549392... | |
and always get work done with copy-paste and changing attributes values.
Built in list definitions are located in 12 hive as features:
* Custom List – Features/CustomList/CustList/schema.xml;
* Document Library – Features/DocumentLibrary/DocLib/schema.xml;
* Calendar – Feature/EventsList/Events/schema.xml;
* Use sea... | [
0.37416866421699524,
0.1510280966758728,
0.43673452734947205,
0.3835147023200989,
0.20011655986309052,
-0.07640834152698517,
0.08313712477684021,
-0.044177137315273285,
-0.37083765864372253,
-0.8873275518417358,
-0.16472792625427246,
0.3894992172718048,
0.057753633707761765,
0.011572674848... | |
I'm trying to parse a date/time string using `DateTime.ParseExact`. It works everywhere, except on one machine - it just will not parse on that machine. The question is: Why? What could be different on that machine so that it will cause this behaviour?
Here are some things that I've already looked at:
* The `CultureI... | [
0.2587738037109375,
-0.25871381163597107,
0.44955143332481384,
0.1696549952030182,
0.0705040693283081,
-0.018315762281417847,
0.3478375971317291,
0.3968910872936249,
-0.24908970296382904,
-0.8195399641990662,
-0.07214425504207611,
0.16775497794151306,
-0.2169237732887268,
0.389540612697601... | |
you can never assume that the users of your application will even have their machines setup correctly in the first place!
A catch-all that I've been using to parse dates in if they have to be strings is to parse it in the "dd/MMM/yyyy" format, e.g. "14/JAN/2009" will translate nicely no matter what the settings are.
... | [
0.30090323090553284,
0.1539572924375534,
0.44158419966697693,
0.22368480265140533,
0.10956640541553497,
-0.2543974220752716,
0.10707474499940872,
0.2371589094400406,
-0.3321317434310913,
-0.4716947078704834,
0.04218151420354843,
0.35769495368003845,
0.015829425305128098,
0.1162663325667381... | |
In my test, I have 2 spans both set to display:inline-block with a border for visibility. Firefox renders space between each span. Even setting margin:0;padding:0; doesn't do anything to fix this. My expectation when setting the inline span element to display:inline-block is that the 2 spans render flush against each o... | [
0.2341625988483429,
0.07217030227184296,
1.043709635734558,
-0.11340750008821487,
-0.38168320059776306,
0.1287345588207245,
0.23613403737545013,
-0.5033004879951477,
-0.12448586523532867,
-0.7845538258552551,
0.16327954828739166,
0.4771323502063751,
-0.24615579843521118,
-0.261010497808456... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.