text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
interface* [here](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148-182467 "here") but I'm not sure if that's the problem or frankly what they are referring to there.
I declared the checkbuttons in the .h file like so:
``... | [
-0.4530012011528015,
0.12794578075408936,
0.7349175214767456,
-0.13397596776485443,
-0.12818922102451324,
0.1446404755115509,
0.5281515121459961,
-0.3837834298610687,
0.0010093888267874718,
-0.8628880381584167,
-0.259473592042923,
0.7384632229804993,
-0.34308749437332153,
-0.06377401947975... | |
[defaultJobSetting selectItemAtIndex:[myDefaults integerForKey:@"defaultJob"]];
}
return self;
}
```
I also tried the following format for setting the checkboxes but with no result:
```
if ([myDefaults integerForKey:@"useDefaultDate"] == YES) {
[defaultDateCheck setState:NSOnState];
}
else {
[default... | [
-0.27592194080352783,
-0.06648118048906326,
0.501373827457428,
-0.263252317905426,
-0.1920611709356308,
0.1831362247467041,
0.5332717895507812,
-0.28143081068992615,
-0.11189974844455719,
-0.5312914252281189,
-0.18304453790187836,
0.548482358455658,
-0.3959615230560303,
0.05879704281687736... | |
I am working on big application build using ASP.NET which was started 1.5 years back. The Site uses 3rd party telerik RadControls for UI. The problem with the website is it uses outdated stuffs like DataSets and all with no proper architecture. I have done some research and found some new technologies like ADO.NET Enti... | [
0.38322293758392334,
0.2450580596923828,
0.3819231390953064,
0.06826302409172058,
-0.1675310581922531,
-0.19662415981292725,
0.028679601848125458,
0.07497616112232208,
0.02471933327615261,
-0.9098908305168152,
0.2629281282424927,
0.4618384838104248,
-0.0334475077688694,
0.23109222948551178... | |
be used to make the development life easier and be upto date with latest technologies.
ALL SUGGESTIONS WOULD BE REALLY PRECIOUS.
THANKS IN ADVANCE.
There is no real answer to this question.
Entity Framework is very useful. As is ASP.NET MVC. I guess it depends on what your metrics are to determine if it is worth it... | [
0.37111905217170715,
0.034756094217300415,
0.18187659978866577,
0.45652034878730774,
0.13055597245693207,
-0.069443479180336,
0.04919896274805069,
0.12294994294643402,
-0.4190004765987396,
-0.6571126580238342,
0.06962808221578598,
0.2956114411354065,
0.11160776764154434,
-0.002218917012214... | |
worth noting that ASP.NET Web forms are still a viable option. If you want rapid development, which uses data grids and such like, then forms might be your best option. You could look to move to MVC, which will allow you to enforce a cleaner separation of concerns. Its horses for courses. A quick Google and you will fi... | [
0.5745187401771545,
-0.11218328773975372,
0.21901068091392517,
0.3040730059146881,
-0.23241935670375824,
-0.08106979727745056,
0.12525156140327454,
-0.15326789021492004,
-0.4582187533378601,
-0.6341012120246887,
0.2180914431810379,
0.4748634397983551,
-0.11723026633262634,
0.07736705243587... | |
but maintaining a working site. You can also use Forms, and MVC together in one site. So you don't have to do a complete migration in one go.
Food for thought, good luck. | [
0.4139801561832428,
-0.059248097240924835,
0.08398421853780746,
0.16481146216392517,
0.12669429183006287,
-0.08787824958562851,
0.534745991230011,
0.3034650385379791,
-0.5625110268592834,
-0.6926667094230652,
0.06252456456422806,
0.24910849332809448,
-0.04789038747549057,
-0.18283461034297... | |
I have a sharepoint server on the DMZ and a SQL2008 server in the local domain.
When I try to get the list of .NETUsers for the Central Administration site from IIS (version 7.5) i get thrown error:26! I have tried all possible combinations in specifying the connection string.
I have also followed all directions on t... | [
-0.33810514211654663,
0.3743419051170349,
0.3799561858177185,
-0.20006893575191498,
-0.24300497770309448,
-0.07573792338371277,
0.60499507188797,
0.24394260346889496,
-0.43864256143569946,
-0.6024099588394165,
0.17316047847270966,
0.24718903005123138,
-0.2502605617046356,
0.462543308734893... | |
I'm using ASP.NET and I have a string of HTML in the database.
I want to get that html into a variable on the client.
If I do this:
```
var x = '@Html.Raw(myModel.FishValue)'
```
it works fine, because it's essentially doing
```
var x = '<p>hello!</p>';
```
however if there are quotes in the html it breaks the ... | [
0.2964698374271393,
0.15996050834655762,
0.493068665266037,
-0.10756377130746841,
-0.24409382045269012,
0.013308277353644371,
0.4214577078819275,
-0.17017802596092224,
-0.2828006148338318,
-0.7597143054008484,
0.0736619308590889,
0.46167755126953125,
-0.36037033796310425,
0.092924810945987... | |
x = '@Html.Raw(myModel.FishValue.Replace("'","\\'"))'
```
**UPDATE:**
There might be other escape chars in the string coming from the model. For that reason I would recommend replacing the slashes first as well. Of course it all depends on what might come from the server in your model.
```
var x = '@Html.Raw(myMo... | [
-0.3061133623123169,
0.11546092480421066,
0.23704484105110168,
-0.04877091944217682,
0.1757417768239975,
0.1988106220960617,
0.547307550907135,
-0.21741890907287598,
-0.09628526866436005,
-0.596330463886261,
-0.24543803930282593,
0.3550925552845001,
-0.5464403629302979,
0.03275156021118164... | |
is a escape character. You can\'t "Escape"'
alert(stringFromServer)
``` | [
-0.41358810663223267,
-0.19017602503299713,
0.2460884302854538,
-0.09055110067129135,
0.6338487267494202,
-0.19847771525382996,
0.5618980526924133,
0.028249435126781464,
-0.10917191207408905,
-0.28051042556762695,
-0.726040244102478,
0.16123534739017487,
-0.6032399535179138,
0.093703217804... | |
How to place components in layout on specific position.
Like I want to place 2 text boxes in first row, below 3 combo boxes.
But when I am trying to put they all appear in one line and I have used flowlayout. I have used the border as well. When I am resizing, the window sizes of the components are going out from bor... | [
0.24456879496574402,
-0.13412071764469147,
0.7669286727905273,
0.040304578840732574,
-0.029697388410568237,
0.17319414019584656,
-0.1371898651123047,
-0.36745333671569824,
-0.2692762613296509,
-0.7754263281822205,
-0.25020790100097656,
0.30884888768196106,
-0.3444492518901825,
-0.136052787... | |
// set editable text box
CIDLabel=new JLabel("Customer ID");
C_IDTextField = new JTextField (10);
C_IDTextField.setEditable(true); // set editable text box
topPanel.add(CNameTextField);
topPanel.add(C_IDTextField);
// Create and populate Room type combo box
roomTypeCombo = new JComboBox();
roomTypeCombo.add... | [
0.2078091949224472,
-0.24032330513000488,
0.5936421155929565,
-0.16273777186870575,
0.26683229207992554,
0.4886716604232788,
-0.12019774317741394,
-0.29113203287124634,
-0.4244588315486908,
-0.7227968573570251,
-0.5900660157203674,
0.34951648116111755,
-0.2977044880390167,
0.01429889909923... | |
rest of the components to top panel
topPanel.add(roomTypeCombo);
topPanel.add(mealCombo);
topPanel.add(daysCombo);
```
Thanks.
Try to change the layout.
<http://docs.oracle.com/javase/tutorial/uiswing/layout/using.html>
You could go for a `GridLayout` with two lines (for example, there is some others possible combin... | [
0.2089245319366455,
-0.17000432312488556,
0.6296694874763489,
-0.28208228945732117,
0.025867996737360954,
0.23066619038581848,
0.07845299690961838,
-0.5403726100921631,
-0.43170613050460815,
-0.8095872402191162,
-0.40808483958244324,
0.3005155622959137,
-0.3048802316188812,
-0.320796221494... | |
JPanel();
firstPanel.setLayout(new GridLayout(0, 2, 10, 10));
firstPanel.add(TextField1);
firstPanel.add(TextField2);
JComboBox comboBox1 = new JComboBox(new Object[]{"Ester", "Jordi", "Jordina", "Jorge", "Sergi"});
JComboBox comboBox2 = new JComboBox(new Object[]{"Ester", "Jord... | [
-0.4064941704273224,
-0.33804941177368164,
0.540745198726654,
-0.26969584822654724,
-0.27672457695007324,
0.5667003989219666,
0.0026148902252316475,
-0.03921838104724884,
-0.4716356694698334,
-0.5314071178436279,
-0.6689956188201904,
0.3393271863460541,
-0.12601903080940247,
-0.18195614218... | |
GridLayout(0, 3, 10, 10));
secondPanel.add(comboBox1);
secondPanel.add(comboBox2);
secondPanel.add(comboBox3);
JFrame frame = new JFrame();
frame.setLayout(new GridLayout(2, 1, 10, 10));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(firstPanel);... | [
0.2936874330043793,
-0.4849292039871216,
0.6784710884094238,
-0.31652548909187317,
0.10532306134700775,
0.4655729830265045,
0.11786926537752151,
-0.6941004395484924,
-0.28297021985054016,
-1.082076072692871,
-0.3960016965866089,
-0.042298465967178345,
-0.36080965399742126,
0.09342911839485... | |
frame.setVisible(true);
}
public static void main(String[] args) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
SwingResizeJFrame demo = new SwingResizeJFrame();
}
});
}
}
``` | [
0.36896568536758423,
-0.3273780643939972,
0.32817497849464417,
-0.22813072800636292,
0.23548345267772675,
0.08181265741586685,
0.3886528015136719,
-0.4717461168766022,
-0.5056543946266174,
-0.48331427574157715,
-0.3205437660217285,
0.48365887999534607,
-0.5709744691848755,
0.19944275915622... | |
How can we make universal light box i mean same code for all light box function in the page
here is JQuery
```
$(document).ready(function() {
$('.lightbox').click(function() {
$('.backdrop, .box').animate({
'opacity': '.50'
}, 300, 'linear');
$('.box').... | [
0.6166579723358154,
-0.1939586102962494,
0.8001803159713745,
-0.0916348248720169,
0.31277647614479065,
0.0331464484333992,
-0.0014572400832548738,
-0.44481515884399414,
-0.10263374447822571,
-0.7141929268836975,
-0.05474218726158142,
0.465678334236145,
-0.4962245225906372,
0.16757979989051... | |
'opacity': '1.00'
}, 300, 'linear');
$('.backdrop, .box').css('display', 'block');
});
$('.close').click(function() {
close_box();
});
$('.backdrop').click(function() {
close_box(); | [
-0.07611528038978577,
-0.2020840346813202,
0.7551903128623962,
-0.36904796957969666,
0.44558432698249817,
0.2763981521129608,
-0.053097303956747055,
-0.2611381709575653,
-0.21471482515335083,
-0.36008206009864807,
-0.608727216720581,
0.5303341150283813,
-0.4469272494316101,
0.0691593065857... | |
});
});
function close_box() {
$('.backdrop, .box').animate({
'opacity': '0'
}, 300, 'linear', function() {
$('.backdrop, .box').css('display', 'none');
});
}
```
**[DEMO](http://jsfiddle.net/sweetmaanu/nBYvH/3/)**
Your script doesn't know which lightbox to p... | [
0.0006598376203328371,
-0.3659428656101227,
0.45350298285484314,
-0.30897289514541626,
0.0829496830701828,
0.1768576204776764,
0.1742478609085083,
-0.2734373211860657,
-0.025929395109415054,
-0.7658122181892395,
-0.3876301050186157,
0.5213402509689331,
-0.32554396986961365,
0.0307422745972... | |
`<a>` attributes. Then, on click, pull the value of that attribute and reference with `$("#valuePulledFromAttribute")` rather than the generic `$('.backdrop, .box')` you are using now.
I was able to create a fork using no HTML5: <http://jsfiddle.net/J6ee5/2/>
```
$(document).ready(function() {
$('.lightbox').click(f... | [
0.1710403710603714,
-0.0828762799501419,
0.9268702864646912,
-0.3044451177120209,
0.156329944729805,
0.23085974156856537,
-0.013946653343737125,
-0.41965344548225403,
-0.14559194445610046,
-0.5033032298088074,
-0.23968055844306946,
0.5141435265541077,
-0.4293425679206848,
0.189958199858665... | |
{
close_box();
});
function close_box() {
$('.backdrop,.box').animate({
'opacity': '0'
}, 300, 'linear', function() {
$('.backdrop,.box').css('display', 'none');
});
}
});
``` | [
-0.09718503803014755,
-0.12746132910251617,
0.7379422187805176,
-0.4113307297229767,
0.2253698706626892,
0.2863783538341522,
0.13257549703121185,
-0.297476202249527,
0.11411285400390625,
-0.7147994041442871,
-0.5928839445114136,
0.4991898536682129,
-0.44945427775382996,
0.05525199696421623... | |
I'm creating a gps app for the android! And now I've stumbled upon a problem. The app doesn't start at all... Any ideas of how to fix this?
```
04-05 12:54:50.877: D/dalvikvm(540): Not late-enabling CheckJNI (already on)
04-05 12:54:51.018: I/dalvikvm(540): Turning on JNI app bug workarounds for target SDK version 5.... | [
-0.24504174292087555,
0.15513502061367035,
0.9401018619537354,
-0.020626623183488846,
0.25686296820640564,
0.20238709449768066,
0.8054423332214355,
-0.15504597127437592,
-0.11723948270082474,
-0.46473947167396545,
-0.29787448048591614,
0.8867627382278442,
-0.5370264053344727,
-0.0354249961... | |
java.lang.NoClassDefFoundError: org.acra.ACRA
04-05 12:54:51.477: E/AndroidRuntime(540): at com.kulplex.gaia.GaiaApp.onCreate(GaiaApp.java:54)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
04-05 12:54:51.477: E/AndroidRuntime(540): at andr... | [
-0.3283221423625946,
0.13040299713611603,
0.6025716066360474,
-0.3488517105579376,
0.16870994865894318,
0.35349681973457336,
0.5974288582801819,
-0.555637538433075,
-0.31809136271476746,
-0.64484041929245,
-0.5009623765945435,
0.7442229986190796,
-0.33018940687179565,
-0.16246762871742249,... | |
Java build path > Libraries > select all the jars with error markings on them and click `remove` > click `add JARs` > select all jars from your new `libs` dir.
Hope this helps. | [
-0.08204954862594604,
0.4299030601978302,
-0.1687309443950653,
-0.33215829730033875,
-0.10183709859848022,
-0.043643683195114136,
0.5519933104515076,
-0.24915356934070587,
0.10222338140010834,
-0.8886457681655884,
0.0910695493221283,
0.4274231195449829,
-0.47771820425987244,
-0.14929521083... | |
```
$banana=0;
$view = mysql_query('SELECT ......') or die ('Encountered an error.') ;
while($rows3=mysql_fetch_array($view))
{
$total_price2=$rows3['qty']*$rows3['number'];
$banana = $banana + 1;
if ($total_price2!=0)
{
if ($banana %2 ==0)
{
echo "<tr class=\"alt\">";... | [
0.03642968460917473,
-0.038149140775203705,
0.15876390039920807,
-0.4117664098739624,
0.143108069896698,
0.40942591428756714,
0.30240270495414734,
-0.391218900680542,
-0.34365394711494446,
-0.07789231091737747,
-0.405188649892807,
0.708074688911438,
-0.4059663712978363,
0.44714048504829407... | |
echo "<tr>";
}
echo "<td>".$rows3['member']."</td>";
echo "<td>".$rows3['payment']."</td>";
echo "<td>$".number_format($total_price2,2)."</td>";
}
echo "</tr>";
}
```
**Problems:**
* The "banana" alternates the colour of the table row (class="alt") by us... | [
0.0444256067276001,
-0.11728250235319138,
0.02564438059926033,
-0.3226155936717987,
-0.11879286170005798,
0.5939351916313171,
0.3162994980812073,
-0.6795209646224976,
-0.370652973651886,
-0.24698929488658905,
-0.2587144672870636,
0.35525190830230713,
-0.2867019772529602,
0.3048788607120514... | |
I see the browser is self-closing the opening `<tr>` tag.
eg:
`<tr><td>person</td><td>data</td><td>$10.00</td></tr>`
`<tr class="alt"></tr>` (Repeats in this fashion)
UPDATE
======
I have discovered that the reiterating `banana` always returns ODD NUMBERS: 1 , 3, 5, etc
> **MySQL is not running correctly**
`SELE... | [
-0.29674088954925537,
0.19531747698783875,
0.6936765909194946,
-0.4397970139980316,
-0.11984346807003021,
0.3733295500278473,
0.6017554402351379,
-0.09828310459852219,
-0.26389747858047485,
-0.6156280040740967,
-0.11609210819005966,
0.47637179493904114,
-0.15250948071479797,
0.304698407649... | |
$total_price2=$rows3['qty']*$rows3['number'];
if ( !$total_price2)
continue;
$banana = $banana + 1;
if ($banana %2 ==0)
{
echo "<tr class=\"alt\">";
}
else
{
echo "<tr>";
}
echo "<td>".$rows3['member']."</td>";
echo "<td>".$rows3['payment']."</td... | [
0.09187591820955276,
-0.4160783588886261,
0.44168415665626526,
-0.3962675631046295,
0.016744393855333328,
0.5820949673652649,
-0.015593771822750568,
-0.6819078326225281,
-0.3668493926525116,
0.11500509083271027,
-0.4501248002052307,
0.6632574200630188,
-0.21569697558879852,
0.4508607685565... | |
I'm an Android platform newbie looking to port some of my Windows
Phone 7 mapping apps over here. My WP7 apps use Bing Maps which has
current maps and POI data.
I went to the Android Developers Resources center where it shows how
to develop an app using the Google Maps Library. I did that and
noticed that the maps ... | [
0.5842706561088562,
0.23443979024887085,
0.47819966077804565,
0.05590067058801651,
0.20284955203533173,
-0.030668791383504868,
0.17074286937713623,
0.3491964340209961,
-0.2893352508544922,
-0.7601301670074463,
0.29714444279670715,
0.3750433325767517,
0.20348958671092987,
0.2717413306236267... | |
up on that library, is there another library
they haven't given up on? It seems odd that Google would give up on
Google Maps (bad strategy).
What tools, libraries, etc. should an android developer use that wants
to write compelling mapping applications that can show maps, POIs, directions that use current
maps and... | [
0.2713050842285156,
0.017651304602622986,
0.1699364334344864,
0.7715802192687988,
0.13431140780448914,
-0.03794027864933014,
0.1399655044078827,
-0.04180889204144478,
-0.4787762761116028,
-0.5732899904251099,
0.15993815660476685,
0.6606057286262512,
0.10868161916732788,
0.04901566728949547... | |
It's easy to set the build and version numbers manually in Xcode, and I learned how to increment them with a macro at build time. But how do I reference their values in code?
Sure, you can ask your main bundle for the info directory which includes all keys and values of your info.plist, including the version number:
`... | [
0.520210862159729,
0.12049312144517899,
0.41913241147994995,
0.20073050260543823,
0.2665402889251709,
-0.09166832268238068,
0.16817227005958557,
0.039235178381204605,
-0.2231588512659073,
-0.5279871225357056,
-0.08169161528348923,
0.6725645065307617,
-0.15076428651809692,
-0.11668796837329... | |
I'm making the skeleton for the typical BubbleShooter game in XNA, and I'm having issues with my collision detection algorithm, which is explained in the picture [here](http://i.stack.imgur.com/oIuoi.png)
Depending on where the colliding Rectangle position is at the moment of collision, a new position is assigned to t... | [
0.024670574814081192,
0.05533003434538841,
0.3303582966327667,
0.11767733097076416,
0.07307279109954834,
-0.020631961524486542,
-0.015566795133054256,
-0.15180693566799164,
-0.3081921637058258,
-0.42961597442626953,
0.2173178493976593,
0.3567676544189453,
-0.3251698911190033,
-0.0348528809... | |
I'm still a new user here. Sorry about that.
Is there a way I can detect **exactly** *when* the boundaries of the Rectangles touch each other?
You can perform a per pixel collision instead, it is explained here:
[Click here](http://create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel) | [
0.38805845379829407,
-0.32159706950187683,
0.4888019859790802,
0.13691546022891998,
-0.42338985204696655,
-0.059111401438713074,
0.02607564628124237,
0.16117677092552185,
-0.5337351560592651,
-0.792353093624115,
0.26383209228515625,
0.05281512439250946,
-0.31130722165107727,
0.226950824260... | |
I have here a bubble popping game where bubbles fall from top of the game to the bottom and the player tries to pop as many bubbles as possible in 30 seconds. It is a 3 frame game, 1st frame is the start button, 2nd frame is the game, 3rd frame is the score and play again.
1st frame: Buttons to go to the second frame
2... | [
0.33335810899734497,
-0.2772541642189026,
0.6214897036552429,
0.19629567861557007,
0.04255816340446472,
-0.07857884466648102,
0.07979688048362732,
0.0039000443648546934,
0.16194240748882294,
-0.5962972044944763,
0.09874681383371353,
0.20158256590366364,
0.1447032243013382,
0.23429816961288... | |
of the bubble, and should be change based on the amount of bubbles the player has popped.
```
scoreValue.text = score.toString();
Error 1120: Access of unidentified property scoreValue
```
Anyways here the full package of the code.
```
package {
import flash.display.MovieClip;
import flash.events.Eve... | [
0.11061778664588928,
-0.15370190143585205,
0.7771599292755127,
-0.005770451854914427,
0.3796578347682953,
-0.16728447377681732,
0.12062747776508331,
-0.37685656547546387,
-0.17665478587150574,
-0.4993394911289215,
-0.47088199853897095,
0.90826815366745,
-0.381682813167572,
0.03717491030693... | |
vy: Number;
private var gravity: Number;
private var stageWidth;
private var stageHeight;
private var bubble:Ball = new Ball();
private var score: uint=0;
public function Ball() {
bubble.addEventListener(Event.ADDED_TO_STAGE, initialize)
bubble.ad... | [
-0.21504850685596466,
-0.4121176302433014,
0.7079007625579834,
-0.3267841935157776,
0.398686945438385,
0.2880464196205139,
0.23138371109962463,
-0.24830038845539093,
-0.18781991302967072,
-0.44170519709587097,
-0.378794401884079,
0.5617271065711975,
-0.17265670001506805,
0.0701598376035690... | |
bubble.addEventListener(Event.ENTER_FRAME, dropping)
}
public function initialize (e:Event):void
{
bubble.x = Math.random() * stageWidth;
bubble.y = 0;
stageWidth = stage.stageWidth;
stageHeight = stage.stageHeight; | [
-0.16562320291996002,
-0.2782937288284302,
0.2302803099155426,
-0.3263070583343506,
0.46171531081199646,
0.08641906082630157,
0.21674925088882446,
-0.06216130778193474,
0.08674483001232147,
-0.5187585949897766,
-0.1768159568309784,
0.5878612399101257,
-0.24224410951137543,
-0.0454822145402... | |
bubble.vx = Math.random() * 2 - 1;
bubble.vy = Math.random() * 2 + 1;
gravity = 0.1;
var sizeScale = Math.random() * 1.2 + .6;
bubble.scaleX = bubble.scaleY = sizeScale;
score = (10 / sizeScale); | [
0.07632267475128174,
-0.4894707500934601,
0.7714411616325378,
0.1146429032087326,
0.021404359489679337,
0.3566076457500458,
0.08550288528203964,
-0.24823172390460968,
-0.4624461531639099,
-0.5126060247421265,
-0.1435534954071045,
0.2939453721046448,
-0.264863520860672,
0.28646335005760193,... | |
scoreValue.text = score.toString();
var colorTran = new ColorTransform();
colorTran.color = Math.random() * 0xFFFFFF;
transform.colorTransform = colorTran;
addChild(bubble);
}
function dropping(e: Event) :void
{ | [
-0.05864435061812401,
-0.6016594767570496,
0.290016233921051,
-0.15591807663440704,
0.29765382409095764,
0.08447182923555374,
0.27671411633491516,
-0.31706732511520386,
-0.02973255328834057,
-0.3644881844520569,
-0.37425729632377625,
0.6275750398635864,
-0.2917633056640625,
0.0701805353164... | |
x += vx;
y += vy;
vy += gravity;
if((x<0) || (x>stageWidth) || (y<0) || (y>stageHeight))
{
if(parent != null)
{ | [
-0.11960868537425995,
-0.10450059920549393,
0.5938934087753296,
-0.26643308997154236,
0.22845306992530823,
0.26032212376594543,
0.4117369055747986,
-0.2536427080631256,
0.20213328301906586,
-0.05460740625858307,
-0.19378328323364258,
-0.06711375713348389,
-0.08661208301782608,
0.5316700935... | |
parent.removeChild(this);
}
removeEventListener(Event.ENTER_FRAME, dropping)
}
}
function burst (e:Event):void
{ | [
0.05379060283303261,
-0.41986459493637085,
-0.12042209506034851,
-0.2467128187417984,
0.2611207365989685,
0.004994474351406097,
0.3590203523635864,
-0.14656490087509155,
0.054784514009952545,
-0.5370579361915588,
-0.39495083689689636,
0.6204328536987305,
-0.11301839351654053,
0.25319597125... | |
var ballonPopping: Sound = new BalloonPopping();
bubble.removeEventListener(Event.ADDED_TO_STAGE, initialize);
bubble.removeEventListener(Event.ENTER_FRAME, dropping);
removeChild(bubble);
ballonPopping.play();
burstCounter += score;
}
}
}
```... | [
0.041098933666944504,
-0.13269560039043427,
0.6279867887496948,
-0.15167562663555145,
0.15054038166999817,
0.21255992352962494,
0.28340283036231995,
-0.2368965446949005,
-0.09187105298042297,
-0.5083222985267639,
-0.2804977297782898,
0.6579594612121582,
-0.308531790971756,
-0.0118874711915... | |
that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
```
Thanks for your time.
Firstly, in a class, functions should be defined as `public` or `private`. Second, your `burst` function is expecting an `Event` while you are assigning a... | [
-0.11834600567817688,
-0.2023048847913742,
0.26812511682510376,
-0.06538467109203339,
0.06510663777589798,
-0.01457662507891655,
0.22201533615589142,
0.10273546725511551,
-0.23587144911289215,
-0.716407299041748,
-0.39604631066322327,
1.068800449371338,
-0.2595607340335846,
-0.289450794458... | |
embed button and choose the Basic Latin checkbox...or numerals if its just numbers
edit: Also change your import to
```
import flash.events.*;
```
or add
```
import flash.events.MouseEvent;
``` | [
0.1769523173570633,
0.09413360804319382,
0.24316765367984772,
-0.11120589822530746,
0.07880332320928574,
-0.023281073197722435,
0.0231810100376606,
0.1735408902168274,
-0.002836531726643443,
-0.6064563989639282,
-0.3427067995071411,
0.7916112542152405,
-0.5456583499908447,
-0.2935930192470... | |
I am able to call the following exe using windows command line, but using the exec() function, it doesn't work.
I have to pass a directory as an argument to that exe file.
UPDATE:
```
$command = '""C:\\Users\\cArn\\Documents\\Visual Studio 2010\\Projects\\word_to_pdf\\word_to_pdf\\bin\\Debug\\word_to_pdf.exe" "C:\\w... | [
0.1696985810995102,
0.3525764048099518,
0.7521175742149353,
-0.08643785864114761,
-0.17813745141029358,
0.09797289222478867,
0.39214563369750977,
-0.22972171008586884,
0.20687340199947357,
-0.5516024827957153,
-0.24977324903011322,
0.6489101052284241,
-0.3836422264575958,
-0.02967307530343... | |
[This thread](https://stackoverflow.com/questions/1267403/which-netbeans-projects-files-should-go-into-source-control) is very useful for finding out which files in Netbeans should go into source countrol, but it doesn't cover all files.
In particular I'm wondering whether the following files should go into source con... | [
0.19355909526348114,
-0.1648176610469818,
0.23245932161808014,
0.11594833433628082,
0.01826203614473343,
-0.4883054494857788,
-0.08110853284597397,
0.03121587634086609,
-0.2796251177787781,
-0.6454033851623535,
-0.0295127984136343,
0.3392249047756195,
-0.15042240917682648,
0.09438902139663... | |
- don't. Correct?
* **catalog.xml** - not sure what this does (I GUESS it's used by the editor to find out xml schemas and such to enable syntax coloring, but it's just a guess). Anyway - I see that this file has system-specific information (path) - so it **shouldn't** go into source control.
Can anyone confirm the ab... | [
0.3705722391605377,
-0.024772530421614647,
0.4159323275089264,
0.29592886567115784,
0.0038581560365855694,
-0.43300217390060425,
0.3606206774711609,
0.21516498923301697,
-0.08526133000850677,
-0.8567330837249756,
-0.25167256593704224,
0.5987167954444885,
-0.19567757844924927,
0.13429050147... | |
We are considering using Gerrit for the large project. At this point it would be interesting to know how people are dealing with merge conflicts of approved changes.
Imagine, that many changes of different size are pending revision simultaneously, and they are being reviewed and verified gradually. Since some of them ... | [
0.1809363067150116,
0.0005250394460745156,
0.3603360652923584,
0.0747748538851738,
0.09348949790000916,
-0.2535842955112457,
0.21466925740242004,
-0.29604771733283997,
-0.3138313591480255,
-0.8706786036491394,
-0.01033953856676817,
0.6475420594215393,
-0.13719144463539124,
-0.0158067829906... | |
of merge conflict, as I understand, it will need to be rebased by the author and pushed for revision again, in which case revision process starts again. In the relatively active projects, with more than 50 external contributor commits per week, this might turn into nightmare, if revision of the same patch might be requ... | [
0.20061449706554413,
0.0809260755777359,
0.1439046412706375,
-0.11034095287322998,
-0.1885254681110382,
-0.20760011672973633,
0.40136200189590454,
-0.09020448476076126,
-0.07197295874357224,
-0.8294830322265625,
0.226895272731781,
0.4570951759815216,
-0.3302690088748932,
0.1352549046278,
... | |
Some merge conflicts can be trivial, is there a way to resolve them without the need of bothering author to recommit the change?
3. If the change needs to be backported to stable branch(es), I guess the separate change for each branch needs to be pushed for revision, even if the cherry-pick is clean.
General comments ... | [
0.18712785840034485,
-0.16843779385089874,
0.18046271800994873,
0.04046914726495743,
-0.24197176098823547,
-0.25737714767456055,
0.441689670085907,
-0.13153232634067535,
-0.19029922783374786,
-0.7664586305618286,
0.035193804651498795,
0.812667965888977,
-0.5143554210662842,
-0.164912343025... | |
about that amount of time.
2. There is a setting in Gerrit to auto-merge trivial conflicts. This can be set per-repository. If this option is set, the change is merged in based on your submit strategy (cherry-pick, merge if necessary) after the change has been reviewed and verified and a user presses the 'Submit' butto... | [
0.0741163045167923,
-0.17578952014446259,
0.4082251489162445,
0.17159874737262726,
-0.22136451303958893,
-0.13945746421813965,
0.12290295958518982,
-0.3513867259025574,
0.013224677182734013,
-0.8584747910499573,
-0.040900833904743195,
0.6102814078330994,
-0.11133021116256714,
-0.2674181163... | |
The top widget on my wordpress [page](http://bit.ly/HXNHYq) shows a height property when I check it with chrome developer tools, and that height adds extra spaces on top and bottom of the widget (shown in yellow on the attached picture).
I've been trying for many hours to change or remove that height attribute, but I... | [
0.2362823784351349,
0.3320271074771881,
0.6487554311752319,
-0.036882542073726654,
0.06618980318307877,
-0.09612709283828735,
0.41143351793289185,
-0.17433151602745056,
-0.09469550848007202,
-0.6277555227279663,
-0.23021699488162994,
0.6232502460479736,
0.108756422996521,
-0.15162286162376... | |
cannot perceive them in the source code, because that character is the 'ZERO WIDTH SPACE' `(U+200B)` | [
0.20815853774547577,
0.5137395262718201,
0.2214047759771347,
-0.22805921733379364,
0.14337891340255737,
0.006043286062777042,
0.3972366452217102,
0.13919638097286224,
-0.026249339804053307,
-0.6286472678184509,
-0.43393364548683167,
0.4011058509349823,
-0.11730199307203293,
0.2562134265899... | |
Its been some weeks im looking for it, but just cant find. Does anyone know how can you send anonymous email from a Android? Im using Intent like in:
```
Intent email = new Intent(Intent.ACTION_SEND);
.
.
.
email.putExtra(Intent.EXTRA_EMAIL , new String[]{"sendingToThisEmail@gmail.com"});
email.putExtra(Intent.EXTRA_... | [
0.044339753687381744,
0.17935678362846375,
0.769097626209259,
-0.16427350044250488,
0.02048299089074135,
0.17328740656375885,
0.5058135986328125,
-0.20568707585334778,
-0.24021431803703308,
-0.6858524084091187,
-0.0644352063536644,
0.5706496238708496,
-0.5705353617668152,
-0.26799994707107... | |
the source code, because that character is the 'ZERO WIDTH SPACE' `(U+200B)` | [
0.02001660130918026,
0.3533982038497925,
0.2626563310623169,
-0.13600531220436096,
0.09658577293157578,
-0.08819634467363358,
0.07926132529973984,
-0.02580266445875168,
0.09018171578645706,
-0.41545942425727844,
-0.3754194378852844,
0.23034189641475677,
-0.2627757787704468,
0.0963432490825... | |
I have this image:

What I want to do is to add a UITapGestureRecognizer to this image (or I can split the image in the different parts it consists of and add for each part a UITapGestureRecognizer) in order to have different actions according to the... | [
0.27226921916007996,
-0.05870524421334267,
0.7327960729598999,
0.09471182525157928,
-0.16073599457740784,
0.12211309373378754,
0.23146072030067444,
-0.3346712589263916,
-0.11608744412660599,
-0.7789535522460938,
0.08056774735450745,
0.35133716464042664,
-0.062270909547805786,
-0.0352068655... | |
one.
Any clues on how to do it would be really appreciated.
Thanks
Change your behavior by examining the gesture recognizer's `locationInView:`.
If you handle the image as one unit, implement this in your gesture recognizer call back to decide which "leaf" (if any) was tapped.
If you handle the image as multiple im... | [
0.07277703285217285,
-0.2193203568458557,
0.49833226203918457,
0.3814370334148407,
-0.08347335457801819,
-0.2411150485277176,
0.040454596281051636,
-0.5688903331756592,
-0.5592950582504272,
-0.7529964447021484,
0.06000010296702385,
0.34061652421951294,
-0.14356501400470734,
-0.120018519461... | |
is correct on this point: we need to know how you are drawing the image.
FOLLOW-UP: This is somewhat outside my area of expertise.
The *easiest* approach (from a hit-testing standpoint) is to do what @PhillipMills suggested, using Quartz drawing and `CGPathContainsPoint()`. If you have detailed graphics that you need... | [
0.6729779839515686,
-0.002793614286929369,
0.1465131789445877,
0.2097659856081009,
-0.09902932494878769,
0.16187672317028046,
0.20124845206737518,
-0.27641984820365906,
-0.00967791210860014,
-0.47008711099624634,
0.251289963722229,
0.8326031565666199,
0.054222237318754196,
-0.5199918150901... | |
pixels at your touch point to do hit testing. Googling will turn up some useful results if you go this route, but honestly for a shape as simple as what you've drawn, just use some `UIBezierPath` code to recreate in code. | [
0.5952057838439941,
-0.22586823999881744,
0.377498060464859,
0.20426921546459198,
-0.24803000688552856,
0.2779211699962616,
-0.058322563767433167,
0.12026970833539963,
-0.04585326462984085,
-1.037489652633667,
0.5164820551872253,
0.31839847564697266,
-0.15769490599632263,
0.023794852197170... | |
I'm setting the curl cookiejar option with the following:
```php
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
```
this puts the file in c:\
I try to use an absolute path (c:\server\docs) and the script breaks. Even so, the cookie does get written to that path. Odd.
Is there another way I'm supposed to defin... | [
-0.07477264106273651,
-0.020844750106334686,
0.6415892839431763,
-0.391885370016098,
-0.04363511875271797,
-0.013573823496699333,
0.42023470997810364,
-0.2160855531692505,
-0.10697225481271744,
-0.6573339104652405,
-0.05707184597849846,
0.7511417269706726,
-0.33492380380630493,
-0.04881161... | |
K P1 P2 P3
[1,] A 1 1 1
[2,] B 2 1 2
[3,] C 1 2 2
[4,] D 2 2 2
``` | [
-0.3643191456794739,
0.439867228269577,
0.1810488998889923,
-0.1278618723154068,
-0.28736674785614014,
0.4739667773246765,
0.32262951135635376,
-0.5803666114807129,
-0.3569536507129669,
-0.11782217770814896,
-0.3770037591457367,
-0.07387623935937881,
-0.22868019342422485,
0.127305999398231... | |
I am wondering how to create my own SOA style messaging system, similar to JMS (Java Messaging System).
The MOM (Messaging Oriented Middleware) needs to store messages in a single database, but may be processed by more than one service for scalability and failover.
I have defined a rudimentary Messages table as follo... | [
0.2504315972328186,
-0.13103413581848145,
0.7190531492233276,
-0.08699849247932434,
-0.12003292143344879,
-0.053654298186302185,
0.31127220392227173,
-0.28697729110717773,
-0.17729133367538452,
-0.46529191732406616,
0.1320752054452896,
0.233275905251503,
-0.20420369505882263,
0.05460419505... | |
service processes each message at a time?
I was thinking about a scheme like this:
1. Perform record locking: UPDATE Messages SET ProcessIdLock =
MessageProcessorId, SET State = 2 -- Processing WHERE
MessageId IN (
SELECT TOP 10 MessageId FROM Messages
WHERE Expiration < GETTIME() + CreateTimeStamp
AND State = 1 -... | [
0.17948567867279053,
-0.13403652608394623,
0.5569927096366882,
-0.12553365528583527,
0.07521820068359375,
0.0909201055765152,
0.33545762300491333,
-0.5512282252311707,
-0.44644930958747864,
-0.7997543215751648,
-0.24636511504650116,
0.2440362572669983,
-0.23513254523277283,
0.0745593756437... | |
State = (Pass, Fail, or Retry), SET DeliveredTimeStamp =
GETDATE() -- Pass only WHERE MessageId = ProcessedMessageId
Note: Another problem I have is that some messaged are broadcast to several clients grouped by id (such that, there may be 100 total clients, but each client group will consist of 10 or less).
For exam... | [
0.36721163988113403,
-0.5056315064430237,
0.3176960051059723,
0.02995387092232704,
-0.17163074016571045,
0.029890544712543488,
0.7413660883903503,
-0.4246717691421509,
-0.4439651668071747,
-0.7874597907066345,
-0.0372779481112957,
0.12292312830686569,
-0.2717895805835724,
0.327376425266265... | |
will be dropped after message Expiration).
Thank you for reading this. Seems like a typical enterprise problem to me. Would MSMQ be the best solution? I am new to MSMQ, are MSMQ messages persisted in storage or kept in memory?
I know it doesn't directly answer your question, but I would **very strongly** encourage you... | [
0.234566330909729,
-0.07535748928785324,
0.22029449045658112,
0.34075257182121277,
0.06529990583658218,
-0.2537378966808319,
0.4441598951816559,
0.4349173307418823,
-0.5182344317436218,
-0.6660329103469849,
0.03625258058309555,
0.32938578724861145,
-0.3065122067928314,
0.18889552354812622,... | |
Why should I use tmux when iterm2 has split panes?
I have never used tmux, and want to know if there are advantages to using that in my workflow instead of the split pane features iterm2 has.
I really like the dimming of inactive windows that iTerm2 split panes offers. Does tmux do something similar?
What are the a... | [
0.09028000384569168,
0.1040782630443573,
0.24451568722724915,
-0.1700586974620819,
-0.05882875248789787,
-0.4151148200035095,
0.3706130087375641,
0.3340068757534027,
-0.2789832055568695,
-0.7253504395484924,
-0.24047118425369263,
0.7757269740104675,
-0.25683459639549255,
0.3170088529586792... | |
send `SIGHUP` to all children which terminates them by default and thus you lose unsaved data (at least, shell and vim command history and other data stored in viminfo) and running processes and thus reopening means rerunning everything. | [
0.15556566417217255,
-0.2327943593263626,
0.3411908745765686,
0.06276950985193253,
0.1848439872264862,
0.011317132972180843,
0.2862616181373596,
0.05221881344914436,
-0.11178957670927048,
-0.4153555631637573,
-0.5388623476028442,
0.6935431957244873,
-0.4023556113243103,
0.42677047848701477... | |
So I had to write a program in Pascal (A bubble sort, it was pretty simple) and at the end my professor asked a question about our code. He had us write two separate print procedures. The first printArray took in an Array of Integers as it's parameter, where printArray2 took in a type called arrayType which is defined ... | [
0.22104883193969727,
0.29479795694351196,
-0.012193446978926659,
-0.0859910249710083,
-0.30293306708335876,
0.4212369918823242,
-0.09809277206659317,
-0.16674309968948364,
-0.0658542737364769,
-0.363383948802948,
0.27012908458709717,
0.3415199816226959,
-0.5352436900138855,
-0.085312679409... | |
thought was it had something to do with how the memory locations are accessed, but I don't really know how to word it correctly.
Well, hopefully one of you fine people can help me out.
There is another advantage of `tmux`: what happens if you accidentally close `iterm2`? If you do it really by accident, you want to re... | [
0.18726199865341187,
0.07956752181053162,
0.15248525142669678,
0.058427583426237106,
0.1013842448592186,
-0.3845738470554352,
0.3200392723083496,
0.3804658055305481,
-0.307561457157135,
-0.3370542526245117,
-0.28407225012779236,
0.7578668594360352,
-0.09550748020410538,
0.3521886467933655,... | |
data stored in viminfo) and running processes and thus reopening means rerunning everything. | [
0.36461660265922546,
-0.20760993659496307,
0.4569287896156311,
0.4371976852416992,
0.3582260310649872,
-0.3340015411376953,
0.18654076755046844,
0.030391709879040718,
-0.4397668242454529,
-0.45479610562324524,
-0.4240288734436035,
0.6018570065498352,
-0.2885199785232544,
0.2763160169124603... | |
I have a report that I created in SQL Server Reporting Services 2008.
I now want to create a new report, that is very similar that the one I already created.
How do I do that without writing the report from scratch? Can I just copy the .rdl to a new name? How will Visual Studio "pick that up"?
Thanks!
I confess that... | [
0.5348435044288635,
0.10204780101776123,
0.18146488070487976,
0.10546042770147324,
-0.4383121430873871,
-0.3253811001777649,
0.2807241380214691,
0.11852248758077621,
-0.36656418442726135,
-0.472358763217926,
0.39407995343208313,
0.408488392829895,
-0.10084429383277893,
0.2763656973838806,
... | |
is yes | [
-0.20379112660884857,
0.05617539957165718,
0.4743039608001709,
0.04958782717585564,
0.17786136269569397,
0.021568121388554573,
0.011465061455965042,
0.057449039071798325,
-0.06455421447753906,
-0.1893918812274933,
-0.4474520981311798,
0.17716437578201294,
0.14509733021259308,
0.03797359392... | |
In Alfresco Share, when you click the "Repository" icon in the toolbar, you're taken to:
/share/page/repository
I would like to change this link to take the user to their home folder, example:
/share/page/repository#filter=path|/User%2520Homes/g/gi/gillespie/patrick.j.gillespie
I figured this would be a simple chan... | [
0.528489351272583,
-0.19600383937358856,
0.46318456530570984,
-0.1179521232843399,
-0.273264616727829,
-0.2011731117963791,
-0.026524199172854424,
-0.14506478607654572,
-0.4525368809700012,
-0.48819807171821594,
0.341472327709198,
0.5692899823188782,
-0.3888721466064453,
-0.001467983121983... | |
I'd post what I did in case anyone else has the same problem.
If you're not using hashed home folders, you can provide this functionality by simply updating your share-config.xml or share-config-custom.xml like so:
```
<item type="link" id="repository">/repository#filter=path|/User%2520Homes/{userid}</item>
```
How... | [
0.6329941749572754,
0.029318511486053467,
0.14500349760055542,
0.15678457915782928,
-0.1025780513882637,
-0.3882889747619629,
0.13384351134300232,
-0.22397498786449432,
-0.2100743055343628,
-1.0503215789794922,
0.06348738819360733,
0.3426002860069275,
-0.12860310077667236,
0.12074580043554... | |
<shortname>Home Folder Path</shortname>
<description>Description here.</description>
<format default="json">argument</format>
<url>/demo/get-home-folder-path</url>
<authentication>user</authentication>
</webscript>
```
hfp.get.js
This script traverses up the node tree and puts together the folder's p... | [
-0.21184128522872925,
0.04774435609579086,
0.5811848044395447,
-0.26568931341171265,
0.28878289461135864,
0.0167434960603714,
0.16751728951931,
-0.4882643520832062,
-0.4339843690395355,
-0.45674067735671997,
-0.26982101798057556,
0.12265859544277191,
-0.2427901029586792,
0.0870230495929718... | |
(count === 100) { //something went wrong
myDir = "";
}
model.homeFolder = myDir;
```
hfp.get.json.ftl
```
{
"homeFolder": "${homeFolder}"
}
```
Finally, you'll need to modify the "alfresco-template.ftl" file, located in "share/WEB-INF/classes/alfresco/templates/org/alfresco/include". Near the bottom of the... | [
0.04438963904976845,
-0.13496991991996765,
0.8532893657684326,
-0.2918020784854889,
0.06698755919933319,
-0.015277410857379436,
0.39094603061676025,
-0.6707984209060669,
-0.29517069458961487,
-0.48410072922706604,
-0.20663747191429138,
0.7004532217979431,
-0.21350419521331787,
0.0260005351... | |
var homeFolder = "";
var hfIndex = data.homeFolder.indexOf("/User Homes/");
if (hfIndex !== -1) {
homeFolder = data.homeFolder.substr(hfIndex+12);
}
var repoLinks = $("a[title='Repository']");
for | [
0.054734550416469574,
-0.18045811355113983,
0.8565823435783386,
-0.22023476660251617,
0.3644842803478241,
-0.07620818167924881,
0.24274106323719025,
-0.7816821336746216,
-0.4353432357311249,
-0.461751788854599,
-0.49497920274734497,
0.6403321027755737,
-0.29070860147476196,
0.3489713370800... | |
(var ii = 0; ii < repoLinks.length; ii++) {
repoLinks.get(ii).href = "/share/page/repository#filter=path|/User%2520Homes/" + homeFolder;
}
}
};
var sUrl = Alfresco.constants.PROXY_URI + "demo/get-home-folder-path";
var postData = "";
var getData = "";
var request ... | [
-0.22459128499031067,
-0.25091931223869324,
0.8612402677536011,
-0.32967710494995117,
-0.0758359506726265,
0.31251659989356995,
0.5888069868087769,
-0.413753867149353,
-0.3244876265525818,
-0.637152910232544,
-0.4410684108734131,
0.33943691849708557,
-0.3302253484725952,
0.2518535256385803... | |
probably refine it later, and this should mostly just be used as a starting point, but I figured I'd post it in case anyone had a similar problem. | [
0.45330360531806946,
0.25873827934265137,
0.17564111948013306,
0.0176820307970047,
-0.21743907034397125,
-0.1358439028263092,
0.06670583784580231,
0.2410782426595688,
0.0036818862427026033,
-0.22209399938583374,
0.2967689037322998,
-0.1594514697790146,
0.17019593715667725,
-0.2299703955650... | |
I have the query below that when run it says that 325 rows were affected. However, if I only run the SELECT portion of the query, I get 331 results returned. This means that when the whole query runs, only 325 rows are getting updated and not 331. I'm not sure what the discrepancy could be. I'd like it to update all th... | [
-0.042508017271757126,
0.26593366265296936,
0.4493649899959564,
-0.17991217970848083,
-0.008673356845974922,
0.24270790815353394,
0.3780229687690735,
-0.532594621181488,
-0.31371280550956726,
-0.4654674530029297,
0.030576134100556374,
0.5963371396064758,
-0.30374234914779663,
0.06268645823... | |
tableB
LEFT JOIN tableC
ON tableB.c_id = tableC.c_id
WHERE tableC.c_id != tableC.c_id_update
GROUP BY tableB.c_id) X
ON A.c_id = X.c_id
```
And running only the SELECT portion of the query returns 331 rows
```
SELECT tableB.c_id, COUNT(*) as c
FROM tableB
LEFT JOIN tableC
ON tableB.c_id = ta... | [
-0.3205115795135498,
0.3227421045303345,
0.44203126430511475,
-0.1451023817062378,
-0.22093980014324188,
0.36188802123069763,
0.23368890583515167,
-0.5710169076919556,
-0.27960896492004395,
-0.45165425539016724,
-0.06717563420534134,
0.31533801555633545,
-0.37765225768089294,
0.08537589013... | |
like this:
```
select x.* from
(
SELECT tableB.c_id, COUNT(*) as c
FROM tableB
LEFT JOIN tableC
ON tableB.c_id = tableC.c_id
WHERE tableC.c_id != tableC.c_id_update
GROUP BY tableB.c_id
) X
left join tableA A on A.c_id = X.c_id
where A.C_id is null
```
Essentially this is a left join, and you only return the... | [
-0.30114468932151794,
0.2786259353160858,
0.29818469285964966,
-0.2332214117050171,
-0.10065093636512756,
0.045954346656799316,
0.04292827472090721,
-0.3350307047367096,
-0.35161975026130676,
-0.4590090811252594,
-0.21555432677268982,
0.21538519859313965,
-0.573651134967804,
0.297021359205... | |
I am writing some java TCP/IP networking code ( client - server ) in which I have to deal with scenarios where the sends are much faster than the receives , thus blocking the send operations at one end. ( because the send and recv buffers fill up ). In order to design my code , I wanted to first play around these kind ... | [
0.21231390535831451,
-0.12589967250823975,
0.42201441526412964,
-0.1888100802898407,
-0.18270041048526764,
0.03534490615129471,
0.13277767598628998,
-0.3985370397567749,
-0.17851169407367706,
-0.6881369948387146,
0.03340134024620056,
0.3992294371128082,
-0.4961201846599579,
-0.036086000502... | |
size)` to small values - hoping that would fill up soon, but I can see that send operation completes without waiting for the client to consume enough data already written. ( which means that the small send and recv buffer size has no effect )
Another approach I took is to use Netty , and set `ServerBootstrap.setOption... | [
0.10572797805070877,
0.11514990776777267,
0.4143128991127014,
-0.15452037751674652,
0.04668556526303291,
0.058363109827041626,
0.1919388324022293,
-0.40207400918006897,
-0.4615459442138672,
-0.5453909039497375,
-0.0014423792017623782,
0.4132708013057709,
-0.3011953830718994,
0.323070764541... | |
tableB
LEFT JOIN tableC
ON tableB.c_id = tableC.c_id
WHERE tableC.c_id != tableC.c_id_update
GROUP BY tableB.c_id
) X
left join tableA A on A.c_id = X.c_id
where A.C_id is null
```
Essentially this is a left join, and you only return the rows where the left join is absent. It should tell you which 6 rows are miss... | [
-0.42476868629455566,
0.25196757912635803,
0.4893346428871155,
-0.22967691719532013,
-0.13186456263065338,
0.1472817361354828,
0.023173708468675613,
-0.30352267622947693,
-0.3114810287952423,
-0.48733991384506226,
-0.20097234845161438,
-0.02935759909451008,
-0.4588443636894226,
0.352927118... | |
I have a wp-network installed with users that can create pages in each site.
Each of those pages get a place in the primary menu, and only one user have permission to create all this menu.
I want to create a user only to be able to edit the content of the pages, but not the title.
How can I disable the title of the ... | [
0.6675947308540344,
0.3387242257595062,
0.34189388155937195,
0.07045625895261765,
-0.04479747265577316,
-0.2863478362560272,
0.2746705412864685,
0.03892294317483902,
-0.07696142047643661,
-0.5711509585380554,
-0.08861687779426575,
0.5661346316337585,
-0.18533290922641754,
0.395086914300918... | |
like to css-hide things.
2. 1. I don't know where is the admin css.
2. I know php, but don't know how to add a css hide to an element for a capability.

You should definitely use CSS to hide the div#titlediv. You'll want the title to show in the markup so ... | [
0.6689967513084412,
-0.11817967146635056,
0.44998735189437866,
0.05612582713365555,
0.04282645136117935,
-0.37846529483795166,
0.3313348889350891,
0.04345988109707832,
0.08423706889152527,
-0.5555386543273926,
0.06293230503797531,
0.37104955315589905,
-0.22155165672302246,
0.00764127448201... | |
action, or using [wp\_enqueue\_style](http://codex.wordpress.org/Function_Reference/wp_enqueue_style) if you'd like to store it in a separate CSS file.
Here is a code snippet that will do the job, place it where you find fit, functions.php in your theme works. I'd put it inside a network activated plugin if you're usi... | [
0.13537144660949707,
-0.3747364282608032,
0.5946251153945923,
0.04758245125412941,
-0.046913858503103256,
0.16866685450077057,
0.05536656826734543,
-0.41156837344169617,
-0.5153188109397888,
-0.4723488688468933,
-0.37487390637397766,
0.4278610050678253,
-0.2915540635585785,
-0.144810348749... | |
display: none;
}
</style>
<?php
}
}
?>
``` | [
-0.007029945030808449,
0.4485102891921997,
0.25444185733795166,
-0.20795972645282745,
-0.01545427180826664,
0.18098050355911255,
0.0017206927295774221,
0.31487518548965454,
-0.3135148882865906,
-0.7222030758857727,
-0.4023979902267456,
0.40486940741539,
-0.545098066329956,
0.29174029827117... | |
I have two kind of elements
```
<i rel="tooltip" class='icon-ok'>
<i title="Teste" class='icon-info'>
```
The first one is a tooltip effect, the second a popover
What I'm trying to do is avoid rework so I don't need to create a script based on the class on every html I have.
I did this on my base html:
```
$('bod... | [
0.2901817262172699,
0.02017226815223694,
0.36722612380981445,
-0.07016897946596146,
-0.14281442761421204,
0.1116958037018776,
0.3558291494846344,
-0.5285666584968567,
-0.1678495705127716,
-0.6594416499137878,
0.060644250363111496,
0.48897993564605713,
-0.27077504992485046,
-0.1812032312154... | |
`<i>` elements without the rel attribute.
Found the solution here: [jQuery selectors - find objects without specified attribute](https://stackoverflow.com/questions/1969141/jquery-selectors-find-objects-without-specified-attribute)
[vrutberg](https://stackoverflow.com/users/230654/vrutberg) - `jQuery("li:not([style])... | [
-0.11605516076087952,
-0.006716783158481121,
0.5116361975669861,
-0.011012081056833267,
-0.060359466820955276,
0.15656082332134247,
0.37152013182640076,
-0.41637754440307617,
-0.23057204484939575,
-0.43070659041404724,
-0.44664549827575684,
0.5009948015213013,
-0.3604883551597595,
0.096883... | |
I'm new to exceptions and am trying to figure out when is appropriate to use them. In the following php code I would like to change `echo` (no need to tell the user) to simply log the message. Should I just replace `echo` with `log->notice(...)` (for example) or should I be using an exception (which I plan to log anywa... | [
0.5054119825363159,
0.10044384002685547,
0.04116453230381012,
-0.10671987384557724,
-0.24114347994327545,
-0.19089438021183014,
0.712706446647644,
-0.18458618223667145,
-0.4024156630039215,
-0.496487021446228,
0.1877184361219406,
0.22052925825119019,
-0.36491379141807556,
-0.04890647530555... | |
i missed a little CSS.
My IE was not showing the html with any css at all. So it was difficult to findout whether something is changed or not. Thanks to Tuan who saved my day. Once i started using Firebug it was crystal clear that a custom css was missing. Here is the updated Code just in case any one is interested.
... | [
0.32410091161727905,
0.0062945447862148285,
0.5771311521530151,
-0.16123540699481964,
0.012964095920324326,
0.10065305233001709,
0.24704407155513763,
0.054570138454437256,
-0.4563312530517578,
-0.7451237440109253,
0.05566459521651268,
0.5093218684196472,
-0.22668714821338654,
0.09916985780... | |
url: rootPath + "Home/GetMenu/",
data: { moduleid: $(this).val() },
success: function(result) {
$('#accordion').html(result);
//$('#accordion').append(result);
$('#accordion').accordion('destroy'); | [
-0.23541902005672455,
0.01489357277750969,
0.8726951479911804,
-0.3198043704032898,
0.38747477531433105,
0.35814544558525085,
0.3962363600730896,
-0.39867812395095825,
-0.1311182677745819,
-0.4826517105102539,
-0.6019399166107178,
0.61775141954422,
-0.22483983635902405,
0.49367159605026245... | |
$('#accordion div').addClass('navMiddle'); // I missed this at first
$('#accordion').accordion({
fillSpace: true, collapsible: true
});
},
error: function(error) { alert(error); } | [
-0.34041628241539,
-0.15713156759738922,
0.579655647277832,
-0.5874270796775818,
0.3458578586578369,
0.5637820959091187,
0.3950499892234802,
-0.2052827626466751,
-0.3190014064311981,
-0.7728098630905151,
0.0901465117931366,
0.8944821953773499,
-0.38186609745025635,
-0.10191299021244049,
... | |
});
});
```
And Here is the CSS for the Accordion menu items.
```
.navMiddle{
position:relative;
}
.navMiddle ul {
margin:0px;
padding:0px;
text-align:left;
list-style:none;
}
.navMiddle ul li {
font-size:11px;
color:#003366;
font-weight:normal;
white-space:nowrap;
position:... | [
-0.6246067881584167,
-0.03597738966345787,
1.0888365507125854,
-0.3303140103816986,
-0.1090836450457573,
0.48226600885391235,
0.14864277839660645,
0.02432163804769516,
-0.48311132192611694,
-0.9686468839645386,
-0.509249210357666,
0.1931477189064026,
-0.5040613412857056,
0.1546231210231781... | |
text-decoration:none;
color:#003366;
margin-top:3px;
}
``` | [
-0.42464837431907654,
0.5480111837387085,
0.08568564802408218,
0.16884495317935944,
0.1508774757385254,
0.15048998594284058,
0.1402183324098587,
0.21914346516132355,
-0.1113324835896492,
-0.2639550268650055,
-0.6117839813232422,
0.36452507972717285,
-0.19840413331985474,
-0.160237893462181... | |
How do i change a column's `TrimTrialingBlanks` to Yes from No for a table in sql server for an already existing table?
I used this
`Update tabelename set TrimTrialingBlanks='yes';`
But this didn't work.
> TrimTrialingBlanks seems to be column properties and not a table
> column.
Thanks.
Have a look at [this ot... | [
-0.060907285660505295,
0.20727165043354034,
0.2555641829967499,
0.0010742424055933952,
-0.02609364688396454,
-0.03702569752931595,
0.30094024538993835,
-0.39709150791168213,
-0.10875271260738373,
-0.4665299952030182,
0.016713395714759827,
0.3012576699256897,
-0.27318865060806274,
0.1315426... | |
or class package name) was detected between trusted and
> untrusted components and the request to load the resource or class was
> denied.
>
>
> "resource \"" + name + "\" does not match trust level of other
> resources of the same name" "class
>
>
> \"" + packageName + "\" does not
> match trust level of other... | [
-0.11212413012981415,
-0.3669389486312866,
-0.11202676594257355,
0.09377704560756683,
0.07119084149599075,
-0.04621148481965065,
0.3152792155742645,
-0.5951899886131287,
0.1646791398525238,
-0.4701693654060364,
-0.23296095430850983,
0.47303682565689087,
-0.34784644842147827,
0.095300383865... | |
The first row is the container for search results to be displayed after user types in a keyword and hit search. The second row displays 5 random news results automatically the first time the website loads with no user queries. after the site loads, user types in some keyword and hit search. Now both the results returne... | [
0.1469808667898178,
0.1851150542497635,
0.6270253658294678,
0.24084606766700745,
-0.24662739038467407,
0.1663145273923874,
-0.13818331062793732,
0.018132299184799194,
-0.1543985903263092,
-0.5886094570159912,
-0.20095032453536987,
0.2427504062652588,
-0.08358288556337357,
0.289888173341751... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.