text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
there is an MVC1 for servlet applications, which there is not.
>
> It is sufficient just to say MVC. | [
0.12146317958831787,
-0.15325956046581268,
0.28193122148513794,
-0.07436759024858475,
-0.26209503412246704,
-0.38783958554267883,
-0.07973650842905045,
0.048465028405189514,
-0.22948485612869263,
-0.25881099700927734,
-0.5877295732498169,
0.2310294508934021,
-0.5615645051002502,
0.04318052... | |
I'm having the hardest time figuring out why Firefox3.1 returns the value of 'content' on a test element, while Safari 4 won't.
My sample page is setup like:
```
<style>
#asd{
content: 'test';
}
</style>
<div id="asd">
Bleh
</div>
```
And my JS is using getComputedStyle. This works for other properties like "backg... | [
0.17669863998889923,
0.2554655075073242,
0.2814269959926605,
-0.2435780167579651,
-0.25454673171043396,
-0.1561974287033081,
0.5986336469650269,
-0.4354327917098999,
-0.007667952682822943,
-0.6269313097000122,
-0.22300806641578674,
0.5526553988456726,
-0.37753841280937195,
-0.2505503296852... | |
I am using NHibernate and log4net. This is a snapshot of my error log file, using a release version of my software:
```
INFO 2009-04-28 03:07:06 - processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: bpojob.Generated.BusinessObjects.Job
INFO 2009-04-28 03:07:06 - cascade NHibernate.Engin... | [
-0.3370417356491089,
0.2397308200597763,
0.389421284198761,
-0.02535480260848999,
0.03206605464220047,
0.1738998293876648,
0.5162277221679688,
-0.5374062061309814,
-0.2549203932285309,
-0.485762357711792,
0.07153673470020294,
0.49956557154655457,
-0.47035956382751465,
0.02383764088153839,
... | |
Job_Id, Status) VALUES (?, ?, ?)
DEBUG2009-04-28 03:07:06 - Dehydrating entity: [bpojob.Generated.BusinessObjects.JobItem#<null>]
DEBUG2009-04-28 03:07:06 - binding 'Blue hills.jpg' to parameter: 0
DEBUG2009-04-28 03:07:06 - binding '8' to parameter: 1
DEBUG2009-04-28 03:07:06 - binding '1' to parameter: 2
DEBUG2009-04... | [
-0.58632493019104,
0.2454182654619217,
0.37957489490509033,
0.1838744878768921,
0.14782102406024933,
0.32829201221466064,
0.47044503688812256,
-0.2915853261947632,
-0.2836402952671051,
-0.26653197407722473,
-0.24325330555438995,
0.613459587097168,
-0.3277905285358429,
0.30720487236976624,
... | |
key 'Unique'
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId)
at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet()
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlComma... | [
-0.3135990500450134,
0.03624565899372101,
0.19568897783756256,
0.003842519363388419,
0.06666463613510132,
-0.004821895156055689,
0.3971693813800812,
-0.38414478302001953,
-0.4530566930770874,
-0.45440131425857544,
-0.3836480379104614,
0.48269152641296387,
-0.33830493688583374,
0.3061910569... | |
debug information is **release mode**. How to do this?
In your log4net.xml use a different file appender logger for Error and Warning
See [here](http://logging.apache.org/log4net/release/manual/configuration.html) for more info | [
0.45432740449905396,
0.07322154939174652,
0.024970756843686104,
0.05451682209968567,
0.16809241473674774,
-0.7467777132987976,
0.30439865589141846,
-0.03699301928281784,
-0.45871567726135254,
-0.3215119540691376,
-0.45531123876571655,
0.49466392397880554,
-0.337251752614975,
0.030021095648... | |
i want to ask, how to change only fill color of an instance on the stage - i can do it by using ColorTransform object, but it changes color of the whole instance, not just the fill. I want to change only the fill color, not the stroke color. can anybody help me?
this is my code:
```
function paint(){
var myColorT... | [
-0.11703936755657196,
-0.060337647795677185,
0.5532751083374023,
-0.23385871946811676,
0.043201882392168045,
0.31027716398239136,
0.2805592119693756,
-0.2908202111721039,
0.048354264348745346,
-0.9060649871826172,
0.16353069245815277,
0.8093841671943665,
-0.1394752711057663,
-0.14377775788... | |
a fill.
You have a couple of options.
Separate your fill and stroke into separate movie clips and set the color transform to only apply to the fill.
or
If it's a simple shape, draw it using the Graphics object where you can specify fill colours and stroke colours.
Likely hood is, and my preferred method, would be... | [
0.6195354461669922,
-0.4151768386363983,
0.5801183581352234,
0.28962987661361694,
0.18614783883094788,
0.07272510975599289,
-0.41632822155952454,
-0.18464912474155426,
0.037922654300928116,
-0.4970704913139343,
0.1420639306306839,
0.8350353837013245,
-0.2055957168340683,
-0.317361205816268... | |
I think that I am stuck with this particular situation:
Here are my tables:
item\_table:
id | item
1 : A
2 : B
3 : C
attr\_table:
attr | item\_id
1 : 1
1 : 2
2 : 1
2 : 3
3 : 2
3 : 3
I would like to know if it is technically possible to retrieve any item which is assoc... | [
-0.13802893459796906,
0.2704234719276428,
0.5736263394355774,
-0.050884127616882324,
-0.1557648777961731,
0.19838382303714752,
0.228643536567688,
-0.21258068084716797,
-0.33821532130241394,
-0.21124589443206787,
0.024142412468791008,
0.1946241557598114,
-0.2761691212654114,
0.2735532224178... | |
if I request an item which is associated with attr = 1 and 2, I should get 'A' only.
The thing is that attr\_table can potentially have a lot of rows and I wish to make only one query.
This question sounds easy and I am quite upset for not being able to answer it.
I was hoping that someone smarter could give me a h... | [
-0.01605674996972084,
0.0886746346950531,
0.5028873682022095,
-0.1459171324968338,
-0.45921462774276733,
0.04822691157460213,
0.1623726189136505,
-0.37658506631851196,
-0.0947563648223877,
-0.4270774722099304,
0.15699796378612518,
0.5429396629333496,
-0.4810907542705536,
0.1477654576301574... | |
(1, 2, 5), you'll have to change the count to 3.
```
DECLARE @item_table TABLE (ID INTEGER PRIMARY KEY, Item CHAR(1))
DECLARE @attr_table TABLE (Attr INTEGER, Item_ID INTEGER)
INSERT INTO @item_table VALUES (1, 'A')
INSERT INTO @item_table VALUES (2, 'B')
INSERT INTO @item_table VALUES (3, 'C')
INSERT INTO @attr_tab... | [
-0.15531344711780548,
0.0515098050236702,
0.6361487507820129,
-0.13098569214344025,
-0.1690080463886261,
0.3584887683391571,
0.19738523662090302,
-0.9050966501235962,
-0.12945230305194855,
-0.43073511123657227,
-0.13921311497688293,
0.2874423563480377,
-0.4847988486289978,
0.19060498476028... | |
We're using an old application that stores dates in C / Unix format. C time is basically the number of seconds since Jan 1st, 1970. The dates are stored as an integer in a SQL Server database. I am writing a view for a report that uses these dates.
So far, I'm converting from the UNIX time to a native datetime with:
... | [
0.261552095413208,
-0.043142128735780716,
0.6727802157402039,
0.02664993144571781,
0.06753071397542953,
0.08534090965986252,
-0.1244584172964096,
0.38740280270576477,
-0.38070613145828247,
-0.36230093240737915,
0.1259627640247345,
0.022037962451577187,
-0.21956013143062592,
0.3362932205200... | |
local time in SQL Server?
Instead of 3600, you'll want to do DateDiff(s, getutcdate(), getdate())+unix\_time, which will give you the correct offset from the UTC time.
Cheers,
Eric | [
0.2935948073863983,
0.0729510486125946,
0.7277933955192566,
0.2787743806838989,
0.11269670724868774,
-0.33960556983947754,
0.2864829897880554,
0.3097549378871918,
-0.2837429642677307,
-0.25322040915489197,
-0.04342987388372421,
0.37280622124671936,
-0.014700089581310749,
-0.118969805538654... | |
the following snippet is often used when said to be allocate storage for local variables
```
addl $8,%esp //allocate 8-byte storage
push %ebx //store some value onto the stack
```
why not simply push the value onto the stack,but rather allocated some space in advance?
If you're asking why doesn't a compiler ge... | [
0.043771401047706604,
-0.09490938484668732,
0.21313044428825378,
-0.3435509204864502,
0.011809716001152992,
0.16273345053195953,
-0.08611498028039932,
-0.2290201038122177,
-0.1870461255311966,
-0.40131351351737976,
-0.22240763902664185,
0.3376506567001343,
-0.218802809715271,
-0.0282067619... | |
Actual assembly Your suggestion
void x(void) {
int a; subl 8,%esp push 0
int b; push 0
: : : blah | [
0.4641140103340149,
-0.25425758957862854,
0.4908770024776459,
0.015421892516314983,
0.18080462515354156,
0.33586549758911133,
0.3549482524394989,
-0.37952250242233276,
-0.13618770241737366,
-0.5642620921134949,
-0.0830644741654396,
0.3366948068141937,
-0.32910585403442383,
-0.1373483985662... | |
blah blah blah
}
```
My answer is that it's unnecessary and inefficient in cases such as:
```
C Code Actual assembly Your suggestion
void x(void) {
int a[100]; subl 400,%esp push 0 | [
0.6248191595077515,
0.08621266484260559,
0.41167721152305603,
-0.16362349689006805,
0.2445661574602127,
0.15126991271972656,
0.24615034461021423,
-0.3138487637042999,
0.21655960381031036,
-0.5816365480422974,
-0.306153804063797,
0.427855521440506,
-0.33323365449905396,
0.04102211073040962,... | |
push 0
push 0
: : : | [
-0.3601352274417877,
-0.34857743978500366,
0.8616805672645569,
-0.33697885274887085,
-0.46773096919059753,
0.6557270884513855,
0.03228655084967613,
-0.07412531971931458,
-0.03260516747832298,
-0.3512228727340698,
0.2430996149778366,
0.2525688707828522,
0.03197893872857094,
0.03323533385992... | |
push 0
: : : blah blah blah blah
```
What you propose may make sense for something like:
```
C Code Your suggestion
void x(void) {
int | [
0.37708795070648193,
-0.20539529621601105,
0.38723376393318176,
-0.0824783444404602,
0.11580841988325119,
0.07483521103858948,
0.0016451184637844563,
-0.30314531922340393,
0.13150501251220703,
-0.5305340886116028,
-0.14208824932575226,
0.44585973024368286,
-0.5026247501373291,
0.0401019044... | |
a = 7; push 7
int b = 9; push 9
int c[4]; subl 16,%esp
: : : blah blah
}
``` | [
0.08809683471918106,
-0.0052013639360666275,
0.7596086263656616,
-0.7395195364952087,
-0.02657550759613514,
0.25701799988746643,
0.33213505148887634,
-0.3872103989124298,
-0.1370178461074829,
-0.270189493894577,
-0.44941872358322144,
0.3984672725200653,
-0.3792042136192322,
0.2045559138059... | |
I have a contact list that I use in a issue list (lookup). When I delete the contact in the contact list is also gone in my already created issue.
Can someone help?
OK, I found it by myself in the end.
The right answer is:
In the Firefox installation, look for `firefox.js`
Find this line:
`pref("browser.EULA.3.ac... | [
0.34219130873680115,
0.3815036118030548,
0.48602402210235596,
0.06480695307254791,
0.2422322928905487,
0.004149938002228737,
0.5418447852134705,
0.07416196912527084,
-0.04641961306333542,
-0.6832707524299622,
-0.28424400091171265,
0.5606111884117126,
-0.2560971975326538,
-0.133853748440742... | |
I feel that when I use NSArray, I might constraint myself some time in future. Are there any good reasons to prefer this "primitive" one instead of the "complex" one, which is mutable?
Using a non-mutable structure in your code is not much of a constraint - if it turns out that you need to modify it later on you can ch... | [
0.12459069490432739,
-0.07560330629348755,
0.06161610782146454,
0.18127430975437164,
0.07974632829427719,
-0.16042836010456085,
0.21600422263145447,
0.050710778683423996,
-0.5795158743858337,
-0.5685396194458008,
0.16317801177501678,
0.8045072555541992,
-0.5261211395263672,
0.4088759720325... | |
conceptualize the code - there is less to concern you if mutability is taken out of the equation. This is why we have `const` constraints and so on - if you don't have to modify the data it is better to say so up front. | [
0.49544963240623474,
0.24285531044006348,
-0.27224114537239075,
0.2998781204223633,
-0.1832275390625,
-0.07455389201641083,
0.42639249563217163,
-0.14149825274944305,
0.05604153499007225,
-0.6405869722366333,
0.10951977968215942,
0.8299025297164917,
-0.0226089209318161,
-0.1102290526032447... | |
My website is designed to meet the accessibility guidelines.
I'm HOPING that this means screen readers should work well with them... But I have two questions:
* Is this a fair assumption to make?
* Are there any free/cheap screen
readers clients I can use to test or
online emulators?
Just because something meets the ... | [
1.0135411024093628,
0.2615150809288025,
0.16807681322097778,
0.02168361097574234,
-0.04377632960677147,
-0.3074553906917572,
0.495588481426239,
0.5499666333198547,
-0.13716022670269012,
-0.7478955388069153,
0.3050062358379364,
0.4840923249721527,
0.08975263684988022,
0.1708427369594574,
... | |
mostly accessible use NVDA, if you want to make sure that blind individuals working in the government will be able to use your site use Jaws to test, if you want to be extra safe use Window-Eyes and Orca to test as well.
[NVDA](http://nvda-project.org) is an open source screen reader that is rather new. It isn't quite... | [
0.6103706955909729,
-0.10741951316595078,
-0.08925677090883255,
0.3419804275035858,
-0.28635361790657043,
-0.6401225924491882,
-0.0336197093129158,
0.4095332622528076,
-0.4695074260234833,
-0.8537863492965698,
-0.08495070785284042,
0.15500734746456146,
-0.14783281087875366,
-0.103206947445... | |
is only really good in Firefox so you'll have to use that to test.
[Jaws](https://www.freedomscientific.com/Products/software/JAWS/) is the most widely used screen reader out there. You can download a demo of it that will run for 40 minutes at a time then require you to reboot if you want to run it again. If you’re tr... | [
0.49342283606529236,
-0.1018618494272232,
0.12556616961956024,
0.05312249809503555,
0.15657000243663788,
-0.45274707674980164,
-0.0375915989279747,
0.35098791122436523,
-0.3479275703430176,
-0.7274119257926941,
-0.12244097888469696,
0.7542538642883301,
-0.06783407181501389,
-0.262081742286... | |
internet accessibility goes. [Orca](http://live.gnome.org/Orca) is a screen reader built into gnome that works with Firefox and Linux. It’s built into Ubuntu. I tried it about a year and a half ago and it was absolutely horrible but I’ve been told it’s gotten better. | [
0.2539688050746918,
-0.12129374593496323,
0.3046806752681732,
-0.007730712648481131,
-0.047521866858005524,
-0.14060382544994354,
-0.2985083758831024,
0.5433622598648071,
-0.32184532284736633,
-0.6306380033493042,
0.2096046358346939,
0.3534013032913208,
-0.16910047829151154,
-0.22602590918... | |
I am working on a Math related web page and am looking for a solution to writing Mathematical equations easily onto a web page. There are several solutions readily available to me at the moment:
* Use LaTeX and publish them on my web page as images.
* Use MathML
Both of these solutions aren't ideal and seem somewhat ... | [
0.40032288432121277,
0.2016444355249405,
0.4173465669155121,
0.3279836177825928,
-0.17644962668418884,
-0.05024495720863342,
0.24160519242286682,
0.3652404248714447,
-0.2991296350955963,
-0.88218092918396,
0.12245636433362961,
0.42761826515197754,
-0.04077262803912163,
0.060324184596538544... | |
a bit of research I am still yet to find any real solution.
Please note that I am asking for a new way of publishing equations. I do not want images to be the output that is displayed on the web page and would rather have these equations rendered as *textual* data. MathML is the closest I've come, but it's still not i... | [
0.3949494957923889,
-0.017467427998781204,
0.4175557494163513,
0.27593332529067993,
-0.2426297664642334,
-0.22967609763145447,
0.3089754581451416,
0.4791679382324219,
-0.2840938866138458,
-0.7551274299621582,
0.24205759167671204,
0.19319860637187958,
0.07503117620944977,
0.1307433098554611... | |
HTML5 becoming adopted by browsers there is a new player in the game that introduces LaTeX and MathML back into the mix, [MathJax!](http://www.mathjax.org/). **MathJax are definitely the way to go!**
**Similar Question:** [Math equations on the web](https://stackoverflow.com/questions/775168)
The **jsMath** package is... | [
0.007705082651227713,
-0.009031270630657673,
0.5067664384841919,
-0.015198747627437115,
-0.49089252948760986,
-0.25365516543388367,
0.2838394045829773,
0.13136427104473114,
-0.3733177185058594,
-0.8855598568916321,
-0.2987058460712433,
0.3814649283885956,
-0.0512487068772316,
0.08951155096... | |
images to represent mathematics:
> jsMath uses native fonts, so they
> resize when you change the size of the
> text in your browser, they print at
> the full resolution of your printer,
> and you don't have to wait for dozens
> of images to be downloaded in order to
> see the mathematics in a web page.
> There... | [
0.01215597428381443,
0.2692001760005951,
0.41082754731178284,
0.2709430456161499,
-0.3709368109703064,
0.146386057138443,
0.06922659277915955,
-0.21389758586883545,
-0.1643228381872177,
-0.8800101280212402,
-0.11184389144182205,
0.36291205883026123,
-0.21852947771549225,
-0.232668504118919... | |
to
> create and maintain your web pages.
See for example [this page](http://www.math.union.edu/~dpvc/jsMath/examples/Henrici.html) or [that one](http://images.math.cnrs.fr/La-methode-de-Newton-et-son.html). | [
0.151044562458992,
-0.06156545504927635,
0.25287696719169617,
0.34311458468437195,
0.1862558275461197,
0.2692365348339081,
0.29029396176338196,
0.22835952043533325,
-0.36715227365493774,
-0.9847785234451294,
-0.34726592898368835,
0.367227703332901,
0.04863124340772629,
0.1329209804534912,
... | |
I have a database menu structure which I would like to add to the site.master file.
I’ve looked at other questions on StackOverflow but cannot get this to work on my website.
How do I add a User Control to the Site.Master file?
Menu.ascx
```
<%foreach (MainMenuSort mainMenuSort in (List<MainMenuSort>)ViewData["Main... | [
-0.21064691245555878,
0.058699432760477066,
0.6801269054412842,
0.16333889961242676,
0.11903238296508789,
-0.033409155905246735,
0.16342182457447052,
-0.11538846045732498,
-0.036505237221717834,
-0.676466703414917,
-0.08174221962690353,
0.6807953119277954,
-0.3091101050376892,
0.1579870283... | |
subMenuSort.SubMenuId.MainMenu.Id)
{ %>
<li><%= Html.Encode(subMenuSort.SubMenuId.SubMenuName)%></li>
<%} %>
<%} %>
<%}%>
```
With the help of this [link](http://blog.codeville.net/2008/10/14/partial-requests-in-aspnet-mvc/). I was able to display a menu in the si... | [
-0.41085126996040344,
-0.18144389986991882,
0.581828773021698,
-0.28522729873657227,
-0.02407154068350792,
0.20361119508743286,
0.5571634769439697,
-0.24512167274951935,
-0.11939723789691925,
-0.7666823863983154,
-0.5154857635498047,
0.36016175150871277,
-0.17054682970046997,
0.00725832115... | |
I need to make so that my application can have only one instance running at a time. Also when it's launched with a command line parameter ( like when registered to open certain file types ) it should pass the parameter to an existing instance and quit immediately without displaying graphical interface. You all probably... | [
0.5503860712051392,
0.006492322776466608,
0.3737228512763977,
-0.03370364010334015,
-0.14410921931266785,
-0.12212719768285751,
0.2176252156496048,
-0.12398528307676315,
-0.12159347534179688,
-0.6211658716201782,
-0.024126408621668816,
0.7073915600776672,
-0.3915517330169678,
0.06130615994... | |
Why opensource database like Postgresql and Mysql don't have encrypted stored proc?
Is it because of their innate open source philosophy?
What are the compelling reasons to encrypt the stored procs?
While I'm sure encrypted stored procs are a simple matter of programming in PostgreSQL at least (MySQL and stored procs... | [
0.1193549633026123,
0.5835920572280884,
-0.19197697937488556,
0.4083560109138489,
0.026731593534350395,
-0.2493790239095688,
0.16387857496738434,
0.2878079116344452,
-0.3474421203136444,
-0.3786744475364685,
-0.3188442289829254,
0.39579063653945923,
-0.4067454934120178,
0.3312048614025116,... | |
sp. The DBA can already see all the data, all the relationships, seemingly making obfuscating the SP code pointless. | [
0.35660120844841003,
0.166586235165596,
0.5969311594963074,
-0.01241747010499239,
-0.15258453786373138,
-0.4294145405292511,
0.5517755150794983,
-0.4158693850040436,
-0.2764876186847687,
-0.3872412145137787,
-0.4642311632633209,
0.4822610318660736,
-0.14938345551490784,
-0.0605978928506374... | |
I am converting a web site project to a web application project in VS 2008 and i've run across a query regarding dynamically loading user controls.
```
<%@ Reference Control="~/UserControls/MyUserControl.ascx" %>
```
and then in the page I simply called...
```
Dim ucSupplierDetails As New ASP.usercontrols_myusercon... | [
-0.07597958296537399,
-0.04465833306312561,
0.8114008903503418,
-0.14714546501636505,
-0.23814529180526733,
-0.02128564566373825,
0.21285660564899445,
-0.3606480658054352,
-0.3202337622642517,
-0.7352498173713684,
-0.24320127069950104,
0.5623055696487427,
-0.31421414017677307,
0.3501939177... | |
End Class
End Namespace
```
Don't forget to change your user control's class declaration (Inherits attribute at last line) :
```
<%@ Control Language="VB" AutoEventWireup="true"
CodeFile="MyUserControl.ascx.vb"
Inherits="MyUserControlNamespace.MyUserControl" %>
```
And now, you can access them by it's ... | [
-0.13033711910247803,
0.00043022833415307105,
0.7194200754165649,
-0.03797425329685211,
0.33322420716285706,
-0.10097628086805344,
0.29382431507110596,
0.07669838517904282,
-0.04001159965991974,
-0.6597234606742859,
-0.3661434054374695,
0.2998216450214386,
-0.02619526907801628,
0.716560840... | |
I have 2 models:
ParentModel: 'just' sits there
ChildModel: has a foreign key to ParentModel
`ParentModel.objects.filter(childmodel__in=ChildModel.objects.all())` gives multiple occurrences of ParentModel.
How do I query all ParentModels that have at least one ChildModel that's referring to it? And without multiple... | [
-0.043875135481357574,
-0.07015353441238403,
0.390535444021225,
0.012790868058800697,
-0.010360569693148136,
0.3739601969718933,
0.11838003993034363,
-0.09540804475545883,
-0.13169486820697784,
-0.7625589966773987,
0.13094544410705566,
0.0606551431119442,
-0.09608451277017593,
0.5242207646... | |
I came across the word 'The Turkey Test' while learning about code testing. I don't know really what it means.
What is Turkey Test? Why is it called so?
The Turkey problem is related to software internationalization or simply to its misbehavior in various language cultures.
In various countries there are different st... | [
0.5396382212638855,
0.29547062516212463,
-0.16698956489562988,
-0.05390698090195656,
-0.014986010268330574,
0.26050350069999695,
0.16915030777454376,
-0.11534018814563751,
0.10232948511838913,
-0.24825182557106018,
-0.0006781129632145166,
-0.1909330189228058,
0.05683007836341858,
0.2725519... | |
found a bug in the `ToUpper()` function. There are more details in comments below.
However the problem is not limited to Turkey and to string conversions.
For example, in Poland and many other countries, dates and numbers are also written in a different manner.
Some links from [a Google search for the Turkey Test](h... | [
0.655620276927948,
0.6236927509307861,
-0.4542984962463379,
0.10895638167858124,
0.015179500915110111,
-0.013448860496282578,
0.35908061265945435,
-0.2556707262992859,
-0.022047918289899826,
-0.2781594693660736,
-0.2520594298839569,
-0.262690931558609,
-0.5411977767944336,
-0.1195908039808... | |
How can I fork and keep in sync with an Google Code Subversion repository that I don't have write access to, into a GitHub repository?
I want to be able to develop my own features in my Git repository, but I also want to synchronise against the Google Code Subversion repository. To fetch fixes from Google Code project... | [
0.537609875202179,
0.00009487907664151862,
0.27820777893066406,
0.12167876958847046,
-0.06220152974128723,
0.09418731182813644,
0.15089432895183563,
0.3049664795398712,
-0.11164651066064835,
-0.5437940955162048,
0.2966400384902954,
0.46816396713256836,
-0.13311907649040222,
0.3189757764339... | |
same as a regular Git remote. So in your local repository you can have your git-svn clone and push changes out to GitHub. Git doesn't care. If you create your git-svn clone and push the exact same changes out to GitHub, you'll have an unofficial mirror of the Google Code repository. The rest is vanilla Git.
```
git sv... | [
0.4004805386066437,
-0.16814526915550232,
0.5020517706871033,
-0.08383791148662567,
-0.2196837067604065,
0.05985477194190025,
-0.09422093629837036,
0.11345934122800827,
-0.12131001055240631,
-0.7505517601966858,
0.020305965095758438,
0.4889797568321228,
-0.360611230134964,
0.65381687879562... | |
you run `git svn rebase`, you would have this:
```
o [master][remotes/trunk]
|
o
|
o [remotes/origin/master]
|
o
|
o
```
So now running `git push` would push those commits out to GitHub, the *[remotes/origin/master]* branch there. And you'd be back to the scenario in the first ASCII art diagram.
The problem now is,... | [
0.514248788356781,
-0.21844498813152313,
0.48255354166030884,
-0.25333401560783386,
0.11132752895355225,
-0.12117419391870499,
-0.11802525818347931,
-0.16527478396892548,
-0.23870068788528442,
-0.622430682182312,
-0.19797082245349884,
0.5010099411010742,
-0.49908292293548584,
0.36683118343... | |
me? OK, so you create a branch, let's call it "features". And you make a commit and push it out to GitHub to the features branch. Your gitk would look something like this:
```
o [features][remotes/origin/features]
|
o
|
o [master][remotes/trunk][remotes/origin/master]
|
o
```
Here you've got your features branch a c... | [
0.7120271921157837,
0.057322315871715546,
0.28084567189216614,
-0.03698994219303131,
-0.043474968522787094,
-0.09138624370098114,
-0.010222566314041615,
0.14954212307929993,
-0.27545443177223206,
-0.6402806639671326,
-0.030975740402936935,
0.4639553427696228,
0.05319221317768097,
0.2873837... | |
[features][remotes/origin/features]
[master][remotes/trunk] o |
| o
o /
|/ | [
-0.2111407220363617,
0.03947749733924866,
0.4091869294643402,
0.10770917683839798,
0.5905914306640625,
0.17917309701442719,
-0.012702737003564835,
-0.04731272533535957,
-0.21423234045505524,
-0.32558178901672363,
-0.5018664598464966,
0.4370735287666321,
-0.15734349191188812,
0.266862571239... | |
o[remotes/origin/master]
|
o
```
If you `git push` master out, you can imagine the *[remotes/origin/master]* being at the same point as master. But your feature branch doesn't have the changes. Your choices now are to merge master into features, or rebase features. A me... | [
0.21451164782047272,
-0.09545375406742096,
0.2386687695980072,
-0.22605645656585693,
0.4041602313518524,
-0.10801221430301666,
0.0008637822465971112,
-0.13390317559242249,
-0.15692558884620667,
-1.0093607902526855,
-0.2642669677734375,
0.5458201169967651,
-0.38884735107421875,
0.6183773875... | |
o [features]
/|
/ o [remotes/origin/features]
[master] o |
| o
o /
|/
o
|
o
```
Then you push features out to | [
0.37293729186058044,
-0.02165232039988041,
0.4622943103313446,
-0.14662626385688782,
0.4838135540485382,
0.13863717019557953,
0.0654827356338501,
-0.13475069403648376,
-0.286496102809906,
-0.6962168216705322,
-0.5295186638832092,
0.651723325252533,
0.005815740674734116,
0.23918698728084564... | |
GitHub. I've left off the remotes for master to save space, they'd be at the same point as *[master]*.
The rebase approach is slightly more evil - you'd have to push with --force as your push would not be a fast-forward merge (you'd pull the features branch from under someone who had cloned it). It's not really consid... | [
0.3707243502140045,
-0.16416022181510925,
0.2995522916316986,
0.09714978188276291,
-0.11666157841682434,
-0.005670770537108183,
0.2632758319377899,
-0.38175663352012634,
-0.23602132499217987,
-0.6674381494522095,
0.0007824736530892551,
0.6298970580101013,
-0.04663723707199097,
0.2112251222... | |
--skip the upstreamed patches. Anyway, a rebase would be like this:
```
git rebase master features
o [features]
|
o
| o [remotes/origin/features]
[master] o |
| o
o /
|/
o | [
0.34958329796791077,
0.11849124729633331,
0.4005386531352997,
-0.210471048951149,
0.22047486901283264,
-0.21960851550102234,
0.08603440225124359,
-0.06333726644515991,
-0.07944228500127792,
-0.5708708763122559,
-0.24243560433387756,
0.5371429324150085,
-0.340619832277298,
0.290543854236602... | |
|
o
```
And then you would have to `git push --force` that. You can see why you need to force it, the history has a big old schism from the *[remotes/origin/features]* to the new current post-rebase *[features]*.
This all works, but it is a lot of effort. If you are going to be a regular contributor, the be... | [
0.368620365858078,
-0.07044267654418945,
0.3636171221733093,
-0.012860412709414959,
-0.03548823297023773,
-0.19735398888587952,
0.11624009162187576,
0.12277200073003769,
-0.3867276608943939,
-0.7287455797195435,
-0.10341475158929825,
0.3662973940372467,
-0.14254583418369293,
0.432010471820... | |
to GitHub. Keep them local and try and get them accepted upstream anyway. | [
0.5287142395973206,
0.3996782898902893,
0.047604914754629135,
0.13453437387943268,
-0.23506484925746918,
0.2059994637966156,
-0.05820717290043831,
0.2289087325334549,
-0.19852280616760254,
-0.6190115213394165,
-0.1423412561416626,
0.28842493891716003,
0.008248308673501015,
0.01580930314958... | |
I'm running an asp.net 2.0 web application. Suddenly this morning, ExecuteNonQuery started returning -1, even though the commands in the SP that ExecuteNonQuery is running, are executing (I see items inserted and updated in the DB), and there is no exception thrown.
This happens only when I am connected to our product... | [
0.15415050089359283,
0.08399957418441772,
0.3362097144126892,
-0.1666528880596161,
-0.4297127425670624,
-0.03206106275320053,
0.48636478185653687,
-0.009146524593234062,
-0.44435250759124756,
-0.6915133595466614,
0.07003342360258102,
0.4032270014286041,
-0.11918148398399353,
0.330076724290... | |
see if there's this line of code in there -
```
SET NOCOUNT ON
```
This will cause the ExecuteNonQuery to always return -1. | [
-0.017215492203831673,
0.30366671085357666,
0.3287644386291504,
-0.07127507030963898,
0.25632262229919434,
-0.19541138410568237,
0.21996517479419708,
-0.001228325068950653,
-0.113862045109272,
-0.48245641589164734,
-0.2085530012845993,
0.7559396028518677,
-0.22211040556430817,
0.0252755191... | |
It is possible to retrieve the local branches from a local repository with `hg branches`. Is it possible to do this also with a remote repository programatically?
Unfortunately, there is no way to determine the branches in a remote Mercurial repository without pulling in the repository. You can avoid saving data on dis... | [
0.3427771031856537,
-0.06311067193746567,
0.176704540848732,
0.6253166794776917,
0.28698912262916565,
-0.12166760861873627,
0.30433389544487,
0.14057080447673798,
-0.4434158504009247,
-0.34505724906921387,
-0.3221100866794586,
0.32760849595069885,
-0.010784704238176346,
0.38452479243278503... | |
you have two additional solutions: you can screen-scape the Bitbucket page for your repository, using a tool like [BeautifulSoup](http://www.crummy.com/software/BeautifulSoup/) or [lxml](http://codespeak.net/lxml/), or you can wait until Bitbucket releases their API, which will likely provide this functionality. | [
0.39690759778022766,
-0.4909207820892334,
0.23295213282108307,
0.2904897928237915,
0.08811340481042862,
-0.00632715318351984,
-0.04495105519890785,
0.2949903607368469,
-0.19751447439193726,
-0.5705845355987549,
-0.1671595424413681,
0.13385997712612152,
-0.04149179905653,
0.0954752787947654... | |
What book would you recommend to learn test driven development? Preferrably language agnostic.
* [Test Driven Development By Example](http://www.amazon.co.uk/Test-Driven-Development-Addison-Wesley-Signature/dp/0321146530/ref=pd_sim_b_1)
* [Refactoring: Improving the Design of Existing Code](http://www.amazon.co.uk/Refa... | [
-0.13988013565540314,
-0.1860620230436325,
0.061408281326293945,
0.2400955706834793,
-0.12697690725326538,
-0.027843473479151726,
0.325886994600296,
-0.4829951524734497,
0.2028474062681198,
-0.3980780243873596,
0.01095112506300211,
0.6329581141471863,
-0.21618333458900452,
-0.2144556343555... | |
I am planning to use P6Spy to intercept database statements within our architecture. However, I noticed on the P6Spy website that the last release of the software was back in 2003. Is there anything out there that is better or should I just stick with P6Spy?
We still use P6Spy with our Weblogic 8.1.5 with EJB2.0 and it... | [
0.32818692922592163,
0.1112649142742157,
0.629059910774231,
0.16262833774089813,
-0.13517571985721588,
-0.4696505069732666,
0.44272422790527344,
0.28680598735809326,
-0.15838047862052917,
-0.3443714678287506,
0.2826772928237915,
0.4074850082397461,
-0.18334756791591644,
-0.0321582108736038... | |
In C++ how can I declare an array of strings? I tried to declare it as an array of `char` but that was not correct.
```
#include <string>
std::string my_strings[100];
```
That is C++, using the STL. In C, you would do it like this:
```
char * my_strings[100];
```
This reads as "my strings is an array of 100 point... | [
0.026279672980308533,
0.3317719101905823,
0.2856452167034149,
-0.4658565819263458,
-0.3360266089439392,
0.07244876772165298,
0.1709241271018982,
-0.24218802154064178,
-0.11097388714551926,
-0.26899245381355286,
-0.05793321877717972,
0.48707765340805054,
-0.43964752554893494,
-0.19959071278... | |
Is there a programmatic way of compiling SAS 9.1.3 SCL code (N.B. not ordinary SAS code) in Windows? The only way I have found of doing it involves using the SAS GUI: we have a Perl script which sends keystrokes to the UI. While this works (sort of), it's ugly and error-prone, and is too fragile to add to our automated... | [
0.18150189518928528,
0.35601910948753357,
0.20586180686950684,
-0.07557875663042068,
-0.023439249023795128,
-0.21344856917858124,
0.4106089472770691,
0.10551613569259644,
-0.18506963551044464,
-0.40676453709602356,
-0.3329227566719055,
0.4070388972759247,
-0.22198863327503204,
-0.147540673... | |
chicken-and-egg kind of problem. I found that it is only possible to get plain text into an SCL entry, by using an already existing SCL entry...
I have a setup, where I read and write SCL code in Catalog entries, from and to plain text files. I use this for revision control purposes (CVS).
While CVS is mostly used fo... | [
0.3832087814807892,
0.37127840518951416,
-0.021252240985631943,
-0.1196296215057373,
0.5281602144241333,
-0.03513889014720917,
-0.30900490283966064,
0.07862777262926102,
-0.4249500334262848,
-0.38077840209007263,
-0.07425657659769058,
0.08194717019796371,
-0.2702454626560211,
0.02197130210... | |
into CVS.
This way, I can always programmatically fetch this SCL entry from the CPORT file, and use this SCL entry to import SCL code from plain text into other SCL entries. Afterwards I can use PROC BUILD to compile the SCL entry, exactly like you mention yourself.
My FILE2SCL entry looks like this:
```
INIT:
/**... | [
0.35552409291267395,
0.0028205784037709236,
0.5330759286880493,
-0.37756869196891785,
0.1892952173948288,
-0.42153051495552063,
0.18284662067890167,
0.23079648613929749,
-0.14447052776813507,
-0.44426095485687256,
-0.277898907661438,
0.7074262499809265,
-0.3133535385131836,
0.0053269723430... | |
*/
/* Call this SCL like this: */
/* %let srcFile=D:\work\dummy.scl; */
/* %let dstEntry=WORK.NEW.DUMMY.SCL; | [
0.11231917142868042,
-0.5730717182159424,
0.5004205107688904,
-0.4968980550765991,
0.07494068145751953,
-0.03621436282992363,
0.21133479475975037,
-0.5059770941734314,
-0.28008443117141724,
-0.49757471680641174,
-0.5149005651473999,
0.46001413464546204,
-0.14111939072608948,
0.046254612505... | |
*/
/* proc display catalog=work.cat.file2scl.scl; */
/* run; | [
0.3032248020172119,
-0.17441385984420776,
0.40347403287887573,
-0.6232129335403442,
0.12242338806390762,
0.2791203558444977,
0.31587350368499756,
-0.1932925581932068,
-0.5599953532218933,
-0.5965470671653748,
-0.5957601070404053,
0.3842415511608124,
-0.44491633772850037,
-0.000124308353406... | |
*/
/* */
/***************************************************************/
length Rc 8;
length theFile $ 200;
length theEntry $ 128;
theFile=symget('SRCFILE'); * | [
0.0989280417561531,
0.0679384171962738,
0.8340279459953308,
0.2196933478116989,
0.03135063499212265,
0.0033487374894320965,
-0.1648622453212738,
-0.4242895543575287,
-0.3038032650947571,
-0.2441231608390808,
-0.17438103258609772,
0.6319912672042847,
0.03645333647727966,
0.1808857023715973,... | |
Source file *;
theEntry=symget('DSTENTRY'); * Destination entry *;
* Assign filename *;
Rc=filename('temp',theFile);
* Include external file into preview buffer *;
Rc=PREVIEW('INCLUDE','temp');
* Save contents of preview buffer to SCL entry *;
Rc=PREVIEW('SAVE',theEntry);
Rc=PREVIEW('CLEAR');
Rc=PRE... | [
0.1963825821876526,
-0.2115563303232193,
0.647671103477478,
-0.13630902767181396,
0.025536054745316505,
-0.020921284332871437,
0.1427566260099411,
-0.2306014597415924,
-0.04878195747733116,
-0.643846869468689,
-0.4990685284137726,
0.1710892617702484,
-0.09335906058549881,
0.181151285767555... | |
will import your SCL source code into the specified SCL entry, and you can then compile it afterwards by using PROC BUILD. | [
0.33376172184944153,
-0.04965173825621605,
0.29339343309402466,
-0.10697644203901291,
0.3567657768726349,
-0.420051246881485,
0.12955541908740997,
0.1852208375930786,
-0.027040954679250717,
-0.6188339591026306,
-0.6071332097053528,
0.28958314657211304,
-0.395128458738327,
-0.25441640615463... | |
Recently, I came across Mono and MonoDevelop packages in Ubuntu linux. They claim to have a .NET runtime in accordance with CLI. Before installing the packages myself, I would like to know the following:
1. How powerful is Mono?
2. Can I develop GUI application for
linux like developing WinForm
applications for Window... | [
0.6439349055290222,
-0.04397784546017647,
0.09682108461856842,
0.04411976411938667,
-0.3815355598926544,
-0.3563159108161926,
0.2916955351829529,
-0.43631768226623535,
-0.19110210239887238,
-0.4073449373245239,
-0.00880952924489975,
0.7168381214141846,
-0.3437161445617676,
0.22327969968318... | |
fact I don't have the code for some of the small utilities I developed earlier and would like to run them in linux.
1. (Strange, markdown starts the enumeration with one, even though I began with 2...)
2. Yes, you can, but you're limited with 3rd-party components, because the internal implementation is different, and l... | [
0.5400393009185791,
-0.13065287470817566,
0.12185647338628769,
0.04832163825631142,
0.06347060203552246,
-0.21456600725650787,
0.26336580514907837,
-0.003760051913559437,
-0.26288166642189026,
-0.06738278269767761,
0.20310863852500916,
0.7199552655220032,
-0.2854706048965454,
0.27389442920... | |
know if MonoDevelop has. But the cool thing is, you can just develop with Visual Studio and run your compiled apps on Mono. And Mono is, by the way, also available for Windows.
4. Yes, it does, as far as the CLR goes. As Marc Gravell already wrote, the Windows Foundation libraries are missing, as are a few other (Syste... | [
0.7258132696151733,
0.061311788856983185,
-0.31136199831962585,
0.1605902463197708,
-0.12617723643779755,
-0.4403599202632904,
0.20020627975463867,
-0.06731852889060974,
-0.477567195892334,
-0.1770251989364624,
-0.07767973840236664,
0.7486627697944641,
-0.4398880898952484,
-0.1155087947845... | |
I am using asp.net MVC.
I have control like
`<%= Html.TextBox("username") %>`
I want lost focus event to that control.
So code like
```
$(document).ready(function() {
$("#username").Attributes.Add("onblur", "alert('losing focus');");
});
```
but it is not working,
Ultimate goal is to check password & confirm... | [
0.10256168991327286,
-0.10901457071304321,
0.8812106251716614,
-0.01235684473067522,
-0.21018007397651672,
-0.14747360348701477,
0.26252511143684387,
-0.0595182366669178,
-0.22898641228675842,
-0.7131101489067078,
-0.04492419213056564,
0.7662568688392639,
-0.24210117757320404,
-0.030700746... | |
I have this small SQL query.
```
SELECT a.`id` , a.`title` , a.`date` ,
(
SELECT MAX( grade )
FROM tests
WHERE userid = 41
AND presid = a.`id`
) AS grade
FROM `presentations` a
WHERE a.`visible` = 1
AND `grade` >= 5
ORDER BY `grade` DESC
```
This gives me the error
> 1054 - Unknown column 'grade' i... | [
0.17120568454265594,
0.5504506230354309,
0.1986481100320816,
0.19697275757789612,
-0.2022642195224762,
0.043866172432899475,
0.2117188721895218,
-0.2967309355735779,
0.22136950492858887,
-0.4104978144168854,
0.12590421736240387,
0.409436970949173,
0.3043047785758972,
0.3451976478099823,
... | |
I use this inline query in a WHERE clause?
I have found that this works, but is it the only way?
```
SELECT a.`id` , a.`title` , a.`date` ,
(
SELECT MAX( grade )
FROM tests
WHERE userid = 41
AND presid = a.`id`
) AS grade
FROM `presentations` a
WHERE a.`visible` = 1
AND (
SELECT MAX( grade )
... | [
0.39011892676353455,
0.4030438959598541,
0.2776869237422943,
0.12856651842594147,
-0.13451899588108063,
0.039418984204530716,
0.2905201017856598,
-0.3014262616634369,
0.21561725437641144,
-0.3400869369506836,
-0.14913709461688995,
0.5999083518981934,
0.15024740993976593,
0.1570192873477935... | |
FROM
* WHERE
* SELECT
* GROUP
* HAVING
* ORDER
So things you define in the SELECT-clause are not available in the WHERE-clause. You would need to put that constraint into a HAVING-clause:
```
SELECT a.`id` , a.`title` , a.`date` ,
(
SELECT MAX( grade )
FROM tests
WHERE userid = 41
AND presid = a.`id`... | [
0.16858547925949097,
0.09063874930143356,
0.1616216003894806,
0.06323514133691788,
0.03612764552235603,
0.15125684440135956,
0.005309698171913624,
-0.23380103707313538,
-0.05265924707055092,
-0.4265761077404022,
-0.3990761935710907,
0.4543883204460144,
0.12625248730182648,
0.15593796968460... | |
I'm using sifr 3 and trying to fit h1's on a single line but within a set width of 400px. By default, if there's too much text, it drops onto the next line. I've used forceSingleLine: true but then the text just stretches across the 400px width. Is there a method which will resize the text to fit in the width AND stay ... | [
0.3011593818664551,
-0.27824902534484863,
0.5657937526702881,
0.08331476897001266,
-0.059638481587171555,
-0.04664649814367294,
0.2700478732585907,
-0.39005130529403687,
-0.27732008695602417,
-0.8354856967926025,
-0.1835368126630783,
0.5952012538909912,
-0.3320402503013611,
-0.153083190321... | |
not modify `sys.path` -- that way lies problems. Modifying `site.path` leads to ambiguity about what is -- or is not -- on the path, and what order they are in.
The simplest, most reliable, most obvious, most controllable things to do are the following. Pick exactly one.
* Define `PYTHONPATH` (once, external to your... | [
0.44867411255836487,
-0.14063559472560883,
-0.06369851529598236,
-0.05506443604826927,
0.02487930841743946,
-0.033263493329286575,
0.2888377904891968,
-0.1606203019618988,
-0.02920827828347683,
-0.7448602318763733,
-0.11154160648584366,
0.7738304734230042,
-0.5957794189453125,
-0.207065254... | |
I have a problem with a `Socket` connection closing too fast. I was told I need to temporarily load data from the `Socket` and the parse it. Here is my code:
```
ServerSocket listen = new ServerSocket(this.port);
Socket server;
while(i < this.maxConnections)
{
server = listen.accept();
processRequest(server);... | [
0.017171712592244148,
0.05263950675725937,
0.9227396249771118,
-0.3963426649570465,
0.15473634004592896,
0.19101665914058685,
0.40726396441459656,
-0.5397917032241821,
-0.1987006813287735,
-0.787165641784668,
-0.40595200657844543,
0.7642849683761597,
-0.25681668519973755,
0.376334846019744... | |
....
}
```
error
=====
```
[Fatal Error] :2:1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at ProcessXML.<init>(ProcessXM... | [
0.016862399876117706,
0.18359287083148956,
0.44468915462493896,
-0.06823258101940155,
0.2944370210170746,
-0.010687574744224548,
0.38493800163269043,
-0.511464536190033,
-0.21579277515411377,
-0.6346024870872498,
-0.24505703151226044,
0.5774143934249878,
-0.2742072641849518,
0.277133345603... | |
I've been battling to get this right...basically I have the following HTML setup:
```html
<div class="box10">
<span class="label01">Name:</span>
<input class="tboxes" type="textbox" />
</div>
```
"span.label01" is an inline element, and appears to the left of the textbox "input.tboxes". What I am trying to do ... | [
0.4038338363170624,
0.1401563584804535,
0.37611010670661926,
-0.17010048031806946,
-0.28998321294784546,
0.07567717134952545,
0.1549069732427597,
-0.2164902687072754,
-0.16770802438259125,
-0.7941167950630188,
0.10289410501718521,
0.5578897595405579,
-0.2800646722316742,
0.1020474433898925... | |
me here? TIA!
Your selector at the moment is looking for a span inside an input. As far as I'm aware, what you're trying to do isn't really reliably possible with the current state of CSS selector support.
I'd be tempted to do it with a bit of jQuery like so:
```
$("input.tboxes").focus(function() {
$(this)
.... | [
0.640373706817627,
-0.22335185110569,
0.03820507973432541,
-0.24571503698825836,
0.08222170174121857,
0.19221867620944977,
0.22460618615150452,
-0.44422101974487305,
-0.10000788420438766,
-0.5523505210876465,
-0.03711417689919472,
0.8144999146461487,
-0.2764155864715576,
0.0141152795404195... | |
and .box10.focussed. | [
0.024240635335445404,
0.1738189160823822,
0.1882152110338211,
-0.07807981967926025,
-0.24354715645313263,
0.2800309360027313,
0.04112643748521805,
-0.42469361424446106,
-0.2339683324098587,
-0.5890783071517944,
-0.32964521646499634,
0.3879367411136627,
-0.17175878584384918,
-0.148638203740... | |
I'm making a custom list of nodes and their comments. I'd like to be able to both constrain the number of nodes (easy: Items per page refers to nodes in this case) but also constrain the number of comments displayed per node (e.g. the 5 most recent):
* *Node number one*
+ Comment 1-3
+ Comment 1-2
+ Comment 1-1
* *... | [
0.4014570713043213,
0.015276397578418255,
0.4639173746109009,
-0.17719951272010803,
-0.4102258086204529,
0.3624250888824463,
0.19922105967998505,
-0.025723155587911606,
-0.3769459128379822,
-0.8389415740966797,
0.01814110390841961,
0.34861090779304504,
-0.28670233488082886,
0.1280825436115... | |
show the most recent five.
Is there any way of doing this in Views? It's easy enough to make a view which has the comments in and an argument to provide the node id, were it possible to include such a view inside another view, for example.
I'm brand new to Drupal, so apologies if it's an obvious question. I've google... | [
0.4652293622493744,
-0.06663934886455536,
0.5447346568107605,
0.0772453248500824,
-0.15861526131629944,
0.07181474566459656,
-0.23961141705513,
-0.09450208395719528,
-0.18655653297901154,
-0.4275497794151306,
0.17251931130886078,
0.3291909694671631,
0.1382313072681427,
0.1177377849817276,
... | |
these modules might be interesting for you:
[Views Group By](http://drupal.org/project/views_groupby) or [Views Attach](http://drupal.org/project/views_attach) and might be a step closer to the solution. | [
0.49773505330085754,
-0.25659531354904175,
0.44231483340263367,
0.2946912348270416,
-0.2724071443080902,
-0.23574917018413544,
-0.3398931324481964,
-0.18806222081184387,
-0.6387291550636292,
-0.3108263909816742,
-0.2901003360748291,
0.1292179673910141,
0.01854894310235977,
0.05908977985382... | |
I have a pretty long sqlite query:
```
const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word ASC";
```
How can I break it in a number of lines to make it easier to read?
If I do the following:
```
const char *sql_query = "S... | [
-0.11797459423542023,
0.3677586615085602,
0.34901130199432373,
-0.09012246131896973,
0.05040065571665764,
0.00944366306066513,
0.25673583149909973,
-0.10590849816799164,
-0.3305153250694275,
-0.518714964389801,
-0.0520939938724041,
0.3587126135826111,
-0.07896029204130173,
0.16207447648048... | |
ORDER BY table1.word ASC";
```
I am getting an error.
Is there a way to write queries in multiple lines?
There are two ways to split strings over multiple lines:
1. Each string on its own line. Works only with strings:
* Plain C:
```
char *my_string = "Line 1 "
"Line 2";
```
* Objective-C... | [
-0.02808925323188305,
-0.15764953196048737,
0.30213651061058044,
-0.032434865832328796,
-0.11943111568689346,
0.22542054951190948,
0.2658194899559021,
-0.16011697053909302,
-0.2505318522453308,
-0.46524327993392944,
-0.2067509889602661,
0.39456453919410706,
-0.5508628487586975,
-0.10111407... | |
"Line2"; // the second @ is optional
```
2. Using `\` - can be used for any expression:
* Plain C:
```
char *my_string = "Line 1 \
Line 2";
```
* Objective-C:
```
NSString *my_string = @"Line1 \
Line2";
```
---
The first approach is better, because there ... | [
-0.1975206434726715,
-0.26082101464271545,
0.2615482807159424,
-0.2715394198894501,
-0.1769159734249115,
0.06294220685958862,
0.19358482956886292,
-0.06639782339334488,
0.11898375302553177,
-0.39287257194519043,
-0.30158135294914246,
0.583686113357544,
-0.6495546698570251,
-0.3796268403530... | |
a SQL query however, both are possible.
NOTE: With a `#define`, you have to add an extra `\` to concatenate the two strings:
Plain C:
```
#define kMyString "Line 1"\
"Line 2"
``` | [
-0.07497075945138931,
-0.1553405076265335,
0.2197996824979782,
0.06984955817461014,
0.07373715192079544,
-0.25238895416259766,
-0.09605042636394501,
0.05995706841349602,
0.07271918654441833,
-0.20962581038475037,
-0.1490127146244049,
0.39587652683258057,
-0.4167352318763733,
0.080910250544... | |
Let say that we have the following query:
```
SELECT DISTINCT COUNT(`users_id`) FROM `users_table`;
```
this query will return the number of the users from a table. I need to pass this value to a PHP variable. I'm using this:
```
$sql_result = mysql_query($the_query_from_above) or die(mysql_error());
if($sql_resul... | [
-0.00047183854621835053,
0.18740516901016235,
0.45908182859420776,
-0.17180444300174713,
-0.1569892317056656,
0.004327442497014999,
-0.08696256577968597,
-0.5956348776817322,
-0.22412410378456116,
-0.3998391032218933,
0.24175769090652466,
0.37241891026496887,
-0.20440267026424408,
0.258119... | |
query will always return 1 row
// (unless it fails, in which case we die above)
// Use fetch_assoc for a nice associative array - much easier to use
$row = mysql_fetch_assoc($data);
// Get the number of uses from the array
// 'num' is what we aliased the column as above
$numUsers = $row['num'];
``` | [
-0.30895185470581055,
-0.15106412768363953,
0.6336744427680969,
0.05308286100625992,
-0.1338697373867035,
-0.0011288839159533381,
0.29793137311935425,
-0.21824410557746887,
-0.09982938319444656,
-0.565123975276947,
-0.013891259208321571,
0.5109033584594727,
-0.22949910163879395,
0.13780972... | |
i have some file test.php
```
<?PHP
$config_key_security = "test";
?>
```
and i have some class
test5.php
```
include test.php
class test1 {
function test2 {
echo $config_key_security;
}
}
```
```
class test1 { | [
0.6172677874565125,
0.10676176846027374,
-0.31479376554489136,
-0.18363647162914276,
-0.013970913365483284,
-0.06633970886468887,
0.5393348336219788,
-0.5256181955337524,
0.18343840539455414,
-0.3038555085659027,
0.0700119137763977,
0.4986259639263153,
-0.2717303931713104,
-0.2011947482824... | |
function test2 {
global $config_key_security;
echo $config_key_security;
}
}
```
or
```
class test1 {
function test2 {
echo $GLOBALS['config_key_security'];
}
}
```
Having your class rely | [
0.024195726960897446,
-0.2623438239097595,
-0.21157453954219818,
-0.23208186030387878,
0.01790354587137699,
-0.3638767600059509,
0.33438605070114136,
-0.24019494652748108,
0.03145773336291313,
-0.4050469696521759,
-0.14595498144626617,
0.7298302054405212,
-0.4043146073818207,
-0.3236477971... | |
on a global variable isn't really best practice - you should consider passing it in to the constructor instead. | [
0.30974701046943665,
0.08214636892080307,
-0.2181161493062973,
0.3710929751396179,
-0.0012422511354088783,
0.04079858213663101,
-0.2555694580078125,
0.07110828906297684,
0.11324547231197357,
-0.19290925562381744,
0.0011359350755810738,
0.41791537404060364,
-0.0920855849981308,
-0.048578403... | |
I need to know if I am working with SharePoint Services or SharePoint Portal Server when using the SP API. Is there a way to do this in code (C#)?
You can check to see if the build version is different using SPFarm.BuildVersion:
<http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spfarm.buildv... | [
0.6124708652496338,
0.0743124708533287,
0.4211273789405823,
0.05674983933568001,
-0.21964001655578613,
-0.306455135345459,
0.3329131603240967,
-0.0014823833480477333,
-0.37015682458877563,
-0.6914421319961548,
0.1066570058465004,
0.29983124136924744,
-0.11742958426475525,
0.152588680386543... | |
I am trying to open regedit from run dialog on Winxp. I tried to lauch it from alternative places such as Task Manager, IE etc. I am running as admin
Forums reveal that's it's a virus. but nothing concrete to get it working
Any help?
Thanks
Copyright and contract law seem to work for most companies. The technologica... | [
0.7197216153144836,
0.30231019854545593,
0.3641863465309143,
0.10728436708450317,
0.0249785166233778,
-0.14182907342910767,
0.3821522891521454,
0.5512809157371521,
0.05499567091464996,
-0.4977022409439087,
0.03767501562833786,
0.6140969395637512,
-0.023679004982113838,
0.3252655267715454,
... | |
I have an old VS2008 solution that had one project in it.
When I double-click on the .sln file it says that nothing can be found (**I had renamed some directories**).
So now what is the best way to take my main files (Window1.xaml, App.xaml, Properties folder, and about 10 other class files) and **recreate a solution... | [
0.22388751804828644,
0.06058257818222046,
0.2711790204048157,
0.22914473712444305,
0.079294852912426,
0.03623358532786369,
0.4252895414829254,
-0.11020490527153015,
-0.47333040833473206,
-0.7846262454986572,
0.057069312781095505,
0.39899545907974243,
0.15350441634655,
0.1888737678527832,
... | |
my case I was done in 5 minutes, but for larger solutions, one would hope there is an open-source tool or VS2008/VS2010 feature for this.
Create a new solution and add everything.
In short: do it manually. | [
0.5208494067192078,
0.08892396092414856,
0.12548016011714935,
0.08105980604887009,
0.2924629747867584,
0.06122695282101631,
0.3006504476070404,
-0.4311719834804535,
-0.06723208725452423,
-0.7340720295906067,
0.42963242530822754,
0.6818682551383972,
0.2763403654098511,
-0.43183207511901855,... | |
I have 2 websites(www.mysite1.com and myweb2.com, both sites are in ASP.NET with SQL server as backend ) and i want to pass data from one site to another.Now i am confused whether to use a web service or a form posting (from mysite1 to a page in myweb2)
Can any one tell me the Pros and Cons of both ?
Webservices are [... | [
0.5971892476081848,
0.19567598402500153,
0.5240897536277771,
-0.02206985279917717,
-0.35454797744750977,
0.039119940251111984,
0.22753675282001495,
0.13995835185050964,
-0.05250588804483414,
-0.9249878525733948,
0.289938747882843,
-0.07503422349691391,
0.14301079511642456,
0.43372973799705... | |
able to grok WMDL files (that "explains" the various services endpoints and remote functionality available). Usually we call this the SOAP / WS-\* stack, with emphasis on 'stack' as there's a few bits of software that needs to be available, and the more complex the SOAP calls, the more of this stack needs to be availab... | [
0.15847016870975494,
-0.26967206597328186,
0.2139258086681366,
0.24000801146030426,
-0.08733323216438293,
-0.38452088832855225,
0.39194196462631226,
-0.0634140819311142,
-0.10071899741888046,
-0.8105496764183044,
-0.35267460346221924,
0.2517535090446472,
-0.21649475395679474,
-0.0363838039... | |
the calling, and use [HTTP responses](http://en.wikipedia.org/wiki/Http) as replies. You don't need any extra software, probably, as most if not all webkits has got HTTP support. My own bias leans towards REST, in case you wonder. Through using HATEOAS you can create really good infrastructure for self-aware systems th... | [
0.3855188190937042,
0.02128671295940876,
0.261512815952301,
-0.021097110584378242,
-0.2259274274110794,
-0.11663355678319931,
0.019620733335614204,
0.07102003693580627,
-0.20700344443321228,
-0.3682284951210022,
-0.3736634850502014,
0.579246461391449,
-0.22288501262664795,
0.00984964612871... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.